ra4_draw
4bd0201e3d922d42bd545d4b045ed44db33454a4
|
#include <fstream>
#include <iostream>
#include <vector>
#include <ctime>
#include <iomanip>
#include <chrono>
#include <unistd.h>
#include <stdlib.h>
#include <getopt.h>
#include "TError.h"
#include "RooStats/NumberCountingUtils.h"
#include "TCanvas.h"
#include "TGraphAsymmErrors.h"
#include "TH1D.h"
#include "TLine.h"
#include "TLatex.h"
#include "TLegend.h"
#include "core/utilities.hpp"
#include "core/baby.hpp"
#include "core/process.hpp"
#include "core/named_func.hpp"
#include "core/plot_maker.hpp"
#include "core/palette.hpp"
#include "core/table.hpp"
#include "core/abcd_method.hpp"
#include "core/styles.hpp"
#include "core/plot_opt.hpp"
Go to the source code of this file.
Namespaces | |
anonymous_namespace{table_preds.cxx} | |
Functions | |
TString | printTable (abcd_method &abcd, vector< vector< GammaParams > > &allyields, vector< vector< vector< float > > > &kappas, vector< vector< vector< float > > > &preds, vector< shared_ptr< Process > > &proc_sigs) |
void | plotKappa (abcd_method &abcd, vector< vector< vector< float > > > &kappas) |
void | findPreds (abcd_method &abcd, vector< vector< GammaParams > > &allyields, vector< vector< vector< float > > > &kappas, vector< vector< vector< float > > > &preds) |
void | printDebug (abcd_method &abcd, vector< vector< GammaParams > > &allyields, TString baseline, vector< vector< vector< float > > > &kappas, vector< vector< vector< float > > > &preds) |
TString | Zbi (double Nobs, double Nbkg, double Eup_bkg, double Edown_bkg) |
void | GetOptions (int argc, char *argv[]) |
int | main (int argc, char *argv[]) |
Variables | |
bool | anonymous_namespace{table_preds.cxx}::only_mc = true |
bool | anonymous_namespace{table_preds.cxx}::only_kappa = false |
bool | anonymous_namespace{table_preds.cxx}::split_bkg = true |
bool | anonymous_namespace{table_preds.cxx}::only_dilepton = false |
bool | anonymous_namespace{table_preds.cxx}::do_leptons = false |
bool | anonymous_namespace{table_preds.cxx}::do_signal = true |
bool | anonymous_namespace{table_preds.cxx}::unblind = true |
bool | anonymous_namespace{table_preds.cxx}::debug = false |
bool | anonymous_namespace{table_preds.cxx}::do_ht = false |
TString | anonymous_namespace{table_preds.cxx}::skim = "standard" |
TString | anonymous_namespace{table_preds.cxx}::json = "2p6" |
TString | anonymous_namespace{table_preds.cxx}::only_method = "" |
TString | anonymous_namespace{table_preds.cxx}::mc_lumi = "40" |
float | anonymous_namespace{table_preds.cxx}::lumi =100. |
const NamedFunc | st ("st", [](const Baby &b) -> NamedFunc::ScalarType{float stvar=b.ht();for(const auto &pt:*(b.leps_pt())) stvar+=pt;return stvar;}) |
void findPreds | ( | abcd_method & | abcd, |
vector< vector< GammaParams > > & | allyields, | ||
vector< vector< vector< float > > > & | kappas, | ||
vector< vector< vector< float > > > & | preds | ||
) |
Definition at line 678 of file table_preds.cxx.
References abcd_method::bincuts, calcKappa(), abcd_method::indexBin(), and abcd_method::planecuts.
Referenced by main().
void GetOptions | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 758 of file table_preds.cxx.
References anonymous_namespace{table_preds.cxx}::debug, anonymous_namespace{table_preds.cxx}::do_ht, anonymous_namespace{table_preds.cxx}::do_leptons, anonymous_namespace{table_preds.cxx}::do_signal, anonymous_namespace{table_preds.cxx}::json, anonymous_namespace{table_preds.cxx}::mc_lumi, anonymous_namespace{table_preds.cxx}::only_dilepton, anonymous_namespace{table_preds.cxx}::only_kappa, anonymous_namespace{table_preds.cxx}::only_mc, anonymous_namespace{table_preds.cxx}::only_method, anonymous_namespace{table_preds.cxx}::skim, anonymous_namespace{table_preds.cxx}::split_bkg, and anonymous_namespace{table_preds.cxx}::unblind.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 74 of file table_preds.cxx.
References Process::background, Table::BackgroundYield(), Contains(), Process::data, Table::DataYield(), anonymous_namespace{table_preds.cxx}::debug, anonymous_namespace{table_preds.cxx}::do_signal, execute(), PlotMaker::Figures(), findPreds(), GetOptions(), HoursMinSec(), anonymous_namespace{table_preds.cxx}::json, anonymous_namespace{table_preds.cxx}::lumi, PlotMaker::MakePlots(), anonymous_namespace{table_preds.cxx}::mc_lumi, anonymous_namespace{table_2016-06-03_freeze_preapp_an.cxx}::method, run_2016-06-03_freeze_preapp_all_preds::methods, PlotMaker::min_print_, PlotMaker::multithreaded_, NamedFunc::Name(), anonymous_namespace{table_preds.cxx}::only_kappa, anonymous_namespace{table_preds.cxx}::only_mc, anonymous_namespace{table_preds.cxx}::only_method, plotKappa(), printDebug(), printTable(), PlotMaker::Push(), ReplaceAll(), Process::signal, anonymous_namespace{plot_2016-07-19_isr_susy_talk.cxx}::single_thread, anonymous_namespace{table_preds.cxx}::skim, anonymous_namespace{table_preds.cxx}::split_bkg, and Table::Yield().
void plotKappa | ( | abcd_method & | abcd, |
vector< vector< vector< float > > > & | kappas | ||
) |
Definition at line 507 of file table_preds.cxx.
References abcd_method::bincuts, PlotOpt::BottomMargin(), CodeToRootTex(), PlotOpt::LeftMargin(), PlotOpt::LegendEntryHeight(), abcd_method::method, abcd_method::planecuts, PlotOpt::RightMargin(), setPlotStyle(), and PlotOpt::TopMargin().
Referenced by main().
void printDebug | ( | abcd_method & | abcd, |
vector< vector< GammaParams > > & | allyields, | ||
TString | baseline, | ||
vector< vector< vector< float > > > & | kappas, | ||
vector< vector< vector< float > > > & | preds | ||
) |
Definition at line 733 of file table_preds.cxx.
References abcd_method::abcdcuts, abcd_method::allcuts, abcd_method::bincuts, abcd_method::indexBin(), abcd_method::method, abcd_method::planecuts, and RoundNumber().
Referenced by main().
TString printTable | ( | abcd_method & | abcd, |
vector< vector< GammaParams > > & | allyields, | ||
vector< vector< vector< float > > > & | kappas, | ||
vector< vector< vector< float > > > & | preds, | ||
vector< shared_ptr< Process > > & | proc_sigs | ||
) |
Definition at line 318 of file table_preds.cxx.
References abcd_method::abcdcuts, abcd_method::bincuts, anonymous_namespace{table_2016-06-03_freeze_preapp_an.cxx}::blind_s, abcd_method::caption, CodeToLatex(), anonymous_namespace{table_preds.cxx}::do_signal, abcd_method::indexBin(), abcd_method::int_nbnj, anonymous_namespace{table_preds.cxx}::lumi, abcd_method::method, anonymous_namespace{table_preds.cxx}::only_mc, abcd_method::planecuts, RoundNumber(), anonymous_namespace{table_preds.cxx}::skim, anonymous_namespace{table_preds.cxx}::split_bkg, anonymous_namespace{table_preds.cxx}::unblind, and Zbi().
Referenced by main().
TString Zbi | ( | double | Nobs, |
double | Nbkg, | ||
double | Eup_bkg, | ||
double | Edown_bkg | ||
) |
Definition at line 491 of file table_preds.cxx.
References RoundNumber(), and Significance().
Referenced by printTable().
const NamedFunc st("st",[](const Baby &b) -> NamedFunc::ScalarType{float stvar=b.ht();for(const auto &pt:*(b.leps_pt())) stvar+=pt;return stvar;}) |
Referenced by main().