74 const RooAbsReal& norm,
const char* rangeName) :
77 _n(
"n",
"Normalization",this,(
RooAbsReal&)norm),
90 _pdf(
"pdf",this,other._pdf),
91 _n(
"n",this,other._n),
92 _rangeName(other._rangeName)
122 coutW(
InputArguments) <<
"RooExtendPdf::expectedEvents(" <<
GetName() <<
") WARNING: RooExtendPdf needs non-null normalization set to calculate fraction in range "
123 <<
_rangeName <<
". Results may be nonsensical" << endl ;
138 if ( fracInt == 0. ||
_n == 0.) {
139 coutW(
Eval) <<
"RooExtendPdf(" <<
GetName() <<
") WARNING: nExpected = " <<
_n <<
" / "
140 << fracInt <<
" for nset = " << (nset?*nset:
RooArgSet()) << endl ;
Bool_t canBeExtended() const
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 ...
const TNamed * _rangeName
virtual Double_t expectedEvents(const RooArgSet *nset) const
Return the number of expected events over the full range of all variables.
RooNameReg is a registry for const char* names.
const T & arg() const
Return reference to object held in proxy.
virtual const char * GetName() const
Returns name of object.