59     _x(
"x", 
"Dependent", 
this, 
x),
 
   60     _coefList(
"coefList", 
"List of coefficients", 
this),
 
   61     _expList(
"expList", 
"List of exponents", 
this)
 
   64      coutE(InputArguments) << 
"RooPowerSum::ctor(" << 
GetName()
 
   65                            << 
") ERROR: coefficient list and exponent list must be of same length" << std::endl;
 
 
   78     _coefList(
"coefList", 
this, 
other._coefList),
 
 
   88    std::vector<std::span<const double>> vars;
 
   90    vars.push_back(ctx.
at(
_x));
 
   99   std::array<double, 1> args{
static_cast<double>(
_coefList.
size())};
 
 
  115   std::vector<double> coefs;
 
  116   std::vector<double> 
exps;
 
  128   for (
unsigned int i = 0; i < 
sz; ++i) {
 
 
  154   std::vector<double> coefs;
 
  155   std::vector<double> 
exps;
 
  167   for (
unsigned int i = 0; i < 
sz; ++i) {
 
 
  179   std::stringstream 
ss;
 
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
Storage_t::size_type size() const
 
bool addTyped(const RooAbsCollection &list, bool silent=false)
Adds elements of a given RooAbsCollection to the container if they match the specified type.
 
Abstract interface for all probability density functions.
 
const RooArgSet * nset() const
 
Abstract base class for objects that represent a real value and implements functionality common to al...
 
double getVal(const RooArgSet *normalisationSet=nullptr) const
Evaluate object.
 
bool matchArgs(const RooArgSet &allDeps, RooArgSet &numDeps, const RooArgProxy &a) const
Utility function for use in getAnalyticalIntegral().
 
RooArgList is a container object that can hold multiple RooAbsArg objects.
 
RooAbsArg * at(Int_t idx) const
Return object at given index, or nullptr if index is out of range.
 
RooArgSet is a container object that can hold multiple RooAbsArg objects.
 
std::span< const double > at(RooAbsArg const *arg, RooAbsArg const *caller=nullptr)
 
std::span< double > output()
 
RooBatchCompute::Config config(RooAbsArg const *arg) const
 
RooPowerSum implements a power law PDF of the form.
 
RooArgList const & coefList() const
Get the list of coefficients.
 
double evaluate() const override
Evaluation.
 
int getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=nullptr) const override
Advertise to RooFit that this function can be analytically integrated.
 
double analyticalIntegral(int code, const char *rangeName=nullptr) const override
Do the analytical integral according to the code that was returned by getAnalyticalIntegral().
 
void doEval(RooFit::EvalContext &) const override
do not persist
 
RooArgList const & expList() const
Get the list of exponents.
 
std::string getFormulaExpression(bool expand) const
 
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.
 
const char * GetName() const override
Returns name of object.
 
void compute(Config cfg, Computer comp, std::span< double > output, VarSpan vars, ArgSpan extraArgs={})