1 #ifndef SystematicsTools_h 2 #define SystematicsTools_h 16 #include "HistoStack.hxx" 33 void UpdateSystematicCov(
HistoStack* hs, TTree* tree,
const std::string& var,
int nx,
double* xbins,
const std::string& cut,
int NTOYS,
const std::string& uopt);
35 void FillSystematicHistos(TTree* tree,
const std::string& var,
int nx,
double* xbins,
const std::string& cut,
int NTOYS,
const std::string& uopt, TH2_h* h2, TH2_h* h1w);
37 const TMatrixD& GetSystematicCovBase(
HistoStack* hs1,
HistoStack* hs2,
const std::string& uopt,
const std::string& group);
38 void GetSystematicHistos(
const std::string& group,
HistoStack* hs1,
HistoStack* hs2, TH2_h*& h2, TH2_h*& h1w);
40 const TMatrixD& GetSystematicCov(
HistoStack* hs,
const std::string& uopt,
const std::string& group=
"");
41 const TMatrixD& GetRatioSystematicCov(
HistoStack* hs1,
HistoStack* hs2,
const std::string& uopt,
const std::string& group=
"");
42 const TMatrixD& GetSystematicCov(TTree* tree,
const std::string& var,
int nx,
double* xbins,
const std::string& cut,
int NTOYS,
const std::string& uopt);
43 const TMatrixD& GetSystematicCovBase(TH2_h& h2, TH2_h& h1w,
const std::string& uopt);
46 bool CheckSystComputed(TTree* tree1, TTree* tree2,
const std::string& var,
int nx,
double* xbins,
const std::string& cut1,
const std::string& cut2,
double norm,
int NTOYS,
const std::string& uopt);
48 bool TreeHasVar(TTree* tree,
const std::string& var);
49 int GetVarFromTree(TTree* tree,
const std::string& var);
52 std::string GetString(
int code);
54 void SetSoftwareVersion(
const std::string& ver){_softwareVersion = ver;}
56 bool IsValidWeight(Double_t weight);
68 std::string _var_syst;
70 double _xbins_syst[1000];
71 std::string _cut_syst1;
72 std::string _cut_syst2;
75 std::string _uopt_syst;
77 std::string _softwareVersion;