94 _x(
"x",
"Dependent", this,
x),
95 _coefList(
"coefList",
"List of coefficients",this),
101 std::cout <<
"RooParametricStepFunction::ctor(" <<
GetName()
102 <<
") WARNING: nBins must be >=0, setting value to 0" << std::endl ;
106 for (
auto *coef : coefList) {
108 std::stringstream errorMsg;
109 errorMsg <<
"RooParametricStepFunction::ctor(" <<
GetName() <<
") ERROR: coefficient " << coef->GetName()
110 <<
" is not of type RooAbsReal";
111 coutE(InputArguments) << errorMsg.str() << std::endl;
112 throw std::invalid_argument(errorMsg.str().c_str());
127 _x(
"x", this, other._x),
128 _coefList(
"coefList",this,other._coefList),
157 for (i=1 ; i<=
_nBins ; i++) {
193 return (1.0 -
sum)/binSize;
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
const TNamed * namePtr() const
De-duplicated pointer to this object's name.
Abstract interface for all probability density functions.
RooAbsRealLValue is the common abstract base class for objects that represent a real value that may a...
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.
bool add(const RooAbsArg &var, bool valueServer, bool shapeServer, bool silent)
Overloaded RooCollection_t::add() method insert object into set and registers object as server to own...
static std::list< double > * plotSamplingHintForBinBoundaries(std::span< const double > boundaries, double xlo, double xhi)
Returns sampling hints for a histogram with given boundaries.
The Parametric Step Function PDF is a binned distribution whose parameters are the heights of each bi...
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
RooRealVar represents a variable that can be changed from the outside.
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.
Array of doubles (64 bits per element).
void Copy(TArrayD &array) const
const Double_t * GetArray() const
void Copy(TObject &named) const override
Copy this to obj.
const char * GetName() const override
Returns name of object.
static uint64_t sum(uint64_t i)