ra4_macros
bede988c286599a3a84b77a4d788ac0a971e89f9
|
#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" |
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 | ||
) |
Definition at line 355 of file syst_counts_v2.cxx.
References Contains(), small_tree::GetBranchValue(), small_tree::GetEntries(), small_tree_quick::GetEntry(), GetWeight(), small_tree::ht(), Timer::Iterate(), LookUpBin(), LookUpRegion(), small_tree::met(), ra4::minjets(), anonymous_namespace{make_rpv_datacard.cxx}::nbins, small_tree::njets(), small_tree::PassString(), sqr(), Timer::Start(), small_tree_quick::trutop1_phi(), small_tree_quick::trutop1_pt(), small_tree_quick::trutop2_phi(), small_tree_quick::trutop2_pt(), and small_tree::weight().
Referenced by main().
double GetWeight | ( | small_tree_quick & | tree, |
TString | sysname, | ||
int | ivar | ||
) |
Definition at line 268 of file syst_counts_v2.cxx.
References small_tree::mt(), small_tree_quick::ntruleps(), small_tree_quick::ntrumeisr(), small_tree_quick::trutop1_phi(), small_tree_quick::trutop1_pt(), small_tree_quick::trutop2_phi(), and small_tree_quick::trutop2_pt().
Referenced by GetCounts().
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 | ||
) |
Definition at line 634 of file syst_counts_v2.cxx.
References small_tree_quick::mj(), ra4::mjthresh(), small_tree::mt(), small_tree::nels(), and small_tree::nmus().
Referenced by GetCounts().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 35 of file syst_counts_v2.cxx.
References small_tree::Add(), anonymous_namespace{scatter_mj_mt.cxx}::compressed, GetCounts(), small_tree::GetEntries(), efficiency_map::lumi, MakePlots(), anonymous_namespace{make_card.cxx}::method, ra4::ntuple_date(), OverlayHists(), OverlayHistsmT(), and PrintTable().
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 | ||
) |
Definition at line 671 of file syst_counts_v2.cxx.
References cuts2title(), FindSuperBin(), format_tag(), parse_card::kappa, rpv_bkg_syst::leg, efficiency_map::npoints, efficiency_map::num, and sqr().
Referenced by main().
void OverlayHists | ( | vector< TH1F * > | h, |
hfeats | hist, | ||
TString | method, | ||
TString | sysname, | ||
TString | baseline | ||
) |
Definition at line 495 of file syst_counts_v2.cxx.
References hfeats::cuts, cuts2title(), format_tag(), rpv_bkg_syst::leg, styles::setDefaultStyle(), hfeats::title, and hfeats::varname.
Referenced by main().
void OverlayHistsmT | ( | vector< TH1F * > | h, |
hfeats | hist, | ||
TString | method, | ||
TString | sysname, | ||
TString | baseline | ||
) |
Definition at line 543 of file syst_counts_v2.cxx.
References hfeats::cuts, cuts2title(), format_tag(), rpv_bkg_syst::leg, styles::setDefaultStyle(), hfeats::title, and hfeats::varname.
Referenced by main().
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().