CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
reco::CaloMuon Class Reference

#include <DataFormats/MuonReco/interface/CaloMuon.h>

Public Member Functions

MuonEnergy calEnergy () const
 get energy deposition information More...
 
float caloCompatibility () const
 
 CaloMuon ()
 
int charge () const
 a bunch of useful accessors More...
 
double eta () const
 pseudorapidity of momentum vector More...
 
virtual TrackRef innerTrack () const
 reference to Track reconstructed in the tracker only More...
 
bool isCaloCompatibilityValid () const
 
bool isEnergyValid () const
 energy deposition More...
 
double p () const
 momentum vector magnitude More...
 
double phi () const
 azimuthal angle of momentum vector More...
 
double pt () const
 track transverse momentum More...
 
double px () const
 x coordinate of momentum vector More...
 
double py () const
 y coordinate of momentum vector More...
 
double pz () const
 z coordinate of momentum vector More...
 
void setCalEnergy (const MuonEnergy &calEnergy)
 set energy deposition information More...
 
void setCaloCompatibility (float input)
 
virtual void setInnerTrack (const TrackRef &t)
 set reference to Track More...
 
virtual void setTrack (const TrackRef &t)
 
double theta () const
 polar angle More...
 
virtual TrackRef track () const
 
virtual ~CaloMuon ()
 

Private Attributes

MuonEnergy calEnergy_
 energy deposition More...
 
float caloCompatibility_
 muon hypothesis compatibility with observer calorimeter energy More...
 
bool energyValid_
 
TrackRef innerTrack_
 reference to Track reconstructed in the tracker only More...
 

Detailed Description

A lightweight reconstructed Muon to store low momentum muons without matches in the muon detectors. Contains:

Author
Dmytro Kovalskyi, UCSB

Definition at line 21 of file CaloMuon.h.

Constructor & Destructor Documentation

CaloMuon::CaloMuon ( )

Definition at line 4 of file CaloMuon.cc.

References caloCompatibility_, and energyValid_.

4  {
5  energyValid_ = false;
6  caloCompatibility_ = -9999.;
7 }
float caloCompatibility_
muon hypothesis compatibility with observer calorimeter energy
Definition: CaloMuon.h:75
bool energyValid_
Definition: CaloMuon.h:73
virtual reco::CaloMuon::~CaloMuon ( )
inlinevirtual

Definition at line 24 of file CaloMuon.h.

24 {}

Member Function Documentation

MuonEnergy reco::CaloMuon::calEnergy ( ) const
inline

get energy deposition information

Definition at line 35 of file CaloMuon.h.

References calEnergy_.

Referenced by setCalEnergy().

35 { return calEnergy_; }
MuonEnergy calEnergy_
energy deposition
Definition: CaloMuon.h:72
float reco::CaloMuon::caloCompatibility ( ) const
inline

Muon hypothesis compatibility block Relative likelihood based on ECAL, HCAL, HO energy defined as L_muon/(L_muon+L_not_muon)

Definition at line 45 of file CaloMuon.h.

References caloCompatibility_.

Referenced by MuonIdProducer::isGoodCaloMuon().

45 { return caloCompatibility_; }
float caloCompatibility_
muon hypothesis compatibility with observer calorimeter energy
Definition: CaloMuon.h:75
int reco::CaloMuon::charge ( ) const
inline

a bunch of useful accessors

Definition at line 50 of file CaloMuon.h.

References edm::Ref< C, T, F >::get(), and innerTrack_.

50 { return innerTrack_.get()->charge(); }
TrackRef innerTrack_
reference to Track reconstructed in the tracker only
Definition: CaloMuon.h:70
T const * get() const
Returns C++ pointer to the item.
Definition: Ref.h:232
double reco::CaloMuon::eta ( ) const
inline

pseudorapidity of momentum vector

Definition at line 66 of file CaloMuon.h.

References edm::Ref< C, T, F >::get(), and innerTrack_.

Referenced by Particle.Particle::__str__(), Jet.Jet::jetID(), and Jet.Jet::puJetId().

66 { return innerTrack_.get()->eta(); }
TrackRef innerTrack_
reference to Track reconstructed in the tracker only
Definition: CaloMuon.h:70
T const * get() const
Returns C++ pointer to the item.
Definition: Ref.h:232
virtual TrackRef reco::CaloMuon::innerTrack ( ) const
inlinevirtual

reference to Track reconstructed in the tracker only

Definition at line 27 of file CaloMuon.h.

References innerTrack_.

Referenced by Lepton.Lepton::lostInner(), Muon.Muon::muonID(), and track().

27 { return innerTrack_; }
TrackRef innerTrack_
reference to Track reconstructed in the tracker only
Definition: CaloMuon.h:70
bool reco::CaloMuon::isCaloCompatibilityValid ( ) const
inline

Definition at line 47 of file CaloMuon.h.

References caloCompatibility_.

Referenced by MuonIdProducer::isGoodCaloMuon().

47 { return caloCompatibility_ >= 0; }
float caloCompatibility_
muon hypothesis compatibility with observer calorimeter energy
Definition: CaloMuon.h:75
bool reco::CaloMuon::isEnergyValid ( ) const
inline

energy deposition

Definition at line 33 of file CaloMuon.h.

References energyValid_.

33 { return energyValid_; }
bool energyValid_
Definition: CaloMuon.h:73
double reco::CaloMuon::p ( ) const
inline

momentum vector magnitude

Definition at line 54 of file CaloMuon.h.

References edm::Ref< C, T, F >::get(), and innerTrack_.

Referenced by MuonIdProducer::isGoodCaloMuon(), and Electron.Electron::ptErr().

