42 _relParam(paramRelative)
51 const char* vname =
Form(
"%s_gamma_bin_%i",
GetName(),i) ;
70 _relParam(paramRelative)
78 const char* vname =
Form(
"%s_gamma_bin_%i",
GetName(),i) ;
96 _relParam(paramRelative)
109 _x(
"x",this,other._x),
110 _p(
"p",this,other._p),
112 _relParam(other._relParam)
176 list<Double_t>* hint =
new list<Double_t> ;
179 xlo = xlo - 0.01*(xhi-xlo) ;
180 xhi = xhi + 0.01*(xhi-xlo) ;
187 if (boundaries[i]>=xlo && boundaries[i]<=xhi) {
188 hint->push_back(boundaries[i]-delta) ;
189 hint->push_back(boundaries[i]+delta) ;
213 list<Double_t>* hint =
new list<Double_t> ;
218 if (boundaries[i]>=xlo && boundaries[i]<=xhi) {
219 hint->push_back(boundaries[i]) ;
235 delete allVarsCommon ;
253 for (
const auto param :
_p) {
254 auto p =
static_cast<const RooAbsReal*
>(param);
262 for (
const auto obs :
_x) {
263 auto xx =
static_cast<const RooRealVar*
>(obs);
264 binV *= (xx->getMax()-xx->getMin())/xx->numBins() ;
char * Form(const char *fmt,...)
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
Bool_t addOwnedComponents(const RooArgSet &comps)
Take ownership of the contents of 'comps'.
RooAbsBinning is the abstract base class for RooRealVar binning definitions This class defines the in...
virtual Double_t * array() const =0
virtual Int_t numBoundaries() const =0
RooAbsCollection is an abstract container object that can hold multiple RooAbsArg objects.
RooAbsCollection * selectCommon(const RooAbsCollection &refColl) const
Create a subset of the current collection, consisting only of those elements that are contained as we...
RooAbsArg * find(const char *name) const
Find object with given name in list.
Abstract base class for objects that are lvalues, i.e.
virtual const RooAbsBinning * getBinningPtr(const char *rangeName) const =0
RooAbsRealLValue is the common abstract base class for objects that represent a real value that may a...
void setConstant(Bool_t value=kTRUE)
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.
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 RooAbsCollection &col, Bool_t silent=kFALSE)
Add a collection of arguments to this collection by calling add() for each element in the source coll...
The RooDataHist is a container class to hold N-dimensional binned data.
virtual Double_t weight() const
virtual void weightError(Double_t &lo, Double_t &hi, ErrorType etype=Poisson) const
Return the error on current weight.
virtual Int_t numEntries() const
Return the number of bins.
virtual const RooArgSet * get() const
virtual Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE)
Reimplementation of standard RooArgList::add()
A histogram function that assigns scale parameters to every bin.
void setActual(Int_t ibin, Double_t newVal)
Double_t evaluate() const
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
Double_t getNominal(Int_t ibin) const
Double_t getNominalError(Int_t ibin) const
virtual std::list< Double_t > * binBoundaries(RooAbsRealLValue &, Double_t, Double_t) const
Return sampling hint for making curves of (projections) of this function as the recursive division st...
Double_t getActual(Int_t ibin)
Double_t analyticalIntegralWN(Int_t code, const RooArgSet *normSet, const char *rangeName=0) const
Implement analytical integrations by doing appropriate weighting from component integrals functions t...
virtual std::list< Double_t > * plotSamplingHint(RooAbsRealLValue &obs, Double_t xlo, Double_t xhi) const
Return sampling hint for making curves of (projections) of this function as the recursive division st...
Int_t getAnalyticalIntegralWN(RooArgSet &allVars, RooArgSet &analVars, const RooArgSet *normSet, const char *rangeName=0) const
Advertise that all integrals can be handled internally.
RooRealVar represents a variable that can be changed from the outside.
void setError(Double_t value)
virtual void setVal(Double_t value)
Set value of variable to 'value'.
virtual const char * GetName() const
Returns name of object.