ra4_macros  bede988c286599a3a84b77a4d788ac0a971e89f9
syst_counts_v2.hpp
Go to the documentation of this file.
1 #ifndef H_SYST_COUNTS_V2
2 #define H_SYST_COUNTS_V2
3 
4 #include <fstream>
5 #include <sstream>
6 #include <string>
7 #include <vector>
8 
9 #include "gamma_params.hpp"
10 #include "small_tree_quick.hpp"
11 #include "TH1.h"
12 #include "utilities_macros.hpp"
13 
14 void PrintTable(TString method, std::vector< std::vector< std::vector<double> > > ttbar_counts, std::vector< std::vector< std::vector<double> > > ttbar_errors, std::vector< std::vector< std::vector<double> > > ttbar_counts_dilep, std::vector< std::vector< std::vector<double> > > other_counts,std::vector< std::vector< std::vector<double> > > other_counts_dilep, std::vector< std::vector<double> > delkappas, std::vector< std::vector<TString> > bins_by_region);
15 double GetWeight(small_tree_quick &tree, TString sysname, int ivar);
16 
17 void GetCounts(double lumi, std::vector<TString> sysnames, TString method, TString baseline,
18  small_tree_quick &tree,
19  std::vector< std::vector< std::vector<double> > > &finalcounts,
20  std::vector< std::vector< std::vector<double> > > &errors, std::vector< std::vector<TString> > bins_by_region, std::vector<hfeats> hists, std::vector< std::vector<TH1F*> > &h);
21 
22 void OverlayHists(std::vector<TH1F*> h, hfeats hist, TString method, TString sysname, TString baseline);
23 void OverlayHistsmT(std::vector<TH1F*> h, hfeats hist, TString method, TString sysname, TString baseline);
24 int FindSuperBin(TString cut, std::vector<TString> other_region);
25 int LookUpRegion(small_tree_quick &tree, TString method);
26 int LookUpBin(small_tree_quick &tree, int region, std::vector< std::vector<TString> > bins_by_region);
27 void MakePlots(TString axisname, std::vector<int> numerator_regions, std::vector<int> denominator_regions, std::vector< std::vector< std::vector<double> > > counts,
28  std::vector< std::vector< std::vector<double> > > errors, std::vector< std::vector<TString> > bins_by_region, TString baseline, TString method, std::vector<TString> sysnames,int sysnum, std::vector<double> &delkappas );
29 double sqr(double x);
30 
31 
32 
33 #endif
void GetCounts(double lumi, std::vector< TString > sysnames, TString method, TString baseline, small_tree_quick &tree, std::vector< std::vector< std::vector< double > > > &finalcounts, std::vector< std::vector< std::vector< double > > > &errors, std::vector< std::vector< TString > > bins_by_region, std::vector< hfeats > hists, std::vector< std::vector< TH1F * > > &h)
double sqr(double x)
Definition: make_card.cxx:562
void OverlayHistsmT(std::vector< TH1F * > h, hfeats hist, TString method, TString sysname, TString baseline)
int LookUpBin(small_tree_quick &tree, int region, std::vector< std::vector< TString > > bins_by_region)
double GetWeight(small_tree_quick &tree, TString sysname, int ivar)
void PrintTable(TString method, std::vector< std::vector< std::vector< double > > > ttbar_counts, std::vector< std::vector< std::vector< double > > > ttbar_errors, std::vector< std::vector< std::vector< double > > > ttbar_counts_dilep, std::vector< std::vector< std::vector< double > > > other_counts, std::vector< std::vector< std::vector< double > > > other_counts_dilep, std::vector< std::vector< double > > delkappas, std::vector< std::vector< TString > > bins_by_region)
void MakePlots(TString axisname, std::vector< int > numerator_regions, std::vector< int > denominator_regions, std::vector< std::vector< std::vector< double > > > counts, std::vector< std::vector< std::vector< double > > > errors, std::vector< std::vector< TString > > bins_by_region, TString baseline, TString method, std::vector< TString > sysnames, int sysnum, std::vector< double > &delkappas)
int FindSuperBin(TString cut, std::vector< TString > other_region)
int LookUpRegion(small_tree_quick &tree, TString method)
void OverlayHists(std::vector< TH1F * > h, hfeats hist, TString method, TString sysname, TString baseline)