ra4_macros  bede988c286599a3a84b77a4d788ac0a971e89f9
Functions
syst_counts_v2.hpp File Reference
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
#include "gamma_params.hpp"
#include "small_tree_quick.hpp"
#include "TH1.h"
#include "utilities_macros.hpp"

Go to the source code of this file.

Functions

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)
 
double GetWeight (small_tree_quick &tree, TString sysname, int ivar)
 
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)
 
void OverlayHists (std::vector< TH1F * > h, hfeats hist, TString method, TString sysname, TString baseline)
 
void OverlayHistsmT (std::vector< TH1F * > h, hfeats hist, TString method, TString sysname, TString baseline)
 
int FindSuperBin (TString cut, std::vector< TString > other_region)
 
int LookUpRegion (small_tree_quick &tree, TString method)
 
int LookUpBin (small_tree_quick &tree, int region, 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)
 
double sqr (double x)
 

Function Documentation

int FindSuperBin ( TString  cut,
std::vector< TString >  other_region 
)

Definition at line 608 of file syst_counts_v2.cxx.

Referenced by MakePlots(), and PrintTable().

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 GetWeight ( small_tree_quick tree,
TString  sysname,
int  ivar 
)
int LookUpBin ( small_tree_quick tree,
int  region,
std::vector< std::vector< TString > >  bins_by_region 
)

Definition at line 655 of file syst_counts_v2.cxx.

References small_tree::PassString().

Referenced by GetCounts().

int LookUpRegion ( small_tree_quick tree,
TString  method 
)
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 
)
void OverlayHists ( std::vector< TH1F * >  h,
hfeats  hist,
TString  method,
TString  sysname,
TString  baseline 
)
void OverlayHistsmT ( std::vector< TH1F * >  h,
hfeats  hist,
TString  method,
TString  sysname,
TString  baseline 
)
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 
)

Definition at line 247 of file syst_counts_v2.cxx.

References parse_card::file, FindSuperBin(), and sqr().

Referenced by main().

double sqr ( double  x)

Definition at line 562 of file make_card.cxx.

Referenced by GetCounts(), MakePlots(), and PrintTable().