|
DESY Hbb Analysis Framework
|
#include <Candidate.h>
Public Member Functions | |
| Candidate () | |
| default constructor More... | |
| Candidate (const float &pt, const float &eta, const float &phi, const float &e, const float &q) | |
| constructor from 4-momentum information More... | |
| Candidate (const float &px, const float &py, const float &pz) | |
| constructor from 3-momentum information More... | |
| Candidate (const float &px, const float &py, const float &pz, const float &q) | |
| constructor from 3-momentum and charge information More... | |
| float | deltaPhi (const Candidate &) const |
| returns the deltaPhi between this and another candidate More... | |
| float | deltaR (const Candidate &) const |
| returns the deltaR between this and another candidate More... | |
| float | e () const |
| returns the energy More... | |
| void | e (const float &) |
| sets the energy More... | |
| float | eta () const |
| returns the pseudorapidity More... | |
| float | m () const |
| returns the mass More... | |
| float | mass () const |
| returns the mass More... | |
| const Candidate * | matched (const std::string &name) |
| returns the pointer to the matched candidate object More... | |
| const Candidate * | matched (const std::string &name) const |
| returns the pointer to the matched candidate object More... | |
| virtual bool | matchTo (const std::vector< Candidate > *cands, const std::string &name, const float &deltaR=0.5) |
| function to match this candidate to another object from a list of pointers with a name More... | |
| virtual bool | matchTo (const std::vector< Candidate > *cands, const std::string &name, const float &delta_pT, const float &deltaR) |
| TVector3 | p3 () const |
| returns the 4-momentum (TVector3) More... | |
| TLorentzVector | p4 () const |
| returns the 4-momentum (TLorentzVector) More... | |
| void | p4 (const TLorentzVector &) |
| sets the 4-momentum (TLorentzVector) More... | |
| float | phi () const |
| returns the azimuthal angle More... | |
| float | pt () const |
| returns the transverse momentum More... | |
| float | px () const |
| returns the x component of the momentum More... | |
| void | px (const float &) |
| sets the x component of the momentum More... | |
| float | py () const |
| returns the y component of the momentum More... | |
| void | py (const float &) |
| sets the y component of the momentum More... | |
| float | pz () const |
| returns the z component of the momentum More... | |
| void | pz (const float &) |
| sets the z component of the momentum More... | |
| int | q () const |
| returns the charge More... | |
| void | q (const float &) |
| sets the charge More... | |
| void | unmatch (const std::string &) |
| unmatch a matched candidate object, i.e. set it to nullptr, useful to remove possible duplicated matching More... | |
| virtual | ~Candidate () |
| destructor More... | |
Protected Attributes | |
| std::map< std::string, const Candidate * > | matched_ |
| map of matched candidates More... | |
| TLorentzVector | p4_ |
| the 4-momentum More... | |
| float | q_ |
| the charge More... | |
Private Types | |
| typedef std::vector< Candidate > | Candidates |
Definition at line 37 of file Candidate.h.
|
private |
Definition at line 38 of file Candidate.h.
| Candidate::Candidate | ( | ) |
| Candidate::Candidate | ( | const float & | pt, |
| const float & | eta, | ||
| const float & | phi, | ||
| const float & | e, | ||
| const float & | q | ||
| ) |
constructor from 4-momentum information
Definition at line 24 of file Candidate.cc.
| Candidate::Candidate | ( | const float & | px, |
| const float & | py, | ||
| const float & | pz | ||
| ) |
constructor from 3-momentum information
Definition at line 30 of file Candidate.cc.
| Candidate::Candidate | ( | const float & | px, |
| const float & | py, | ||
| const float & | pz, | ||
| const float & | q | ||
| ) |
constructor from 3-momentum and charge information
Definition at line 36 of file Candidate.cc.
|
virtual |
| float Candidate::deltaPhi | ( | const Candidate & | cand | ) | const |
returns the deltaPhi between this and another candidate
Definition at line 141 of file Candidate.cc.
| float Candidate::deltaR | ( | const Candidate & | cand | ) | const |
returns the deltaR between this and another candidate
Definition at line 140 of file Candidate.cc.
Referenced by analysis::tools::Jet::addMuon(), analysis::tools::Jet::jerMatch(), main(), and matchTo().
| float Candidate::e | ( | ) | const |
returns the energy
Definition at line 136 of file Candidate.cc.
References p4_.
Referenced by analysis::tools::Jet::applyBjetRegression(), main(), and analysis::tools::BaseAnalyser::triggerEmulation().
| void Candidate::e | ( | const float & | e | ) |
| float Candidate::eta | ( | ) | const |
returns the pseudorapidity
Definition at line 134 of file Candidate.cc.
References p4_.
Referenced by analysis::tools::Jet::applyBjetRegression(), analysis::tools::Analysis::btagEfficiency(), analysis::tools::JetAnalyser::fillJetHistograms(), analysis::tools::Jet::jerPtResolution(), analysis::tools::Jet::jerSF(), analysis::tools::Jet::jerSFdown(), analysis::tools::Jet::jerSFup(), main(), and analysis::tools::BaseAnalyser::triggerEmulation().
| float Candidate::m | ( | ) | const |
returns the mass
Definition at line 137 of file Candidate.cc.
References p4_.
Referenced by analysis::tools::Jet::addMuon(), analysis::tools::JetAnalyser::fillJetHistograms(), analysis::mssmhbb::MssmHbbAnalyser::fillMssmHbbHistograms(), analysis::mssmhbb::MssmHbbAnalyser::fillMssmHbbTree(), and analysis::tools::JetAnalyser::selectionDiJetMass().
| float Candidate::mass | ( | ) | const |
| const Candidate * Candidate::matched | ( | const std::string & | name | ) |
returns the pointer to the matched candidate object
Definition at line 147 of file Candidate.cc.
References matched_, and nano_94X_2017_rereco31Mar18-v1::name.
Referenced by analysis::tools::Jet::jerMatch(), and main().
| const Candidate * Candidate::matched | ( | const std::string & | name | ) | const |
returns the pointer to the matched candidate object
Definition at line 148 of file Candidate.cc.
References matched_.
|
virtual |
function to match this candidate to another object from a list of pointers with a name
Definition at line 51 of file Candidate.cc.
References deltaR(), matched_, nano_94X_2017_rereco31Mar18-v1::name, and naf_submit::status().
|
virtual |
Definition at line 88 of file Candidate.cc.
References deltaR(), matched_, nano_94X_2017_rereco31Mar18-v1::name, pt(), and naf_submit::status().
| TVector3 Candidate::p3 | ( | ) | const |
| TLorentzVector Candidate::p4 | ( | ) | const |
returns the 4-momentum (TLorentzVector)
Definition at line 143 of file Candidate.cc.
References p4_.
Referenced by analysis::tools::Jet::addFSR(), analysis::tools::Collection< Object >::associatePartons(), analysis::tools::Jet::associatePartons(), deltaPhi(), deltaR(), and p4().
| void Candidate::p4 | ( | const TLorentzVector & | p4 | ) |
sets the 4-momentum (TLorentzVector)
Definition at line 156 of file Candidate.cc.
| float Candidate::phi | ( | ) | const |
returns the azimuthal angle
Definition at line 135 of file Candidate.cc.
References p4_.
Referenced by analysis::tools::Jet::applyBjetRegression(), analysis::tools::JetAnalyser::fillJetHistograms(), main(), and analysis::tools::BaseAnalyser::triggerEmulation().
| float Candidate::pt | ( | ) | const |
returns the transverse momentum
Definition at line 133 of file Candidate.cc.
References p4_.
Referenced by analysis::tools::Jet::applyBjetRegression(), analysis::tools::Jet::associatePartons(), analysis::tools::Analysis::btagEfficiency(), analysis::tools::JetAnalyser::fillJetHistograms(), analysis::tools::Jet::jerCorrections(), analysis::tools::Jet::jerMatch(), analysis::tools::Jet::jerPtResolution(), analysis::tools::Jet::jerSF(), analysis::tools::Jet::jerSFdown(), analysis::tools::Jet::jerSFup(), main(), matchTo(), pTordering(), and analysis::tools::BaseAnalyser::triggerEmulation().
| float Candidate::px | ( | ) | const |
returns the x component of the momentum
Definition at line 130 of file Candidate.cc.
References p4_.
Referenced by analysis::tools::MET::genP().
| void Candidate::px | ( | const float & | px | ) |
sets the x component of the momentum
Definition at line 157 of file Candidate.cc.
References p4_.
| float Candidate::py | ( | ) | const |
returns the y component of the momentum
Definition at line 131 of file Candidate.cc.
References p4_.
Referenced by analysis::tools::MET::genP().
| void Candidate::py | ( | const float & | py | ) |
sets the y component of the momentum
Definition at line 158 of file Candidate.cc.
References p4_.
| float Candidate::pz | ( | ) | const |
returns the z component of the momentum
Definition at line 132 of file Candidate.cc.
References p4_.
Referenced by analysis::tools::MET::genP().
| void Candidate::pz | ( | const float & | pz | ) |
sets the z component of the momentum
Definition at line 159 of file Candidate.cc.
References p4_.
| int Candidate::q | ( | ) | const |
returns the charge
Definition at line 139 of file Candidate.cc.
References q_.
Referenced by Candidate(), main(), and q().
| void Candidate::q | ( | const float & | q | ) |
| void Candidate::unmatch | ( | const std::string & | name | ) |
unmatch a matched candidate object, i.e. set it to nullptr, useful to remove possible duplicated matching
Definition at line 150 of file Candidate.cc.
References matched_, and nano_94X_2017_rereco31Mar18-v1::name.
|
protected |
map of matched candidates
Definition at line 116 of file Candidate.h.
|
protected |
the 4-momentum
Definition at line 114 of file Candidate.h.
Referenced by analysis::tools::Jet::addFSR(), analysis::tools::Jet::applyBjetRegression(), analysis::tools::Jet::applyJER(), Candidate(), analysis::tools::Composite< A, B >::Composite(), deltaPhi(), deltaR(), e(), eta(), analysis::tools::Jet::id(), analysis::tools::Jet::Jet(), m(), mass(), p3(), p4(), phi(), pt(), px(), py(), pz(), and analysis::tools::Jet::rmFSR().
|
protected |
the charge
Definition at line 112 of file Candidate.h.
Referenced by Candidate(), analysis::tools::Composite< A, B >::Composite(), and q().
1.8.11