54 { return innerTrack_.get()->p(); }
TrackRef innerTrack_
reference to Track reconstructed in the tracker only
Definition: CaloMuon.h:70
T const * get() const
Returns C++ pointer to the item.
Definition: Ref.h:232
double reco::CaloMuon::phi ( ) const
inline

azimuthal angle of momentum vector

Definition at line 64 of file CaloMuon.h.

References edm::Ref< C, T, F >::get(), and innerTrack_.

Referenced by Particle.Particle::__str__(), and ntupleDataFormat.Track::phiPull().

64 { return innerTrack_.get()->phi(); }
TrackRef innerTrack_
reference to Track reconstructed in the tracker only
Definition: CaloMuon.h:70
T const * get() const
Returns C++ pointer to the item.
Definition: Ref.h:232
double reco::CaloMuon::pt ( ) const
inline
double reco::CaloMuon::px ( ) const
inline

x coordinate of momentum vector

Definition at line 58 of file CaloMuon.h.

References edm::Ref< C, T, F >::get(), and innerTrack_.

58 { return innerTrack_.get()->px(); }
TrackRef innerTrack_
reference to Track reconstructed in the tracker only
Definition: CaloMuon.h:70
T const * get() const
Returns C++ pointer to the item.
Definition: Ref.h:232
double reco::CaloMuon::py ( ) const
inline

y coordinate of momentum vector

Definition at line 60 of file CaloMuon.h.

References edm::Ref< C, T, F >::get(), and innerTrack_.

60 { return innerTrack_.get()->py(); }
TrackRef innerTrack_
reference to Track reconstructed in the tracker only
Definition: CaloMuon.h:70
T const * get() const
Returns C++ pointer to the item.
Definition: Ref.h:232
double reco::CaloMuon::pz ( ) const
inline

z coordinate of momentum vector

Definition at line 62 of file CaloMuon.h.

References edm::Ref< C, T, F >::get(), and innerTrack_.

62 { return innerTrack_.get()->pz(); }
TrackRef innerTrack_
reference to Track reconstructed in the tracker only
Definition: CaloMuon.h:70
T const * get() const
Returns C++ pointer to the item.
Definition: Ref.h:232
void reco::CaloMuon::setCalEnergy ( const MuonEnergy calEnergy)
inline

set energy deposition information

Definition at line 37 of file CaloMuon.h.

References calEnergy(), calEnergy_, and energyValid_.

Referenced by MuonIdProducer::makeCaloMuon().

37  {
39  energyValid_ = true;
40  }
MuonEnergy calEnergy_
energy deposition
Definition: CaloMuon.h:72
MuonEnergy calEnergy() const
get energy deposition information
Definition: CaloMuon.h:35
bool energyValid_
Definition: CaloMuon.h:73
void reco::CaloMuon::setCaloCompatibility ( float  input)
inline

Definition at line 46 of file CaloMuon.h.

References caloCompatibility_, and input.

Referenced by MuonIdProducer::makeCaloMuon().

static std::string const input
Definition: EdmProvDump.cc:47
float caloCompatibility_
muon hypothesis compatibility with observer calorimeter energy
Definition: CaloMuon.h:75
virtual void reco::CaloMuon::setInnerTrack ( const TrackRef t)
inlinevirtual

set reference to Track

Definition at line 30 of file CaloMuon.h.

References innerTrack_, and submitPVValidationJobs::t.

Referenced by MuonIdProducer::makeCaloMuon(), and setTrack().

30 { innerTrack_ = t; }
TrackRef innerTrack_
reference to Track reconstructed in the tracker only
Definition: CaloMuon.h:70
virtual void reco::CaloMuon::setTrack ( const TrackRef t)
inlinevirtual

Definition at line 31 of file CaloMuon.h.

References setInnerTrack().

31 { setInnerTrack(t); }
virtual void setInnerTrack(const TrackRef &t)
set reference to Track
Definition: CaloMuon.h:30
double reco::CaloMuon::theta ( ) const
inline

polar angle

Definition at line 52 of file CaloMuon.h.

References edm::Ref< C, T, F >::get(), and innerTrack_.

Referenced by Tau.Tau::zImpact().

52 { return innerTrack_.get()->theta(); }
TrackRef innerTrack_
reference to Track reconstructed in the tracker only
Definition: CaloMuon.h:70
T const * get() const
Returns C++ pointer to the item.
Definition: Ref.h:232
virtual TrackRef reco::CaloMuon::track ( ) const
inlinevirtual

Definition at line 28 of file CaloMuon.h.

References innerTrack().

28 { return innerTrack(); }
virtual TrackRef innerTrack() const
reference to Track reconstructed in the tracker only
Definition: CaloMuon.h:27

Member Data Documentation

MuonEnergy reco::CaloMuon::calEnergy_
private

energy deposition

Definition at line 72 of file CaloMuon.h.

Referenced by calEnergy(), and setCalEnergy().

float reco::CaloMuon::caloCompatibility_
private

muon hypothesis compatibility with observer calorimeter energy

Definition at line 75 of file CaloMuon.h.

Referenced by caloCompatibility(), CaloMuon(), isCaloCompatibilityValid(), and setCaloCompatibility().

bool reco::CaloMuon::energyValid_
private

Definition at line 73 of file CaloMuon.h.

Referenced by CaloMuon(), isEnergyValid(), and setCalEnergy().

TrackRef reco::CaloMuon::innerTrack_
private

reference to Track reconstructed in the tracker only

Definition at line 70 of file CaloMuon.h.

Referenced by charge(), eta(), innerTrack(), p(), phi(), pt(), px(), py(), pz(), setInnerTrack(), and theta().