CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes
reco::Muon Class Reference

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

Inheritance diagram for reco::Muon:
reco::RecoCandidate reco::LeafCandidate reco::Candidate pat::PATObject< reco::Muon > pat::Lepton< reco::Muon > pat::Muon

Public Types

enum  ArbitrationType {
  NoArbitration, SegmentArbitration, SegmentAndTrackArbitration, SegmentAndTrackArbitrationCleaned,
  RPCHitAndTrackArbitration, GEMSegmentAndTrackArbitration, ME0SegmentAndTrackArbitration
}
 define arbitration schemes More...
 
typedef std::map< MuonTrackType, reco::TrackRefMuonTrackRefMap
 
enum  MuonTrackType {
  None, InnerTrack, OuterTrack, CombinedTrack,
  TPFMS, Picky, DYT
}
 map for Global Muon refitters More...
 
typedef std::pair< TrackRef, Muon::MuonTrackTypeMuonTrackTypePair
 
enum  Selector {
  CutBasedIdLoose = 1UL << 0, CutBasedIdMedium = 1UL << 1, CutBasedIdMediumPrompt = 1UL << 2, CutBasedIdTight = 1UL << 3,
  CutBasedIdGlobalHighPt = 1UL << 4, CutBasedIdTrkHighPt = 1UL << 5, PFIsoVeryLoose = 1UL << 6, PFIsoLoose = 1UL << 7,
  PFIsoMedium = 1UL << 8, PFIsoTight = 1UL << 9, PFIsoVeryTight = 1UL << 10, TkIsoLoose = 1UL << 11,
  TkIsoTight = 1UL << 12, SoftCutBasedId = 1UL << 13, SoftMvaId = 1UL << 14, MvaLoose = 1UL << 15,
  MvaMedium = 1UL << 16, MvaTight = 1UL << 17, MiniIsoLoose = 1UL << 18, MiniIsoMedium = 1UL << 19,
  MiniIsoTight = 1UL << 20, MiniIsoVeryTight = 1UL << 21, TriggerIdLoose = 1UL << 22, InTimeMuon = 1UL << 23,
  PFIsoVeryVeryTight = 1UL << 24, MultiIsoLoose = 1UL << 25, MultiIsoMedium = 1UL << 26, PuppiIsoLoose = 1UL << 27,
  PuppiIsoMedium = 1UL << 28, PuppiIsoTight = 1UL << 29, MvaVTight = 1UL << 30, MvaVVTight = 1UL << 31,
  LowPtMvaLoose = 1UL << 32, LowPtMvaMedium = 1UL << 33
}
 
- Public Types inherited from reco::RecoCandidate
enum  TrackType { noTrackType, recoTrackType, gsfTrackType }
 track type More...
 
- Public Types inherited from reco::LeafCandidate
typedef int Charge
 electric charge type More...
 
typedef CandidateCollection daughters
 collection of daughter candidates More...
 
typedef unsigned int index
 
typedef math::XYZTLorentzVector LorentzVector
 Lorentz vector. More...
 
typedef math::XYZPoint Point
 point in the space More...
 
typedef math::PtEtaPhiMLorentzVector PolarLorentzVector
 Lorentz vector. More...
 
typedef math::XYZVector Vector
 point in the space More...
 
- Public Types inherited from reco::Candidate
enum  { dimension = 3 }
 
enum  { size = dimension * (dimension + 1) / 2 }
 matix size More...
 
typedef int Charge
 electric charge type More...
 
typedef candidate::const_iterator const_iterator
 
typedef math::Error< dimension >::type CovarianceMatrix
 covariance error matrix (3x3) More...
 
typedef unsigned int index
 index type More...
 
typedef candidate::iterator iterator
 
typedef math::XYZTLorentzVector LorentzVector
 Lorentz vector. More...
 
typedef math::XYZPoint Point
 point in the space More...
 
typedef math::PtEtaPhiMLorentzVector PolarLorentzVector
 Lorentz vector. More...
 
typedef size_t size_type
 
typedef math::XYZVector Vector
 point in the space More...
 

Public Member Functions

const TrackbestTrack () const override
 
TrackBaseRef bestTrackRef () const override
 best track RefToBase More...
 
MuonEnergy calEnergy () const
 get energy deposition information More...
 
float caloCompatibility () const
 
Muonclone () const override
 create a clone More...
 
TrackRef combinedMuon () const override
 reference to a stand-alone muon Track More...
 
MuonQuality combinedQuality () const
 get energy deposition information More...
 
float dDxDz (int station, int muonSubdetId, ArbitrationType type=SegmentAndTrackArbitration) const
 
float dDyDz (int station, int muonSubdetId, ArbitrationType type=SegmentAndTrackArbitration) const
 
float dX (int station, int muonSubdetId, ArbitrationType type=SegmentAndTrackArbitration) const
 
float dY (int station, int muonSubdetId, ArbitrationType type=SegmentAndTrackArbitration) const
 
virtual TrackRef dytTrack () const
 
unsigned int expectedNnumberOfMatchedStations (float minDistanceFromEdge=10.0) const
 
virtual TrackRef globalTrack () const
 reference to Track reconstructed in both tracked and muon detector More...
 
bool hasShowerInStation (int station, int muonSubdetId, int nDtDigisCut=20, int nCscDigisCut=36) const
 tag a shower in a given station layer More...
 
virtual TrackRef innerTrack () const
 
bool isAValidMuonTrack (const MuonTrackType &type) const
 
bool isCaloCompatibilityValid () const
 
bool isCaloMuon () const override
 
bool isEnergyValid () const
 
bool isGEMMuon () const
 
bool isGlobalMuon () const override
 
bool isIsolationValid () const
 
bool isMatchesValid () const
 
bool isME0Muon () const
 
bool isMuon () const override
 
const MuonIsolationisolationR03 () const
 
const MuonIsolationisolationR05 () const
 
bool isPFIsolationValid () const
 
bool isPFMuon () const
 
bool isQualityValid () const
 
bool isRPCMuon () const
 
bool isStandAloneMuon () const override
 
bool isTimeValid () const
 
bool isTrackerMuon () const override
 
std::vector< MuonChamberMatch > & matches ()
 get muon matching information More...
 
const std::vector< MuonChamberMatch > & matches () const
 
 Muon ()
 
 Muon (Charge, const LorentzVector &, const Point &=Point(0, 0, 0))
 constructor from values More...
 
virtual TrackRef muonBestTrack () const
 
virtual MuonTrackType muonBestTrackType () const
 
TrackRef muonTrack (const MuonTrackType &) const
 
TrackRef muonTrackFromMap (const MuonTrackType &type) const
 
int nDigisInStation (int station, int muonSubdetId) const
 
int numberOfChambers () const
 
int numberOfChambersCSCorDT () const
 number of chambers CSC or DT matches only (MuonChamberMatches include RPC rolls) More...
 
int numberOfMatchedRPCLayers (ArbitrationType type=RPCHitAndTrackArbitration) const
 
int numberOfMatchedStations (ArbitrationType type=SegmentAndTrackArbitration) const
 
int numberOfMatches (ArbitrationType type=SegmentAndTrackArbitration) const
 get number of chambers with matched segments More...
 
int numberOfSegments (int station, int muonSubdetId, ArbitrationType type=SegmentAndTrackArbitration) const
 get number of segments More...
 
int numberOfShowers (int nDtDigisCut=20, int nCscDigisCut=36) const
 count the number of showers along a muon track More...
 
virtual TrackRef outerTrack () const
 reference to Track reconstructed in the muon detector only More...
 
bool passed (Selector selection) const
 
bool passed (uint64_t selection) const
 
const MuonPFIsolationpfIsolationR03 () const
 
const MuonPFIsolationpfIsolationR04 () const
 
const MuonPFIsolationpfMeanDRIsoProfileR03 () const
 
const MuonPFIsolationpfMeanDRIsoProfileR04 () const
 
reco::Candidate::LorentzVector pfP4 () const
 
const MuonPFIsolationpfSumDRIsoProfileR03 () const
 
const MuonPFIsolationpfSumDRIsoProfileR04 () const
 
virtual TrackRef pickyTrack () const
 
float pullDxDz (int station, int muonSubdetId, ArbitrationType type=SegmentAndTrackArbitration, bool includeSegmentError=true) const
 
float pullDyDz (int station, int muonSubdetId, ArbitrationType type=SegmentAndTrackArbitration, bool includeSegmentError=true) const
 
float pullX (int station, int muonSubdetId, ArbitrationType type=SegmentAndTrackArbitration, bool includeSegmentError=true) const
 
float pullY (int station, int muonSubdetId, ArbitrationType type=SegmentAndTrackArbitration, bool includeSegmentError=true) const
 
unsigned int RPClayerMask (ArbitrationType type=RPCHitAndTrackArbitration) const
 
