CMS 3D CMS Logo

Public Member Functions | Private Attributes

trigger::TriggerObject Class Reference

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

#include <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)
 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

Detailed Description

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

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

Date:
2010/10/14 23:00:36
Revision:
1.7
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.

: 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.

                                                                     :
      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.

                                     :
    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.

                             :
    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 mathSSE::sqrt().

Referenced by particle().

{return std::sqrt(std::pow(mass_,2)+std::pow(p(),2));}
float trigger::TriggerObject::et ( ) const [inline]

Definition at line 69 of file TriggerObject.h.

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

{return std::sqrt(std::pow(mass_/std::cosh(eta_),2)+std::pow(pt_,2));}
float trigger::TriggerObject::eta ( ) const [inline]
int trigger::TriggerObject::id ( void  ) const [inline]
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.

References eta_, and pt_.

Referenced by ValidationHcalIsoTrackAlCaReco::analyze(), DQMHcalIsoTrackAlCaReco::analyze(), and energy().

{return pt_*std::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(), 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]
float trigger::TriggerObject::pt ( ) const [inline]
float trigger::TriggerObject::px ( ) const [inline]
float trigger::TriggerObject::py ( ) const [inline]
float trigger::TriggerObject::pz ( ) const [inline]

Definition at line 65 of file TriggerObject.h.

References eta_, and pt_.

Referenced by HLTTauDQMSource::getFilterCollection(), HLTTauDQMLitePathPlotter::getFilterCollection(), and particle().

{return pt_*std::sinh(eta_);}
void trigger::TriggerObject::setEta ( float  eta) [inline]

Definition at line 52 of file TriggerObject.h.

References eta(), and eta_.

{eta_ =eta;}
void trigger::TriggerObject::setId ( int  id) [inline]

setters

Definition at line 50 of file TriggerObject.h.

References id(), and id_.

{id_  =id;}
void trigger::TriggerObject::setMass ( float  mass) [inline]

Definition at line 54 of file TriggerObject.h.

References mass(), and mass_.

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

Definition at line 53 of file TriggerObject.h.

References phi(), and phi_.

{phi_ =phi;}
void trigger::TriggerObject::setPt ( float  pt) [inline]

Definition at line 51 of file TriggerObject.h.

References pt(), and pt_.

{pt_  =pt;}

Member Data Documentation

Definition at line 31 of file TriggerObject.h.

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

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

Definition at line 31 of file TriggerObject.h.

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

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