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);
103 static double root2 = sqrt(2.) ;
104 static double rootPiBy2 = sqrt(atan2(0.0,-1.0)/2.0);
115 double xscaleL = root2*
sigmaL;
116 double xscaleR = root2*
sigmaR;
118 double integral = 0.0;
133 return integral*rootPiBy2;
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
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.
virtual void compute(cudaStream_t *, Computer, RestrictArr, size_t, const VarVector &, ArgVector &)=0
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 computeBatch(cudaStream_t *, double *output, size_t nEvents, RooFit::Detail::DataMap const &) 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.
RooSpan< const double > at(RooAbsArg const *arg, RooAbsArg const *caller=nullptr)
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.
R__EXTERN RooBatchComputeInterface * dispatchCUDA
R__EXTERN RooBatchComputeInterface * dispatchCPU
This dispatch pointer points to an implementation of the compute library, provided one has been loade...
Short_t Abs(Short_t d)
Returns the absolute value of parameter Short_t d.