MuonTime rpcTime () const
 get RPC timing information More...
 
float segmentDxDz (int station, int muonSubdetId, ArbitrationType type=SegmentAndTrackArbitration) const
 
float segmentDxDzErr (int station, int muonSubdetId, ArbitrationType type=SegmentAndTrackArbitration) const
 
float segmentDyDz (int station, int muonSubdetId, ArbitrationType type=SegmentAndTrackArbitration) const
 
float segmentDyDzErr (int station, int muonSubdetId, ArbitrationType type=SegmentAndTrackArbitration) const
 
float segmentX (int station, int muonSubdetId, ArbitrationType type=SegmentAndTrackArbitration) const
 
float segmentXErr (int station, int muonSubdetId, ArbitrationType type=SegmentAndTrackArbitration) const
 
float segmentY (int station, int muonSubdetId, ArbitrationType type=SegmentAndTrackArbitration) const
 
float segmentYErr (int station, int muonSubdetId, ArbitrationType type=SegmentAndTrackArbitration) const
 
uint64_t selectors () const
 
virtual void setBestTrack (MuonTrackType muonType)
 
void setCalEnergy (const MuonEnergy &calEnergy)
 set energy deposition information More...
 
void setCaloCompatibility (float input)
 
virtual void setCombined (const TrackRef &t)
 
void setCombinedQuality (const MuonQuality &combinedQuality)
 set energy deposition information More...
 
virtual void setGlobalTrack (const TrackRef &t)
 set reference to Track More...
 
virtual void setInnerTrack (const TrackRef &t)
 set reference to Track More...
 
void setIsolation (const MuonIsolation &isoR03, const MuonIsolation &isoR05)
 
void setMatches (const std::vector< MuonChamberMatch > &matches)
 set muon matching information More...
 
void setMuonTrack (const MuonTrackType &, const TrackRef &)
 
virtual void setOuterTrack (const TrackRef &t)
 set reference to Track More...
 
void setPFIsolation (const std::string &label, const reco::MuonPFIsolation &deposit)
 
virtual void setPFP4 (const reco::Candidate::LorentzVector &p4_)
 
void setRPCTime (const MuonTime &time)
 set RPC timing information More...
 
void setSelector (Selector selector, bool passed)
 
void setSelectors (uint64_t selectors)
 
virtual void setStandAlone (const TrackRef &t)
 
void setTime (const MuonTime &time)
 set DT/CSC combined timing information More...
 
virtual void setTrack (const TrackRef &t)
 
virtual void setTunePBestTrack (MuonTrackType muonType)
 
void setType (unsigned int type)
 
TrackRef standAloneMuon () const override
 reference to a stand-alone muon Track More...
 
unsigned int stationGapMaskDistance (float distanceCut=10.) const
 
unsigned int stationGapMaskPull (float sigmaCut=3.) const
 same as above for given number of sigmas More...
 
unsigned int stationMask (ArbitrationType type=SegmentAndTrackArbitration) const
 
float t0 (int n=0)
 
MuonTime time () const
 get DT/CSC combined timing information More...
 
virtual TrackRef tpfmsTrack () const
 
TrackRef track () const override
 reference to a Track More...
 
float trackDist (int station, int muonSubdetId, ArbitrationType type=SegmentAndTrackArbitration) const
 
float trackDistErr (int station, int muonSubdetId, ArbitrationType type=SegmentAndTrackArbitration) const
 
float trackDxDz (int station, int muonSubdetId, ArbitrationType type=SegmentAndTrackArbitration) const
 
float trackDxDzErr (int station, int muonSubdetId, ArbitrationType type=SegmentAndTrackArbitration) const
 
float trackDyDz (int station, int muonSubdetId, ArbitrationType type=SegmentAndTrackArbitration) const
 
float trackDyDzErr (int station, int muonSubdetId, ArbitrationType type=SegmentAndTrackArbitration) const
 
float trackEdgeX (int station, int muonSubdetId, ArbitrationType type=SegmentAndTrackArbitration) const
 
float trackEdgeY (int station, int muonSubdetId, ArbitrationType type=SegmentAndTrackArbitration) const
 
float trackX (int station, int muonSubdetId, ArbitrationType type=SegmentAndTrackArbitration) const
 
float trackXErr (int station, int muonSubdetId, ArbitrationType type=SegmentAndTrackArbitration) const
 
float trackY (int station, int muonSubdetId, ArbitrationType type=SegmentAndTrackArbitration) const
 
float trackYErr (int station, int muonSubdetId, ArbitrationType type=SegmentAndTrackArbitration) const
 
virtual TrackRef tunePMuonBestTrack () const
 
virtual MuonTrackType tunePMuonBestTrackType () const
 
unsigned int type () const
 
- Public Member Functions inherited from reco::RecoCandidate
const TrackbestTrack () const override
 best track pointer More...
 
virtual TrackType bestTrackType () const
 track type More...
 
virtual CaloTowerRef caloTower () const
 reference to a CaloTower More...
 
RecoCandidateclone () const override
 returns a clone of the Candidate object More...
 
float dxyError () const override
 uncertainty on dxy More...
 
float dzError () const override
 uncertainty on dz More...
 
virtual reco::GsfTrackRef gsfTrack () const
 reference to a GsfTrack More...
 
virtual size_t numberOfTracks () const
 number of multiple Tracks More...
 
 RecoCandidate ()
 default constructor More...
 
template<typename P4 >
 RecoCandidate (Charge q, const P4 &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0)
 constructor from values More...
 
virtual reco::SuperClusterRef superCluster () const
 reference to a SuperCluster More...
 
virtual reco::TrackRef track (size_t) const
 reference to one of multiple Tracks More...
 
 ~RecoCandidate () override
 destructor More...
 
- Public Member Functions inherited from reco::LeafCandidate
Vector boostToCM () const final
 
int charge () const final
 electric charge More...
 
void construct (int qx3, float pt, float eta, float phi, float mass, const Point &vtx, int pdgId, int status)
 
const Candidatedaughter (const std::string &s) const override
 return daughter with a specified role name More...
 
Candidatedaughter (const std::string &s) override
 return daughter with a specified role name More...
 
const Candidatedaughter (size_type) const override
 return daughter at a given position (throws an exception) More...
 
Candidatedaughter (size_type) override
 return daughter at a given position (throws an exception) More...
 
double energy () const final
 energy More...
 
double et () const final
 transverse energy More...
 
double et2 () const final
 transverse energy squared (use this for cut!) More...
 
double eta () const final
 momentum pseudorapidity More...
 
void fillVertexCovariance (CovarianceMatrix &v) const override
 fill SMatrix More...
 
template<typename T >
T get () const
 get a component More...
 
template<typename T , typename Tag >
T get () const
 get a component More...
 
template<typename T >
T get (size_type i) const
 get a component More...
 
template<typename T , typename Tag >
T get (size_type i) const
 get a component More...
 
bool hasMasterClone () const override
 
bool hasMasterClonePtr () const override
 
bool isConvertedPhoton () const override
 
bool isElectron () const override
 
bool isJet () const override
 
bool isPhoton () const override
 
 LeafCandidate ()
 
template<typename... Args>
 LeafCandidate (Args &&... args)
 
 LeafCandidate (const Candidate &c)
 
 LeafCandidate (LeafCandidate &&)=default
 
 LeafCandidate (LeafCandidate &rh)
 
 LeafCandidate (LeafCandidate const &)=default
 
bool longLived () const final
 is long lived? More...
 
double mass () const final
 mass More...
 
bool massConstraint () const final
 do mass constraint? More...
 
double massSqr () const final
 mass squared More...
 
const CandidateBaseRefmasterClone () const override
 
const CandidatePtrmasterClonePtr () const override
 
template<typename Ref >
Ref masterRef () const
 cast master clone reference to a concrete type More...
 
Vector momentum () const final
 spatial momentum vector More...
 
const Candidatemother (size_type) const override
 return mother at a given position (throws an exception) More...
 
double mt () const final
 transverse mass More...
 
double mtSqr () const final
 transverse mass squared More...
 
template<typename T >
size_type numberOf () const
 number of components More...
 
template<typename T , typename Tag >
size_type numberOf () const
 number of components More...
 
size_t numberOfDaughters () const override
 number of daughters More...
 
size_t numberOfMothers () const override
 number of mothers More...
 
size_t numberOfSourceCandidatePtrs () const override
 
LeafCandidateoperator= (LeafCandidate &&)=default
 
LeafCandidateoperator= (LeafCandidate const &)=default
 
double p () const final
 magnitude of momentum vector More...
 
const LorentzVectorp4 () const final
 four-momentum Lorentz vector More...
 
int pdgId () const final
 PDG identifier. More...
 
double phi () const final
 momentum azimuthal angle More...
 
