CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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:72
bool energyValid_
Definition: CaloMuon.h:70
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:69
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 42 of file CaloMuon.h.

References caloCompatibility_.

Referenced by MuonIdProducer::produce().

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

a bunch of useful accessors

Definition at line 47 of file CaloMuon.h.

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

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

pseudorapidity of momentum vector

Definition at line 63 of file CaloMuon.h.

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

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

63 { return innerTrack_.get()->eta(); }
TrackRef innerTrack_
reference to Track reconstructed in the tracker only
Definition: CaloMuon.h:67
T const * get() const
Returns C++ pointer to the item.
Definition: Ref.h:244
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:67
bool reco::CaloMuon::isCaloCompatibilityValid ( ) const
inline

Definition at line 44 of file CaloMuon.h.

References caloCompatibility_.

Referenced by MuonIdProducer::produce().

44 { return caloCompatibility_>=0; }
float caloCompatibility_
muon hypothesis compatibility with observer calorimeter energy
Definition: CaloMuon.h:72
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:70
double reco::CaloMuon::p ( ) const
inline

momentum vector magnitude

Definition at line 51 of file CaloMuon.h.

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

Referenced by MuonIdProducer::produce().

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

azimuthal angle of momentum vector

Definition at line 61 of file CaloMuon.h.

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

Referenced by Particle.Particle::__str__().

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

track transverse momentum

Definition at line 53 of file CaloMuon.h.

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

Referenced by Particle.Particle::__str__(), DiObject.DiMuon::__str__(), Photon.Photon::calScaledIsoValue(), Electron.Electron::mvaIDLoose(), Electron.Electron::mvaIDTight(), Lepton.Lepton::relEffAreaIso(), and Lepton.Lepton::relIso().

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

x coordinate of momentum vector

Definition at line 55 of file CaloMuon.h.

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

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

y coordinate of momentum vector

Definition at line 57 of file CaloMuon.h.

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

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

z coordinate of momentum vector

Definition at line 59 of file CaloMuon.h.

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

59 { return innerTrack_.get()->pz(); }
TrackRef innerTrack_
reference to Track reconstructed in the tracker only
Definition: CaloMuon.h:67
T const * get() const
Returns C++ pointer to the item.
Definition: Ref.h:244
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 { calEnergy_ = calEnergy; energyValid_ = true; }
MuonEnergy calEnergy_
energy deposition
Definition: CaloMuon.h:69
MuonEnergy calEnergy() const
get energy deposition information
Definition: CaloMuon.h:35
bool energyValid_
Definition: CaloMuon.h:70
void reco::CaloMuon::setCaloCompatibility ( float  input)
inline

Definition at line 43 of file CaloMuon.h.

References caloCompatibility_, and input.

Referenced by MuonIdProducer::makeCaloMuon().

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

set reference to Track

Definition at line 30 of file CaloMuon.h.

References innerTrack_, and tree::t.

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

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

Definition at line 31 of file CaloMuon.h.

References setInnerTrack().

31 { setInnerTrack(t); }
tuple t
Definition: tree.py:139
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 49 of file CaloMuon.h.

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

Referenced by Tau.Tau::zImpact().

49 { return innerTrack_.get()->theta(); }
TrackRef innerTrack_
reference to Track reconstructed in the tracker only
Definition: CaloMuon.h:67
T const * get() const
Returns C++ pointer to the item.
Definition: Ref.h:244
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 69 of file CaloMuon.h.

Referenced by calEnergy(), and setCalEnergy().

float reco::CaloMuon::caloCompatibility_
private

muon hypothesis compatibility with observer calorimeter energy

Definition at line 72 of file CaloMuon.h.

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

bool reco::CaloMuon::energyValid_
private

Definition at line 70 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 67 of file CaloMuon.h.

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