60 _avgC(
"C",
"Coefficient of cos term",this,avgC),
61 _avgS(
"S",
"Coefficient of sin term",this,avgS),
62 _avgMistag(
"avgMistag",
"Average mistag rate",this,avgMistag),
63 _delMistag(
"delMistag",
"Delta mistag rate",this,delMistag),
64 _mu(
"mu",
"Tag efficiency difference",this,mu),
65 _t(
"t",
"time",this,t),
66 _tau(
"tau",
"decay time",this,tau),
67 _dm(
"dm",
"mixing frequency",this,dm),
68 _tag(
"tag",
"CP state",this,tag),
101 _t(
"t",this,other.
_t),
144 if (rangeName)
return 0 ;
185 if (
matchArgs(directVars,generateVars,
_t))
return 1 ;
219 tval = -
_tau*log(rand);
222 tval= +
_tau*log(rand);
225 tval = (rand<=0.5) ? -
_tau*log(2*rand) : +
_tau*log(2*(rand-0.5)) ;
230 double maxDil = 1.0 ;
232 double maxAcceptProb = 2 + std::abs(maxDil*
_avgS) + std::abs(maxDil*
_avgC);
239 if (tval<
_t.max() && tval>
_t.min() && accept) {
int Int_t
Signed integer 4 bytes (int).
RooAbsAnaConvPdf()
Default constructor, required for persistence.
Int_t declareBasis(const char *expression, const RooArgList ¶ms)
Declare a basis function for use in this physics model.
friend class RooRealIntegral
A space to attach TBranches.
bool matchArgs(const RooArgSet &allDeps, RooArgSet &analDeps, const RooArgProxy &a, const Proxies &... proxies) const
RooArgList is a container object that can hold multiple RooAbsArg objects.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
void initGenerator(Int_t code) override
Interface for one-time initialization to setup the generator for the specified code.
void generateEvent(Int_t code) override
Generate mix-state dependent.
double coefficient(Int_t basisIndex) const override
B0 : _tag = +1 B0bar : _tag = -1.
Int_t getCoefAnalyticalIntegral(Int_t coef, RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=nullptr) const override
Default implementation of function advertising integration capabilities.
double coefAnalyticalIntegral(Int_t coef, Int_t code, const char *rangeName=nullptr) const override
Default implementation of function implementing advertised integrals.
Int_t getGenerator(const RooArgSet &directVars, RooArgSet &generateVars, bool staticInitOK=true) const override
Load generatedVars with the subset of directVars that we can generate events for, and return a code t...
static double uniform(TRandom *generator=randomGenerator())
Return a number uniformly distributed from (0,1).
Variable that can be changed from the outside.
RooResolutionModel is the base class for PDFs that represent a resolution model that can be convolute...