CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
trigger::TriggerObject Class Reference

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 More...
 
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 More...
 
void setMass (float mass)
 
void setPhi (float phi)
 
void setPt (float pt)
 
 TriggerObject ()
 methods More...
 
 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() More...
 
template<typename T >
 TriggerObject (const T &o)
 ... and pdgId() More...
 

Private Attributes

float eta_
 
int id_
 data members - similar to DataFormats/Candidate/interface/Particle.h More...
 
float mass_
 
float phi_
 
float pt_
 4-momentum of physics object More...
 

Detailed Description

Single trigger physics object (e.g., an isolated muon)

A single trigger object (e.g., an isolated muon, or MET)

Author
Martin Grunewald

Definition at line 22 of file TriggerObject.h.

Constructor & Destructor Documentation

trigger::TriggerObject::TriggerObject ( )
inline

methods

constructors

Definition at line 34 of file TriggerObject.h.

34 : id_(), pt_(), eta_(), phi_(), mass_() { }
int id_
data members - similar to DataFormats/Candidate/interface/Particle.h
Definition: TriggerObject.h:27
float pt_
4-momentum of physics object
Definition: TriggerObject.h:29
trigger::TriggerObject::TriggerObject ( int  id,
float  pt,
float  eta,
float  phi,
float  mass 
)
inline

Definition at line 35 of file TriggerObject.h.

35  :
36  id_(id), pt_(pt), eta_(eta), phi_(phi), mass_(mass) { }
float phi() const
Definition: TriggerObject.h:58
float eta() const
Definition: TriggerObject.h:57
int id_
data members - similar to DataFormats/Candidate/interface/Particle.h
Definition: TriggerObject.h:27
float mass() const
Definition: TriggerObject.h:59
float pt_
4-momentum of physics object
Definition: TriggerObject.h:29
template<typename T >
trigger::TriggerObject::TriggerObject ( int  id,
const T o 
)
inline

any type T object implementing the methods pt(), eta(), phi(), mass()

Definition at line 40 of file TriggerObject.h.

40  :
41  id_(id), pt_(o.pt()), eta_(o.eta()), phi_(o.phi()), mass_(o.mass()) { }
int id_
data members - similar to DataFormats/Candidate/interface/Particle.h
Definition: TriggerObject.h:27
float pt_
4-momentum of physics object
Definition: TriggerObject.h:29
template<typename T >
trigger::TriggerObject::TriggerObject ( const T o)
inline

... and pdgId()

Definition at line 44 of file TriggerObject.h.

44  :
45  id_(o.pdgId()), pt_(o.pt()), eta_(o.eta()), phi_(o.phi()), mass_(o.mass()) { }
int id_
data members - similar to DataFormats/Candidate/interface/Particle.h
Definition: TriggerObject.h:27
float pt_
4-momentum of physics object
Definition: TriggerObject.h:29

Member Function Documentation

float trigger::TriggerObject::energy ( ) const
inline

Definition at line 65 of file TriggerObject.h.

References p(), funct::pow(), and mathSSE::sqrt().

Referenced by SUSY_HLT_VBF_Mu::analyze(), HcalIsoTrkAnalyzer::analyze(), IsoTrig::analyze(), HLTTauDQMTagAndProbePlotter::findTrgObject(), particle(), and Jet.Jet::rawEnergy().

65 {return std::sqrt(std::pow(mass_,2)+std::pow(p(),2));}
T sqrt(T t)
Definition: SSEVec.h:18
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40
float trigger::TriggerObject::et ( ) const
inline

Definition at line 67 of file TriggerObject.h.

References funct::pow(), and mathSSE::sqrt().

Referenced by ZeeCandidateFilter::filter().

67 {return std::sqrt(std::pow(mass_/std::cosh(eta_),2)+std::pow(pt_,2));}
T sqrt(T t)
Definition: SSEVec.h:18
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40
float pt_
4-momentum of physics object
Definition: TriggerObject.h:29
float trigger::TriggerObject::eta ( ) const
inline
int trigger::TriggerObject::id ( ) const
inline
float trigger::TriggerObject::mass ( ) const
inline
float trigger::TriggerObject::p ( ) const
inline

Definition at line 64 of file TriggerObject.h.

Referenced by DQMHcalIsoTrackAlCaReco::analyze(), energy(), and Electron.Electron::ptErr().

64 {return pt_*std::cosh(eta_);}
float pt_
4-momentum of physics object
Definition: TriggerObject.h:29
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 69 of file TriggerObject.h.

References energy(), px(), py(), pz(), lumiQueryAPI::q, and mps_update::status.

Referenced by DQMExample_Step1::analyze(), and CandidateTriggerObjectProducer::produce().

71  {
72  return reco::Particle(q,
74  vertex,id(),status,integerCharge);
75  }
float energy() const
Definition: TriggerObject.h:65
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Particle.h:21
float trigger::TriggerObject::phi ( ) const
inline
float trigger::TriggerObject::pt ( ) const
inline

