ra4_draw  4bd0201e3d922d42bd545d4b045ed44db33454a4
Namespaces | Functions | Variables
table_preds.cxx File Reference
#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;})
 

Function Documentation

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[] 
)
int main ( int  argc,
char *  argv[] 
)
void plotKappa ( abcd_method abcd,
vector< vector< vector< float > > > &  kappas 
)
void printDebug ( abcd_method abcd,
vector< vector< GammaParams > > &  allyields,
TString  baseline,
vector< vector< vector< float > > > &  kappas,
vector< vector< vector< float > > > &  preds 
)
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 
)
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().

Variable Documentation

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().