46 x(
"x",
"Observable",this,_x),
47 m0(
"m0",
"m0",this,_m0),
53 if (par && par->getMin()<=1 && par->getMax()>=1 ) {
54 oocoutE(
this, InputArguments) <<
"The parameter '" << par->
GetName() <<
"' with range [" << par->getMin(
"") <<
", "
55 << par->getMax() <<
"] of the " << this->IsA()->GetName() <<
" '" << this->
GetName()
56 <<
"' can reach the unsafe value 1.0 " <<
". Advise to limit its range." << std::endl;
89 {dataMap.
at(
x), dataMap.
at(
m0), dataMap.
at(
k)});
106 static const Double_t root2 = sqrt(2.) ;
118 if (
matchArgs(directVars,generateVars,
x))
return 1 ;
131 if (xgen<=
x.
max() && xgen>=
x.
min()) {
RooAbsRealLValue is the common abstract base class for objects that represent a real value that may a...
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Bool_t matchArgs(const RooArgSet &allDeps, RooArgSet &numDeps, const RooArgProxy &a) const
Utility function for use in getAnalyticalIntegral().
RooArgSet is a container object that can hold multiple RooAbsArg objects.
virtual void compute(cudaStream_t *, Computer, RestrictArr, size_t, const VarVector &, const ArgVector &={})=0
auto & at(RooAbsArg const *arg, RooAbsArg const *=nullptr)
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...
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=0) const
Interface function getAnalyticalIntergral advertises the analytical integrals that are supported.
void computeBatch(cudaStream_t *, double *output, size_t nEvents, RooFit::Detail::DataMap const &) const
Compute multiple values of Lognormal distribution.
double evaluate() const
ln(k)<1 would correspond to sigma < 0 in the parameterization resulting by transforming a normal rand...
void generateEvent(Int_t code)
Interface for generation of an event using the algorithm corresponding to the specified code.
Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral.
static std::complex< double > erf(const std::complex< double > z)
complex erf function
static TRandom * randomGenerator()
Return a pointer to a singleton random-number generator implementation.
double min(const char *rname=0) const
Query lower limit of range. This requires the payload to be RooAbsRealLValue or derived.
double max(const char *rname=0) const
Query upper limit of range. This requires the payload to be RooAbsRealLValue or derived.
virtual const char * GetName() const
Returns name of object.
double lognormal_pdf(double x, double m, double s, double x0=0)
Probability density function of the lognormal distribution.
R__EXTERN RooBatchComputeInterface * dispatchCUDA
R__EXTERN RooBatchComputeInterface * dispatchCPU
This dispatch pointer points to an implementation of the compute library, provided one has been loade...
void checkRangeOfParameters(const RooAbsReal *callingClass, std::initializer_list< const RooAbsReal * > pars, double min=-std::numeric_limits< double >::max(), double max=std::numeric_limits< double >::max(), bool limitsInAllowedRange=false, std::string const &extraMessage="")
Check if the parameters have a range, and warn if the range extends below / above the set limits.
static void output(int code)