69 _x("x", "Dependent", this, x),
70 _coefList("coefList","List of coefficients",this),
73 _coefIter = _coefList.createIterator() ;
77 cout <<
"RooParametricStepFunction::ctor(" <<
GetName()
78 <<
") WARNING: nBins must be >=0, setting value to 0" << endl ;
82 TIterator* coefIter = coefList.createIterator() ;
85 if (!dynamic_cast<RooAbsReal*>(coef)) {
86 cout <<
"RooParametricStepFunction::ctor(" <<
GetName() <<
") ERROR: coefficient " << coef->
GetName()
87 <<
" is not of type RooAbsReal" << endl ;
90 _coefList.add(*coef) ;
104 _x(
"x", this, other._x),
105 _coefList(
"coefList",this,other._coefList),
147 for (i=1 ; i<=
_nBins ; i++) {
154 sum += (xmax-
xmin)*binVal ;
161 sum += (xmax-
_limits[i-1])*binVal ;
180 sum = sum + tmp->
getVal()*binSize;
183 return (1.0 - sum)/binSize;
208 sum = sum + tmp->
getVal()*binSize;
211 value = (1.0 -
sum)/binSize;
virtual const char * GetName() const
Returns name of object.
std::string GetName(const std::string &scope_name)
TIterator * createIterator(Bool_t dir=kIterForward) const
static long int sum(long int i)
The Parametric Step Function PDF is a binned distribution whose parameters are the heights of each bi...
Double_t evaluate() const
do not persist
Bool_t matchArgs(const RooArgSet &allDeps, RooArgSet &numDeps, const RooArgProxy &a) const
Utility function for use in getAnalyticalIntegral().
Double_t getVal(const RooArgSet *set=0) const
const Double_t * GetArray() const
Double_t lastBinValue() const
Iterator abstract base class.
RooRealVar represents a fundamental (non-derived) real valued object.
RooAbsArg * at(Int_t idx) const
RooParametricStepFunction()
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=0) const
Interface function getAnalyticalIntergral advertises the analytical integrals that are supported...
Double_t min(const char *rname=0) 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).
Double_t max(const char *rname=0) const
virtual void Copy(TObject &named) const
Copy this to obj.
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
virtual TObject * Next()=0
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
virtual ~RooParametricStepFunction()
Destructor.
Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral. ...