const PolarLorentzVectorpolarP4 () const final
 four-momentum Lorentz vector More...
 
double pt () const final
 transverse momentum More...
 
double px () const final
 x coordinate of momentum vector More...
 
double py () const final
 y coordinate of momentum vector More...
 
double pz () const final
 z coordinate of momentum vector More...
 
double rapidity () const final
 rapidity More...
 
void setCharge (Charge q) final
 set electric charge More...
 
void setLongLived () final
 
void setMass (double m) final
 set particle mass More...
 
void setMassConstraint () final
 
void setP4 (const LorentzVector &p4) final
 set 4-momentum More...
 
void setP4 (const PolarLorentzVector &p4) final
 set 4-momentum More...
 
void setPdgId (int pdgId) final
 
void setPz (double pz) final
 
void setStatus (int status) final
 set status word More...
 
void setThreeCharge (Charge qx3) final
 set electric charge More...
 
void setVertex (const Point &vertex) override
 set vertex More...
 
CandidatePtr sourceCandidatePtr (size_type i) const override
 
int status () const final
 status word More...
 
double theta () const final
 momentum polar angle More...
 
int threeCharge () const final
 electric charge More...
 
const Pointvertex () const override
 vertex position (overwritten by PF...) More...
 
double vertexChi2 () const override
 chi-squares More...
 
CovarianceMatrix vertexCovariance () const final
 return SMatrix More...
 
double vertexCovariance (int i, int j) const override
 (i, j)-th element of error matrix, i, j = 0, ... 2 More...
 
double vertexNdof () const override
 
double vertexNormalizedChi2 () const override
 chi-squared divided by n.d.o.f. More...
 
double vx () const override
 x coordinate of vertex position More...
 
double vy () const override
 y coordinate of vertex position More...
 
double vz () const override
 z coordinate of vertex position More...
 
double y () const final
 rapidity More...
 
 ~LeafCandidate () override
 destructor More...
 
- Public Member Functions inherited from reco::Candidate
iterator begin ()
 first daughter iterator More...
 
const_iterator begin () const
 first daughter const_iterator More...
 
 Candidate ()
 default constructor More...
 
iterator end ()
 last daughter iterator More...
 
const_iterator end () const
 last daughter const_iterator More...
 
template<typename T >
T get () const
 get a component More...
 
template<typename T , typename Tag >
T get () const
 get a component More...
 
template<typename T >
T get (size_type i) const
 get a component More...
 
template<typename T , typename Tag >
T get (size_type i) const
 get a component More...
 
template<typename Ref >
Ref masterRef () const
 cast master clone reference to a concrete type More...
 
template<typename T >
size_type numberOf () const
 number of components More...
 
template<typename T , typename Tag >
size_type numberOf () const
 number of components More...
 
virtual void setSourceCandidatePtr (const CandidatePtr &ptr)
 Set the ptr to the source Candidate. More...
 
virtual ~Candidate ()
 destructor More...
 

Static Public Attributes

static const unsigned int CaloMuon = 1 << 4
 
static const unsigned int GEMMuon = 1 << 7
 
static const unsigned int GlobalMuon = 1 << 1
 
static const unsigned int ME0Muon = 1 << 8
 
static const unsigned int PFMuon = 1 << 5
 
static const unsigned int RPCMuon = 1 << 6
 
static const unsigned int StandAloneMuon = 1 << 3
 
static const unsigned int TrackerMuon = 1 << 2
 

Private Member Functions

const std::vector< const MuonChamberMatch * > chambers (int station, int muonSubdetId) const
 get vector of muon chambers for given station and detector More...
 
bool overlap (const Candidate &) const override
 check overlap with another candidate More...
 
std::pair< const MuonChamberMatch *, const MuonSegmentMatch * > pair (const std::vector< const MuonChamberMatch * > &, ArbitrationType type=SegmentAndTrackArbitration) const
 get pointers to best segment and corresponding chamber in vector of chambers More...
 

Private Attributes

MuonTrackType bestTrackType_
 reference to the Track chosen to assign the momentum value to the muon More...
 
MuonTrackType bestTunePTrackType_
 reference to the Track chosen to assign the momentum value to the muon by PF More...
 
MuonEnergy calEnergy_
 energy deposition More...
 
float caloCompatibility_
 muon hypothesis compatibility with observer calorimeter energy More...
 
MuonQuality combinedQuality_
 quality block More...
 
bool energyValid_
 
TrackRef globalTrack_
 reference to Track reconstructed in both tracked and muon detector More...
 
TrackRef innerTrack_
 reference to Track reconstructed in the tracker only More...
 
MuonIsolation isolationR03_
 Isolation information for two cones with dR=0.3 and dR=0.5. More...
 
MuonIsolation isolationR05_
 
bool isolationValid_
 
bool matchesValid_
 
std::vector< MuonChamberMatchmuMatches_
 Information on matching between tracks and segments. More...
 
TrackRef outerTrack_
 reference to Track reconstructed in the muon detector only More...
 
MuonPFIsolation pfIsolationR03_
 PF Isolation information for two cones with dR=0.3 and dR=0.4. More...
 
MuonPFIsolation pfIsolationR04_
 
bool pfIsolationValid_
 
MuonPFIsolation pfIsoMeanDRR03_
 
MuonPFIsolation pfIsoMeanDRR04_
 
MuonPFIsolation pfIsoSumDRR03_
 
MuonPFIsolation pfIsoSumDRR04_
 
reco::Candidate::LorentzVector pfP4_
 
bool qualityValid_
 
MuonTrackRefMap refittedTrackMap_
 reference to the Global Track refitted with dedicated TeV reconstructors More...
 
MuonTime rpcTime_
 
uint64_t selectors_
 selector bitmap More...
 
MuonTime time_
 timing More...
 
unsigned int type_
 muon type mask More...
 

Additional Inherited Members

- Protected Member Functions inherited from reco::RecoCandidate
template<typename R >
bool checkOverlap (const R &r1, const R &r2) const
 check if two components overlap More...
 

Detailed Description

A reconstructed Muon. contains reference to three fits:

Author
Luca Lista, Claudio Campagnari, Dmytro Kovalskyi, Jake Ribnik, Riccardo Bellan, Michalis Bachtis

Definition at line 27 of file Muon.h.

Member Typedef Documentation

◆ MuonTrackRefMap

Definition at line 37 of file Muon.h.

◆ MuonTrackTypePair

Definition at line 38 of file Muon.h.

Member Enumeration Documentation

◆ ArbitrationType

define arbitration schemes

Enumerator
NoArbitration 
SegmentArbitration 
SegmentAndTrackArbitration 
SegmentAndTrackArbitrationCleaned 
RPCHitAndTrackArbitration 
GEMSegmentAndTrackArbitration 
ME0SegmentAndTrackArbitration 

Definition at line 187 of file Muon.h.

◆ MuonTrackType

map for Global Muon refitters

Enumerator
None 
InnerTrack 
OuterTrack 
CombinedTrack 
TPFMS 
Picky 
DYT 

Definition at line 36 of file Muon.h.

◆ Selector

====================== STANDARD SELECTORS ===========================

Enumerator
CutBasedIdLoose 
CutBasedIdMedium 
CutBasedIdMediumPrompt 
CutBasedIdTight 
CutBasedIdGlobalHighPt 
CutBasedIdTrkHighPt 
PFIsoVeryLoose 
PFIsoLoose 
PFIsoMedium 
PFIsoTight 
PFIsoVeryTight 
TkIsoLoose 
TkIsoTight 
SoftCutBasedId 
SoftMvaId 
MvaLoose 
MvaMedium 
MvaTight 
MiniIsoLoose 
MiniIsoMedium 
MiniIsoTight 
MiniIsoVeryTight 
TriggerIdLoose 
InTimeMuon 
PFIsoVeryVeryTight 
MultiIsoLoose 
MultiIsoMedium 
PuppiIsoLoose 
PuppiIsoMedium 
PuppiIsoTight 
MvaVTight 
MvaVVTight 
LowPtMvaLoose 
LowPtMvaMedium 

Definition at line 201 of file Muon.h.

