#include <cutflowutil.h>
Public Member Functions | |
void | addCut (TString n) |
void | addEventList (int run, int lumi, unsigned long long evt) |
void | addHist1D (TH1D *h, std::function< float()> var, TString syst) |
void | addHist1DVec (TH1D *h, std::function< std::vector< float >()> var, std::function< std::vector< float >()> wgt, TString syst) |
void | addHist2D (TH2F *h, std::function< float()> varx, std::function< float()> vary, TString syst) |
void | addHist2DVec (TH2F *h, std::function< std::vector< float >()> varx, std::function< std::vector< float >()> vary, std::function< std::vector< float >()> elemwgt, TString syst) |
void | addSyst (TString syst) |
void | addSyst (TString syst, std::vector< TString > patterns, std::vector< TString > vetopatterns=std::vector< TString >()) |
void | clear () |
void | clear_passbits () |
void | clearEventList () |
CutTree (TString n) | |
void | evaluate (RooUtil::TTreeX &tx, TString cutsystname="", bool doeventlist=false, bool aggregated_pass=true, float aggregated_weight=1) |
void | evaluate_use_internal_variable (RooUtil::TTreeX &tx, TString cutsystname="", bool doeventlist=false, bool aggregated_pass=true, float aggregated_weight=1) |
void | evaluate_use_lambda (RooUtil::TTreeX &tx, TString cutsystname="", bool doeventlist=false, bool aggregated_pass=true, float aggregated_weight=1) |
void | evaluate_use_ttreex (RooUtil::TTreeX &tx, TString cutsystname="", bool doeventlist=false, bool aggregated_pass=true, float aggregated_weight=1) |
void | fillHistograms (TString syst, float extrawgt) |
CutTree & | getCut (TString n) |
std::vector< TString > | getCutList (TString n, std::vector< TString > cut_list=std::vector< TString >()) |
std::vector< TString > | getCutListBelow (TString n, std::vector< TString > cut_list=std::vector< TString >()) |
CutTree * | getCutPointer (TString n) |
std::vector< TString > | getEndCuts (std::vector< TString > endcuts=std::vector< TString >()) |
void | printCuts (int indent=0, std::vector< int > multichild=std::vector< int >()) |
void | printEventList () |
void | sortEventList () |
void | writeEventList (TString ofilename) |
~CutTree () | |
Public Attributes | |
std::vector< CutTree * > | children |
std::vector< std::tuple< int, int, unsigned long long > > | eventlist |
std::map< TString, std::vector< std::tuple< TH1D *, std::function< float()> > > > | hists1d |
std::map< TString, std::vector< std::tuple< TH1D *, std::function< std::vector< float >)>, std::function< std::vector< float >)> > > > | hists1dvec |
std::map< TString, std::vector< std::tuple< TH2F *, std::function< float()>, std::function< float()> > > > | hists2d |
std::map< TString, std::vector< std::tuple< TH2F *, std::function< std::vector< float >)>, std::function< std::vector< float >)>, std::function< std::vector< float >)> > > > | hists2dvec |
TString | name |
CutTree * | parent |
std::vector< CutTree * > | parents |
int | pass |
bool | pass_this_cut |
std::function< bool()> | pass_this_cut_func |
std::vector< TString > | systcutnames |
std::vector< CutTree * > | systcuts |
std::vector< int > | systpasses |
std::map< TString, CutTree * > | systs |
std::vector< float > | systweights |
float | weight |
float | weight_this_cut |
std::function< float()> | weight_this_cut_func |
Definition at line 76 of file cutflowutil.h.
|
inline |
|
inline |
Definition at line 113 of file cutflowutil.h.
References submitPVValidationJobs::child, and children.
|
inline |
Definition at line 181 of file cutflowutil.h.
References children, CutTree(), create_idmaps::n, and getGTfromDQMFile::obj.
|
inline |
Definition at line 516 of file cutflowutil.h.
References eventlist, and writedatasetfile::run.
|
inline |
Definition at line 203 of file cutflowutil.h.
References h, hists1d, push_back(), and ALCARECOEcalPhiSym_cff::var.
|
inline |
Definition at line 209 of file cutflowutil.h.
References h, hists1dvec, push_back(), and ALCARECOEcalPhiSym_cff::var.
|
inline |
Definition at line 218 of file cutflowutil.h.
References h, hists2d, and push_back().
|
inline |
Definition at line 224 of file cutflowutil.h.
References h, hists2dvec, and push_back().
|
inline |
Definition at line 187 of file cutflowutil.h.
References children, CutTree(), getGTfromDQMFile::obj, parent, parents, systcutnames, systcuts, systpasses, systs, and systweights.
Referenced by addSyst().
|
inline |
Definition at line 328 of file cutflowutil.h.
References addSyst(), children, name, topSingleLeptonDQM_PU_cfi::pattern, and relval_cleanedupgrade::veto.
|
inline |
Definition at line 322 of file cutflowutil.h.
References children, and pass.
|
inline |
Definition at line 344 of file cutflowutil.h.
References children, and pass.
Referenced by evaluate_use_internal_variable(), and evaluate_use_lambda().
|
inline |
Definition at line 515 of file cutflowutil.h.
References eventlist.
|
inline |
Definition at line 350 of file cutflowutil.h.
References evaluate_use_internal_variable(), evaluate_use_lambda(), and evaluate_use_ttreex().
|
inline |
Definition at line 425 of file cutflowutil.h.
References children, clear_passbits(), eventlist, RooUtil::TTreeX::getBranch(), RooUtil::TTreeX::hasBranch(), parent, pass, pass_this_cut, systs, and weight_this_cut.
Referenced by evaluate().
|
inline |
Definition at line 365 of file cutflowutil.h.
References children, clear_passbits(), eventlist, RooUtil::TTreeX::getBranch(), RooUtil::TTreeX::hasBranch(), mps_check::msg, name, parent, pass, pass_this_cut_func, systs, RooUtil::warning(), and weight_this_cut_func.
Referenced by evaluate().
|
inline |
Definition at line 463 of file cutflowutil.h.
References children, eventlist, RooUtil::TTreeX::getBranch(), RooUtil::TTreeX::hasBranch(), name, parent, pass, and systs.
Referenced by evaluate().
|
inline |
Definition at line 520 of file cutflowutil.h.
References children, h, hists1d, hists1dvec, hists2d, hists2dvec, mps_fire::i, mps_check::msg, or, pass, THist, mkLumiAveragedPlots::tuple, and RooUtil::warning().
|
inline |
Definition at line 263 of file cutflowutil.h.
References DummyCfis::c, RooUtil::error(), getCutPointer(), and create_idmaps::n.
Referenced by getCutList(), and getCutListBelow().
|
inline |
Definition at line 272 of file cutflowutil.h.
References DummyCfis::c, getCut(), create_idmaps::n, and groupFilesInBlocks::reverse.
|
inline |
Definition at line 303 of file cutflowutil.h.
References DummyCfis::c, children, getCut(), and create_idmaps::n.
|
inline |
Definition at line 248 of file cutflowutil.h.
References DummyCfis::c, children, create_idmaps::n, and name.
Referenced by getCut().
|
inline |
Definition at line 294 of file cutflowutil.h.
References children, and name.
|
inline |
Definition at line 119 of file cutflowutil.h.
References children, makeHLTPrescaleTable::delimiter, spr::find(), RecoTauValidation_cfi::header, mps_fire::i, validateAlignments::indent, submitPVResolutionJobs::key, SiStripPI::min, mps_check::msg, name, pass, RooUtil::print(), systs, and w().
|
inline |
Definition at line 161 of file cutflowutil.h.
References gather_cfg::cout, eventlist, mps_check::msg, name, RooUtil::print(), and writedatasetfile::run.
|
inline |
Definition at line 500 of file cutflowutil.h.
References a, b, eventlist, and jetUpdater_cfi::sort.
|
inline |
Definition at line 171 of file cutflowutil.h.
References eventlist, produceTPGParameters_beamv6_transparency_spikekill_2016_script::outFile, writedatasetfile::run, and mkLumiAveragedPlots::tuple.
std::vector<CutTree*> RooUtil::CutTree::children |
Definition at line 81 of file cutflowutil.h.
Referenced by data_sources.node::__str__(), addCut(), addSyst(), data_sources.node::child(), clear(), clear_passbits(), evaluate_use_internal_variable(), evaluate_use_lambda(), evaluate_use_ttreex(), fillHistograms(), getCutListBelow(), getCutPointer(), getEndCuts(), data_sources.node::is_leaf(), data_sources.node::left_child(), printCuts(), data_sources.node::right_child(), and ~CutTree().
std::vector<std::tuple<int, int, unsigned long long> > RooUtil::CutTree::eventlist |
Definition at line 111 of file cutflowutil.h.
Referenced by addEventList(), clearEventList(), evaluate_use_internal_variable(), evaluate_use_lambda(), evaluate_use_ttreex(), printEventList(), sortEventList(), and writeEventList().
std::map<TString, std::vector<std::tuple< TH1D *, std::function<float()> > > > RooUtil::CutTree::hists1d |
Definition at line 96 of file cutflowutil.h.
Referenced by addHist1D(), and fillHistograms().
std::map<TString, std::vector<std::tuple< TH1D *, std::function<std::vector<float>)>, std::function<std::vector<float>)> > > > RooUtil::CutTree::hists1dvec |
Definition at line 99 of file cutflowutil.h.
Referenced by addHist1DVec(), and fillHistograms().
std::map<TString, std::vector<std::tuple<TH2F*, std::function<float()>, std::function<float()> > > > RooUtil::CutTree::hists2d |
Definition at line 100 of file cutflowutil.h.
Referenced by addHist2D(), and fillHistograms().
std::map<TString, std::vector<std::tuple<TH2F*, std::function<std::vector<float>)>, std::function<std::vector<float>)>, std::function<std::vector<float>)> > > > RooUtil::CutTree::hists2dvec |
Definition at line 106 of file cutflowutil.h.
Referenced by addHist2DVec(), and fillHistograms().
TString RooUtil::CutTree::name |
Definition at line 78 of file cutflowutil.h.
Referenced by dirstructure.Directory::__create_pie_image(), dqm_interfaces.DirID::__eq__(), dirstructure.Directory::__get_full_path(), dirstructure.Comparison::__get_img_name(), dirstructure.Comparison::__make_image(), dirstructure.Directory::__repr__(), dqm_interfaces.DirID::__repr__(), dirstructure.Comparison::__repr__(), config.CFG::__str__(), addSyst(), dirstructure.Directory::calcStats(), validation.Sample::digest(), evaluate_use_lambda(), evaluate_use_ttreex(), utils.StatisticalTest::get_status(), getCutPointer(), getEndCuts(), VIDSelectorBase.VIDSelectorBase::initialize(), dirstructure.Directory::print_report(), printCuts(), and printEventList().
CutTree* RooUtil::CutTree::parent |
Definition at line 79 of file cutflowutil.h.
Referenced by addSyst(), evaluate_use_internal_variable(), evaluate_use_lambda(), and evaluate_use_ttreex().
std::vector<CutTree*> RooUtil::CutTree::parents |
Definition at line 80 of file cutflowutil.h.
Referenced by addSyst().
int RooUtil::CutTree::pass |
Definition at line 85 of file cutflowutil.h.
Referenced by clear(), clear_passbits(), evaluate_use_internal_variable(), evaluate_use_lambda(), evaluate_use_ttreex(), fillHistograms(), and printCuts().
bool RooUtil::CutTree::pass_this_cut |
Definition at line 89 of file cutflowutil.h.
Referenced by evaluate_use_internal_variable().
std::function<bool()> RooUtil::CutTree::pass_this_cut_func |
Definition at line 91 of file cutflowutil.h.
Referenced by evaluate_use_lambda().
std::vector<TString> RooUtil::CutTree::systcutnames |
Definition at line 82 of file cutflowutil.h.
Referenced by addSyst().
std::vector<CutTree*> RooUtil::CutTree::systcuts |
Definition at line 83 of file cutflowutil.h.
Referenced by addSyst().
std::vector<int> RooUtil::CutTree::systpasses |
Definition at line 87 of file cutflowutil.h.
Referenced by addSyst().
std::map<TString, CutTree*> RooUtil::CutTree::systs |
Definition at line 84 of file cutflowutil.h.
Referenced by addSyst(), evaluate_use_internal_variable(), evaluate_use_lambda(), evaluate_use_ttreex(), and printCuts().
std::vector<float> RooUtil::CutTree::systweights |
Definition at line 88 of file cutflowutil.h.
Referenced by addSyst().
float RooUtil::CutTree::weight |
Definition at line 86 of file cutflowutil.h.
Referenced by dirstructure.Directory::calcStats(), dirstructure.Directory::get_fail_rate(), dirstructure.Directory::get_null_rate(), dirstructure.Directory::get_skiped_rate(), dirstructure.Directory::get_success_rate(), and dirstructure.Directory::print_report().
float RooUtil::CutTree::weight_this_cut |
Definition at line 90 of file cutflowutil.h.
Referenced by evaluate_use_internal_variable().
std::function<float()> RooUtil::CutTree::weight_this_cut_func |
Definition at line 92 of file cutflowutil.h.
Referenced by evaluate_use_lambda().