library: libRooFit #include "RooBMixDecay.h"

# RooBMixDecay

class description - source file - inheritance tree (.pdf)

## class RooBMixDecay : public RooAbsAnaConvPdf

| Inheritance Chart:
`TObject`
| <- | `TNamed`
`RooPrintable`
| <- | `RooAbsArg`
| <- | `RooAbsReal`
| <- | `RooAbsPdf`
| <- | `RooAbsAnaConvPdf`
| <- | `RooBMixDecay` |

        public:

                           RooBMixDecay()
                           RooBMixDecay(const char* name, const char* title, RooRealVar& t, RooAbsCategory& mixState, RooAbsCategory& tagFlav, RooAbsReal& tau, RooAbsReal& dm, RooAbsReal& mistag, RooAbsReal& delMistag, const RooResolutionModel& model, RooBMixDecay::DecayType type = DoubleSided)
                           RooBMixDecay(const RooBMixDecay& other, const char* name = "0")
                   virtual ~RooBMixDecay()
            static TClass* Class()
          virtual TObject* clone(const char* newname) const
          virtual Double_t coefAnalyticalIntegral(Int_t coef, Int_t code, const char* rangeName = "0") const
          virtual Double_t coefficient(Int_t basisIndex) const
              virtual void generateEvent(Int_t code)
             virtual Int_t getCoefAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName = "0") const
             virtual Int_t getGenerator(const RooArgSet& directVars, RooArgSet& generateVars, Bool_t staticInitOK = kTRUE) const
              virtual void initGenerator(Int_t code)
           virtual TClass* IsA() const
              virtual void ShowMembers(TMemberInspector& insp, char* parent)
              virtual void Streamer(TBuffer& b)
                      void StreamerNVirtual(TBuffer& b)

### Data Members

        protected:

          RooBMixDecay::DecayType _type
                     RooRealProxy _mistag
                     RooRealProxy _delMistag
                 RooCategoryProxy _mixState
                 RooCategoryProxy _tagFlav
                     RooRealProxy _tau
                     RooRealProxy _dm
                     RooRealProxy _t
                            Int_t _basisExp
                            Int_t _basisCos
                         Double_t _genMixFrac        ! do not persist
                         Double_t _genFlavFrac       !
                         Double_t _genFlavFracMix    !
                         Double_t _genFlavFracUnmix  !

        public:

          static const RooBMixDecay::DecayType SingleSided
          static const RooBMixDecay::DecayType DoubleSided
          static const RooBMixDecay::DecayType Flipped

## Class Description

RooBMixDecay(const char *name, const char *title, RooRealVar& t, RooAbsCategory& mixState, RooAbsCategory& tagFlav, RooAbsReal& tau, RooAbsReal& dm, RooAbsReal& mistag, RooAbsReal& delMistag, const RooResolutionModel& model, DecayType type) : RooAbsAnaConvPdf(name,title,model,t), _type(type), _mistag("mistag","Mistag rate",this,mistag), _delMistag("delMistag","Delta mistag rate",this,delMistag), _mixState("mixState","Mixing state",this,mixState), _tagFlav("tagFlav","Flavour of tagged B0",this,tagFlav), _tau("tau","Mixing life time",this,tau), _dm("dm","Mixing frequency",this,dm), _t("_t","time",this,t), _genMixFrac(0)

     Constructor

RooBMixDecay(const RooBMixDecay& other, const char* name) : RooAbsAnaConvPdf(other,name), _type(other._type), _mistag("mistag",this,other._mistag), _delMistag("delMistag",this,other._delMistag), _mixState("mixState",this,other._mixState), _tagFlav("tagFlav",this,other._tagFlav), _tau("tau",this,other._tau), _dm("dm",this,other._dm), _t("t",this,other._t), _basisExp(other._basisExp), _basisCos(other._basisCos), _genMixFrac(other._genMixFrac), _genFlavFrac(other._genFlavFrac), _genFlavFracMix(other._genFlavFracMix), _genFlavFracUnmix(other._genFlavFracUnmix)

     Copy constructor

~RooBMixDecay()

     Destructor

Double_t coefficient(Int_t basisIndex) const

     Comp with tFit MC: must be (1 - tagFlav*...)

Int_t getCoefAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName) const

       cout << "RooBMixDecay::getCoefAI " ; allVars.Print("1") ;

Double_t coefAnalyticalIntegral(Int_t basisIndex, Int_t code, const char* /*rangeName*/) const

Int_t getGenerator(const RooArgSet& directVars, RooArgSet &generateVars, Bool_t staticInitOK) const

void initGenerator(Int_t code)

void generateEvent(Int_t code)

     Generate mix-state dependent

### Inline Functions

            RooBMixDecay RooBMixDecay(const RooBMixDecay& other, const char* name = "0")
                TObject* clone(const char* newname) const
                 TClass* Class()
                 TClass* IsA() const
                    void ShowMembers(TMemberInspector& insp, char* parent)
                    void Streamer(TBuffer& b)
                    void StreamerNVirtual(TBuffer& b)

Last update: Tue Jun 28 18:11:06 2005
Copyright (c) 2000-2005, Regents of the University of California *