60 #define Debug_RooNonCPEigenDecay 1 83 _acp (
"acp",
"acp", this, acp ),
84 _avgC (
"C",
"C", this, C ),
85 _delC (
"delC",
"delC", this, delC ),
86 _avgS (
"S",
"S", this, S ),
87 _delS (
"delS",
"delS", this, delS ),
88 _avgW (
"avgW",
"Average mistag rate",this, avgW ),
89 _delW (
"delW",
"Shift mistag rate", this, delW ),
90 _t (
"t",
"time", this, t ),
91 _tau (
"tau",
"decay time", this, tau ),
92 _dm (
"dm",
"mixing frequency", this, dm ),
93 _tag (
"tag",
"CP state", this, tag ),
94 _rhoQ (
"rhoQ",
"Charge of the rho", this, rhoQ ),
95 _correctQ (
"correctQ",
"correction of rhoQ", this, correctQ ),
96 _wQ (
"wQ",
"mischarge", this, wQ ),
140 _acp (
"acp",
"acp", this, acp ),
141 _avgC (
"C",
"C", this, C ),
142 _delC (
"delC",
"delC", this, delC ),
143 _avgS (
"S",
"S", this, S ),
144 _delS (
"delS",
"delS", this, delS ),
145 _avgW (
"avgW",
"Average mistag rate",this, avgW ),
146 _delW (
"delW",
"Shift mistag rate", this, delW ),
147 _t (
"t",
"time", this, t ),
148 _tau (
"tau",
"decay time", this, tau ),
149 _dm (
"dm",
"mixing frequency", this, dm ),
150 _tag (
"tag",
"CP state", this, tag ),
151 _rhoQ (
"rhoQ",
"Charge of the rho", this, rhoQ ),
152 _correctQ (
"correctQ",
"correction of rhoQ", this, correctQ ),
191 _t (
"t", this, other.
_t ),
193 _dm (
"dm", this, other.
_dm ),
197 _wQ (
"wQ", this, other.
_wQ ),
224 assert( rhoQc == 1 || rhoQc == -1 );
232 if (rhoQc == -1 || rhoQc == +1)
244 else if (rhoQc == +1)
246 return - ((1 +
_acp)*a_sin_p*(1 - _wQ) + (1 -
_acp)*a_sin_m*_wQ)*(1 - 2*
_avgW)*
_tag;
249 return -
_tag*((a_sin_p + a_sin_m)/2)*(1 - 2*
_avgW);
258 else if (rhoQc == +1)
260 return + ((1 +
_acp)*a_cos_p*(1 - _wQ) + (1 -
_acp)*a_cos_m*_wQ)*(1 - 2*
_avgW)*
_tag;
263 return _tag*((a_cos_p + a_cos_m)/2)*(1 - 2*
_avgW);
274 RooArgSet& analVars,
const char* rangeName )
const 276 if (rangeName)
return 0 ;
289 Int_t code,
const char* )
const 346 if (
matchArgs( directVars, generateVars,
_t ))
return 1;
354 if (code == 2 || code == 4) {
366 cout <<
" o RooNonCPEigenDecay::initgenerator: genB0Frac : " 368 <<
", tag dilution: " << (1 - 2*
_avgW)
372 if (code == 3 || code == 4) {
384 cout <<
" o RooNonCPEigenDecay::initgenerator: genRhoPlusFrac: " 444 assert( acceptProb <= maxAcceptProb );
449 if (accept && tval<
_t.
max() && tval>
_t.
min()) {
virtual Double_t coefAnalyticalIntegral(Int_t coef, Int_t code, const char *rangeName=0) const
correct for the right/wrong charge...
#define Debug_RooNonCPEigenDecay
Bool_t matchArgs(const RooArgSet &allDeps, RooArgSet &numDeps, const RooArgProxy &a) const
Utility function for use in getAnalyticalIntegral().
Int_t getGenerator(const RooArgSet &directVars, RooArgSet &generateVars, Bool_t staticInitOK=kTRUE) const
Load generatedVars with the subset of directVars that we can generate events for, and return a code t...
Time-dependent RooAbsAnaConvPdf for CP violating decays to Non-CP eigenstates (eg, ).
LongDouble_t Power(LongDouble_t x, LongDouble_t y)
void initGenerator(Int_t code)
Interface for one-time initialization to setup the generator for the specified code.
virtual Double_t coefficient(Int_t basisIndex) const
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t tau
const RooAbsCategory & arg() const
void generateEvent(Int_t code)
Interface for generation of anan event using the algorithm corresponding to the specified code...
RooRealVar represents a fundamental (non-derived) real valued object.
RooArgSet S(const RooAbsArg &v1)
static Double_t uniform(TRandom *generator=randomGenerator())
Return a number uniformly distributed from (0,1)
Double_t min(const char *rname=0) const
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
virtual ~RooNonCPEigenDecay(void)
Destructor.
Int_t declareBasis(const char *expression, const RooArgList ¶ms)
Declare a basis function for use in this physics model.
Double_t max(const char *rname=0) const
friend class RooRealProxy
friend class RooRealIntegral
RooAbsCategory is the common abstract base class for objects that represent a discrete value with a f...
virtual Int_t getCoefAnalyticalIntegral(Int_t coef, RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=0) const
Default implementation of function advertising integration capabilities.
const RooAbsReal & arg() const