File indexing completed on 2024-04-06 12:18:58
0001 #ifndef EFFPULLCALC_HH
0002 #define EFFPULLCALC_HH
0003
0004 class EffPullcalculator {
0005 public:
0006 EffPullcalculator(TH1D* pathHisto1_v, TH1D* pathHisto2_v, vector<TH1D*> sortedHisto1_v, vector<TH1D*> sortedHisto2_v, string error_v);
0007 ~EffPullcalculator(){};
0008
0009 TH1D* GetResidualHisto() {return resHisto;}
0010 TH1D* GetPullHisto() {return pullDist;}
0011 vector<TH1D*> GetEffHistos() {return effhisto;}
0012 void CalculatePulls();
0013 double GetEff(string label, int ind);
0014 void WriteLogFile(string namefile);
0015 vector<int> SortVec(vector<double> eff);
0016 void AddGoldenPath(string name);
0017 void PrintTwikiTable(string filename);
0018 bool GoodLabel(string pathname);
0019 double std::abs(double value);
0020
0021 private:
0022
0023 vector<string> lines;
0024 vector<TH1D*> pathHisto;
0025 vector<TH1D*> effhisto;
0026 vector<TH1D*> sortedHisto1;
0027 vector<TH1D*> sortedHisto2;
0028 TH1D* pullHisto;
0029 TH1D* pullDist;
0030 TH1D* resHisto;
0031 vector<double> eff1;
0032 vector<double> eff2;
0033 vector<double> err_eff1;
0034 vector<double> err_eff2;
0035 vector<string> name;
0036 string error;
0037
0038
0039 vector<string> goldenpaths;
0040 };
0041
0042 #endif