67 _n(
"n",
"Normalization",this,(
RooAbsReal&)norm),
73 # // the number of events in the given range
84 _pdf(
"pdf",this,other._pdf),
85 _n(
"n",this,other._n),
86 _rangeName(other._rangeName)
114 coutW(
InputArguments) <<
"RooExtendPdf::expectedEvents(" <<
GetName() <<
") WARNING: RooExtendPdf needs non-null normalization set to calculate fraction in range "
115 <<
_rangeName <<
". Results may be nonsensical" << endl ;
128 if ( fracInt == 0. ||
_n == 0.) {
129 coutW(
Eval) <<
"RooExtendPdf(" <<
GetName() <<
") WARNING: nExpected = " <<
_n <<
" / "
130 << fracInt <<
" for nset = " << (nset?*nset:
RooArgSet()) << endl ;
static void globalSelectComp(Bool_t flag)
Global switch controlling the activation of the selectComp() functionality.
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 ...
void setPlotLabel(const char *label)
Set the label associated with this variable.
virtual Double_t expectedEvents(const RooArgSet *nset) const
Return expected number of events from this p.d.f for use in extended likelihood calculations.
const RooAbsReal & arg() const
const Text_t * getUnit() const
Double_t getVal(const RooArgSet *set=0) const
virtual Double_t expectedEvents(const RooArgSet *nset) const
Return expected number of events from this p.d.f for use in extended likelihood calculations.
const char * getPlotLabel() const
Get the label associated with the variable.
const TNamed * _rangeName
virtual const char * GetName() const
Returns name of object.
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Bool_t canBeExtended() const
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
void setUnit(const char *unit)
double norm(double *x, double *p)