Update 'Utils.hpp'
parent
1308074972
commit
630d079dbf
71
Utils.hpp.md
71
Utils.hpp.md
@ -1,6 +1,73 @@
|
||||
In this file, various helper functions are defined. Unfortunately, as we are trying to compile and run things within ROOT, it is orders of magnitute easier to have the funcitons defined fully in the header. Including cross-refrences with [[Paths.hpp|Paths.hpp]].
|
||||
|
||||
|
||||
## Table of Contents
|
||||
|
||||
|
||||
* [Global variables:](#global-variables)
|
||||
* [Number of generated MC events](#number-of-generated-mc-events)
|
||||
* [Generator tables](#generator-tables)
|
||||
* [Yields and their errors](#yields-and-their-errors)
|
||||
* [Functions](#functions)
|
||||
* [Basic names and trees](#basic-names-and-trees)
|
||||
* [string correct_magnet_string()](#string-correct_magnet_string)
|
||||
* [string treeName()](#string-treename)
|
||||
* [vector <string> get_magnet_vector()](#vector-string-get_magnet_vector)
|
||||
* [TChain *get_basic_TChain()](#tchain-get_basic_tchain)
|
||||
* [TChain *get_weighted_TChain()](#tchain-get_weighted_tchain)
|
||||
* [TChain *get_BDT_TChain()](#tchain-get_bdt_tchain)
|
||||
* [TChain *get_BDT_TChain()](#tchain-get_bdt_tchain-1)
|
||||
* [TChain *get_FinalOutput_TChain()](#tchain-get_finaloutput_tchain)
|
||||
* [string getTMcut()](#string-gettmcut)
|
||||
* [string getJpsicut()](#string-getjpsicut)
|
||||
* [string getMuMucut()](#string-getmumucut)
|
||||
* [string getFullCut()](#string-getfullcut)
|
||||
* [string getAloneBranch()](#string-getalonebranch)
|
||||
* [string getMultipleCut()](#string-getmultiplecut)
|
||||
* [string getFinalCut()](#string-getfinalcut)
|
||||
* [Sanity checks](#sanity-checks)
|
||||
* [string checkIf2015MC()](#string-checkif2015mc)
|
||||
* [bool checkMC()](#bool-checkmc)
|
||||
* [bool checkMC()](#bool-checkmc-1)
|
||||
* [bool checkQ2Range()](#bool-checkq2range)
|
||||
* [bool checkTM()](#bool-checktm)
|
||||
* [bool checkKshort()](#bool-checkkshort)
|
||||
* [bool checkRefYear()](#bool-checkrefyear)
|
||||
* [bool checkEntries()](#bool-checkentries)
|
||||
* [bool checkYear()](#bool-checkyear)
|
||||
* [bool checkRun()](#bool-checkrun)
|
||||
* [Names and tags](#names-and-tags)
|
||||
* [string getTMtag()](#string-gettmtag)
|
||||
* [string getTMtag()](#string-gettmtag-1)
|
||||
* [string getWeightName()](#string-getweightname)
|
||||
* [std::string getDataTypeTag()](#stdstring-getdatatypetag)
|
||||
* [string getDataTypeTag()](#string-getdatatypetag)
|
||||
* [string getYearRunTag()](#string-getyearruntag)
|
||||
* [Similarly populated bins](#similarly-populated-bins)
|
||||
* [void getSimilarlyPopulatedBins()](#void-getsimilarlypopulatedbins)
|
||||
* [void getSimilarlyPopulatedBinsVar()](#void-getsimilarlypopulatedbinsvar)
|
||||
* [Getting results from a RooFit file](#getting-results-from-a-roofit-file)
|
||||
* [RooFitResult* getResult()](#roofitresult-getresult)
|
||||
* [RooRealVar* getVarFromResult()](#roorealvar-getvarfromresult)
|
||||
* [double getBplusMeanFromResult()](#double-getbplusmeanfromresult)
|
||||
* [double getSigYield()](#double-getsigyield)
|
||||
* [double getSigYieldErr()](#double-getsigyielderr)
|
||||
* [double getBkgYield()](#double-getbkgyield)
|
||||
* [double getBkgYieldErr()](#double-getbkgyielderr)
|
||||
* [double getEffSigma()](#double-geteffsigma)
|
||||
* [histogram/graph helpers](#histogramgraph-helpers)
|
||||
* [TH1D *convertTGraph()](#th1d-converttgraph)
|
||||
* [Numbers of generated events](#numbers-of-generated-events)
|
||||
* [double get_generated_events()](#double-get_generated_events)
|
||||
* [int get_position_from_year()](#int-get_position_from_year)
|
||||
* [int get_gen_evts()](#int-get_gen_evts)
|
||||
* [int get_gen_evts()](#int-get_gen_evts-1)
|
||||
* [int get_selected_evts()](#int-get_selected_evts)
|
||||
* [int get_selected_evts_err()](#int-get_selected_evts_err)
|
||||
* [double get_selection_efficiency()](#double-get_selection_efficiency)
|
||||
* [double get_tables_eff()](#double-get_tables_eff)
|
||||
* [void print_all_yields_and_efficiencies()](#void-print_all_yields_and_efficiencies)
|
||||
|
||||
## Global variables:
|
||||
|
||||
### Number of generated MC events
|
||||
@ -20,7 +87,7 @@ In this file, various helper functions are defined. Unfortunately, as we are try
|
||||
* vector\<double> gen_tables_reference_efficiency_up
|
||||
|
||||
### Yields and their errors
|
||||
Obsolete now, the numbers are not up to date!
|
||||
Not sure whether the numbers are up to date!
|
||||
* vector\<int> yield_signal_events
|
||||
* vector\<int> yield_signal_events_err
|
||||
* vector\<int> yield_reference_events
|
||||
@ -37,8 +104,6 @@ Obsolete now, the numbers are not up to date!
|
||||
* vector\<int> yield_reference_events_notTM_unique_err
|
||||
|
||||
|
||||
|
||||
|
||||
# Functions
|
||||
## Basic names and trees
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user