201  {
202  CutBasedIdLoose = 1UL << 0,
203  CutBasedIdMedium = 1UL << 1,
204  CutBasedIdMediumPrompt = 1UL << 2, // medium with IP cuts
205  CutBasedIdTight = 1UL << 3,
206  CutBasedIdGlobalHighPt = 1UL << 4, // high pt muon for Z',W' (better momentum resolution)
207  CutBasedIdTrkHighPt = 1UL << 5, // high pt muon for boosted Z (better efficiency)
208  PFIsoVeryLoose = 1UL << 6, // reliso<0.40
209  PFIsoLoose = 1UL << 7, // reliso<0.25
210  PFIsoMedium = 1UL << 8, // reliso<0.20
211  PFIsoTight = 1UL << 9, // reliso<0.15
212  PFIsoVeryTight = 1UL << 10, // reliso<0.10
213  TkIsoLoose = 1UL << 11, // reliso<0.10
214  TkIsoTight = 1UL << 12, // reliso<0.05
215  SoftCutBasedId = 1UL << 13,
216  SoftMvaId = 1UL << 14,
217  MvaLoose = 1UL << 15,
218  MvaMedium = 1UL << 16,
219  MvaTight = 1UL << 17,
220  MiniIsoLoose = 1UL << 18, // reliso<0.40
221  MiniIsoMedium = 1UL << 19, // reliso<0.20
222  MiniIsoTight = 1UL << 20, // reliso<0.10
223  MiniIsoVeryTight = 1UL << 21, // reliso<0.05
224  TriggerIdLoose = 1UL << 22, // robust selector for HLT
225  InTimeMuon = 1UL << 23,
226  PFIsoVeryVeryTight = 1UL << 24, // reliso<0.05
227  MultiIsoLoose = 1UL << 25, // miniIso with ptRatio and ptRel
228  MultiIsoMedium = 1UL << 26, // miniIso with ptRatio and ptRel
229  PuppiIsoLoose = 1UL << 27,
230  PuppiIsoMedium = 1UL << 28,
231  PuppiIsoTight = 1UL << 29,
232  MvaVTight = 1UL << 30,
233  MvaVVTight = 1UL << 31,
234  LowPtMvaLoose = 1UL << 32,
235  LowPtMvaMedium = 1UL << 33,
236  };

Constructor & Destructor Documentation

◆ Muon() [1/2]

reco::Muon::Muon ( )

◆ Muon() [2/2]

reco::Muon::Muon ( Charge  ,
const LorentzVector ,
const Point = Point(0, 0, 0) 
)

constructor from values

Member Function Documentation

◆ bestTrack()

const Track* reco::Muon::bestTrack ( ) const
inlineoverridevirtual

Reimplemented from reco::Candidate.

Reimplemented in pat::Muon.

Definition at line 58 of file Muon.h.

58 { return muonTrack(bestTrackType_).get(); }

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

Referenced by PileupJetIdAlgo::computeIdVariables(), and Muon.Muon::ptErr().

◆ bestTrackRef()

TrackBaseRef reco::Muon::bestTrackRef ( ) const
inlineoverridevirtual

best track RefToBase

Reimplemented from reco::RecoCandidate.

Definition at line 59 of file Muon.h.

References bestTrackType_, and muonTrack().

◆ calEnergy()

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

get energy deposition information

Definition at line 106 of file Muon.h.

106 { return calEnergy_; }

References calEnergy_.

Referenced by FWMuonDetailView::build(), FWMuonLegoProxyBuilder::build(), MuonCaloCompatibility::evaluate(), MuonMETAlgo::GetMuDepDeltas(), and setCalEnergy().

◆ caloCompatibility()

float reco::Muon::caloCompatibility ( ) const
inline

====================== MUON COMPATIBILITY BLOCK ===========================

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

Definition at line 158 of file Muon.h.

158 { return caloCompatibility_; }

References caloCompatibility_.

◆ chambers()

const std::vector<const MuonChamberMatch*> reco::Muon::chambers ( int  station,
int  muonSubdetId 
) const
private

get vector of muon chambers for given station and detector

◆ clone()

Muon* reco::Muon::clone ( ) const
overridevirtual

create a clone

Reimplemented from reco::LeafCandidate.

Reimplemented in pat::Muon, and pat::Lepton< reco::Muon >.

◆ combinedMuon()

TrackRef reco::Muon::combinedMuon ( ) const
inlineoverridevirtual

reference to a stand-alone muon Track

Reimplemented from reco::RecoCandidate.

Reimplemented in pat::Muon.

Definition at line 52 of file Muon.h.

52 { return globalTrack(); }

References globalTrack().

Referenced by AlignmentMuonSelector::basicCuts(), and MuonIdProducer::fillGlbQuality().

◆ combinedQuality()

MuonQuality reco::Muon::combinedQuality ( ) const
inline

get energy deposition information

Definition at line 119 of file Muon.h.

119 { return combinedQuality_; }

References combinedQuality_.

Referenced by MuonIdProducer::fillGlbQuality(), MuonIdProducer::fillTrackerKink(), isMediumMuonCustom(), and setCombinedQuality().

◆ dDxDz()

float reco::Muon::dDxDz ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const

◆ dDyDz()

float reco::Muon::dDyDz ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const

◆ dX()

float reco::Muon::dX ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const

get deltas between (best) segment and track If no chamber or no segment returns 999999

◆ dY()

float reco::Muon::dY ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const

◆ dytTrack()

virtual TrackRef reco::Muon::dytTrack ( ) const
inlinevirtual

Reimplemented in pat::Muon.

Definition at line 56 of file Muon.h.

56 { return muonTrackFromMap(DYT); }

References DYT, and muonTrackFromMap().

◆ expectedNnumberOfMatchedStations()

unsigned int reco::Muon::expectedNnumberOfMatchedStations ( float  minDistanceFromEdge = 10.0) const

expected number of stations with matching segments based on the absolute distance from the edge of a chamber

◆ globalTrack()

virtual TrackRef reco::Muon::globalTrack ( ) const
inlinevirtual

◆ hasShowerInStation()

bool reco::Muon::hasShowerInStation ( int  station,
int  muonSubdetId,
int  nDtDigisCut = 20,
int  nCscDigisCut = 36 
) const

tag a shower in a given station layer

◆ innerTrack()

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

◆ isAValidMuonTrack()

bool reco::Muon::isAValidMuonTrack ( const MuonTrackType type) const

◆ isCaloCompatibilityValid()

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

Definition at line 160 of file Muon.h.

160 { return caloCompatibility_ >= 0; }

References caloCompatibility_.

◆ isCaloMuon()

bool reco::Muon::isCaloMuon ( ) const
inlineoverridevirtual

Reimplemented from reco::LeafCandidate.

Definition at line 302 of file Muon.h.

302 { return type_ & CaloMuon; }

References CaloMuon, and type_.

◆ isEnergyValid()

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

====================== ENERGY BLOCK ===========================

energy deposition

Definition at line 104 of file Muon.h.

104 { return energyValid_; }

References energyValid_.

Referenced by FWMuonDetailView::build(), and FWMuonLegoProxyBuilder::build().

◆ isGEMMuon()

bool reco::Muon::isGEMMuon ( ) const
inline

Definition at line 305 of file Muon.h.

305 { return type_ & GEMMuon; }

References GEMMuon, and type_.

Referenced by MuonToTrackingParticleAssociatorByHitsImpl::associateMuons(), and MuonMETAlgo::GetMuDepDeltas().

◆ isGlobalMuon()

bool reco::Muon::isGlobalMuon ( ) const
inlineoverridevirtual

◆ isIsolationValid()

bool reco::Muon::isIsolationValid ( ) const
inline

Definition at line 177 of file Muon.h.

177 { return isolationValid_; }

References isolationValid_.

Referenced by MuonMETAlgo::GetMuDepDeltas().

◆ isMatchesValid()

bool reco::Muon::isMatchesValid ( ) const
inline

====================== MUON MATCH BLOCK ===========================

Definition at line 143 of file Muon.h.

143 { return matchesValid_; }

References matchesValid_.

◆ isME0Muon()

bool reco::Muon::isME0Muon ( ) const
inline

Definition at line 306 of file Muon.h.

306 { return type_ & ME0Muon; }

References ME0Muon, and type_.

Referenced by MuonToTrackingParticleAssociatorByHitsImpl::associateMuons(), and MuonMETAlgo::GetMuDepDeltas().

◆ isMuon()

bool reco::Muon::isMuon ( ) const
inlineoverridevirtual

Reimplemented from reco::LeafCandidate.

Definition at line 298 of file Muon.h.

298 { return true; }

Referenced by MuonToTrackingParticleAssociatorByHitsImpl::associateMuons().

◆ isolationR03()

const MuonIsolation& reco::Muon::isolationR03 ( ) const
inline

====================== ISOLATION BLOCK ===========================

Summary of muon isolation information

Definition at line 166 of file Muon.h.

166 { return isolationR03_; }

References isolationR03_.

Referenced by EwkMuDQM::analyze(), ZToMuMuGammaAnalyzer::analyze(), pat::Muon::ecalIso(), MuonMETAlgo::GetMuDepDeltas(), pat::Muon::hcalIso(), and pat::Muon::trackIso().

◆ isolationR05()

const MuonIsolation& reco::Muon::isolationR05 ( ) const
inline

Definition at line 167 of file Muon.h.

167 { return isolationR05_; }

References isolationR05_.

Referenced by EwkMuTauHistManager::fillHistograms().

