42 x("
x","Dependent",this,_x),
43 mean("mean","
Mean",this,_mean),
44 sigma("sigma","Width",this,_sigma)
54 mean(
"mean",this,other.mean),
55 sigma(
"sigma",this,other.sigma)
72 if (
matchArgs(directVars,generateVars,
x))
return 1 ;
Double_t Landau(Double_t x, Double_t mpv=0, Double_t sigma=1, Bool_t norm=kFALSE)
The LANDAU function.
void generateEvent(Int_t code)
Interface for generation of anan event using the algorithm corresponding to the specified code...
static TRandom * randomGenerator()
Return a pointer to a singleton random-number generator implementation.
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...
Double_t Mean(Long64_t n, const T *a, const Double_t *w=0)
ClassImp(RooLandau) RooLandau
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
Double_t min(const char *rname=0) const
Bool_t matchArgs(const RooArgSet &allDeps, RooArgSet &numDeps, const RooArgProxy &a) const
Utility function for use in getAnalyticalIntegral().
Double_t evaluate() const
virtual Double_t Landau(Double_t mean=0, Double_t sigma=1)
Generate a random number following a Landau distribution with location parameter mu and scale paramet...
Double_t max(const char *rname=0) const