43 x (
"x" ,
"Dependent" , this, _x),
44 mean (
"mean" ,
"Mean" , this, _mean),
45 sigmaL(
"sigmaL",
"Left Sigma" , this, _sigmaL),
46 sigmaR(
"sigmaR",
"Right Sigma", this, _sigmaR)
54 RooAbsPdf(other,
name),
x(
"x",this,other.
x), mean(
"mean",this,other.mean),
55 sigmaL(
"sigmaL",this,other.sigmaL), sigmaR(
"sigmaR", this, other.sigmaR)
62 double arg =
x -
mean;
76 return exp(coef*arg*arg);
84 {dataMap.at(x),dataMap.at(mean),dataMap.at(sigmaL),dataMap.at(sigmaR)});
102 static double root2 = sqrt(2.) ;
103 static double rootPiBy2 = sqrt(atan2(0.0,-1.0)/2.0);
114 double xscaleL = root2*
sigmaL;
115 double xscaleR = root2*
sigmaR;
117 double integral = 0.0;
132 return integral*rootPiBy2;
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.
double evaluate() const override
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
void computeBatch(double *output, size_t nEvents, RooFit::Detail::DataMap const &) const override
Compute multiple values of BifurGauss distribution.
double analyticalIntegral(Int_t code, const char *rangeName=nullptr) const override
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral.
RooBatchCompute::Config config(RooAbsArg const *arg) const
static std::complex< double > erf(const std::complex< double > z)
complex erf function
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, RestrictArr output, size_t size, const VarVector &vars, ArgVector &extraArgs)
Short_t Abs(Short_t d)
Returns the absolute value of parameter Short_t d.