◆ isPFIsolationValid()

bool reco::Muon::isPFIsolationValid ( ) const
inline

Definition at line 180 of file Muon.h.

180 { return pfIsolationValid_; }

References pfIsolationValid_.

◆ isPFMuon()

bool reco::Muon::isPFMuon ( ) const
inline

◆ isQualityValid()

bool reco::Muon::isQualityValid ( ) const
inline

====================== Quality BLOCK ===========================

energy deposition

Definition at line 117 of file Muon.h.

117 { return qualityValid_; }

References qualityValid_.

Referenced by MuonIdProducer::fillTrackerKink().

◆ isRPCMuon()

bool reco::Muon::isRPCMuon ( ) const
inline

◆ isStandAloneMuon()

bool reco::Muon::isStandAloneMuon ( ) const
inlineoverridevirtual

◆ isTimeValid()

bool reco::Muon::isTimeValid ( ) const
inline

====================== TIMING BLOCK ===========================

timing information

Definition at line 130 of file Muon.h.

130 { return (time_.nDof > 0); }

References reco::MuonTime::nDof, and time_.

◆ isTrackerMuon()

bool reco::Muon::isTrackerMuon ( ) const
inlineoverridevirtual

◆ matches() [1/2]

std::vector<MuonChamberMatch>& reco::Muon::matches ( )
inline

◆ matches() [2/2]

const std::vector<MuonChamberMatch>& reco::Muon::matches ( ) const
inline

Definition at line 146 of file Muon.h.

146 { return muMatches_; }

References muMatches_.

◆ muonBestTrack()

virtual TrackRef reco::Muon::muonBestTrack ( ) const
inlinevirtual

Reimplemented in pat::Muon.

Definition at line 60 of file Muon.h.

60 { return muonTrack(bestTrackType_); }

References bestTrackType_, and muonTrack().

Referenced by isTightMuonCustom().

◆ muonBestTrackType()

virtual MuonTrackType reco::Muon::muonBestTrackType ( ) const
inlinevirtual

Definition at line 61 of file Muon.h.

61 { return bestTrackType_; }

References bestTrackType_.

◆ muonTrack()

TrackRef reco::Muon::muonTrack ( const MuonTrackType ) const

◆ muonTrackFromMap()

TrackRef reco::Muon::muonTrackFromMap ( const MuonTrackType type) const
inline

Definition at line 68 of file Muon.h.

68  {
69  MuonTrackRefMap::const_iterator iter = refittedTrackMap_.find(type);
70  if (iter != refittedTrackMap_.end())
71  return iter->second;
72  else
73  return TrackRef();
74  }

References refittedTrackMap_.

Referenced by dytTrack(), pickyTrack(), and tpfmsTrack().

◆ nDigisInStation()

int reco::Muon::nDigisInStation ( int  station,
int  muonSubdetId 
) const

of digis in a given station layer

◆ numberOfChambers()

int reco::Muon::numberOfChambers ( ) const
inline

====================== USEFUL METHODs ===========================

number of chambers (MuonChamberMatches include RPC rolls, GEM and ME0 segments)

Definition at line 253 of file Muon.h.

253 { return muMatches_.size(); }

References muMatches_.

◆ numberOfChambersCSCorDT()

int reco::Muon::numberOfChambersCSCorDT ( ) const

number of chambers CSC or DT matches only (MuonChamberMatches include RPC rolls)

◆ numberOfMatchedRPCLayers()

int reco::Muon::numberOfMatchedRPCLayers ( ArbitrationType  type = RPCHitAndTrackArbitration) const

get bit map of stations with tracks within given distance (in cm) of chamber edges bit assignments are same as above

◆ numberOfMatchedStations()

int reco::Muon::numberOfMatchedStations ( ArbitrationType  type = SegmentAndTrackArbitration) const

get number of stations with matched segments just adds the bits returned by stationMask

Referenced by isTightMuonCustom(), and Muon.Muon::muonID().

◆ numberOfMatches()

int reco::Muon::numberOfMatches ( ArbitrationType  type = SegmentAndTrackArbitration) const

◆ numberOfSegments()

int reco::Muon::numberOfSegments ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const

get number of segments

◆ numberOfShowers()

int reco::Muon::numberOfShowers ( int  nDtDigisCut = 20,
int  nCscDigisCut = 36 
) const

count the number of showers along a muon track

◆ outerTrack()

virtual TrackRef reco::Muon::outerTrack ( ) const
inlinevirtual

◆ overlap()

bool reco::Muon::overlap ( const Candidate ) const
overrideprivatevirtual

check overlap with another candidate

Implements reco::RecoCandidate.

◆ pair()

std::pair<const MuonChamberMatch*, const MuonSegmentMatch*> reco::Muon::pair ( const std::vector< const MuonChamberMatch * > &  ,
ArbitrationType  type = SegmentAndTrackArbitration 
) const
private

get pointers to best segment and corresponding chamber in vector of chambers

◆ passed() [1/2]

bool reco::Muon::passed ( Selector  selection) const
inline

Definition at line 239 of file Muon.h.

239 { return passed(static_cast<unsigned int>(selection)); }

References passed(), and corrVsCorr::selection.

Referenced by passed().

◆ passed() [2/2]

bool reco::Muon::passed ( uint64_t  selection) const
inline

Definition at line 238 of file Muon.h.

238 { return (selectors_ & selection) == selection; }

References corrVsCorr::selection, and selectors_.

Referenced by setSelector().

◆ pfIsolationR03()

const MuonPFIsolation& reco::Muon::pfIsolationR03 ( ) const
inline

Definition at line 169 of file Muon.h.

169 { return pfIsolationR03_; }

References pfIsolationR03_.

◆ pfIsolationR04()

const MuonPFIsolation& reco::Muon::pfIsolationR04 ( ) const
inline

Definition at line 172 of file Muon.h.

172 { return pfIsolationR04_; }

References pfIsolationR04_.

◆ pfMeanDRIsoProfileR03()

const MuonPFIsolation& reco::Muon::pfMeanDRIsoProfileR03 ( ) const
inline

Definition at line 170 of file Muon.h.

170 { return pfIsoMeanDRR03_; }

References pfIsoMeanDRR03_.

◆ pfMeanDRIsoProfileR04()

const MuonPFIsolation& reco::Muon::pfMeanDRIsoProfileR04 ( ) const
inline

Definition at line 173 of file Muon.h.

173 { return pfIsoMeanDRR04_; }

References pfIsoMeanDRR04_.

◆ pfP4()

reco::Candidate::LorentzVector reco::Muon::pfP4 ( ) const
inline

set reference to PFCandidate

====================== PF BLOCK ===========================

Definition at line 97 of file Muon.h.

97 { return pfP4_; }

References pfP4_.

Referenced by RecoMuonValidator::MuonME::fill(), and MuonProducer::produce().

◆ pfSumDRIsoProfileR03()

const MuonPFIsolation& reco::Muon::pfSumDRIsoProfileR03 ( ) const
inline

Definition at line 171 of file Muon.h.

171 { return pfIsoSumDRR03_; }

References pfIsoSumDRR03_.

◆ pfSumDRIsoProfileR04()

const MuonPFIsolation& reco::Muon::pfSumDRIsoProfileR04 ( ) const
inline

Definition at line 174 of file Muon.h.

174 { return pfIsoSumDRR04_; }

References pfIsoSumDRR04_.

◆ pickyTrack()

virtual TrackRef reco::Muon::pickyTrack ( ) const
inlinevirtual

Reimplemented in pat::Muon.

Definition at line 55 of file Muon.h.

55 { return muonTrackFromMap(Picky); }

References muonTrackFromMap(), and Picky.

◆ pullDxDz()

float reco::Muon::pullDxDz ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration,
bool  includeSegmentError = true 
) const

◆ pullDyDz()

float reco::Muon::pullDyDz ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration,
bool  includeSegmentError = true 
) const

◆ pullX()

float reco::Muon::pullX ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration,
bool  includeSegmentError = true 
) const

◆ pullY()

float reco::Muon::pullY ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration,
bool  includeSegmentError = true 
) const

◆ RPClayerMask()

unsigned int reco::Muon::RPClayerMask ( ArbitrationType  type = RPCHitAndTrackArbitration) const

◆ rpcTime()

MuonTime reco::Muon::rpcTime ( ) const
inline

get RPC timing information

Definition at line 136 of file Muon.h.

136 { return rpcTime_; }

References rpcTime_.

◆ segmentDxDz()

float reco::Muon::segmentDxDz ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const

◆ segmentDxDzErr()

float reco::Muon::segmentDxDzErr ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const

◆ segmentDyDz()

float reco::Muon::segmentDyDz ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const

◆ segmentDyDzErr()

float reco::Muon::segmentDyDzErr ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const

◆ segmentX()

