CMS 3D CMS Logo

trigger::TriggerObject Class Reference

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

#include <DataFormats/HLTReco/interface/TriggerObject.h>

List of all members.

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


Detailed Description

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

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

Date
2008/09/22 16:28:40
Revision
1.6

Author:
Martin Grunewald

Definition at line 24 of file TriggerObject.h.


Constructor & Destructor Documentation

trigger::TriggerObject::TriggerObject (  )  [inline]

methods

constructors

Definition at line 36 of file TriggerObject.h.

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

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

Definition at line 37 of file TriggerObject.h.

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

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

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

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

... and pdgId()

Definition at line 46 of file TriggerObject.h.

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


Member Function Documentation

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().

00067 {return sqrt(pow(mass_,2)+pow(p(),2));}

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

Definition at line 69 of file TriggerObject.h.

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

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

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

Definition at line 59 of file TriggerObject.h.

References eta_.

Referenced by checkHLTMatch().

00059 {return eta_;}

int trigger::TriggerObject::id ( void   )  const [inline]

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]

Definition at line 61 of file TriggerObject.h.

References mass_.

00061 {return mass_;}

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

Definition at line 66 of file TriggerObject.h.

References eta_, and pt_.

Referenced by energy().

00066 {return pt_*cosh(eta_);}

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]

Definition at line 58 of file TriggerObject.h.

References pt_.

00058 {return pt_;}

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().

00063 {return pt_*cos(phi_);}

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().

00064 {return pt_*sin(phi_);}

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

Definition at line 65 of file TriggerObject.h.

References eta_, and pt_.

Referenced by HLTTauDQMOfflineSource::importFilterColl(), HLTTauDQMSource::importFilterColl(), and particle().

00065 {return pt_*sinh(eta_);}

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

Definition at line 52 of file TriggerObject.h.

References eta_.

00052 {eta_ =eta;}

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

setters

Definition at line 50 of file TriggerObject.h.

References id_.

00050 {id_  =id;}

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

Definition at line 54 of file TriggerObject.h.

References mass_.

00054 {mass_=mass;}

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

Definition at line 53 of file TriggerObject.h.

References phi_.

00053 {phi_ =phi;}

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

Definition at line 51 of file TriggerObject.h.

References pt_.

00051 {pt_  =pt;}


Member Data Documentation

float trigger::TriggerObject::eta_ [private]

Definition at line 31 of file TriggerObject.h.

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

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.

Referenced by id(), and setId().

float trigger::TriggerObject::mass_ [private]

Definition at line 31 of file TriggerObject.h.

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

float trigger::TriggerObject::phi_ [private]

Definition at line 31 of file TriggerObject.h.

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

float trigger::TriggerObject::pt_ [private]

4-momentum of physics object

Definition at line 31 of file TriggerObject.h.

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


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:53:05 2009 for CMSSW by  doxygen 1.5.4