72 const RooAbsReal& norm,
const char* rangeName) :
75 _n(
"n",
"Normalization",this,(
RooAbsReal&)norm),
88 _pdf(
"pdf",this,other._pdf),
89 _n(
"n",this,other._n),
90 _rangeName(other._rangeName)
117 coutW(
InputArguments) <<
"RooExtendPdf::expectedEvents(" <<
GetName() <<
") WARNING: RooExtendPdf needs non-null normalization set to calculate fraction in range "
118 <<
_rangeName <<
". Results may be nonsensical" << endl ;
131 if ( fracInt == 0. ||
_n == 0.) {
132 coutW(
Eval) <<
"RooExtendPdf(" <<
GetName() <<
") WARNING: nExpected = " <<
_n <<
" / "
133 << fracInt <<
" for nset = " << (nset?*nset:
RooArgSet()) << endl ;
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
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)
static void globalSelectComp(Bool_t flag)
Global switch controlling the activation of the selectComp() functionality.
Double_t getVal(const RooArgSet *set=0) const
Evaluate object. Returns either cached value or triggers a recalculation.
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.
RooNameReg is a registry for 'const char*' name.
const RooAbsReal & arg() const
virtual const char * GetName() const
Returns name of object.