CMS 3D CMS Logo

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::CaloMuon ( )

Definition at line 4 of file CaloMuon.cc.

4  {
5  energyValid_ = false;
6  caloCompatibility_ = -9999.;
7 }

References caloCompatibility_, and energyValid_.

◆ ~CaloMuon()

virtual reco::CaloMuon::~CaloMuon ( )
inlinevirtual

Definition at line 24 of file CaloMuon.h.

24 {}

Member Function Documentation

◆ calEnergy()

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

get energy deposition information

Definition at line 35 of file CaloMuon.h.

35 { return calEnergy_; }

References calEnergy_.

Referenced by setCalEnergy().

◆ caloCompatibility()

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.

45 { return caloCompatibility_; }

References caloCompatibility_.

Referenced by MuonIdProducer::isGoodCaloMuon().

◆ charge()

int reco::CaloMuon::charge ( ) const
inline

a bunch of useful accessors

Definition at line 50 of file CaloMuon.h.

50 { return innerTrack_.get()->charge(); }

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

◆ eta()

double reco::CaloMuon::eta ( ) const
inline

pseudorapidity of momentum vector

Definition at line 66 of file CaloMuon.h.

66 { return innerTrack_.get()->eta(); }

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

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

◆ innerTrack()

virtual TrackRef reco::CaloMuon::innerTrack ( ) const
inlinevirtual

reference to Track reconstructed in the tracker only

Definition at line 27 of file CaloMuon.h.

27 { return innerTrack_; }

References innerTrack_.

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

◆ isCaloCompatibilityValid()

bool reco::CaloMuon::isCaloCompatibilityValid ( ) const
inline

Definition at line 47 of file CaloMuon.h.

47 { return caloCompatibility_ >= 0; }

References caloCompatibility_.

Referenced by MuonIdProducer::isGoodCaloMuon().

◆ isEnergyValid()

bool reco::CaloMuon::isEnergyValid ( ) const
inline

energy deposition

Definition at line 33 of file CaloMuon.h.

33 { return energyValid_; }

References energyValid_.

◆ p()

double reco::CaloMuon::p ( ) const
inline

momentum vector magnitude

Definition at line 54 of file CaloMuon.h.

54 { return innerTrack_.get()->p(); }

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

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

◆ phi()

double reco::CaloMuon::phi ( ) const
inline

azimuthal angle of momentum vector

Definition at line 64 of file CaloMuon.h.

64 { return innerTrack_.get()->phi(); }

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

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

◆ pt()

double reco::CaloMuon::pt ( ) const
inline

◆ px()

double reco::CaloMuon::px ( ) const
inline

x coordinate of momentum vector

Definition at line 58 of file CaloMuon.h.

58 { return innerTrack_.get()->px(); }

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

◆ py()

double reco::CaloMuon::py ( ) const
inline

y coordinate of momentum vector

Definition at line 60 of file CaloMuon.h.

60 { return innerTrack_.get()->py(); }

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

◆ pz()

double reco::CaloMuon::pz ( ) const
inline

z coordinate of momentum vector

Definition at line 62 of file CaloMuon.h.

62 { return innerTrack_.get()->pz(); }

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

◆ setCalEnergy()

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

set energy deposition information

Definition at line 37 of file CaloMuon.h.

37  {
39  energyValid_ = true;
40  }

References calEnergy(), calEnergy_, and energyValid_.

Referenced by MuonIdProducer::makeCaloMuon().

◆ setCaloCompatibility()

void reco::CaloMuon::setCaloCompatibility ( float  input)
inline

Definition at line 46 of file CaloMuon.h.

References caloCompatibility_, and input.

Referenced by MuonIdProducer::makeCaloMuon().

◆ setInnerTrack()

virtual void reco::CaloMuon::setInnerTrack ( const TrackRef t)
inlinevirtual

set reference to Track

Definition at line 30 of file CaloMuon.h.

30 { innerTrack_ = t; }

References innerTrack_, and submitPVValidationJobs::t.

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

◆ setTrack()

virtual void reco::CaloMuon::setTrack ( const TrackRef t)
inlinevirtual

Definition at line 31 of file CaloMuon.h.

31 { setInnerTrack(t); }

References setInnerTrack(), and submitPVValidationJobs::t.

◆ theta()

double reco::CaloMuon::theta ( ) const
inline

polar angle

Definition at line 52 of file CaloMuon.h.

52 { return innerTrack_.get()->theta(); }

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

Referenced by Tau.Tau::zImpact().

◆ track()

virtual TrackRef reco::CaloMuon::track ( ) const
inlinevirtual

Definition at line 28 of file CaloMuon.h.

28 { return innerTrack(); }

References innerTrack().

Member Data Documentation

◆ calEnergy_

MuonEnergy reco::CaloMuon::calEnergy_
private

energy deposition

Definition at line 72 of file CaloMuon.h.

Referenced by calEnergy(), and setCalEnergy().

◆ caloCompatibility_

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

◆ energyValid_

bool reco::CaloMuon::energyValid_
private

Definition at line 73 of file CaloMuon.h.

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

◆ innerTrack_

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

reco::CaloMuon::energyValid_
bool energyValid_
Definition: CaloMuon.h:73
input
static const std::string input
Definition: EdmProvDump.cc:48
edm::Ref::get
T const * get() const
Returns C++ pointer to the item.
Definition: Ref.h:232
reco::CaloMuon::caloCompatibility_
float caloCompatibility_
muon hypothesis compatibility with observer calorimeter energy
Definition: CaloMuon.h:75
reco::CaloMuon::setInnerTrack
virtual void setInnerTrack(const TrackRef &t)
set reference to Track
Definition: CaloMuon.h:30
reco::CaloMuon::calEnergy
MuonEnergy calEnergy() const
get energy deposition information
Definition: CaloMuon.h:35
reco::CaloMuon::innerTrack
virtual TrackRef innerTrack() const
reference to Track reconstructed in the tracker only
Definition: CaloMuon.h:27
reco::CaloMuon::calEnergy_
MuonEnergy calEnergy_
energy deposition
Definition: CaloMuon.h:72
reco::CaloMuon::innerTrack_
TrackRef innerTrack_
reference to Track reconstructed in the tracker only
Definition: CaloMuon.h:70
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644