#include <DataFormats/HLTReco/interface/TriggerObject.h>
Public Member Functions | |
float | energy () const |
float | et () const |
float | eta () const |
int | id () const |
getters | |
float | mass () const |
float | p () const |
reco::Particle | particle (reco::Particle::Charge q=0, const reco::Particle::Point &vertex=reco::Particle::Point(0, 0, 0), int status=0, bool integerCharge=true) const |
float | phi () const |
float | pt () const |
float | px () const |
float | py () const |
float | pz () const |
void | setEta (float eta) |
void | setId (int id) |
setters | |
void | setMass (float mass) |
void | setPhi (float phi) |
void | setPt (float pt) |
template<typename T> | |
TriggerObject (const T &o) | |
... and pdgId() | |
template<typename T> | |
TriggerObject (int id, const T &o) | |
any type T object implementing the methods pt(), eta(), phi(), mass() | |
TriggerObject (int id, float pt, float eta, float phi, float mass) | |
TriggerObject () | |
methods | |
Private Attributes | |
float | eta_ |
int | id_ |
data members - similar to DataFormats/Candidate/interface/Particle.h | |
float | mass_ |
float | phi_ |
float | pt_ |
4-momentum of physics object |
A single trigger object (e.g., an isolated muon, or MET)
Definition at line 24 of file TriggerObject.h.
trigger::TriggerObject::TriggerObject | ( | ) | [inline] |
trigger::TriggerObject::TriggerObject | ( | int | id, | |
float | pt, | |||
float | eta, | |||
float | phi, | |||
float | mass | |||
) | [inline] |
trigger::TriggerObject::TriggerObject | ( | int | id, | |
const T & | o | |||
) | [inline] |
trigger::TriggerObject::TriggerObject | ( | const T & | o | ) | [inline] |
float trigger::TriggerObject::energy | ( | ) | const [inline] |
Definition at line 67 of file TriggerObject.h.
References mass_, p(), funct::pow(), and funct::sqrt().
Referenced by HLTTauDQMOfflineSource::importFilterColl(), HLTTauDQMSource::importFilterColl(), and particle().
float trigger::TriggerObject::et | ( | ) | const [inline] |
Definition at line 69 of file TriggerObject.h.
References eta_, mass_, funct::pow(), pt_, and funct::sqrt().
float trigger::TriggerObject::eta | ( | ) | const [inline] |
Definition at line 59 of file TriggerObject.h.
References eta_.
Referenced by checkHLTMatch().
00059 {return eta_;}
getters
Definition at line 57 of file TriggerObject.h.
References id_.
Referenced by HLTTauDQMOfflineSource::importFilterColl(), and HLTTauDQMSource::importFilterColl().
00057 {return id_;}
float trigger::TriggerObject::mass | ( | ) | const [inline] |
float trigger::TriggerObject::p | ( | ) | const [inline] |
reco::Particle trigger::TriggerObject::particle | ( | reco::Particle::Charge | q = 0 , |
|
const reco::Particle::Point & | vertex = reco::Particle::Point(0,0,0) , |
|||
int | status = 0 , |
|||
bool | integerCharge = true | |||
) | const [inline] |
Definition at line 71 of file TriggerObject.h.
References energy(), px(), py(), pz(), and StDecayID::status.
00073 { 00074 return reco::Particle(q, 00075 reco::Particle::LorentzVector(px(),py(),pz(),energy()), 00076 vertex,id(),status,integerCharge); 00077 }
float trigger::TriggerObject::phi | ( | ) | const [inline] |
Definition at line 60 of file TriggerObject.h.
References phi_.
Referenced by checkHLTMatch().
00060 {return phi_;}
float trigger::TriggerObject::pt | ( | ) | const [inline] |
float trigger::TriggerObject::px | ( | ) | const [inline] |
Definition at line 63 of file TriggerObject.h.
References funct::cos(), phi_, and pt_.
Referenced by HLTTauDQMOfflineSource::importFilterColl(), HLTTauDQMSource::importFilterColl(), and particle().
float trigger::TriggerObject::py | ( | ) | const [inline] |
Definition at line 64 of file TriggerObject.h.
References phi_, pt_, and funct::sin().
Referenced by HLTTauDQMOfflineSource::importFilterColl(), HLTTauDQMSource::importFilterColl(), and particle().
float trigger::TriggerObject::pz | ( | ) | const [inline] |
Definition at line 65 of file TriggerObject.h.
Referenced by HLTTauDQMOfflineSource::importFilterColl(), HLTTauDQMSource::importFilterColl(), and particle().
void trigger::TriggerObject::setEta | ( | float | eta | ) | [inline] |
void trigger::TriggerObject::setMass | ( | float | mass | ) | [inline] |
void trigger::TriggerObject::setPhi | ( | float | phi | ) | [inline] |
void trigger::TriggerObject::setPt | ( | float | pt | ) | [inline] |
float trigger::TriggerObject::eta_ [private] |
int trigger::TriggerObject::id_ [private] |
data members - similar to DataFormats/Candidate/interface/Particle.h
id or physics type (including electric charge) - similar to pdgId
Definition at line 29 of file TriggerObject.h.
float trigger::TriggerObject::mass_ [private] |
float trigger::TriggerObject::phi_ [private] |
float trigger::TriggerObject::pt_ [private] |