Single trigger physics object (e.g., an isolated muon) More...
#include <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) |
TriggerObject (int id, float pt, float eta, float phi, float mass) | |
template<typename T > | |
TriggerObject (int id, const T &o) | |
any type T object implementing the methods pt(), eta(), phi(), mass() | |
TriggerObject () | |
methods | |
template<typename T > | |
TriggerObject (const T &o) | |
... and pdgId() | |
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 |
Single trigger physics object (e.g., an isolated muon)
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 mathSSE::sqrt().
Referenced by particle().
float trigger::TriggerObject::et | ( | ) | const [inline] |
Definition at line 69 of file TriggerObject.h.
References eta_, mass_, funct::pow(), pt_, and mathSSE::sqrt().
float trigger::TriggerObject::eta | ( | ) | const [inline] |
Definition at line 59 of file TriggerObject.h.
References eta_.
Referenced by ValidationHcalIsoTrackAlCaReco::analyze(), DQMHcalIsoTrackAlCaReco::analyze(), TriggerSummaryAnalyzerAOD::analyze(), DQMHcalIsoTrackHLT::analyze(), TopHLTDiMuonDQM::analyze(), ValHcalIsoTrackHLT::analyze(), HLTEventAnalyzerAOD::analyzeTrigger(), checkHLTMatch(), MuonAnalyzerSBSM::FillPlots(), MuonTrackAnalyzer::fillPlots(), ZeeCandidateFilter::filter(), WenuCandidateFilter::filter(), HLTMuonMatchAndPlot::getAodTriggerObjectsForModule(), getL1triggerDirection(), objMonData< T >::matchL1Offline(), objMonData< T >::matchOnlineL1(), objMonData< T >::matchOnlineOffline(), objMon< T >::monitorL1(), objMonData< T >::monitorL1(), objMonData< T >::monitorOnline(), objMon< T >::monitorOnline(), and setEta().
{return eta_;}
int trigger::TriggerObject::id | ( | void | ) | const [inline] |
getters
Definition at line 57 of file TriggerObject.h.
References id_.
Referenced by TriggerSummaryAnalyzerAOD::analyze(), HLTEventAnalyzerAOD::analyzeTrigger(), HLTMuonMatchAndPlot::getAodTriggerObjectsForModule(), HLTTauDQMSource::getFilterCollection(), and setId().
{return id_;}
float trigger::TriggerObject::mass | ( | ) | const [inline] |
Definition at line 61 of file TriggerObject.h.
References mass_.
Referenced by TriggerSummaryAnalyzerAOD::analyze(), HLTEventAnalyzerAOD::analyzeTrigger(), and setMass().
{return mass_;}
float trigger::TriggerObject::p | ( | ) | const [inline] |
Definition at line 66 of file TriggerObject.h.
Referenced by ValidationHcalIsoTrackAlCaReco::analyze(), DQMHcalIsoTrackAlCaReco::analyze(), and energy().
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(), lumiQueryAPI::q, and ntuplemaker::status.
Referenced by TopHLTDiMuonDQM::analyze().
{ return reco::Particle(q, reco::Particle::LorentzVector(px(),py(),pz(),energy()), vertex,id(),status,integerCharge); }
float trigger::TriggerObject::phi | ( | ) | const [inline] |
Definition at line 60 of file TriggerObject.h.
References phi_.
Referenced by ValidationHcalIsoTrackAlCaReco::analyze(), DQMHcalIsoTrackAlCaReco::analyze(), TriggerSummaryAnalyzerAOD::analyze(), ValHcalIsoTrackHLT::analyze(), HLTEventAnalyzerAOD::analyzeTrigger(), checkHLTMatch(), MuonAnalyzerSBSM::FillPlots(), MuonTrackAnalyzer::fillPlots(), ZeeCandidateFilter::filter(), WenuCandidateFilter::filter(), getL1triggerDirection(), objMonData< T >::matchL1Offline(), objMonData< T >::matchOnlineL1(), objMonData< T >::matchOnlineOffline(), objMon< T >::monitorL1(), objMonData< T >::monitorL1(), objMonData< T >::monitorOnline(), objMon< T >::monitorOnline(), and setPhi().
{return phi_;}
float trigger::TriggerObject::pt | ( | ) | const [inline] |
Definition at line 58 of file TriggerObject.h.
References pt_.
Referenced by ValidationHcalIsoTrackAlCaReco::analyze(), DQMHcalIsoTrackAlCaReco::analyze(), TriggerSummaryAnalyzerAOD::analyze(), DQMHcalIsoTrackHLT::analyze(), TopHLTDiMuonDQM::analyze(), ValHcalIsoTrackHLT::analyze(), HLTEventAnalyzerAOD::analyzeTrigger(), MuonAnalyzerSBSM::FillPlots(), MuonTrackAnalyzer::fillPlots(), HLTMuonMatchAndPlot::getAodTriggerObjectsForModule(), getL1triggerDirection(), objMonData< T >::matchOnlineL1(), objMon< T >::monitorL1(), objMonData< T >::monitorL1(), objMonData< T >::monitorOnline(), objMon< T >::monitorOnline(), and setPt().
{return pt_;}
float trigger::TriggerObject::px | ( | ) | const [inline] |
Definition at line 63 of file TriggerObject.h.
References funct::cos(), phi_, and pt_.
Referenced by HLTTauDQMSource::getFilterCollection(), HLTTauDQMLitePathPlotter::getFilterCollection(), and particle().
float trigger::TriggerObject::py | ( | ) | const [inline] |
Definition at line 64 of file TriggerObject.h.
References phi_, pt_, and funct::sin().
Referenced by HLTTauDQMSource::getFilterCollection(), HLTTauDQMLitePathPlotter::getFilterCollection(), and particle().
float trigger::TriggerObject::pz | ( | ) | const [inline] |
Definition at line 65 of file TriggerObject.h.
Referenced by HLTTauDQMSource::getFilterCollection(), HLTTauDQMLitePathPlotter::getFilterCollection(), and particle().
void trigger::TriggerObject::setEta | ( | float | eta | ) | [inline] |
void trigger::TriggerObject::setId | ( | int | id | ) | [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] |