69 *(const
RooArgSet*)
RooCmdConfig::decodeObjOnTheFly(
"RooNLLVar::RooNLLVar",
"ProjectedObservables",0,&_emptySet
70 ,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9),
71 RooCmdConfig::decodeStringOnTheFly(
"RooNLLVar::RooNLLVar",
"RangeWithName",0,
"",arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9),
72 RooCmdConfig::decodeStringOnTheFly(
"RooNLLVar::RooNLLVar",
"AddCoefRange",0,
"",arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9),
73 RooCmdConfig::decodeIntOnTheFly(
"RooNLLVar::RooNLLVar",
"NumCPU",0,1,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9),
75 RooCmdConfig::decodeIntOnTheFly(
"RooNLLVar::RooNLLVar",
"Verbose",0,1,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9),
76 RooCmdConfig::decodeIntOnTheFly(
"RooNLLVar::RooNLLVar",
"SplitRange",0,0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9),
77 RooCmdConfig::decodeIntOnTheFly(
"RooNLLVar::RooNLLVar",
"CloneData",0,1,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9))
105 Bool_t extended,
const char* rangeName,
const char* addCoefRangeName,
107 RooAbsOptTestStatistic(name,title,pdf,indata,
RooArgSet(),rangeName,addCoefRangeName,nCPU,interleave,verbose,splitRange,cloneData),
110 _first(
kTRUE), _offsetSaveW2(0.), _offsetCarrySaveW2(0.)
128 std::list<Double_t>::iterator biter = boundaries->begin() ;
129 _binw.resize(boundaries->size()-1) ;
133 while (biter!=boundaries->end()) {
134 _binw[ibin] = (*biter) - lastBound ;
135 lastBound = (*biter) ;
150 const RooArgSet& projDeps,
Bool_t extended,
const char* rangeName,
const char* addCoefRangeName,
152 RooAbsOptTestStatistic(name,title,pdf,indata,projDeps,rangeName,addCoefRangeName,nCPU,interleave,verbose,splitRange,cloneData),
155 _first(
kTRUE), _offsetSaveW2(0.), _offsetCarrySaveW2(0.)
170 std::list<Double_t>::iterator biter = boundaries->begin() ;
171 _binw.resize(boundaries->size()-1) ;
175 while (biter!=boundaries->end()) {
176 _binw[ibin] = (*biter) - lastBound ;
177 lastBound = (*biter) ;
192 _extended(other._extended),
193 _weightSq(other._weightSq),
194 _first(
kTRUE), _offsetSaveW2(other._offsetSaveW2),
195 _offsetCarrySaveW2(other._offsetCarrySaveW2),
256 Double_t sumWeight(0), sumWeightCarry(0);
261 for (i=firstEvent ; i<lastEvent ; i+=stepSize) {
278 logEvalError(
Form(
"Observed %f events in bin %d with zero event yield",N,i)) ;
280 }
else if (
fabs(mu)<1e-10 &&
fabs(N)<1e-10) {
290 Double_t y = eventWeight - sumWeightCarry;
292 sumWeightCarry = (t - sumWeight) - y;
306 for (i=firstEvent ; i<lastEvent ; i+=stepSize) {
313 if (0. == eventWeight * eventWeight)
continue ;
319 Double_t y = eventWeight - sumWeightCarry;
321 sumWeightCarry = (t - sumWeight) - y;
340 sumW2carry = (t - sumW2) - y;
406 coutI(
Minimization) <<
"RooNLLVar::evaluatePartition(" <<
GetName() <<
") first = "<< firstEvent <<
" last = " << lastEvent <<
" Likelihood offset now set to " <<
result << std::endl ;
virtual Double_t sumEntries() const =0
void setAttribute(const Text_t *name, Bool_t value=kTRUE)
Set (default) or clear a named boolean attribute of this object.
Double_t _offsetCarry
Offset.
GOFOpMode _gofOpMode
Is object initialized.
virtual Bool_t valid() const
pRooRealMPFE * _mpfeArray
RooArgSet * getObservables(const RooArgSet &set, Bool_t valueOnly=kTRUE) const
void swap(ROOT::THist< DIMENSIONS, PRECISION > &a, ROOT::THist< DIMENSIONS, PRECISION > &b) noexcept
Swap two histograms.
RooRealSumPdf * _binnedPdf
virtual Double_t getMin(const char *name=0) const
void allowUndefined(Bool_t flag=kTRUE)
virtual Double_t expectedEvents(const RooArgSet *nset) const
Return expected number of events from this p.d.f for use in extended likelihood calculations.
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 ...
void applyWeightSquared(Bool_t flag)
virtual Double_t weightSquared() const =0
RooAbsArg * first() const
Bool_t process(const RooCmdArg &arg)
Process given RooCmdArg.
pRooAbsTestStatistic * _gofArray
Double_t _evalCarry
avoids loss of precision
std::vector< Double_t > _binw
if on multiple lines(like in C++).**The" * configuration fragment. * * The "import myobject continue
Parses the configuration file.
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...
Double_t getVal(const RooArgSet *set=0) const
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...
virtual const RooArgSet * get() const
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 Int_t numEntries() const
char * Form(const char *fmt,...)
virtual const char * GetName() const
Returns name of object.
virtual ~RooNLLVar()
Destructor.
RooAbsDataStore * store()
static RooArgSet _emptySet
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...
Int_t _nGof
Number of designated set to calculated extended term.
void setValueDirty() const
virtual Double_t getMax(const char *name=0) const
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.
virtual std::list< Double_t > * binBoundaries(RooAbsRealLValue &, Double_t, Double_t) const
Double_t _offsetCarrySaveW2
virtual void recalculateCache(const RooArgSet *, Int_t, Int_t, Int_t, Bool_t)
void logEvalError(const char *message, const char *serverValueString=0) const
Log evaluation error message.
Int_t _nCPU
GOF MP Split mode specified by component (when Auto is active)