93 _x(
"x",
"Dependent", this,
x),
94 _coefList(
"coefList",
"List of coefficients",this),
100 std::cout <<
"RooParametricStepFunction::ctor(" <<
GetName()
101 <<
") WARNING: nBins must be >=0, setting value to 0" << std::endl ;
117 _x(
"x", this, other.
_x),
142 double xmin =
_x.min(rangeName) ;
143 double xmax =
_x.max(rangeName) ;
147 for (i=1 ; i<=
_nBins ; i++) {
148 double binVal = (i<_nBins) ? (static_cast<RooRealVar*>(
_coefList.at(i-1))->getVal()) :
lastBinValue() ;
183 return (1.0 -
sum)/binSize;
224 std::span<const double> boundaries{
_limits.GetArray(),
static_cast<std::size_t
>(
_limits.GetSize())};
int Int_t
Signed integer 4 bytes (int).
const TNamed * namePtr() const
De-duplicated pointer to this object's name.
RooAbsPdf()
Default constructor.
Abstract base class for objects that represent a real value that may appear on the left hand side of ...
double getVal(const RooArgSet *normalisationSet=nullptr) const
Evaluate object.
bool matchArgs(const RooArgSet &allDeps, RooArgSet &analDeps, const RooArgProxy &a, const Proxies &... proxies) const
RooArgList is a container object that can hold multiple RooAbsArg objects.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
static std::list< double > * plotSamplingHintForBinBoundaries(std::span< const double > boundaries, double xlo, double xhi)
Returns sampling hints for a histogram with given boundaries.
double evaluate() const override
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
RooParametricStepFunction()
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=nullptr) const override
Interface function getAnalyticalIntergral advertises the analytical integrals that are supported.
std::list< double > * plotSamplingHint(RooAbsRealLValue &obs, double xlo, double xhi) const override
Interface for returning an optional hint for initial sampling points when constructing a curve projec...
double analyticalIntegral(Int_t code, const char *rangeName=nullptr) const override
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral.
double lastBinValue() const
Variable that can be changed from the outside.
Array of doubles (64 bits per element).
void Copy(TArrayD &array) const
const char * GetName() const override
Returns name of object.
static uint64_t sum(uint64_t i)