float reco::Muon::segmentX ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const

get (best) segment information If no segment returns 999999

◆ segmentXErr()

float reco::Muon::segmentXErr ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const

◆ segmentY()

float reco::Muon::segmentY ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const

◆ segmentYErr()

float reco::Muon::segmentYErr ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const

◆ selectors()

uint64_t reco::Muon::selectors ( ) const
inline

Definition at line 240 of file Muon.h.

240 { return selectors_; }

References selectors_.

Referenced by setSelectors().

◆ setBestTrack()

virtual void reco::Muon::setBestTrack ( MuonTrackType  muonType)
inlinevirtual

Definition at line 86 of file Muon.h.

86 { bestTrackType_ = muonType; }

References bestTrackType_.

Referenced by MuonIdProducer::makeMuon(), and MuonProducer::produce().

◆ setCalEnergy()

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

set energy deposition information

Definition at line 108 of file Muon.h.

108  {
110  energyValid_ = true;
111  }

References calEnergy(), calEnergy_, and energyValid_.

Referenced by MuonIdProducer::fillMuonId().

◆ setCaloCompatibility()

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

Definition at line 159 of file Muon.h.

References caloCompatibility_, and input.

◆ setCombined()

virtual void reco::Muon::setCombined ( const TrackRef t)
virtual

◆ setCombinedQuality()

void reco::Muon::setCombinedQuality ( const MuonQuality combinedQuality)
inline

set energy deposition information

Definition at line 121 of file Muon.h.

121  {
123  qualityValid_ = true;
124  }

References combinedQuality(), combinedQuality_, and qualityValid_.

Referenced by MuonIdProducer::fillGlbQuality(), and MuonIdProducer::fillTrackerKink().

◆ setGlobalTrack()

virtual void reco::Muon::setGlobalTrack ( const TrackRef t)
virtual

set reference to Track

Referenced by MuonIdProducer::makeMuon().

◆ setInnerTrack()

virtual void reco::Muon::setInnerTrack ( const TrackRef t)
virtual

set reference to Track

Referenced by MuonIdProducer::makeMuon().

◆ setIsolation()

void reco::Muon::setIsolation ( const MuonIsolation isoR03,
const MuonIsolation isoR05 
)

◆ setMatches()

void reco::Muon::setMatches ( const std::vector< MuonChamberMatch > &  matches)
inline

set muon matching information

Definition at line 148 of file Muon.h.

148  {
150  matchesValid_ = true;
151  }

References matches(), matchesValid_, and muMatches_.

Referenced by MuonIdProducer::fillMuonId().

◆ setMuonTrack()

void reco::Muon::setMuonTrack ( const MuonTrackType ,
const TrackRef  
)

◆ setOuterTrack()

virtual void reco::Muon::setOuterTrack ( const TrackRef t)
virtual

set reference to Track

Referenced by MuonIdProducer::makeMuon().

◆ setPFIsolation()

void reco::Muon::setPFIsolation ( const std::string &  label,
const reco::MuonPFIsolation deposit 
)

◆ setPFP4()

virtual void reco::Muon::setPFP4 ( const reco::Candidate::LorentzVector p4_)
virtual

Referenced by MuonProducer::produce().

◆ setRPCTime()

void reco::Muon::setRPCTime ( const MuonTime time)
inline

set RPC timing information

Definition at line 138 of file Muon.h.

138 { rpcTime_ = time; }

References rpcTime_, and time().

◆ setSelector()

void reco::Muon::setSelector ( Selector  selector,
bool  passed 
)
inline

Definition at line 242 of file Muon.h.

242  {
243  if (passed)
244  selectors_ |= selector;
245  else
246  selectors_ &= ~selector;
247  }

References passed(), and selectors_.

◆ setSelectors()

void reco::Muon::setSelectors ( uint64_t  selectors)
inline

Definition at line 241 of file Muon.h.

241 { selectors_ = selectors; }

References selectors(), and selectors_.

Referenced by MuonProducer::produce(), and pat::LeptonUpdater< T >::recomputeMuonBasicSelectors().

◆ setStandAlone()

virtual void reco::Muon::setStandAlone ( const TrackRef t)
virtual

◆ setTime()

void reco::Muon::setTime ( const MuonTime time)
inline

set DT/CSC combined timing information

Definition at line 134 of file Muon.h.

134 { time_ = time; }

References time(), and time_.

◆ setTrack()

virtual void reco::Muon::setTrack ( const TrackRef t)
virtual

◆ setTunePBestTrack()

virtual void reco::Muon::setTunePBestTrack ( MuonTrackType  muonType)
inlinevirtual

Definition at line 88 of file Muon.h.

88 { bestTunePTrackType_ = muonType; }

References bestTunePTrackType_.

Referenced by MuonIdProducer::makeMuon().

◆ setType()

void reco::Muon::setType ( unsigned int  type)
inline

Definition at line 294 of file Muon.h.

294 { type_ = type; }

References type(), and type_.

◆ standAloneMuon()

TrackRef reco::Muon::standAloneMuon ( ) const
inlineoverridevirtual

reference to a stand-alone muon Track

Reimplemented from reco::RecoCandidate.

Reimplemented in pat::Muon.

Definition at line 49 of file Muon.h.

49 { return outerTrack(); }

References outerTrack().

Referenced by AlignmentMuonSelector::basicCuts(), FWMuonLegoProxyBuilder::build(), MuonCaloCompatibility::evaluate(), MuonIdProducer::fillMuonId(), and MuonIdProducer::fillMuonIsolation().

◆ stationGapMaskDistance()

unsigned int reco::Muon::stationGapMaskDistance ( float  distanceCut = 10.) const

◆ stationGapMaskPull()

unsigned int reco::Muon::stationGapMaskPull ( float  sigmaCut = 3.) const

same as above for given number of sigmas

◆ stationMask()

unsigned int reco::Muon::stationMask ( ArbitrationType  type = SegmentAndTrackArbitration) const

get bit map of stations with matched segments bits 0-1-2-3 = DT stations 1-2-3-4 bits 4-5-6-7 = CSC stations 1-2-3-4

◆ t0()

float reco::Muon::t0 ( int  n = 0)
inline

Definition at line 420 of file Muon.h.

420  {
421  int i = 0;
422  for (auto& chamber : muMatches_) {
423  int segmentMatchesSize = (int)chamber.segmentMatches.size();
424  if (i + segmentMatchesSize < n) {
425  i += segmentMatchesSize;
426  continue;
427  }
428  return chamber.segmentMatches[n - i].t0;
429  }
430  return 0;
431  }

References relativeConstraints::chamber, mps_fire::i, createfilelist::int, muMatches_, and dqmiodumpmetadata::n.

◆ time()

MuonTime reco::Muon::time ( ) const
inline

get DT/CSC combined timing information

Definition at line 132 of file Muon.h.

132 { return time_; }

References time_.

Referenced by setRPCTime(), and setTime().

◆ tpfmsTrack()

virtual TrackRef reco::Muon::tpfmsTrack ( ) const
inlinevirtual

Reimplemented in pat::Muon.

Definition at line 54 of file Muon.h.

54 { return muonTrackFromMap(TPFMS); }

References muonTrackFromMap(), and TPFMS.

◆ track()

TrackRef reco::Muon::track ( ) const
inlineoverridevirtual

◆ trackDist()

float reco::Muon::trackDist ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const

◆ trackDistErr()

float reco::Muon::trackDistErr ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const

◆ trackDxDz()

float reco::Muon::trackDxDz ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const

◆ trackDxDzErr()

float reco::Muon::trackDxDzErr ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const

◆ trackDyDz()

float reco::Muon::trackDyDz ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const

◆ trackDyDzErr()

float reco::Muon::trackDyDzErr ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const

◆ trackEdgeX()

float reco::Muon::trackEdgeX ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const

get track information in chamber that contains (best) segment If no segment, get track information in chamber that has the most negative distance between the track and the nearest chamber edge (the chamber with the deepest track) If no chamber returns 999999

◆ trackEdgeY()

float reco::Muon::trackEdgeY ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const

◆ trackX()

float reco::Muon::trackX ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const

◆ trackXErr()

float reco::Muon::trackXErr ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const

◆ trackY()

float reco::Muon::trackY ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const

◆ trackYErr()

float reco::Muon::trackYErr ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const

◆ tunePMuonBestTrack()

virtual TrackRef reco::Muon::tunePMuonBestTrack ( ) const
inlinevirtual

Reimplemented in pat::Muon.

Definition at line 62 of file Muon.h.

62 { return muonTrack(bestTunePTrackType_); }

References bestTunePTrackType_, and muonTrack().

◆ tunePMuonBestTrackType()

virtual MuonTrackType reco::Muon::tunePMuonBestTrackType ( ) const
inlinevirtual

