45 _t("t","time",this,t),
46 _tau("tau","decay time",this,tau),
51 _basisExp = declareBasis(
"exp(-@0/@1)",tau) ;
54 _basisExp = declareBasis(
"exp(@0/@1)",tau) ;
57 _basisExp = declareBasis(
"exp(-abs(@0)/@1)",tau) ;
67 _t(
"t",this,other._t),
68 _tau(
"tau",this,other._tau),
70 _basisExp(other._basisExp)
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...
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 ...