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 ),
154 _genRhoPlusFrac( 0 ),
184 _acp (
"acp", this, other._acp ),
185 _avgC (
"C", this, other._avgC ),
186 _delC (
"delC", this, other._delC ),
187 _avgS (
"S", this, other._avgS ),
188 _delS (
"delS", this, other._delS ),
189 _avgW (
"avgW", this, other._avgW ),
190 _delW (
"delW", this, other._delW ),
191 _t (
"t", this, other._t ),
192 _tau (
"tau", this, other._tau ),
193 _dm (
"dm", this, other._dm ),
194 _tag (
"tag", this, other._tag ),
195 _rhoQ (
"rhoQ", this, other._rhoQ ),
196 _correctQ (
"correctQ", this, other._correctQ ),
197 _wQ (
"wQ", this, other._wQ ),
198 _genB0Frac ( other._genB0Frac ),
199 _genRhoPlusFrac( other._genRhoPlusFrac ),
200 _type ( other._type ),
201 _basisExp ( other._basisExp ),
202 _basisSin ( other._basisSin ),
203 _basisCos ( other._basisCos )
224 assert( rhoQc == 1 || rhoQc == -1 );
232 if (rhoQc == -1 || rhoQc == +1)
244 else if (rhoQc == +1)
249 return -
_tag*((a_sin_p + a_sin_m)/2)*(1 - 2*
_avgW);
258 else if (rhoQc == +1)
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()) {
#define Debug_RooNonCPEigenDecay
RooTemplateProxy< RooAbsReal > RooRealProxy
Compatibility typedef for old uses of this proxy.
RooAbsAnaConvPdf is the base class for PDFs that represent a physics model that can be analytically c...
Int_t declareBasis(const char *expression, const RooArgList ¶ms)
Declare a basis function for use in this physics model.
RooAbsCategory is the common abstract base class for objects that represent a discrete value with a f...
friend class RooRealIntegral
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Bool_t matchArgs(const RooArgSet &allDeps, RooArgSet &numDeps, const RooArgProxy &a) const
Utility function for use in getAnalyticalIntegral().
RooArgList is a container object that can hold multiple RooAbsArg objects.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
const RooAbsCategory & arg() const
Time-dependent RooAbsAnaConvPdf for CP violating decays to Non-CP eigenstates (eg,...
virtual Double_t coefAnalyticalIntegral(Int_t coef, Int_t code, const char *rangeName=0) const
correct for the right/wrong charge...
void generateEvent(Int_t code)
Interface for generation of an event using the algorithm corresponding to the specified code.
void initGenerator(Int_t code)
Interface for one-time initialization to setup the generator for the specified code.
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...
virtual Double_t coefficient(Int_t basisIndex) const
virtual Int_t getCoefAnalyticalIntegral(Int_t coef, RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=0) const
Default implementation of function advertising integration capabilities.
virtual ~RooNonCPEigenDecay(void)
Destructor.
static Double_t uniform(TRandom *generator=randomGenerator())
Return a number uniformly distributed from (0,1)
RooRealVar represents a variable that can be changed from the outside.
RooResolutionModel is the base class for PDFs that represent a resolution model that can be convolute...
Double_t min(const char *rname=0) const
Query lower limit of range. This requires the payload to be RooAbsRealLValue or derived.
const T & arg() const
Return reference to object held in proxy.
Double_t max(const char *rname=0) const
Query upper limit of range. This requires the payload to be RooAbsRealLValue or derived.
RooArgSet S(const RooAbsArg &v1)
LongDouble_t Power(LongDouble_t x, LongDouble_t y)