Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/RooBDecay.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*****************************************************************************
0002  * Project: RooFit                                                           *
0003  * Package: RooFitModels                                                     *
0004  *    File: $Id: RooBDecay.h,v 1.7 2007/05/11 09:13:07 verkerke Exp $
0005  * Authors:                                                                  *
0006  *   PL, Parker C Lund,   UC Irvine                                          *
0007  *   DK, David Kirkby,    UC Irvine,         dkirkby@uci.edu                 *
0008  *   WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu       *
0009  *                                                                           *
0010  * Copyright (c) 2000-2005, Regents of the University of California          *
0011  *                          and Stanford University. All rights reserved.    *
0012  *                                                                           *
0013  * Redistribution and use in source and binary forms,                        *
0014  * with or without modification, are permitted according to the terms        *
0015  * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
0016  *****************************************************************************/
0017 
0018 #ifndef ROO_BDECAY
0019 #define ROO_BDECAY
0020 
0021 #include "RooAbsAnaConvPdf.h"
0022 #include "RooRealProxy.h"
0023 
0024 class RooBDecay : public RooAbsAnaConvPdf
0025 {
0026 
0027 public:
0028 
0029   enum DecayType { SingleSided, DoubleSided, Flipped };
0030 
0031   //Constructors, assignment etc
0032   inline RooBDecay() { }
0033   RooBDecay(const char *name, const char *title, RooRealVar& t,
0034          RooAbsReal& tau, RooAbsReal& dgamma,
0035          RooAbsReal& f0,
0036          RooAbsReal& f1, RooAbsReal& f2,
0037          RooAbsReal& f3, RooAbsReal& dm,
0038          const RooResolutionModel& model,
0039          DecayType type);
0040   RooBDecay(const RooBDecay& other, const char* name=nullptr);
0041   TObject* clone(const char* newname) const override
0042   {
0043     return new RooBDecay(*this,newname);
0044   }
0045 
0046   double coefficient(Int_t basisIndex) const override;
0047   RooFit::OwningPtr<RooArgSet> coefVars(Int_t coefIdx) const override ;
0048 
0049   Int_t getCoefAnalyticalIntegral(Int_t coef, RooArgSet& allVars, RooArgSet& analVars, const char* rangeName=nullptr) const override ;
0050   double coefAnalyticalIntegral(Int_t coef, Int_t code, const char* rangeName=nullptr) const override ;
0051 
0052   Int_t getGenerator(const RooArgSet& directVars, RooArgSet &generateVars, bool staticInitOK=true) const override;
0053   void generateEvent(Int_t code) override;
0054 
0055 protected:
0056 
0057   RooRealProxy _t;
0058   RooRealProxy _tau;
0059   RooRealProxy _dgamma;
0060   RooRealProxy _f0;
0061   RooRealProxy _f1;
0062   RooRealProxy _f2;
0063   RooRealProxy _f3;
0064   RooRealProxy _dm;
0065   Int_t _basisCosh;
0066   Int_t _basisSinh;
0067   Int_t _basisCos;
0068   Int_t _basisSin;
0069   Int_t _basisB;
0070   DecayType _type;
0071 
0072   ClassDefOverride(RooBDecay, 1) // P.d.f of general description of B decay time distribution
0073     };
0074 
0075 #endif