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 ;
85 if (!dynamic_cast<RooAbsReal*>(coef)) {
86 cout <<
"RooParametricStepFunction::ctor(" <<
GetName() <<
") ERROR: coefficient " << coef->
GetName()
87 <<
" is not of type RooAbsReal" << endl ;
106 _x(
"x", this, other._x),
107 _coefList(
"coefList",this,other._coefList),
153 for (i=1 ; i<=
_nBins ; i++) {
160 sum += (xmax-
xmin)*binVal ;
167 sum += (xmax-
_limits[i-1])*binVal ;
188 sum = sum + tmp->
getVal()*binSize;
191 return (1.0 - sum)/binSize;
218 sum = sum + tmp->
getVal()*binSize;
221 value = (1.0 - sum)/binSize;
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=0) const
Interface function getAnalyticalIntergral advertises the analytical integrals that are supported...
ClassImp(RooParametricStepFunction)
Double_t lastBinValue() const
void Copy(TArrayD &array) const
Iterator abstract base class.
Double_t evaluate() const
do not persist
virtual void Copy(TObject &named) const
Copy this to obj.
TIterator * createIterator(Bool_t dir=kIterForward) const
Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral. ...
Double_t getVal(const RooArgSet *set=0) const
virtual Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE)
Reimplementation of standard RooArgList::add()
RooRealVar represents a fundamental (non-derived) real valued object.
TPaveLabel title(3, 27.1, 15, 28.7,"ROOT Environment and Tools")
RooParametricStepFunction()
virtual const char * GetName() const
Returns name of object.
const Double_t * GetArray() const
RooAbsArg * at(Int_t idx) const
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Array of doubles (64 bits per element).
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
Double_t min(const char *rname=0) const
virtual TObject * Next()=0
Bool_t matchArgs(const RooArgSet &allDeps, RooArgSet &numDeps, const RooArgProxy &a) const
Utility function for use in getAnalyticalIntegral().
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
virtual ~RooParametricStepFunction()
Destructor.
Double_t max(const char *rname=0) const