Definition at line 63 of file Muon.h.

63 { return bestTunePTrackType_; }

References bestTunePTrackType_.

◆ type()

unsigned int reco::Muon::type ( ) const
inline

Definition at line 295 of file Muon.h.

295 { return type_; }

References type_.

Referenced by pat::Muon::setDB(), pat::Muon::setExtSimType(), pat::Muon::setSimType(), and setType().

Member Data Documentation

◆ bestTrackType_

MuonTrackType reco::Muon::bestTrackType_
private

reference to the Track chosen to assign the momentum value to the muon

Definition at line 320 of file Muon.h.

Referenced by bestTrack(), bestTrackRef(), muonBestTrack(), muonBestTrackType(), and setBestTrack().

◆ bestTunePTrackType_

MuonTrackType reco::Muon::bestTunePTrackType_
private

reference to the Track chosen to assign the momentum value to the muon by PF

Definition at line 322 of file Muon.h.

Referenced by setTunePBestTrack(), tunePMuonBestTrack(), and tunePMuonBestTrackType().

◆ calEnergy_

MuonEnergy reco::Muon::calEnergy_
private

energy deposition

Definition at line 325 of file Muon.h.

Referenced by calEnergy(), and setCalEnergy().

◆ caloCompatibility_

float reco::Muon::caloCompatibility_
private

muon hypothesis compatibility with observer calorimeter energy

Definition at line 339 of file Muon.h.

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

◆ CaloMuon

const unsigned int reco::Muon::CaloMuon = 1 << 4
static

Definition at line 288 of file Muon.h.

Referenced by isCaloMuon(), MuonTypeByOrCut::MuonTypeByOrCut(), and CaloMuonMerger::produce().

◆ combinedQuality_

MuonQuality reco::Muon::combinedQuality_
private

quality block

Definition at line 327 of file Muon.h.

Referenced by combinedQuality(), and setCombinedQuality().

◆ energyValid_

bool reco::Muon::energyValid_
private

Definition at line 333 of file Muon.h.

Referenced by isEnergyValid(), and setCalEnergy().

◆ GEMMuon

const unsigned int reco::Muon::GEMMuon = 1 << 7
static

Definition at line 291 of file Muon.h.

Referenced by MuonIdProducer::getSegmentMatches(), isGEMMuon(), and MuonIdProducer::produce().

◆ GlobalMuon

const unsigned int reco::Muon::GlobalMuon = 1 << 1
static

muon type - type of the algorithm that reconstructed this muon multiple algorithms can reconstruct the same muon

Definition at line 285 of file Muon.h.

Referenced by isGlobalMuon(), MuonTypeByOrCut::MuonTypeByOrCut(), and MuonIdProducer::produce().

◆ globalTrack_

TrackRef reco::Muon::globalTrack_
private

reference to Track reconstructed in both tracked and muon detector

Definition at line 316 of file Muon.h.

Referenced by globalTrack().

◆ innerTrack_

TrackRef reco::Muon::innerTrack_
private

reference to Track reconstructed in the tracker only

Definition at line 312 of file Muon.h.

Referenced by innerTrack().

◆ isolationR03_

MuonIsolation reco::Muon::isolationR03_
private

Isolation information for two cones with dR=0.3 and dR=0.5.

Definition at line 341 of file Muon.h.

Referenced by isolationR03().

◆ isolationR05_

MuonIsolation reco::Muon::isolationR05_
private

Definition at line 342 of file Muon.h.

Referenced by isolationR05().

◆ isolationValid_

bool reco::Muon::isolationValid_
private

Definition at line 335 of file Muon.h.

Referenced by isIsolationValid().

◆ matchesValid_

bool reco::Muon::matchesValid_
private

Definition at line 334 of file Muon.h.

Referenced by isMatchesValid(), and setMatches().

◆ ME0Muon

const unsigned int reco::Muon::ME0Muon = 1 << 8
static

Definition at line 292 of file Muon.h.

Referenced by MuonIdProducer::getSegmentMatches(), isME0Muon(), and MuonIdProducer::produce().

◆ muMatches_

std::vector<MuonChamberMatch> reco::Muon::muMatches_
private

Information on matching between tracks and segments.

Definition at line 329 of file Muon.h.

Referenced by matches(), numberOfChambers(), setMatches(), and t0().

◆ outerTrack_

TrackRef reco::Muon::outerTrack_
private

reference to Track reconstructed in the muon detector only

Definition at line 314 of file Muon.h.

Referenced by outerTrack().

◆ pfIsolationR03_

MuonPFIsolation reco::Muon::pfIsolationR03_
private

PF Isolation information for two cones with dR=0.3 and dR=0.4.

Definition at line 345 of file Muon.h.

Referenced by pfIsolationR03().

◆ pfIsolationR04_

MuonPFIsolation reco::Muon::pfIsolationR04_
private

Definition at line 348 of file Muon.h.

Referenced by pfIsolationR04().

◆ pfIsolationValid_

bool reco::Muon::pfIsolationValid_
private

Definition at line 336 of file Muon.h.

Referenced by isPFIsolationValid().

◆ pfIsoMeanDRR03_

MuonPFIsolation reco::Muon::pfIsoMeanDRR03_
private

Definition at line 346 of file Muon.h.

Referenced by pfMeanDRIsoProfileR03().

◆ pfIsoMeanDRR04_

MuonPFIsolation reco::Muon::pfIsoMeanDRR04_
private

Definition at line 349 of file Muon.h.

Referenced by pfMeanDRIsoProfileR04().

◆ pfIsoSumDRR03_

MuonPFIsolation reco::Muon::pfIsoSumDRR03_
private

Definition at line 347 of file Muon.h.

Referenced by pfSumDRIsoProfileR03().

◆ pfIsoSumDRR04_

MuonPFIsolation reco::Muon::pfIsoSumDRR04_
private

Definition at line 350 of file Muon.h.

Referenced by pfSumDRIsoProfileR04().

◆ PFMuon

const unsigned int reco::Muon::PFMuon = 1 << 5
static

◆ pfP4_

reco::Candidate::LorentzVector reco::Muon::pfP4_
private

Definition at line 356 of file Muon.h.

Referenced by pfP4().

◆ qualityValid_

bool reco::Muon::qualityValid_
private

Definition at line 337 of file Muon.h.

Referenced by isQualityValid(), and setCombinedQuality().

◆ refittedTrackMap_

MuonTrackRefMap reco::Muon::refittedTrackMap_
private

reference to the Global Track refitted with dedicated TeV reconstructors

Definition at line 318 of file Muon.h.

Referenced by muonTrackFromMap().

◆ RPCMuon

const unsigned int reco::Muon::RPCMuon = 1 << 6
static

Definition at line 290 of file Muon.h.

Referenced by isRPCMuon(), MuonTypeByOrCut::MuonTypeByOrCut(), and MuonIdProducer::produce().

◆ rpcTime_

MuonTime reco::Muon::rpcTime_
private

Definition at line 332 of file Muon.h.

Referenced by rpcTime(), and setRPCTime().

◆ selectors_

uint64_t reco::Muon::selectors_
private

selector bitmap

Definition at line 366 of file Muon.h.

Referenced by passed(), selectors(), setSelector(), and setSelectors().

◆ StandAloneMuon

const unsigned int reco::Muon::StandAloneMuon = 1 << 3
static

◆ time_

MuonTime reco::Muon::time_
private

timing

Definition at line 331 of file Muon.h.

Referenced by isTimeValid(), setTime(), and time().

◆ TrackerMuon

const unsigned int reco::Muon::TrackerMuon = 1 << 2
static

◆ type_