Definition at line 56 of file TriggerObject.h.

References pt_.

Referenced by Particle.Particle::__str__(), DiObject.DiMuon::__str__(), TriggerSummaryAnalyzerAOD::analyze(), SUSY_HLT_InclusiveHT::analyze(), SUSY_HLT_DoubleMuon_Hadronic::analyze(), SUSY_HLT_Muon_BJet::analyze(), SUSY_HLT_DoubleEle_Hadronic::analyze(), SUSY_HLT_Electron_BJet::analyze(), SUSY_HLT_alphaT::analyze(), SUSY_HLT_DiJet_MET::analyze(), SUSY_HLT_ElecFakes::analyze(), SUSY_HLT_MuEle_Hadronic::analyze(), SUSY_HLT_Muon_Hadronic::analyze(), SUSY_HLT_MuonFakes::analyze(), SUSY_HLT_VBF_Mu::analyze(), HotlineDQM::analyze(), DQMHcalIsoTrackAlCaReco::analyze(), SUSY_HLT_SingleLepton::analyze(), METplusTrackMonitor::analyze(), HLTMuonMatchAndPlot::analyze(), HcalIsoTrkAnalyzer::analyze(), IsoTrig::analyze(), HLTEventAnalyzerAOD::analyzeTrigger(), Photon.Photon::calScaledIsoValueExp(), Photon.Photon::calScaledIsoValueLin(), Photon.Photon::calScaledIsoValueQuadr(), TrigObjTnPHistColl::ProbeData::fill(), METplusTrackMonitor::getHLTObj(), BPHMonitor::matchToTrigger(), Electron.Electron::mvaIDLoose(), Electron.Electron::mvaIDRun2(), Electron.Electron::mvaIDTight(), print_trigger_candidates(), print_trigger_collection(), pat::PATTriggerProducer::produce(), Electron.Electron::ptErr(), ntupleDataFormat.Track::ptPull(), Lepton.Lepton::relIso(), Lepton.Lepton::relIsoFromEA(), Lepton.Lepton::relIsoR(), Jet.Jet::setCorrP4(), setPt(), and TrigObjTnPHistColl::TrigObjVarF::TrigObjVarF().

56 {return pt_;}
float pt_
4-momentum of physics object
Definition: TriggerObject.h:29
float trigger::TriggerObject::px ( ) const
inline

Definition at line 61 of file TriggerObject.h.

References funct::cos().

Referenced by SUSY_HLT_VBF_Mu::analyze(), SUSY_HLT_Razor::analyze(), HcalIsoTrkAnalyzer::analyze(), IsoTrig::analyze(), HLTTauDQMTagAndProbePlotter::findTrgObject(), and particle().

61 {return pt_*std::cos(phi_);}
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
float pt_
4-momentum of physics object
Definition: TriggerObject.h:29
float trigger::TriggerObject::py ( ) const
inline

Definition at line 62 of file TriggerObject.h.

References funct::sin().

Referenced by SUSY_HLT_VBF_Mu::analyze(), SUSY_HLT_Razor::analyze(), HcalIsoTrkAnalyzer::analyze(), IsoTrig::analyze(), HLTTauDQMTagAndProbePlotter::findTrgObject(), and particle().

62 {return pt_*std::sin(phi_);}
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
float pt_
4-momentum of physics object
Definition: TriggerObject.h:29
float trigger::TriggerObject::pz ( ) const
inline
void trigger::TriggerObject::setEta ( float  eta)
inline

Definition at line 50 of file TriggerObject.h.

References eta().

void trigger::TriggerObject::setId ( int  id)
inline

setters

Definition at line 48 of file TriggerObject.h.

References id().

48 {id_ =id;}
int id() const
getters
Definition: TriggerObject.h:55
int id_
data members - similar to DataFormats/Candidate/interface/Particle.h
Definition: TriggerObject.h:27
void trigger::TriggerObject::setMass ( float  mass)
inline

Definition at line 52 of file TriggerObject.h.

References mass().

void trigger::TriggerObject::setPhi ( float  phi)
inline

Definition at line 51 of file TriggerObject.h.

References phi().

void trigger::TriggerObject::setPt ( float  pt)
inline

Definition at line 49 of file TriggerObject.h.

References pt().

49 {pt_ =pt;}
float pt_
4-momentum of physics object
Definition: TriggerObject.h:29

Member Data Documentation

float trigger::TriggerObject::eta_
private

Definition at line 29 of file TriggerObject.h.

Referenced by eta().

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 27 of file TriggerObject.h.

Referenced by id().

float trigger::TriggerObject::mass_
private

Definition at line 29 of file TriggerObject.h.

Referenced by mass().

float trigger::TriggerObject::phi_
private

Definition at line 29 of file TriggerObject.h.

Referenced by phi().

float trigger::TriggerObject::pt_
private

4-momentum of physics object

Definition at line 29 of file TriggerObject.h.

Referenced by pt().