46 m(
"m",
"Mass",this,_m),
47 m0(
"m0",
"Resonance mass",this,_m0),
48 c(
"c",
"Slope parameter",this,_c),
49 p(
"p",
"Power",this,_p)
59 m0(
"m0",this,other.m0),
72 return m*std::pow(u,
p)*exp(
c*u) ;
80 {ctx.at(m), ctx.at(m0), ctx.at(c), ctx.at(p)});
89 if (
matchArgs(allVars,analVars,
m) &&
p == 0.5)
return 1;
101 static const double pi = atan2(0.0,-1.0);
102 double min = (
m.
min(rangeName) <
m0) ?
m.
min(rangeName) :
m0;
103 double max = (
m.
max(rangeName) <
m0) ?
m.
max(rangeName) :
m0;
104 double f1 = (1.-std::pow(min/
m0,2));
105 double f2 = (1.-std::pow(max/
m0,2));
110 aHigh = -0.5*
m0*
m0*(exp(
c*f2)*sqrt(f2)/
c + 0.5/std::pow(-
c,1.5)*sqrt(pi)*
RooMath::erf(sqrt(-
c*f2)));
111 }
else if (
c == 0. ) {
113 aHigh = -
m0*
m0/3.*
f1*sqrt(f2);
118 double area = aHigh - aLow;
#define R__ASSERT(e)
Checks condition e and reports a fatal error if it's false.
winID h TVirtualViewer3D TVirtualGLPainter p
bool isConstant() const
Check if the "Constant" attribute is set.
Abstract interface for all probability density functions.
A RooAbsReal::Ref can be constructed from a RooAbsReal& or a double that will be implicitly converted...
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.
RooArgusBG is a RooAbsPdf implementation describing the ARGUS background shape.
void doEval(RooFit::EvalContext &) const override
Base function for computing multiple values of a RooAbsReal.
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.
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=nullptr) const override
Interface function getAnalyticalIntergral advertises the analytical integrals that are supported.
std::span< double > output()
RooBatchCompute::Config config(RooAbsArg const *arg) const
static std::complex< double > erf(const std::complex< double > z)
complex erf function
static std::complex< double > faddeeva(std::complex< double > z)
evaluate Faddeeva function for complex argument
double max(const char *rname=nullptr) const
Query upper limit of range. This requires the payload to be RooAbsRealLValue or derived.
const T & arg() const
Return reference to object held in proxy.
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={})