37 x(
"x",
"Dependent", this, _x),
38 mean(
"mean",
"Mean", this, _mean),
39 sigmaL(
"sigmaL",
"Left Sigma", this, _sigmaL),
40 sigmaR(
"sigmaR",
"Right Sigma", this, _sigmaR)
49 x(
"x", this, other.
x),
50 mean(
"mean", this, other.mean),
51 sigmaL(
"sigmaL", this, other.sigmaL),
52 sigmaR(
"sigmaR", this, other.sigmaR)
68 {ctx.at(x),ctx.at(mean),ctx.at(sigmaL),ctx.at(sigmaR)});
86 auto &constant = code == 1 ?
mean :
x;
87 auto &integrand = code == 1 ?
x :
mean;
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.
Bifurcated Gaussian p.d.f with different widths on left and right side of maximum value.
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=nullptr) const override
Interface function getAnalyticalIntergral advertises the analytical integrals that are supported.
void doEval(RooFit::EvalContext &) const override
Compute multiple values of BifurGauss distribution.
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.
std::span< double > output()
RooBatchCompute::Config config(RooAbsArg const *arg) const
void compute(Config cfg, Computer comp, std::span< double > output, VarSpan vars, ArgSpan extraArgs={})
double bifurGaussIntegral(double xMin, double xMax, double mean, double sigmaL, double sigmaR)
double bifurGauss(double x, double mean, double sigmaL, double sigmaR)