45 _t(
"t",
"time",this,t),
46 _tau(
"tau",
"decay time",this,tau),
67 _t(
"t",this,other.
_t),
92 if (
matchArgs(directVars,generateVars,
_t))
return 1 ;
115 tval = (rand<=0.5) ? -
_tau*
log(2*rand) : +
_tau*
log(2*(rand-0.5)) ;
virtual ~RooDecay()
Destructor.
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
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...
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
RooRealVar represents a fundamental (non-derived) real valued object.
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...
Int_t declareBasis(const char *expression, const RooArgList ¶ms)
Declare a basis function for use in this physics model.
void generateEvent(Int_t code)
Interface for generation of anan event using the algorithm corresponding to the specified code...
Double_t max(const char *rname=0) const
Single or double sided decay function that can be analytically convolved with any RooResolutionModel ...