47 x("
x","Observable",this,_x),
48 mean("mean","
Mean",this,_mean),
49 sigma("sigma","Width",this,_sigma)
58 RooAbsPdf(other,name),
x(
"x",this,other.
x), mean(
"mean",this,other.mean),
59 sigma(
"sigma",this,other.sigma)
116 assert(code==1 || code==2) ;
130 cout <<
"Error in RooGaussian::analyticalIntegral" << endl;
143 if (
matchArgs(directVars,generateVars,
x))
return 1 ;
154 assert(code==1 || code==2) ;
173 cout <<
"error in RooGaussian generateEvent"<< endl;
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=0) const
Interface function getAnalyticalIntergral advertises the analytical integrals that are supported...
Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral. ...
virtual Double_t Gaus(Double_t mean=0, Double_t sigma=1)
Samples a random number from the standard Normal (Gaussian) Distribution with the given mean and sigm...
static TRandom * randomGenerator()
Return a pointer to a singleton random-number generator implementation.
virtual Double_t getLogVal(const RooArgSet *set=0) const
Return the log of the current value with given normalization An error message is printed if the argum...
Double_t getLogVal(const RooArgSet *set) const
calculate and return the negative log-likelihood of the Poisson
Double_t Mean(Long64_t n, const T *a, const Double_t *w=0)
Double_t evaluate() const
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
double atan2(double, double)
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
Double_t min(const char *rname=0) const
static std::complex< double > erf(const std::complex< double > z)
complex erf function
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...
Bool_t matchArgs(const RooArgSet &allDeps, RooArgSet &numDeps, const RooArgProxy &a) const
Utility function for use in getAnalyticalIntegral().
ClassImp(RooGaussian) RooGaussian
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