47 _x(
"x",
"Dependent", this,
x),
48 _coefList(
"coefList",
"List of coefficients",this),
56 coutE(InputArguments) <<
"RooStepFunction::ctor(" << GetName() <<
") ERROR: Number of boundaries must be number of coefficients plus 1" << std::endl ;
57 throw std::invalid_argument(
"RooStepFunction::ctor() ERROR: Number of boundaries must be number of coefficients plus 1") ;
67 _x(
"x", this, other.
_x),
84 b[nb++] = boundary->getVal() ;
88 if ((
_x<
b[0]) || (
_x>
b[nb-1]))
return 0 ;
105 c[0] =
b[0] ;
c[nb] =
b[nb-1] ;
107 c[
i+1] = (
b[
i]+
b[
i+1])/2 ;
115 y[nc++] = coef->getVal() ;
121 double xx[2] ; xx[0]=
c[
i] ; xx[1]=
c[
i+1] ;
122 double yy[2] ; yy[0]=
y[
i] ; yy[1]=
y[
i+1] ;
ROOT::RRangeCast< T, false, Range_t > static_range_cast(Range_t &&coll)
const TNamed * namePtr() const
De-duplicated pointer to this object's name.
Abstract base class for objects that represent a real value that may appear on the left hand side of ...
RooAbsReal()
coverity[UNINIT_CTOR] Default constructor
RooArgList 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.
static double interpolate(double yArr[], Int_t nOrder, double x)
The Step Function is a binned function whose parameters are the heights of each bin.
const RooArgList & boundaries()
RooListProxy _boundaryList
double evaluate() const override
Transfer contents to std::vector for use below.
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...