75 _pdf(
"pdf",
"PDF", this, pdf),
76 _n(
"n",
"Normalization",this,norm),
89 _pdf(
"pdf",this,other._pdf),
90 _n(
"n",this,other._n),
91 _rangeName(other._rangeName)
121 coutW(InputArguments) <<
"RooExtendPdf::expectedEvents(" <<
GetName() <<
") WARNING: RooExtendPdf needs non-null normalization set to calculate fraction in range "
122 <<
_rangeName <<
". Results may be nonsensical" << endl ;
137 if ( fracInt == 0. ||
_n == 0.) {
138 coutW(Eval) <<
"RooExtendPdf(" <<
GetName() <<
") WARNING: nExpected = " <<
_n <<
" / "
139 << fracInt <<
" for nset = " << (nset?*nset:
RooArgSet()) << endl ;
Bool_t canBeExtended() const
If true, PDF can provide extended likelihood term.
virtual const RooAbsReal * getNormObj(const RooArgSet *set, const RooArgSet *iset, const TNamed *rangeName=0) const
Return pointer to RooAbsReal object that implements calculation of integral over observables iset in ...
virtual Double_t expectedEvents(const RooArgSet *nset) const
Return expected number of events from this p.d.f for use in extended likelihood calculations.
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
void setUnit(const char *unit)
Double_t getVal(const RooArgSet *normalisationSet=nullptr) const
Evaluate object.
const char * getPlotLabel() const
Get the label associated with the variable.
const Text_t * getUnit() const
void setPlotLabel(const char *label)
Set the label associated with this variable.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
RooExtendPdf is a wrapper around an existing PDF that adds a parameteric extended likelihood term to ...
RooTemplateProxy< RooAbsPdf > _pdf
const TNamed * _rangeName
virtual Double_t expectedEvents(const RooArgSet *nset) const
Return the number of expected events over the full range of all variables.
RooTemplateProxy< RooAbsReal > _n
RooNameReg is a registry for const char* names.
virtual const char * GetName() const
Returns name of object.