ra4_macros  bede988c286599a3a84b77a4d788ac0a971e89f9
Namespaces | Functions | Variables
syst_counts_v2.cxx File Reference
#include "syst_counts_v2.hpp"
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <iomanip>
#include <vector>
#include <string>
#include "TTreeFormula.h"
#include "TGraphErrors.h"
#include "TH1F.h"
#include "TLegend.h"
#include "TLine.h"
#include "TLatex.h"
#include "TCanvas.h"
#include "TMath.h"
#include "styles.hpp"
#include "small_tree_quick.hpp"
#include "utilities.hpp"
#include "utilities_macros.hpp"
#include "timer.hpp"

Go to the source code of this file.

Namespaces

 ra4
 

Functions

std::string ra4::ntuple_date ("2015_06_05")
 
int ra4::minjets (6)
 
double ra4::midjets (8)
 
double ra4::mjthresh (400.)
 
int main (int argc, char *argv[])
 
void PrintTable (TString method, vector< vector< vector< double > > > ttbar_counts, vector< vector< vector< double > > > ttbar_errors, vector< vector< vector< double > > > ttbar_counts_dilep, vector< vector< vector< double > > > other_counts, vector< vector< vector< double > > > other_counts_dilep, vector< vector< double > > delkappas, vector< vector< TString > > bins_by_region)
 
double GetWeight (small_tree_quick &tree, TString sysname, int ivar)
 
void GetCounts (double lumi, vector< TString > sysnames, TString method, TString baseline, small_tree_quick &tree, vector< vector< vector< double > > > &finalcounts, vector< vector< vector< double > > > &errors, vector< vector< TString > > bins_by_region, vector< hfeats > hists, vector< vector< TH1F * > > &h)
 
void OverlayHists (vector< TH1F * > h, hfeats hist, TString method, TString sysname, TString baseline)
 
void OverlayHistsmT (vector< TH1F * > h, hfeats hist, TString method, TString sysname, TString baseline)
 
int FindSuperBin (TString cut, vector< TString > other_region)
 
int LookUpRegion (small_tree_quick &tree, TString method)
 
int LookUpBin (small_tree_quick &tree, int region, vector< vector< TString > > bins_by_region)
 
void MakePlots (TString axisname, vector< int > numerator_regions, vector< int > denominator_regions, vector< vector< vector< double > > > counts, vector< vector< vector< double > > > errors, vector< vector< TString > > bins_by_region, TString baseline, TString method, vector< TString > sysnames, int sysnum, vector< double > &delkappas)
 
double sqr (double x)
 

Variables

TString ra4::luminosity ="10"
 

Function Documentation

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

Definition at line 608 of file syst_counts_v2.cxx.

Referenced by MakePlots(), and PrintTable().

void GetCounts ( double  lumi,
vector< TString >  sysnames,
TString  method,
TString  baseline,
small_tree_quick tree,
vector< vector< vector< double > > > &  finalcounts,
vector< vector< vector< double > > > &  errors,
vector< vector< TString > >  bins_by_region,
vector< hfeats hists,
vector< vector< TH1F * > > &  h 
)
double GetWeight ( small_tree_quick tree,
TString  sysname,
int  ivar 
)
int LookUpBin ( small_tree_quick tree,
int  region,
vector< 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 
)
int main ( int  argc,
char *  argv[] 
)
void MakePlots ( TString  axisname,
vector< int >  numerator_regions,
vector< int >  denominator_regions,
vector< vector< vector< double > > >  counts,
vector< vector< vector< double > > >  errors,
vector< vector< TString > >  bins_by_region,
TString  baseline,
TString  method,
vector< TString >  sysnames,
int  sysnum,
vector< double > &  delkappas 
)
void OverlayHists ( vector< TH1F * >  h,
hfeats  hist,
TString  method,
TString  sysname,
TString  baseline 
)
void OverlayHistsmT ( vector< TH1F * >  h,
hfeats  hist,
TString  method,
TString  sysname,
TString  baseline 
)
void PrintTable ( TString  method,
vector< vector< vector< double > > >  ttbar_counts,
vector< vector< vector< double > > >  ttbar_errors,
vector< vector< vector< double > > >  ttbar_counts_dilep,
vector< vector< vector< double > > >  other_counts,
vector< vector< vector< double > > >  other_counts_dilep,
vector< vector< double > >  delkappas,
vector< 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 927 of file syst_counts_v2.cxx.

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