|
ra4_macros
bede988c286599a3a84b77a4d788ac0a971e89f9
|
#include <vector>#include "TString.h"#include "TH1D.h"#include "TRandom3.h"#include "TChain.h"#include "small_tree_full.hpp"Go to the source code of this file.
Classes | |
| struct | pfeats |
| class | hfeats |
| class | sfeats |
| class | sysfeats |
Namespaces | |
| ra4 | |
| dps | |
Enumerations | |
| enum | { ra4::c_t1tttt = 2, ra4::c_tt_1l = 2000, ra4::c_tt_2l = 2006, ra4::c_wjets = 2001, ra4::c_singlet = kGreen+3, ra4::c_ttv = 2002, ra4::c_other = kBlue+4 } |
| enum | { dps::c_tt_1l = 2012, dps::c_tt_2l = 2011, dps::c_wjets = 2018, dps::c_singlet = 2015, dps::c_qcd = 2020, dps::c_other = 2019 } |
Functions | |
| void | calc_chi2_diff (TH1D *histo1, TH1D *histo2, float &chi2, int &ndof, float &pvalue, float *average) |
| void | calc_chi2 (TH1D *histo, float &chi2, int &ndof, float &pvalue, float &average) |
| void | dump_event (small_tree_full &tree, int entry) |
| long | getYieldErr (TChain &tree, TString cut, double &yield, double &uncertainty) |
| void | plot_distributions (std::vector< sfeats > Samples, std::vector< hfeats > vars, TString luminosity="10", TString filetype=".eps", TString namestyle="LargeLabels", TString dir="1d", bool doRatio=false) |
| void | plot_2D_distributions (std::vector< sfeats > Samples, std::vector< hfeats > vars, TString luminosity, TString filetype, TString namestyle, TString dir) |
| TString | cuts2title (TString title) |
| TString | invertcut (TString cut) |
| TString | format_tag (TString tag) |
| double | gsl_ran_gamma (const double a, const double b, TRandom3 &rand) |
| double | intGaus (double mean, double sigma, double minX, double maxX) |
| double | calcKappa (std::vector< std::vector< float > > &entries, std::vector< std::vector< float > > &weights, std::vector< float > &powers, float &mSigma, float &pSigma, bool do_data=false, bool verbose=false, bool do_plot=false, int nrep=100000) |
| float | Efficiency (float den, float num, float &errup, float &errdown) |
| void calc_chi2 | ( | TH1D * | histo, |
| float & | chi2, | ||
| int & | ndof, | ||
| float & | pvalue, | ||
| float & | average | ||
| ) |
Definition at line 922 of file utilities_macros.cpp.
| void calc_chi2_diff | ( | TH1D * | histo1, |
| TH1D * | histo2, | ||
| float & | chi2, | ||
| int & | ndof, | ||
| float & | pvalue, | ||
| float * | average | ||
| ) |
Definition at line 946 of file utilities_macros.cpp.
| double calcKappa | ( | std::vector< std::vector< float > > & | entries, |
| std::vector< std::vector< float > > & | weights, | ||
| std::vector< float > & | powers, | ||
| float & | mSigma, | ||
| float & | pSigma, | ||
| bool | do_data = false, |
||
| bool | verbose = false, |
||
| bool | do_plot = false, |
||
| int | nrep = 100000 |
||
| ) |
Definition at line 1070 of file utilities_macros.cpp.
References gsl_ran_gamma(), intGaus(), anonymous_namespace{make_rpv_datacard.cxx}::nbins, anonymous_namespace{kappa_variations.cxx}::nrep, styles::setDefaultStyle(), and sysfeats::weights.
| TString cuts2title | ( | TString | title | ) |
Definition at line 640 of file utilities_macros.cpp.
Referenced by plot_2D_distributions(), and plot_distributions().
| void dump_event | ( | small_tree_full & | tree, |
| int | entry | ||
| ) |
Definition at line 988 of file utilities_macros.cpp.
References small_tree::event(), small_tree_full::GetEntry(), dps::light_blue(), small_tree_full::mc_eta(), small_tree_full::mc_id(), small_tree_full::mc_mom(), small_tree_full::mc_phi(), small_tree_full::mc_pt(), dps::med_blue(), small_tree_full::ntruels(), small_tree_full::ntruleps(), small_tree_full::ntrumus(), small_tree_full::ntrutaush(), small_tree_full::ntrutausl(), ra4::penn_red(), dps::purple(), dps::red(), ra4::seal_brown(), ra4::sig_gold(), ra4::sig_teal(), dps::skype_green(), ra4::tar_heel_blue(), ra4::tcu_purple(), small_tree_full::tks_eta(), small_tree_full::tks_from_w(), small_tree_full::tks_id(), small_tree_full::tks_is_primary(), small_tree_full::tks_phi(), small_tree_full::tks_pt(), small_tree_full::tks_tru_id(), ra4::ucsb_blue(), ra4::ucsb_gold(), dps::ucsb_gold(), ra4::uf_orange(), and ra4::uo_green().
| float Efficiency | ( | float | den, |
| float | num, | ||
| float & | errup, | ||
| float & | errdown | ||
| ) |
Definition at line 1174 of file utilities_macros.cpp.
| TString format_tag | ( | TString | tag | ) |
Definition at line 870 of file utilities_macros.cpp.
References sysfeats::bincut(), parse_card::file, sysfeats::push_back(), sfeats::sfeats(), sysfeats::size(), sysfeats::sysfeats(), anonymous_namespace{table_regions.cxx}::tag, hfeats::tag, and sysfeats::weight().
Referenced by invertcut().
| long getYieldErr | ( | TChain & | tree, |
| TString | cut, | ||
| double & | yield, | ||
| double & | uncertainty | ||
| ) |
Definition at line 979 of file utilities_macros.cpp.
| double gsl_ran_gamma | ( | const double | a, |
| const double | b, | ||
| TRandom3 & | rand | ||
| ) |
Definition at line 1036 of file utilities_macros.cpp.
References efficiency_map::c.
Referenced by calcKappa().
| double intGaus | ( | double | mean, |
| double | sigma, | ||
| double | minX, | ||
| double | maxX | ||
| ) |
Definition at line 1029 of file utilities_macros.cpp.
Referenced by calcKappa().
| TString invertcut | ( | TString | cut | ) |
Definition at line 712 of file utilities_macros.cpp.
References hfeats::format_tag(), format_tag(), hfeats::hfeats(), anonymous_namespace{make_rpv_datacard.cxx}::nbins, pfeats::pfeats(), and anonymous_namespace{table_regions.cxx}::tag.
| void plot_2D_distributions | ( | std::vector< sfeats > | Samples, |
| std::vector< hfeats > | vars, | ||
| TString | luminosity, | ||
| TString | filetype, | ||
| TString | namestyle, | ||
| TString | dir | ||
| ) |
Definition at line 539 of file utilities_macros.cpp.
References cuts2title(), parse_card::file, rpv::luminosity, styles::nDivisions, and styles::setDefaultStyle().
| void plot_distributions | ( | std::vector< sfeats > | Samples, |
| std::vector< hfeats > | vars, | ||
| TString | luminosity = "10", |
||
| TString | filetype = ".eps", |
||
| TString | namestyle = "LargeLabels", |
||
| TString | dir = "1d", |
||
| bool | doRatio = false |
||
| ) |
Definition at line 39 of file utilities_macros_rohan.cpp.
References cuts2title(), parse_card::file, rpv_bkg_syst::leg, rpv::luminosity, anonymous_namespace{make_rpv_datacard.cxx}::nbins, efficiency_map::num, and RoundNumber().
1.8.11