DESY Hbb Analysis Framework
|
#include <MuonAnalyser.h>
Public Member Functions | |
virtual bool | analysisWithMuons () |
float | btag (const Muon &, const std::string &) |
virtual void | fillMuonHistograms () |
MuonAnalyser () | |
constructors More... | |
MuonAnalyser (int argc, char *argv[]) | |
virtual void | muonHistograms (const std::string &, const int &n=1) |
std::vector< std::shared_ptr< Muon > > | muons () |
virtual bool | onlineL1MuonMatching (const int &) |
virtual bool | onlineL3MuonMatching (const int &) |
std::vector< std::shared_ptr< Muon > > | onlineMatchedMuons () |
virtual bool | onlineMuonMatching () |
std::vector< std::shared_ptr< Muon > > | selectedMuons () |
virtual bool | selectionMuon (const int &) |
virtual bool | selectionMuonDr (const int &r1, const int &r2) |
Given the rankings r1 and r2 of two jets, it returns whether the jets passes the delta_R selection; the threshold delta is passed by the configuration file. More... | |
virtual bool | selectionMuonDr (const int &r1, const int &r2, const float &delta) |
Given the rankings r1 and r2 of two jets, it returns whether the jets passes the delta_R selection; the threshold delta is passed as an argument (if delta <= 0, |delta| = delta_min; else |delta| = delta_max ) More... | |
virtual bool | selectionMuonId () |
virtual bool | selectionMuons () |
virtual bool | selectionNMuons () |
~MuonAnalyser () | |
desctructor More... | |
![]() | |
void | actionApplyPileupWeight (const int &var=0) |
apply pileup weight given a systematic variation More... | |
void | analyserTree () |
root tree More... | |
std::shared_ptr< Analysis > | analysis () |
returns pointer to Analysis object More... | |
BaseAnalyser () | |
constructor More... | |
BaseAnalyser (int argc, char *argv[]) | |
constructor More... | |
std::string | basename (const std::string &) |
returns the basename of a path More... | |
std::map< std::string, std::shared_ptr< TGraphAsymmErrors > > | btagEfficiencies () const |
std::shared_ptr< Config > | config () |
returns pointer to Config object More... | |
float | crossSection () const |
returns cross section More... | |
int | cutflow () |
get cutflow index More... | |
void | cutflow (const int &) |
set cutflow index More... | |
void | cutflow (const std::string &label, const bool &ok=true) |
create and update cutflow entry in the cutflow histogram More... | |
virtual bool | event (const int &) |
event entry to be readout and processed More... | |
void | fillAnalyserTree () |
fill root tree More... | |
void | fillPileupHistogram () |
fills pileup histogram More... | |
void | generatorWeight () |
generator weight More... | |
bool | genJetsAnalysis () const |
returns whether analysis of gen jets can be done More... | |
bool | genParticlesAnalysis () const |
returns whether analysis of gen particles can be done More... | |
std::shared_ptr< TH1F > | histogram (const std::string &) |
returns a given 1D histogram More... | |
std::map< std::string, std::shared_ptr< TH1F > > | histograms () |
returns all 1D histograms More... | |
virtual void | histograms (const std::string &, const int &) |
create n histograms of a given type More... | |
int | nEvents () |
number of events to be processed More... | |
std::shared_ptr< TFile > | output () |
returns pointer to output root file More... | |
void | pileupHistogram () |
creates pileup histogram More... | |
float | pileupWeight (const float &truepu, const int &var) const |
returns pileup weight given the true pileup and uncertainty variation in values of sigma More... | |
std::shared_ptr< PileupWeight > | pileupWeights () const |
returns pointer to pileup weights (MC-only) More... | |
void | scale (const float &) |
sets a scale More... | |
int | seed () |
returns a seed for random number generator More... | |
int | seed (const std::string &) |
reads a file containing a seed and returns the seed or -1 if fails More... | |
void | seed (const int &) |
sets a seed for random number generators More... | |
bool | triggerEmulated (const std::string &) |
return status of an emulated l1 trigger More... | |
virtual bool | triggerEmulation (const std::string &, const int &, const float &, const float &, const std::string &) |
emulate l1 trigger More... | |
std::map< std::string, bool > | triggersEmulated () |
return status of all emulated l1 triggers More... | |
float | trueInteractions () const |
returns true number of interactions More... | |
float | weight () |
returns event weight More... | |
void | weight (const float &) |
sets event weight More... | |
virtual | ~BaseAnalyser () |
desctructor More... | |
Protected Attributes | |
std::map< std::string, std::shared_ptr< BTagCalibrationReader > > | bsf_reader_ |
std::vector< std::shared_ptr< Muon > > | muons_ |
bool | muonsanalysis_ |
std::vector< std::shared_ptr< Muon > > | onlineMatchedMuons_ |
std::vector< std::shared_ptr< Muon > > | selectedMuons_ |
![]() | |
std::shared_ptr< TTree > | analyser_tree_ |
output tree More... | |
std::shared_ptr< Analysis > | analysis_ |
Analysis objects. More... | |
std::map< std::string, std::shared_ptr< TGraphAsymmErrors > > | btageff_ |
std::shared_ptr< Config > | config_ |
Config objects. More... | |
int | cutflow_ |
Cutflow index. More... | |
bool | genjetsanalysis_ |
bool | genpartsanalysis_ |
std::map< std::string, std::shared_ptr< TH1F > > | h1_ |
1D histograms mapping More... | |
std::map< std::string, std::shared_ptr< TH2F > > | h2_ |
2D histograms mapping More... | |
std::shared_ptr< TFile > | hout_ |
output root file More... | |
bool | isData_ |
flag for DATA sample More... | |
bool | isMC_ |
flag for MC sample More... | |
bool | istruepu_ |
true pileup More... | |
std::string | puw_label_ |
pileup weight label More... | |
std::shared_ptr< PileupWeight > | puweights_ |
pileup weight More... | |
float | scale_ |
overall scaling More... | |
int | seed_ |
seed value More... | |
std::map< std::string, bool > | trg_emul_ |
emulated triggers More... | |
float | weight_ |
event weight More... | |
float | xsection_ |
cross section More... | |
Definition at line 35 of file MuonAnalyser.h.
MuonAnalyser::MuonAnalyser | ( | ) |
MuonAnalyser::MuonAnalyser | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 24 of file MuonAnalyser.cc.
References analysis::tools::BaseAnalyser::analysis_, analysis::tools::BaseAnalyser::config_, and muonsanalysis_.
MuonAnalyser::~MuonAnalyser | ( | ) |
desctructor
Definition at line 32 of file MuonAnalyser.cc.
|
virtual |
Definition at line 44 of file MuonAnalyser.cc.
References analysis::tools::BaseAnalyser::analysis_, analysis::tools::BaseAnalyser::config_, analysis::tools::BaseAnalyser::cutflow_, analysis::tools::BaseAnalyser::h1_, muons(), muons_, muonsanalysis_, onlineMatchedMuons_, selectedMuons_, analysis::tools::BaseAnalyser::triggerEmulation(), and analysis::tools::BaseAnalyser::weight_.
Referenced by analysis::tools::Analyser::event().
float analysis::tools::MuonAnalyser::btag | ( | const Muon & | , |
const std::string & | |||
) |
|
virtual |
Definition at line 406 of file MuonAnalyser.cc.
References analysis::tools::BaseAnalyser::config_, analysis::tools::BaseAnalyser::h1_, and selectedMuons_.
|
virtual |
Definition at line 133 of file MuonAnalyser.cc.
References analysis::tools::BaseAnalyser::h1_.
std::vector< std::shared_ptr< Muon > > MuonAnalyser::muons | ( | ) |
Definition at line 114 of file MuonAnalyser.cc.
References muons_.
Referenced by analysisWithMuons().
|
virtual |
Definition at line 335 of file MuonAnalyser.cc.
References analysis::tools::BaseAnalyser::config_, analysis::tools::BaseAnalyser::cutflow_, analysis::tools::BaseAnalyser::h1_, selectedMuons_, and analysis::tools::BaseAnalyser::weight_.
|
virtual |
Definition at line 370 of file MuonAnalyser.cc.
References analysis::tools::BaseAnalyser::config_, analysis::tools::BaseAnalyser::cutflow_, analysis::tools::BaseAnalyser::h1_, selectedMuons_, and analysis::tools::BaseAnalyser::weight_.
std::vector< std::shared_ptr< Muon > > MuonAnalyser::onlineMatchedMuons | ( | ) |
Definition at line 124 of file MuonAnalyser.cc.
References onlineMatchedMuons_.
|
virtual |
Definition at line 309 of file MuonAnalyser.cc.
References analysis::tools::BaseAnalyser::config_, analysis::tools::BaseAnalyser::cutflow_, analysis::tools::BaseAnalyser::h1_, muonsanalysis_, selectedMuons_, and analysis::tools::BaseAnalyser::weight_.
Referenced by main(), and analysis::mssmhbb::MssmHbbAnalyser::muonSelection().
std::vector< std::shared_ptr< Muon > > MuonAnalyser::selectedMuons | ( | ) |
Definition at line 119 of file MuonAnalyser.cc.
References selectedMuons_.
|
virtual |
Definition at line 148 of file MuonAnalyser.cc.
References analysis::tools::BaseAnalyser::config_, analysis::tools::BaseAnalyser::cutflow_, analysis::tools::BaseAnalyser::h1_, selectedMuons_, and analysis::tools::BaseAnalyser::weight_.
|
virtual |
Given the rankings r1 and r2 of two jets, it returns whether the jets passes the delta_R selection; the threshold delta is passed by the configuration file.
Definition at line 285 of file MuonAnalyser.cc.
References analysis::tools::BaseAnalyser::config_.
|
virtual |
Given the rankings r1 and r2 of two jets, it returns whether the jets passes the delta_R selection; the threshold delta is passed as an argument (if delta <= 0, |delta| = delta_min; else |delta| = delta_max )
Definition at line 261 of file MuonAnalyser.cc.
References analysis::tools::BaseAnalyser::config_, analysis::tools::BaseAnalyser::cutflow(), and selectedMuons_.
|
virtual |
Definition at line 217 of file MuonAnalyser.cc.
References analysis::tools::BaseAnalyser::config_, analysis::tools::BaseAnalyser::cutflow_, analysis::tools::BaseAnalyser::h1_, muonsanalysis_, selectedMuons_, and analysis::tools::BaseAnalyser::weight_.
Referenced by main(), and analysis::tools::Analyser::preselection().
|
virtual |
Definition at line 171 of file MuonAnalyser.cc.
References analysis::tools::BaseAnalyser::config_, analysis::tools::BaseAnalyser::cutflow_, analysis::tools::BaseAnalyser::h1_, muonsanalysis_, selectedMuons_, and analysis::tools::BaseAnalyser::weight_.
Referenced by main(), and analysis::mssmhbb::MssmHbbAnalyser::muonSelection().
|
virtual |
Definition at line 244 of file MuonAnalyser.cc.
References analysis::tools::BaseAnalyser::config_, analysis::tools::BaseAnalyser::cutflow_, analysis::tools::BaseAnalyser::h1_, muonsanalysis_, selectedMuons_, and analysis::tools::BaseAnalyser::weight_.
Referenced by main(), and analysis::mssmhbb::MssmHbbAnalyser::muonSelection().
|
protected |
Definition at line 52 of file MuonAnalyser.h.
|
protected |
Definition at line 46 of file MuonAnalyser.h.
Referenced by analysisWithMuons(), and muons().
|
protected |
Definition at line 50 of file MuonAnalyser.h.
Referenced by analysisWithMuons(), MuonAnalyser(), analysis::mssmhbb::MssmHbbAnalyser::muonJet(), analysis::tools::Analyser::muonJet(), onlineMuonMatching(), selectionMuonId(), selectionMuons(), and selectionNMuons().
|
protected |
Definition at line 48 of file MuonAnalyser.h.
Referenced by analysisWithMuons(), and onlineMatchedMuons().
|
protected |
Definition at line 47 of file MuonAnalyser.h.
Referenced by analysisWithMuons(), fillMuonHistograms(), analysis::mssmhbb::MssmHbbAnalyser::muonJet(), analysis::tools::Analyser::muonJet(), onlineL1MuonMatching(), onlineL3MuonMatching(), onlineMuonMatching(), selectedMuons(), selectionMuon(), selectionMuonDr(), selectionMuonId(), selectionMuons(), and selectionNMuons().