60 RooCmdConfig::decodeStringOnTheFly(
"RooChi2Var::RooChi2Var",
"RangeWithName",0,
"",arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9),
62 RooCmdConfig::decodeIntOnTheFly(
"RooChi2Var::RooChi2Var",
"NumCPU",0,1,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9),
64 RooCmdConfig::decodeIntOnTheFly(
"RooChi2Var::RooChi2Var",
"Verbose",0,1,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9),
75 pc.defineInt(
"extended",
"Extended",0,
kFALSE) ;
78 pc.process(arg1) ;
pc.process(arg2) ;
pc.process(arg3) ;
79 pc.process(arg4) ;
pc.process(arg5) ;
pc.process(arg6) ;
80 pc.process(arg7) ;
pc.process(arg8) ;
pc.process(arg9) ;
104 *(const
RooArgSet*)
RooCmdConfig::decodeObjOnTheFly(
"RooChi2Var::RooChi2Var",
"ProjectedObservables",0,&_emptySet
105 ,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9),
106 RooCmdConfig::decodeStringOnTheFly(
"RooChi2Var::RooChi2Var",
"RangeWithName",0,
"",arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9),
107 RooCmdConfig::decodeStringOnTheFly(
"RooChi2Var::RooChi2Var",
"AddCoefRange",0,
"",arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9),
108 RooCmdConfig::decodeIntOnTheFly(
"RooChi2Var::RooChi2Var",
"NumCPU",0,1,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9),
110 RooCmdConfig::decodeIntOnTheFly(
"RooChi2Var::RooChi2Var",
"Verbose",0,1,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9),
111 RooCmdConfig::decodeIntOnTheFly(
"RooChi2Var::RooChi2Var",
"SplitRange",0,0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9))
124 pc.defineInt(
"extended",
"Extended",0,
kFALSE) ;
126 pc.allowUndefined() ;
128 pc.process(arg1) ;
pc.process(arg2) ;
pc.process(arg3) ;
129 pc.process(arg4) ;
pc.process(arg5) ;
pc.process(arg6) ;
130 pc.process(arg7) ;
pc.process(arg8) ;
pc.process(arg9) ;
158 Bool_t extended,
const char* cutRange,
const char* addCoefRange,
160 RooAbsOptTestStatistic(
name,title,pdf,hdata,
RooArgSet(),cutRange,addCoefRange,nCPU,interleave,verbose,splitCutRange),
161 _etype(etype), _funcMode(extended?ExtendedPdf:Pdf)
187 RooAbsOptTestStatistic(
name,title,func,hdata,projDeps,cutRange,addCoefRange,nCPU,interleave,verbose,splitCutRange),
188 _etype(etype), _funcMode(fmode)
199 _etype(other._etype),
200 _funcMode(other._funcMode)
233 case Function: normFactor=1 ; break ;
240 for (i=firstEvent ; i<lastEvent ; i+=stepSize) {
245 if (!hdata->
valid())
continue;
258 eInt = (eExt>0) ? eIntHi : eIntLo ;
264 if (0. ==
eInt *
eInt && 0. == nData * nData && 0. == nPdf * nPdf) continue ;
268 coutE(
Eval) <<
"RooChi2Var::RooChi2Var(" <<
GetName() <<
") INFINITY ERROR: bin " << i
269 <<
" has zero error" << endl ;
278 carry = (t - result) -
y;
virtual void recalculateCache(const RooArgSet *, Int_t, Int_t, Int_t, Bool_t)
virtual const RooArgSet * get() const
RooAbsDataStore * store()
virtual Double_t sumEntries() const =0
RooAbsOptTestStatistic is the abstract base class for test statistics objects that evaluate a functio...
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Double_t getVal(const RooArgSet *set=0) const
Evaluate object. Returns either cached value or triggers a recalculation.
Double_t _evalCarry
avoids loss of precision
RooArgSet is a container object that can hold multiple RooAbsArg objects.
RooDataHist::ErrorType _etype
virtual Double_t evaluatePartition(Int_t firstEvent, Int_t lastEvent, Int_t stepSize) const
Calculate chi^2 in partition from firstEvent to lastEvent using given stepSize.
RooChi2Var(const char *name, const char *title, RooAbsReal &func, RooDataHist &data, const RooCmdArg &arg1, const RooCmdArg &arg2=RooCmdArg::none(), const RooCmdArg &arg3=RooCmdArg::none(), const RooCmdArg &arg4=RooCmdArg::none(), const RooCmdArg &arg5=RooCmdArg::none(), const RooCmdArg &arg6=RooCmdArg::none(), const RooCmdArg &arg7=RooCmdArg::none(), const RooCmdArg &arg8=RooCmdArg::none(), const RooCmdArg &arg9=RooCmdArg::none())
static RooArgSet _emptySet
virtual ~RooChi2Var()
Destructor.
RooCmdArg is a named container for two doubles, two integers two object points and three string point...
Class RooCmdConfig is a configurable parser for RooCmdArg named arguments.
RooDataSet is a container class to hold N-dimensional binned data.
virtual Double_t weight() const
virtual void weightError(Double_t &lo, Double_t &hi, ErrorType etype=Poisson) const
Return the error on current weight.
virtual Bool_t isNonPoissonWeighted() const
Returns true if datasets contains entries with a non-integer weight.
virtual const RooArgSet * get() const
virtual Bool_t valid() const
Return true if currently loaded coordinate is considered valid within the current range definitions o...
Double_t binVolume() const
virtual const char * GetName() const
Returns name of object.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
static constexpr double pc