45 x(
"x",
"Observable",this,_x),
46 mean(
"mean",
"Mean",this,_mean),
47 sigma(
"sigma",
"Width",this,_sigma)
105 assert(code==1 || code==2) ;
119 cout <<
"Error in RooGaussian::analyticalIntegral" << endl;
129 if (
matchArgs(directVars,generateVars,
x))
return 1 ;
138 assert(code==1 || code==2) ;
157 cout <<
"error in RooGaussian generateEvent"<< endl;
Double_t evaluate() 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...
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...
Bool_t matchArgs(const RooArgSet &allDeps, RooArgSet &numDeps, const RooArgProxy &a) const
Utility function for use in getAnalyticalIntegral().
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...
static TRandom * randomGenerator()
Return a pointer to a singleton random-number generator implementation.
Double_t getLogVal(const RooArgSet *set) const
calculate and return the negative log-likelihood of the Poisson
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...
double atan2(double, double)
Double_t max(const char *rname=0) const
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=0) const
Interface function getAnalyticalIntergral advertises the analytical integrals that are supported...
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
static std::complex< double > erf(const std::complex< double > z)
complex erf function
Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral. ...
void generateEvent(Int_t code)
Interface for generation of anan event using the algorithm corresponding to the specified code...