unsigned int reco::Muon::type_
private
reco::Muon::CombinedTrack
Definition: Muon.h:36
reco::Muon::RPCHitAndTrackArbitration
Definition: Muon.h:192
reco::Muon::time_
MuonTime time_
timing
Definition: Muon.h:331
reco::Muon::globalTrack_
TrackRef globalTrack_
reference to Track reconstructed in both tracked and muon detector
Definition: Muon.h:316
reco::Muon::pfIsoSumDRR04_
MuonPFIsolation pfIsoSumDRR04_
Definition: Muon.h:350
reco::Muon::MvaVTight
Definition: Muon.h:232
mps_fire.i
i
Definition: mps_fire.py:428
reco::Muon::pfIsolationR03_
MuonPFIsolation pfIsolationR03_
PF Isolation information for two cones with dR=0.3 and dR=0.4.
Definition: Muon.h:345
reco::Muon::SegmentAndTrackArbitrationCleaned
Definition: Muon.h:191
input
static const std::string input
Definition: EdmProvDump.cc:48
reco::Muon::matchesValid_
bool matchesValid_
Definition: Muon.h:334
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
reco::Muon::SegmentAndTrackArbitration
Definition: Muon.h:190
reco::Muon::CutBasedIdTrkHighPt
Definition: Muon.h:207
reco::Muon::MiniIsoVeryTight
Definition: Muon.h:223
reco::Muon::StandAloneMuon
static const unsigned int StandAloneMuon
Definition: Muon.h:287
reco::Muon::SegmentArbitration
Definition: Muon.h:189
reco::Muon::calEnergy
MuonEnergy calEnergy() const
get energy deposition information
Definition: Muon.h:106
reco::Muon::TPFMS
Definition: Muon.h:36
reco::Muon::energyValid_
bool energyValid_
Definition: Muon.h:333
reco::Muon::DYT
Definition: Muon.h:36
reco::Muon::isolationR03_
MuonIsolation isolationR03_
Isolation information for two cones with dR=0.3 and dR=0.5.
Definition: Muon.h:341
reco::Muon::matches
std::vector< MuonChamberMatch > & matches()
get muon matching information
Definition: Muon.h:145
reco::Muon::PuppiIsoLoose
Definition: Muon.h:229
reco::Muon::SoftMvaId
Definition: Muon.h:216
reco::Muon::calEnergy_
MuonEnergy calEnergy_
energy deposition
Definition: Muon.h:325
edm::Ref::get
T const * get() const
Returns C++ pointer to the item.
Definition: Ref.h:232
reco::Muon::PFMuon
static const unsigned int PFMuon
Definition: Muon.h:289
reco::TrackBaseRef
edm::RefToBase< reco::Track > TrackBaseRef
persistent reference to a Track, using views
Definition: TrackFwd.h:35
reco::Muon::MultiIsoLoose
Definition: Muon.h:227
reco::Muon::outerTrack_
TrackRef outerTrack_
reference to Track reconstructed in the muon detector only
Definition: Muon.h:314
reco::Muon::TkIsoLoose
Definition: Muon.h:213
reco::Muon::CutBasedIdLoose
Definition: Muon.h:202
reco::Muon::TkIsoTight
Definition: Muon.h:214
reco::Muon::muonTrack
TrackRef muonTrack(const MuonTrackType &) const
reco::Muon::pfIsolationValid_
bool pfIsolationValid_
Definition: Muon.h:336
reco::Muon::bestTunePTrackType_
MuonTrackType bestTunePTrackType_
reference to the Track chosen to assign the momentum value to the muon by PF
Definition: Muon.h:322
reco::Muon::qualityValid_
bool qualityValid_
Definition: Muon.h:337
reco::Muon::type_
unsigned int type_
muon type mask
Definition: Muon.h:353
reco::Muon::GEMMuon
static const unsigned int GEMMuon
Definition: Muon.h:291
reco::Muon::PuppiIsoTight
Definition: Muon.h:231
reco::Muon::CutBasedIdMedium
Definition: Muon.h:203
reco::Muon::isolationValid_
bool isolationValid_
Definition: Muon.h:335
reco::Muon::pfIsoMeanDRR04_
MuonPFIsolation pfIsoMeanDRR04_
Definition: Muon.h:349
reco::Muon::selectors_
uint64_t selectors_
selector bitmap
Definition: Muon.h:366
reco::Muon::PuppiIsoMedium
Definition: Muon.h:230
reco::Muon::OuterTrack
Definition: Muon.h:36
reco::Muon::PFIsoLoose
Definition: Muon.h:209
reco::Muon::PFIsoVeryLoose
Definition: Muon.h:208
reco::Muon::MvaLoose
Definition: Muon.h:217
corrVsCorr.selection
selection
main part
Definition: corrVsCorr.py:100
reco::Muon::outerTrack
virtual TrackRef outerTrack() const
reference to Track reconstructed in the muon detector only
Definition: Muon.h:48
reco::Muon::muonTrackFromMap
TrackRef muonTrackFromMap(const MuonTrackType &type) const
Definition: Muon.h:68
reco::Muon::pfIsoSumDRR03_
MuonPFIsolation pfIsoSumDRR03_
Definition: Muon.h:347
reco::Muon::MvaVVTight
Definition: Muon.h:233
reco::Muon::MiniIsoLoose
Definition: Muon.h:220
reco::Muon::selectors
uint64_t selectors() const
Definition: Muon.h:240
reco::MuonTime::nDof
int nDof
number of muon stations used
Definition: MuonTime.h:9
reco::Muon::Picky
Definition: Muon.h:36
reco::Muon::MiniIsoTight
Definition: Muon.h:222
reco::TrackRef
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
Definition: TrackFwd.h:20
reco::Muon::NoArbitration
Definition: Muon.h:188
reco::Muon::pfP4_
reco::Candidate::LorentzVector pfP4_
Definition: Muon.h:356
reco::Muon::muMatches_
std::vector< MuonChamberMatch > muMatches_
Information on matching between tracks and segments.
Definition: Muon.h:329
reco::Muon::globalTrack
virtual TrackRef globalTrack() const
reference to Track reconstructed in both tracked and muon detector
Definition: Muon.h:51
reco::Muon::GlobalMuon
static const unsigned int GlobalMuon
Definition: Muon.h:285
type
type
Definition: SiPixelVCal_PayloadInspector.cc:39
reco::Muon::TriggerIdLoose
Definition: Muon.h:224
reco::Muon::LowPtMvaMedium
Definition: Muon.h:235
reco::Muon::PFIsoVeryTight
Definition: Muon.h:212
createfilelist.int
int
Definition: createfilelist.py:10
reco::Muon::MultiIsoMedium
Definition: Muon.h:228
reco::Muon::GEMSegmentAndTrackArbitration
Definition: Muon.h:193
reco::Muon::caloCompatibility_
float caloCompatibility_
muon hypothesis compatibility with observer calorimeter energy
Definition: Muon.h:339
reco::Muon::CaloMuon
static const unsigned int CaloMuon
Definition: Muon.h:288
reco::Muon::innerTrack_
TrackRef innerTrack_
reference to Track reconstructed in the tracker only
Definition: Muon.h:312
reco::Muon::LowPtMvaLoose
Definition: Muon.h:234
reco::Muon::MiniIsoMedium
Definition: Muon.h:221
reco::Muon::pfIsolationR04_
MuonPFIsolation pfIsolationR04_
Definition: Muon.h:348
reco::Muon::CutBasedIdMediumPrompt
Definition: Muon.h:204
reco::Muon::bestTrackType_
MuonTrackType bestTrackType_
reference to the Track chosen to assign the momentum value to the muon
Definition: Muon.h:320
reco::Muon::InnerTrack
Definition: Muon.h:36
reco::Muon::PFIsoTight
Definition: Muon.h:211
reco::Muon::MvaMedium
Definition: Muon.h:218
reco::Muon::rpcTime_
MuonTime rpcTime_
Definition: Muon.h:332
reco::Muon::innerTrack
virtual TrackRef innerTrack() const
Definition: Muon.h:45
reco::Muon::CutBasedIdGlobalHighPt
Definition: Muon.h:206
reco::Muon::PFIsoVeryVeryTight
Definition: Muon.h:226
reco::Muon::PFIsoMedium
Definition: Muon.h:210
reco::Muon::pfIsoMeanDRR03_
MuonPFIsolation pfIsoMeanDRR03_
Definition: Muon.h:346
reco::Muon::time
MuonTime time() const
get DT/CSC combined timing information
Definition: Muon.h:132
reco::Muon::combinedQuality_
MuonQuality combinedQuality_
quality block
Definition: Muon.h:327
reco::Muon::ME0SegmentAndTrackArbitration
Definition: Muon.h:194
reco::Muon::refittedTrackMap_
MuonTrackRefMap refittedTrackMap_
reference to the Global Track refitted with dedicated TeV reconstructors
Definition: Muon.h:318
relativeConstraints.chamber
chamber
Definition: relativeConstraints.py:53
reco::Muon::SoftCutBasedId
Definition: Muon.h:215
reco::Muon::RPCMuon
static const unsigned int RPCMuon
Definition: Muon.h:290
reco::Muon::combinedQuality
MuonQuality combinedQuality() const
get energy deposition information
Definition: Muon.h:119
reco::Muon::TrackerMuon
static const unsigned int TrackerMuon
Definition: Muon.h:286
reco::Muon::MvaTight
Definition: Muon.h:219
reco::Muon::None
Definition: Muon.h:36
reco::Muon::ME0Muon
static const unsigned int ME0Muon
Definition: Muon.h:292
reco::Muon::passed
bool passed(uint64_t selection) const
Definition: Muon.h:238
reco::Muon::type
unsigned int type() const
Definition: Muon.h:295
reco::Muon::isolationR05_
MuonIsolation isolationR05_
Definition: Muon.h:342
reco::Muon::CutBasedIdTight
Definition: Muon.h:205
reco::Muon::InTimeMuon
Definition: Muon.h:225