70 _mass(
"mass",
"Mass observable",
this, mass),
71 _mu(
"mu",
"Location parameter of the underlying normal distribution.",
this, mu),
72 _lambda(
"lambda",
"Width parameter of the underlying normal distribution (=2 lambda)",
this, lambda),
73 _gamma(
"gamma",
"Shift of transformation",
this, gamma),
74 _delta(
"delta",
"Scale of transformation",
this, delta),
90 _massThreshold(
other._massThreshold)
108 / (
_lambda * sqrt(1. + arg*arg))
120 {ctx.at(_mass), ctx.at(_mu), ctx.at(_lambda), ctx.at(_gamma), ctx.at(_delta)},
extraArgs);
147 double min = -1.E300;
156 }
else if (code ==
kMean) {
167 }
else if (code ==
kGamma) {
171 }
else if (code ==
kDelta) {
185 const double ecmin = std::erfc(std::abs(min/sqrt(2.)));
186 const double ecmax = std::erfc(std::abs(max/sqrt(2.)));
188 const double result = 0.5 * (
229 throw std::logic_error(
"Generation in other variables not yet implemented.");
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t result
Abstract interface for all probability density functions.
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
double evaluate() const override
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
double analyticalIntegral(Int_t code, const char *rangeName=nullptr) const override
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral.
void generateEvent(Int_t code) override
Generate events based on code obtained by getGenerator().
void doEval(RooFit::EvalContext &) const override
Compute multiple values of the Johnson distribution.
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=nullptr) const override
Interface function getAnalyticalIntergral advertises the analytical integrals that are supported.
Int_t getGenerator(const RooArgSet &directVars, RooArgSet &generateVars, bool staticInitOK=true) const override
Advertise which kind of direct event generation is supported.
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.
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.
constexpr Double_t TwoPi()