Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:11:21

0001 /*****************************************************************************
0002  * Project: RooFit                                                           *
0003  * Package: RooFitModels                                                     *
0004  *    File: $Id: RooDstD0BG.h,v 1.12 2007/07/12 20:30:49 wouter Exp $
0005  * Authors:                                                                  *
0006  *   UE, Ulrik Egede,     RAL,               U.Egede@rl.ac.uk                *
0007  *   MT, Max Turri,       UC Santa Cruz      turri@slac.stanford.edu         *
0008  *   CC, Chih-hsiang Cheng, Stanford         chcheng@slac.stanford.edu       *
0009  *   DK, David Kirkby,    UC Irvine,         dkirkby@uci.edu                 *
0010  *                                                                           *
0011  * Copyright (c) 2000-2005, Regents of the University of California          *
0012  *                          RAL and Stanford University. All rights reserved.*
0013  *                                                                           *
0014  * Redistribution and use in source and binary forms,                        *
0015  * with or without modification, are permitted according to the terms        *
0016  * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
0017  *****************************************************************************/
0018 #ifndef ROO_DstD0_BG
0019 #define ROO_DstD0_BG
0020 
0021 #include "RooAbsPdf.h"
0022 #include "RooRealProxy.h"
0023 
0024 class RooRealVar;
0025 
0026 class RooDstD0BG : public RooAbsPdf {
0027 public:
0028    RooDstD0BG(){};
0029    RooDstD0BG(const char *name, const char *title, RooAbsReal &_dm, RooAbsReal &_dm0, RooAbsReal &_c, RooAbsReal &_a,
0030               RooAbsReal &_b);
0031 
0032    RooDstD0BG(const RooDstD0BG &other, const char *name = nullptr);
0033    TObject *clone(const char *newname) const override { return new RooDstD0BG(*this, newname); }
0034 
0035    Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName = nullptr) const override;
0036    double analyticalIntegral(Int_t code, const char *rangeName = nullptr) const override;
0037 
0038 protected:
0039    RooRealProxy dm;
0040    RooRealProxy dm0;
0041    RooRealProxy C, A, B;
0042 
0043    double evaluate() const override;
0044    void doEval(RooFit::EvalContext &) const override;
0045    inline bool canComputeBatchWithCuda() const override { return true; }
0046 
0047 private:
0048    ClassDefOverride(RooDstD0BG, 1) // D*-D0 mass difference background PDF
0049 };
0050 
0051 #endif