Warning, file /include/root/RooChi2Var.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef ROO_CHI2_VAR
0018 #define ROO_CHI2_VAR
0019
0020
0021
0022 #ifdef __CLING__
0023 #ifndef ROOFIT_BUILDS_ITSELF
0024
0025 #warning "Including RooChi2Var.h is deprecated, and this header will be removed in ROOT v6.34: Please use RooAbsReal::createChi2() to create chi-square test statistics objects"
0026 #else
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038 #include <RVersion.h>
0039 #if ROOT_VERSION_CODE >= ROOT_VERSION(6, 34, 00)
0040 #error "Please remove this deprecated public interface."
0041 #endif
0042 #endif
0043 #endif
0044
0045 #include "RooAbsOptTestStatistic.h"
0046 #include "RooCmdArg.h"
0047 #include "RooDataHist.h"
0048 #include "RooAbsPdf.h"
0049
0050 class RooChi2Var : public RooAbsOptTestStatistic {
0051 public:
0052 enum FuncMode { Function, Pdf, ExtendedPdf } ;
0053
0054
0055 RooChi2Var(const char *name, const char *title, RooAbsReal& func, RooDataHist& data,
0056 bool extended, RooDataHist::ErrorType etype,
0057 RooAbsTestStatistic::Configuration const& cfg=RooAbsTestStatistic::Configuration{});
0058
0059 RooChi2Var(const RooChi2Var& other, const char* name=nullptr);
0060 TObject* clone(const char* newname) const override { return new RooChi2Var(*this,newname); }
0061
0062 RooAbsTestStatistic* create(const char *name, const char *title, RooAbsReal& pdf, RooAbsData& dhist,
0063 const RooArgSet& projDeps, RooAbsTestStatistic::Configuration const& cfg) override {
0064
0065 return new RooChi2Var(name,title,(RooAbsPdf&)pdf,(RooDataHist&)dhist,projDeps,_funcMode,cfg,_etype) ;
0066 }
0067
0068 double defaultErrorLevel() const override {
0069
0070 return 1.0 ;
0071 }
0072
0073 private:
0074
0075 RooChi2Var(const char *name, const char *title, RooAbsReal& func, RooDataHist& data,
0076 const RooArgSet& projDeps, FuncMode funcMode,
0077 RooAbsTestStatistic::Configuration const& cfg,
0078 RooDataHist::ErrorType etype)
0079 : RooAbsOptTestStatistic(name,title,func,data,projDeps,cfg), _etype(etype), _funcMode(funcMode) {}
0080
0081 protected:
0082
0083 double evaluatePartition(std::size_t firstEvent, std::size_t lastEvent, std::size_t stepSize) const override ;
0084
0085 static RooArgSet _emptySet ;
0086
0087 RooDataHist::ErrorType _etype ;
0088 FuncMode _funcMode ;
0089
0090 ClassDefOverride(RooChi2Var,0)
0091
0092 #ifndef ROOFIT_BUILDS_ITSELF
0093 } R__DEPRECATED(6,34, "Please use RooAbsReal::createChi2() to create chi-square test statistics objects.");
0094 #else
0095 };
0096 #endif
0097
0098
0099 #endif