41 bool useStandardParametrization)
43 x{
"x",
"Observable", this, _x},
44 m0{
"m0",
"m0", this, _m0},
45 k{
"k",
"k", this, _k},
46 _useStandardParametrization{useStandardParametrization}
52 if (par && par->getMin() <= unsafeValue && par->getMax() >= unsafeValue) {
53 coutE(InputArguments) <<
"The parameter '" << par->GetName() <<
"' with range [" << par->getMin(
"") <<
", "
54 << par->getMax() <<
"] of the " << this->
ClassName() <<
" '" << this->
GetName()
55 <<
"' can reach the unsafe value " << unsafeValue <<
" "
56 <<
". Advise to limit its range." << std::endl;
64 x(
"x", this, other.
x),
65 m0(
"m0", this, other.m0),
66 k{
"k", this, other.k},
67 _useStandardParametrization{other._useStandardParametrization}
91 {ctx.at(x), ctx.at(m0), ctx.at(k)});
98 return matchArgs(allVars, analVars,
x) ? 1 : 0;
105 static const double root2 = std::sqrt(2.);
117 return matchArgs(directVars, generateVars,
x) ? 1 : 0;
130 if (xgen <=
x.
max() && xgen >=
x.
min()) {
Abstract interface for all probability density functions.
Abstract base class for objects that represent a real value that may appear on the left hand side of ...
Abstract base class for objects that represent a real value and implements functionality common to al...
bool 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.
std::span< double > output()
RooBatchCompute::Config config(RooAbsArg const *arg) const
void doEval(RooFit::EvalContext &) const override
Compute multiple values of Lognormal distribution.
Int_t getGenerator(const RooArgSet &directVars, RooArgSet &generateVars, bool staticInitOK=true) const override
Load generatedVars with the subset of directVars that we can generate events for, and return a code t...
RooRealProxy k
the shape parameter, exp(sigma)
void generateEvent(Int_t code) override
Interface for generation of an event using the algorithm corresponding to the specified code.
bool _useStandardParametrization
double analyticalIntegral(Int_t code, const char *rangeName=nullptr) const override
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral.
bool useStandardParametrization() const
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=nullptr) const override
Interface function getAnalyticalIntergral advertises the analytical integrals that are supported.
RooRealProxy x
the variable
RooRealProxy m0
the median, exp(mu)
double evaluate() const override
ln(k)<1 would correspond to sigma < 0 in the parameterization resulting by transforming a normal rand...
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 max(const char *rname=nullptr) const
Query upper limit of range. This requires the payload to be RooAbsRealLValue or derived.
double min(const char *rname=nullptr) const
Query lower limit of range. This requires the payload to be RooAbsRealLValue or derived.
const char * GetName() const override
Returns name of object.
virtual const char * ClassName() const
Returns name of class to which the object belongs.
double lognormal_pdf(double x, double m, double s, double x0=0)
Probability density function of the lognormal distribution.
void compute(Config cfg, Computer comp, std::span< double > output, VarSpan vars, ArgSpan extraArgs={})
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.