DESY Hbb Analysis Framework
|
#include <TriggerObject.h>
Public Member Functions | |
TriggerObject () | |
TriggerObject (const float &pt, const float &eta, const float &phi, const float &e) | |
int | type () const |
returns the type of the trigger object (L1mu, L1jet, hltmu, etc) More... | |
void | type (const int &) |
~TriggerObject () | |
![]() | |
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 | |
int | type_ |
![]() | |
std::map< std::string, const Candidate * > | matched_ |
map of matched candidates More... | |
TLorentzVector | p4_ |
the 4-momentum More... | |
float | q_ |
the charge More... | |
Definition at line 34 of file TriggerObject.h.
TriggerObject::TriggerObject | ( | ) |
Definition at line 22 of file TriggerObject.cc.
TriggerObject::TriggerObject | ( | const float & | pt, |
const float & | eta, | ||
const float & | phi, | ||
const float & | e | ||
) |
Definition at line 25 of file TriggerObject.cc.
TriggerObject::~TriggerObject | ( | ) |
Definition at line 29 of file TriggerObject.cc.
int TriggerObject::type | ( | ) | const |
returns the type of the trigger object (L1mu, L1jet, hltmu, etc)
Definition at line 40 of file TriggerObject.cc.
References type_.
Referenced by analysis::tools::PhysicsObjectTree< Object >::collection(), and type().
void TriggerObject::type | ( | const int & | type | ) |
Definition at line 43 of file TriggerObject.cc.
|
protected |
Definition at line 49 of file TriggerObject.h.
Referenced by type().