99 _x(
"x",
"Dependent", this,
x),
100 _coefList(
"coefList",
"List of coefficients",this),
106 std::cout <<
"RooParametricStepFunction::ctor(" <<
GetName()
107 <<
") WARNING: nBins must be >=0, setting value to 0" << std::endl ;
111 for (
auto *coef : coefList) {
113 std::cout <<
"RooParametricStepFunction::ctor(" <<
GetName() <<
") ERROR: coefficient " << coef->GetName()
114 <<
" is not of type RooAbsReal" << std::endl ;
130 _x(
"x", this, other._x),
131 _coefList(
"coefList",this,other._coefList),
162 for (i=1 ; i<=
_nBins ; i++) {
198 return (1.0 -
sum)/binSize;
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
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...
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.
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
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)