72 *(const
RooArgSet*)
RooCmdConfig::decodeObjOnTheFly(
"RooNLLVar::RooNLLVar",
"ProjectedObservables",0,&_emptySet
73 ,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9),
74 RooCmdConfig::decodeStringOnTheFly(
"RooNLLVar::RooNLLVar",
"RangeWithName",0,
"",arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9),
75 RooCmdConfig::decodeStringOnTheFly(
"RooNLLVar::RooNLLVar",
"AddCoefRange",0,
"",arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9),
76 RooCmdConfig::decodeIntOnTheFly(
"RooNLLVar::RooNLLVar",
"NumCPU",0,1,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9),
78 RooCmdConfig::decodeIntOnTheFly(
"RooNLLVar::RooNLLVar",
"Verbose",0,1,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9),
79 RooCmdConfig::decodeIntOnTheFly(
"RooNLLVar::RooNLLVar",
"SplitRange",0,0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9),
80 RooCmdConfig::decodeIntOnTheFly(
"RooNLLVar::RooNLLVar",
"CloneData",0,1,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9))
108 Bool_t extended,
const char* rangeName,
const char* addCoefRangeName,
110 RooAbsOptTestStatistic(name,title,pdf,indata,
RooArgSet(),rangeName,addCoefRangeName,nCPU,interleave,verbose,splitRange,cloneData),
131 std::list<Double_t>::iterator biter = boundaries->begin() ;
132 _binw.resize(boundaries->size()-1) ;
136 while (biter!=boundaries->end()) {
137 _binw[ibin] = (*biter) - lastBound ;
138 lastBound = (*biter) ;
153 const RooArgSet& projDeps,
Bool_t extended,
const char* rangeName,
const char* addCoefRangeName,
155 RooAbsOptTestStatistic(name,title,pdf,indata,projDeps,rangeName,addCoefRangeName,nCPU,interleave,verbose,splitRange,cloneData),
173 std::list<Double_t>::iterator biter = boundaries->begin() ;
174 _binw.resize(boundaries->size()-1) ;
178 while (biter!=boundaries->end()) {
179 _binw[ibin] = (*biter) - lastBound ;
180 lastBound = (*biter) ;
259 Double_t sumWeight(0), sumWeightCarry(0);
264 for (i=firstEvent ; i<lastEvent ; i+=stepSize) {
281 logEvalError(
Form(
"Observed %f events in bin %d with zero event yield",N,i)) ;
293 Double_t y = eventWeight - sumWeightCarry;
295 sumWeightCarry = (t - sumWeight) - y;
309 for (i=firstEvent ; i<lastEvent ; i+=stepSize) {
316 if (0. == eventWeight * eventWeight) continue ;
322 Double_t y = eventWeight - sumWeightCarry;
324 sumWeightCarry = (t - sumWeight) - y;
343 sumW2carry = (t - sumW2) - y;
409 coutI(
Minimization) <<
"RooNLLVar::evaluatePartition(" <<
GetName() <<
") first = "<< firstEvent <<
" last = " << lastEvent <<
" Likelihood offset now set to " <<
result << std::endl ;
virtual Double_t sumEntries() const =0
virtual Double_t getMin(const char *name=0) const
void setAttribute(const Text_t *name, Bool_t value=kTRUE)
Set (default) or clear a named boolean attribute of this object.
virtual const char * GetName() const
Returns name of object.
Double_t _offsetCarry
Offset.
virtual Double_t getMax(const char *name=0) const
virtual Double_t evaluatePartition(Int_t firstEvent, Int_t lastEvent, Int_t stepSize) const
Calculate and return likelihood on subset of data from firstEvent to lastEvent processed with a step ...
GOFOpMode _gofOpMode
Is object initialized.
RooArgSet * getObservables(const RooArgSet &set, Bool_t valueOnly=kTRUE) const
virtual const RooArgSet * get() const
void swap(TDirectoryEntry &e1, TDirectoryEntry &e2) noexcept
Double_t getVal(const RooArgSet *set=0) const
pRooRealMPFE * _mpfeArray
RooRealSumPdf * _binnedPdf
virtual Double_t getLogVal(const RooArgSet *set=0) const
Return the log of the current value with given normalization An error message is printed if the argum...
void allowUndefined(Bool_t flag=kTRUE)
Class RooRealSumPdf implements a PDF constructed from a sum of functions:
void applyWeightSquared(Bool_t flag)
virtual Double_t weightSquared() const =0
void setValueDirty() const
Bool_t process(const RooCmdArg &arg)
Process given RooCmdArg.
pRooAbsTestStatistic * _gofArray
Double_t _evalCarry
avoids loss of precision
std::vector< Double_t > _binw
virtual Double_t expectedEvents(const RooArgSet *nset) const
Return expected number of events from this p.d.f for use in extended likelihood calculations.
Bool_t defineInt(const char *name, const char *argName, Int_t intNum, Int_t defValue=0)
Define integer property name 'name' mapped to integer in slot 'intNum' in RooCmdArg with name argName...
RooRealVar represents a fundamental (non-derived) real valued object.
Class RooNLLVar implements a a -log(likelihood) calculation from a dataset and a PDF.
VecExpr< UnaryOp< Fabs< T >, VecExpr< A, T, D >, T >, T, D > fabs(const VecExpr< A, T, D > &rhs)
Int_t getInt(const char *name, Int_t defaultValue=0)
Return integer property registered with name 'name'.
virtual std::list< Double_t > * binBoundaries(RooAbsRealLValue &, Double_t, Double_t) const
RooAbsArg * first() const
void logEvalError(const char *message, const char *serverValueString=0) const
Log evaluation error message.
char * Form(const char *fmt,...)
Class RooCmdConfig is a configurable parser for RooCmdArg named arguments.
RooAbsData is the common abstract base class for binned and unbinned datasets.
virtual ~RooNLLVar()
Destructor.
RooAbsDataStore * store()
static RooArgSet _emptySet
virtual Bool_t valid() const
Int_t _nGof
Number of designated set to calculated extended term.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
virtual Double_t weight() const =0
Double_t LnGamma(Double_t z)
Computation of ln[gamma(z)] for all z.
Double_t _offsetCarrySaveW2
virtual void recalculateCache(const RooArgSet *, Int_t, Int_t, Int_t, Bool_t)
virtual Double_t extendedTerm(Double_t observedEvents, const RooArgSet *nset=0) const
Returned the extended likelihood term (Nexpect - Nobserved*log(NExpected) of this PDF for the given n...
virtual Int_t numEntries() const
RooAbsOptTestStatistic is the abstract base class for test statistics objects that evaluate a functio...
RooCmdArg is a named container for two doubles, two integers two object points and three string point...
Int_t _nCPU
GOF MP Split mode specified by component (when Auto is active)