43 bool negateCoefficient)
45 x{
"x",
"Dependent", this, variable},
46 c{
"c",
"Exponent", this, coefficient},
47 _negateCoefficient{negateCoefficient}
54 :
RooAbsPdf{other,
name},
x{
"x", this, other.
x},
c{
"c", this, other.
c}, _negateCoefficient{other._negateCoefficient}
66 return std::exp(coef *
x);
90 assert(code == 1 || code == 2);
92 bool isOverX = code == 1;
99 double constant = isOverX ? coef :
x;
100 auto &integrand = isOverX ?
x :
c;
102 double min = integrand.
min(rangeName);
103 double max = integrand.max(rangeName);
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.
void doEval(RooFit::EvalContext &) const override
Compute multiple values of Exponential distribution.
double analyticalIntegral(Int_t code, const char *rangeName=nullptr) const override
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral.
double evaluate() const override
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
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
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={})
double exponentialIntegral(double xMin, double xMax, double constant)