69 _x(
"x",
"Dependent", this,
x),
70 _coefList(
"coefList",
"List of coefficients",this),
77 cout <<
"RooParametricStepFunction::ctor(" <<
GetName()
78 <<
") WARNING: nBins must be >=0, setting value to 0" << endl ;
86 cout <<
"RooParametricStepFunction::ctor(" <<
GetName() <<
") ERROR: coefficient " << coef->
GetName()
87 <<
" is not of type RooAbsReal" << endl ;
104 _x(
"x", this, other._x),
105 _coefList(
"coefList",this,other._coefList),
147 for (i=1 ; i<=
_nBins ; i++) {
183 return (1.0 -
sum)/binSize;
211 value = (1.0 -
sum)/binSize;
RooAbsArg is the common abstract base class for objects that represent a value and a "shape" in RooFi...
TIterator * createIterator(Bool_t dir=kIterForward) const
TIterator-style iteration over contained elements.
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Bool_t matchArgs(const RooArgSet &allDeps, RooArgSet &numDeps, const RooArgProxy &a) const
Utility function for use in getAnalyticalIntegral().
Double_t getVal(const RooArgSet *normalisationSet=nullptr) const
Evaluate object.
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.
virtual Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE) override
Reimplementation of standard RooArgList::add()
The Parametric Step Function PDF is a binned distribution whose parameters are the heights of each bi...
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=0) const
Interface function getAnalyticalIntergral advertises the analytical integrals that are supported.
Double_t lastBinValue() const
RooParametricStepFunction()
Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral.
virtual ~RooParametricStepFunction()
Destructor.
Double_t evaluate() const
do not persist
RooRealVar represents a variable that can be changed from the outside.
double min(const char *rname=0) const
Query lower limit of range. This requires the payload to be RooAbsRealLValue or derived.
double max(const char *rname=0) const
Query upper 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
Iterator abstract base class.
virtual TObject * Next()=0
virtual void Copy(TObject &named) const
Copy this to obj.
virtual const char * GetName() const
Returns name of object.
static uint64_t sum(uint64_t i)