61 #define Debug_RooNonCPEigenDecay 1
84 _acp (
"acp",
"acp", this, acp ),
85 _avgC (
"C",
"C", this, C ),
86 _delC (
"delC",
"delC", this, delC ),
87 _avgS (
"S",
"S", this, S ),
88 _delS (
"delS",
"delS", this, delS ),
89 _avgW (
"avgW",
"Average mistag rate",this, avgW ),
90 _delW (
"delW",
"Shift mistag rate", this, delW ),
91 _t (
"t",
"time", this, t ),
92 _tau (
"tau",
"decay time", this, tau ),
93 _dm (
"dm",
"mixing frequency", this, dm ),
94 _tag (
"tag",
"CP state", this, tag ),
95 _rhoQ (
"rhoQ",
"Charge of the rho", this, rhoQ ),
96 _correctQ (
"correctQ",
"correction of rhoQ", this, correctQ ),
97 _wQ (
"wQ",
"mischarge", this, wQ ),
142 _acp (
"acp",
"acp", this, acp ),
143 _avgC (
"C",
"C", this, C ),
144 _delC (
"delC",
"delC", this, delC ),
145 _avgS (
"S",
"S", this, S ),
146 _delS (
"delS",
"delS", this, delS ),
147 _avgW (
"avgW",
"Average mistag rate",this, avgW ),
148 _delW (
"delW",
"Shift mistag rate", this, delW ),
149 _t (
"t",
"time", this, t ),
150 _tau (
"tau",
"decay time", this, tau ),
151 _dm (
"dm",
"mixing frequency", this, dm ),
152 _tag (
"tag",
"CP state", this, tag ),
153 _rhoQ (
"rhoQ",
"Charge of the rho", this, rhoQ ),
154 _correctQ (
"correctQ",
"correction of rhoQ", this, correctQ ),
156 _genRhoPlusFrac( 0 ),
187 _acp (
"acp", this, other._acp ),
188 _avgC (
"C", this, other._avgC ),
189 _delC (
"delC", this, other._delC ),
190 _avgS (
"S", this, other._avgS ),
191 _delS (
"delS", this, other._delS ),
192 _avgW (
"avgW", this, other._avgW ),
193 _delW (
"delW", this, other._delW ),
194 _t (
"t", this, other._t ),
195 _tau (
"tau", this, other._tau ),
196 _dm (
"dm", this, other._dm ),
197 _tag (
"tag", this, other._tag ),
198 _rhoQ (
"rhoQ", this, other._rhoQ ),
199 _correctQ (
"correctQ", this, other._correctQ ),
200 _wQ (
"wQ", this, other._wQ ),
201 _genB0Frac ( other._genB0Frac ),
202 _genRhoPlusFrac( other._genRhoPlusFrac ),
203 _type ( other._type ),
204 _basisExp ( other._basisExp ),
205 _basisSin ( other._basisSin ),
206 _basisCos ( other._basisCos )
229 assert( rhoQc == 1 || rhoQc == -1 );
237 if (rhoQc == -1 || rhoQc == +1)
249 else if (rhoQc == +1)
251 return - ((1 +
_acp)*a_sin_p*(1 - _wQ) + (1 -
_acp)*a_sin_m*_wQ)*(1 - 2*
_avgW)*
_tag;
254 return -
_tag*((a_sin_p + a_sin_m)/2)*(1 - 2*
_avgW);
263 else if (rhoQc == +1)
265 return + ((1 +
_acp)*a_cos_p*(1 - _wQ) + (1 -
_acp)*a_cos_m*_wQ)*(1 - 2*
_avgW)*
_tag;
268 return _tag*((a_cos_p + a_cos_m)/2)*(1 - 2*
_avgW);
279 RooArgSet& analVars,
const char* rangeName )
const
281 if (rangeName)
return 0 ;
295 Int_t code,
const char* )
const
353 if (
matchArgs( directVars, generateVars,
_t ))
return 1;
362 if (code == 2 || code == 4) {
374 cout <<
" o RooNonCPEigenDecay::initgenerator: genB0Frac : "
376 <<
", tag dilution: " << (1 - 2*
_avgW)
380 if (code == 3 || code == 4) {
392 cout <<
" o RooNonCPEigenDecay::initgenerator: genRhoPlusFrac: "
454 assert( acceptProb <= maxAcceptProb );
459 if (accept && tval<
_t.
max() && tval>
_t.
min()) {
#define Debug_RooNonCPEigenDecay
virtual Double_t coefAnalyticalIntegral(Int_t coef, Int_t code, const char *rangeName=0) const
correct for the right/wrong charge...
virtual Double_t coefficient(Int_t basisIndex) const
B0 : _tag == -1 B0bar : _tag == +1 rho+ : _rhoQ == +1 rho- : _rhoQ == -1 the charge corrrection facto...
ClassImp(RooNonCPEigenDecay)
const RooAbsReal & arg() const
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.
void generateEvent(Int_t code)
Interface for generation of anan event using the algorithm corresponding to the specified code...
virtual Int_t getCoefAnalyticalIntegral(Int_t coef, RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=0) const
Default implementation of function advertising integration capabilities.
static Double_t uniform(TRandom *generator=randomGenerator())
Return a number uniformly distributed from (0,1)
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.
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...
friend class RooRealProxy
friend class RooRealIntegral
Double_t min(const char *rname=0) const
const RooAbsCategory & arg() const
Bool_t matchArgs(const RooArgSet &allDeps, RooArgSet &numDeps, const RooArgProxy &a) const
Utility function for use in getAnalyticalIntegral().
Double_t max(const char *rname=0) const