51 _t(
"t",
"time", this, t),
52 _tau(
"tau",
"Average Decay Time", this, tau),
53 _dgamma(
"dgamma",
"Delta Gamma", this, dgamma),
54 _f0(
"f0",
"Cosh Coefficient", this, f0),
55 _f1(
"f1",
"Sinh Coefficient", this, f1),
56 _f2(
"f2",
"Cos Coefficient", this, f2),
57 _f3(
"f3",
"Sin Coefficient", this, f3),
58 _dm(
"dm",
"Delta Mass", this, dm),
91 _t(
"t", this, other._t),
92 _tau(
"tau", this, other._tau),
93 _dgamma(
"dgamma", this, other._dgamma),
94 _f0(
"f0", this, other._f0),
95 _f1(
"f1", this, other._f1),
96 _f2(
"f2", this, other._f2),
97 _f3(
"f3", this, other._f3),
98 _dm(
"dm", this, other._dm),
99 _basisCosh(other._basisCosh),
100 _basisSinh(other._basisSinh),
101 _basisCos(other._basisCos),
102 _basisSin(other._basisSin),
224 if (
matchArgs(directVars, generateVars,
_t))
return 1;
246 cout <<
"RooBDecay::generateEvent(" <<
GetName() <<
") ERROR: PDF value less than zero" << endl;
251 cout <<
"RooBDecay::generateEvent(" <<
GetName() <<
") ERROR: Envelope function less than p.d.f. " << endl;
virtual ~RooBDecay()
Destructor.
virtual Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=0) const
Interface function getAnalyticalIntergral advertises the analytical integrals that are supported...
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
RooArgSet * coefVars(Int_t coefIdx) const
Return set of parameters with are used exclusively by the coefficient functions.
RooArgSet * getVariables(Bool_t stripDisconnected=kTRUE) const
Return RooArgSet with all variables (tree leaf nodes of expresssion tree)
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...
VecExpr< UnaryOp< Fabs< T >, VecExpr< A, T, D >, T >, T, D > fabs(const VecExpr< A, T, D > &rhs)
virtual Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral. ...
virtual const char * GetName() const
Returns name of object.
void generateEvent(Int_t code)
Interface for generation of anan event using the algorithm corresponding to the specified code...
Double_t coefAnalyticalIntegral(Int_t coef, Int_t code, const char *rangeName=0) const
Default implementation of function implementing advertised integrals.
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...
Int_t declareBasis(const char *expression, const RooArgList ¶ms)
Declare a basis function for use in this physics model.
Double_t min(const char *rname=0) const
double f2(const double *x)
Bool_t matchArgs(const RooArgSet &allDeps, RooArgSet &numDeps, const RooArgProxy &a) const
Utility function for use in getAnalyticalIntegral().
virtual Double_t coefficient(Int_t basisIndex) const
Double_t max(const char *rname=0) const