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...
 
template<typename T >
 TriggerObject (const T &o)
 ... and pdgId() More...
 
template<typename T >
 TriggerObject (int id, const T &o)
 any type T object implementing the methods pt(), eta(), phi(), mass() More...
 
 TriggerObject (int id, float pt, float eta, float phi, float mass)
 

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

Constructor & Destructor Documentation

◆ TriggerObject() [1/4]

trigger::TriggerObject::TriggerObject ( )
inline

methods

constructors

Definition at line 32 of file TriggerObject.h.

32 : id_(), pt_(), eta_(), phi_(), mass_() {}

◆ TriggerObject() [2/4]

trigger::TriggerObject::TriggerObject ( int  id,
float  pt,
float  eta,
float  phi,
float  mass 
)
inline

Definition at line 33 of file TriggerObject.h.

34  : id_(id), pt_(pt), eta_(eta), phi_(phi), mass_(mass) {}

◆ TriggerObject() [3/4]

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

38 : id_(id), pt_(o.pt()), eta_(o.eta()), phi_(o.phi()), mass_(o.mass()) {}

◆ TriggerObject() [4/4]

template<typename T >
trigger::TriggerObject::TriggerObject ( const T o)
inline

... and pdgId()

Definition at line 41 of file TriggerObject.h.

41 : id_(o.pdgId()), pt_(o.pt()), eta_(o.eta()), phi_(o.phi()), mass_(o.mass()) {}

Member Function Documentation

◆ energy()

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

◆ et()

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

Definition at line 63 of file TriggerObject.h.

63 { return std::sqrt(std::pow(mass_ / std::cosh(eta_), 2) + std::pow(pt_, 2)); }

References eta_, mass_, funct::pow(), pt_, and mathSSE::sqrt().

Referenced by ZeeCandidateFilter::filter().

◆ eta()

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

◆ id()

int trigger::TriggerObject::id ( ) const
inline

◆ mass()

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

◆ p()

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

Definition at line 60 of file TriggerObject.h.

60 { return pt_ * std::cosh(eta_); }

References eta_, and pt_.

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

◆ particle()

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

◆ phi()

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

◆ pt()

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

Definition at line 52 of file TriggerObject.h.

52 { return pt_; }

References pt_.

Referenced by Particle.Particle::__str__(), DiObject.DiMuon::__str__(), TriggerSummaryAnalyzerAOD::analyze(), SUSY_HLT_InclusiveHT::analyze(), METplusTrackMonitor::analyze(), SUSY_HLT_DoubleMuon_Hadronic::analyze(), SUSY_HLT_Muon_BJet::analyze(), SUSY_HLT_DoubleEle_Hadronic::analyze(), SUSY_HLT_Electron_BJet::analyze(), SUSY_HLT_DiJet_MET::analyze(), SUSY_HLT_ElecFakes::analyze(), SUSY_HLT_Muon_Hadronic::analyze(), SUSY_HLT_MuonFakes::analyze(), SUSY_HLT_VBF_Mu::analyze(), SUSY_HLT_MuEle_Hadronic::analyze(), SUSY_HLT_alphaT::analyze(), HotlineDQM::analyze(), DQMHcalIsoTrackAlCaReco::analyze(), SUSY_HLT_SingleLepton::analyze(), HLTMuonMatchAndPlot::analyze(), HcalIsoTrkAnalyzer::analyze(), IsoTrig::analyze(), HLTEventAnalyzerAOD::analyzeTrigger(), Photon.Photon::calScaledIsoValueExp(), Photon.Photon::calScaledIsoValueLin(), Photon.Photon::calScaledIsoValueQuadr(), TrigObjTnPHistColl::ProbeData::fill(), METplusTrackMonitor::getHLTObj(), LeptonSkimming::hltObject(), 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().

◆ px()

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

◆ py()

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

◆ pz()

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

Definition at line 59 of file TriggerObject.h.

59 { return pt_ * std::sinh(eta_); }

References eta_, and pt_.

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

◆ setEta()

void trigger::TriggerObject::setEta ( float  eta)
inline

Definition at line 46 of file TriggerObject.h.

46 { eta_ = eta; }

References eta(), and eta_.

◆ setId()

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

setters

Definition at line 44 of file TriggerObject.h.

44 { id_ = id; }

References id(), and id_.

◆ setMass()

void trigger::TriggerObject::setMass ( float  mass)
inline

Definition at line 48 of file TriggerObject.h.

48 { mass_ = mass; }

References mass(), and mass_.

◆ setPhi()

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

Definition at line 47 of file TriggerObject.h.

47 { phi_ = phi; }

References phi(), and phi_.

◆ setPt()

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

Definition at line 45 of file TriggerObject.h.

45 { pt_ = pt; }

References pt(), and pt_.

Member Data Documentation

◆ eta_

float trigger::TriggerObject::eta_
private

Definition at line 27 of file TriggerObject.h.

Referenced by et(), eta(), p(), pz(), and setEta().

◆ id_

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

Referenced by id(), and setId().

◆ mass_

float trigger::TriggerObject::mass_
private

Definition at line 27 of file TriggerObject.h.

Referenced by energy(), et(), mass(), and setMass().

◆ phi_

float trigger::TriggerObject::phi_
private

Definition at line 27 of file TriggerObject.h.

Referenced by phi(), px(), py(), and setPhi().

◆ pt_

float trigger::TriggerObject::pt_
private

4-momentum of physics object

Definition at line 27 of file TriggerObject.h.

Referenced by et(), p(), pt(), px(), py(), pz(), and setPt().

trigger::TriggerObject::phi
float phi() const
Definition: TriggerObject.h:54
reco::Particle
Definition: Particle.h:16
mps_update.status
status
Definition: mps_update.py:69
trigger::TriggerObject::eta_
float eta_
Definition: TriggerObject.h:27
trigger::TriggerObject::id_
int id_
data members - similar to DataFormats/Candidate/interface/Particle.h
Definition: TriggerObject.h:25
reco::Particle::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Particle.h:21
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:36
funct::sin
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
trigger::TriggerObject::py
float py() const
Definition: TriggerObject.h:58
trigger::TriggerObject::pt
float pt() const
Definition: TriggerObject.h:52
funct::cos
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
trigger::TriggerObject::mass_
float mass_
Definition: TriggerObject.h:27
trigger::TriggerObject::px
float px() const
Definition: TriggerObject.h:57
trigger::TriggerObject::phi_
float phi_
Definition: TriggerObject.h:27
trigger::TriggerObject::energy
float energy() const
Definition: TriggerObject.h:61
bphysicsOniaDQM_cfi.vertex
vertex
Definition: bphysicsOniaDQM_cfi.py:7
trigger::TriggerObject::id
int id() const
getters
Definition: TriggerObject.h:51
trigger::TriggerObject::eta
float eta() const
Definition: TriggerObject.h:53
submitPVResolutionJobs.q
q
Definition: submitPVResolutionJobs.py:84
trigger::TriggerObject::p
float p() const
Definition: TriggerObject.h:60
trigger::TriggerObject::pt_
float pt_
4-momentum of physics object
Definition: TriggerObject.h:27
trigger::TriggerObject::pz
float pz() const
Definition: TriggerObject.h:59
funct::pow
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29
trigger::TriggerObject::mass
float mass() const
Definition: TriggerObject.h:55