Warning, file /include/root/RooXYChi2Var.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_XY_CHI2_VAR
0018 #define ROO_XY_CHI2_VAR
0019
0020
0021
0022 #ifdef __CLING__
0023 #ifndef ROOFIT_BUILDS_ITSELF
0024
0025 #warning "Including RooXYChi2Var.h is deprecated, and this header will be removed in ROOT v6.34: please use RooAbsReal::createChi2(RooAbsData &, ...) to create chi-square test statistics objects on X-Y data"
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 "RooDataSet.h"
0047 #include "RooAbsPdf.h"
0048 #include "RooNumIntConfig.h"
0049 #include <list>
0050 class RooAbsIntegrator ;
0051
0052
0053 class RooXYChi2Var : public RooAbsOptTestStatistic {
0054 public:
0055
0056
0057 RooXYChi2Var(const char *name, const char* title, RooAbsReal& func, RooDataSet& data, bool integrate=false) ;
0058 RooXYChi2Var(const char *name, const char* title, RooAbsReal& func, RooDataSet& data, RooRealVar& yvar, bool integrate=false) ;
0059
0060
0061 RooXYChi2Var(const char *name, const char *title, RooAbsReal& func, RooAbsData& data, RooRealVar *yvar, bool integrate,
0062 RooAbsTestStatistic::Configuration const& cfg);
0063
0064
0065 RooXYChi2Var(const RooXYChi2Var& other, const char* name=nullptr);
0066 TObject* clone(const char* newname) const override { return new RooXYChi2Var(*this,newname); }
0067
0068 RooAbsTestStatistic* create(const char *name, const char *title, RooAbsReal& pdf, RooAbsData& adata,
0069 const RooArgSet&, RooAbsTestStatistic::Configuration const&) override {
0070
0071 return new RooXYChi2Var(name,title,pdf,(RooDataSet&)adata) ;
0072 }
0073
0074 ~RooXYChi2Var() override;
0075
0076 double defaultErrorLevel() const override {
0077
0078 return 1.0 ;
0079 }
0080
0081 RooNumIntConfig& binIntegratorConfig() { return _intConfig ; }
0082 const RooNumIntConfig& binIntegratorConfig() const { return _intConfig ; }
0083
0084 protected:
0085
0086 bool allowFunctionCache() override {
0087
0088
0089 return !_integrate ;
0090 }
0091
0092 RooArgSet requiredExtraObservables() const override ;
0093
0094 double fy() const ;
0095
0096 bool _extended ;
0097 bool _integrate ;
0098
0099 RooRealVar* _yvar ;
0100 RooArgSet _rrvArgs ;
0101
0102 void initialize() ;
0103 void initIntegrator() ;
0104 double xErrorContribution(double ydata) const ;
0105
0106 double evaluatePartition(std::size_t firstEvent, std::size_t lastEvent, std::size_t stepSize) const override ;
0107
0108 RooNumIntConfig _intConfig ;
0109 std::unique_ptr<RooAbsReal> _funcInt;
0110 std::list<RooAbsBinning*> _binList ;
0111
0112 ClassDefOverride(RooXYChi2Var,0)
0113
0114 #ifndef ROOFIT_BUILDS_ITSELF
0115 } R__DEPRECATED(6,34, "Please use RooAbsReal::createChi2(RooAbsData &, ...) to create chi-square test statistics objects on X-Y data");
0116 #else
0117 };
0118 #endif
0119
0120
0121 #endif