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),
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))
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 ;
267 if (0. == eInt * eInt) {
268 coutE(
Eval) <<
"RooChi2Var::RooChi2Var(" <<
GetName() <<
") INFINITY ERROR: bin " << i
269 <<
" has zero error" << endl ;
virtual Double_t sumEntries() const =0
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
RooDataHist::ErrorType _etype
virtual Bool_t isNonPoissonWeighted() const
Returns true if datasets contains entries with a non-integer weight.
virtual ~RooChi2Var()
Destructor.
void allowUndefined(Bool_t flag=kTRUE)
virtual const RooArgSet * get() const
Bool_t process(const RooCmdArg &arg)
Process given RooCmdArg.
RooDataSet is a container class to hold N-dimensional binned data.
Double_t _evalCarry
avoids loss of precision
if on multiple lines(like in C++).**The" * configuration fragment. * * The "import myobject continue
Parses the configuration file.
Double_t getVal(const RooArgSet *set=0) const
virtual void weightError(Double_t &lo, Double_t &hi, ErrorType etype=Poisson) const
Return the error on current weight.
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
static RooArgSet _emptySet
Int_t getInt(const char *name, Int_t defaultValue=0)
Return integer property registered with name 'name'.
virtual Double_t weight() const
TPaveLabel title(3, 27.1, 15, 28.7,"ROOT Environment and Tools")
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())
virtual const char * GetName() const
Returns name of object.
Class RooCmdConfig is a configurable parser for RooCmdArg named arguments.
RooAbsDataStore * store()
Double_t binVolume() const
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
double func(double *x, double *p)
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
virtual Bool_t valid() const
Return true if currently loaded coordinate is considered valid within the current range definitions o...
virtual void recalculateCache(const RooArgSet *, Int_t, Int_t, Int_t, Bool_t)
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.
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...