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, GEMHitAndTrackArbitration
}
 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 = 0, CutBasedIdMedium = 1, CutBasedIdMediumPrompt = 2, CutBasedIdTight = 3,
  CutBasedIdGlobalHighPt = 4, CutBasedIdTrkHighPt = 5, PFIsoVeryLoose = 6, PFIsoLoose = 7,
  PFIsoMedium = 8, PFIsoTight = 9, PFIsoVeryTight = 10, TkIsoLoose = 11,
  TkIsoTight = 12, SoftCutBasedId = 13, SoftMvaId = 14, MvaLoose = 15,
  MvaMedium = 16, MvaTight = 17, MiniIsoLoose = 18, MiniIsoMedium = 19,
  MiniIsoTight = 20, MiniIsoVeryTight = 21, TriggerIdLoose = 22, InTimeMuon = 23,
  PFIsoVeryVeryTight = 24, MultiIsoLoose = 25, MultiIsoMedium = 26, PuppiIsoLoose = 27,
  PuppiIsoMedium = 28, PuppiIsoTight = 29, MvaVTight = 30, MvaVVTight = 31,
  LowPtMvaLoose = 32, LowPtMvaMedium = 33, MvaIDwpMedium = 34, MvaIDwpTight = 35
}
 
- 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
 

of digis in a given station layer

More...
 
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 (uint64_t selection) const
 
bool passed (Selector 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 (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...
 
Candidatedaughter (const std::string &s) override
 return daughter with a specified role name More...
 
const Candidatedaughter (const std::string &s) const override
 return daughter with a specified role name 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 ()
 
 LeafCandidate (const Candidate &c)
 
template<typename... Args>
 LeafCandidate (Args &&... args)
 
 LeafCandidate (LeafCandidate &rh)
 
 LeafCandidate (LeafCandidate &&)=default
 
 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...
 
double vertexCovariance (int i, int j) const override
 (i, j)-th element of error matrix, i, j = 0, ... 2 More...
 
CovarianceMatrix vertexCovariance () const final
 return SMatrix 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
const_iterator begin () const
 first daughter const_iterator More...
 
iterator begin ()
 first daughter iterator More...
 
 Candidate ()
 default constructor More...
 
const_iterator end () const
 last daughter const_iterator More...
 
iterator end ()
 last daughter 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 
GEMHitAndTrackArbitration 

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 
MvaIDwpMedium 
MvaIDwpTight 

Definition at line 202 of file Muon.h.

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

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.

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

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

58 { return muonTrack(bestTrackType_).get(); }
MuonTrackType bestTrackType_
reference to the Track chosen to assign the momentum value to the muon
Definition: Muon.h:324
TrackRef muonTrack(const MuonTrackType &) const
T const * get() const
Returns C++ pointer to the item.
Definition: Ref.h:232

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

edm::RefToBase< reco::Track > TrackBaseRef
persistent reference to a Track, using views
Definition: TrackFwd.h:35
MuonTrackType bestTrackType_
reference to the Track chosen to assign the momentum value to the muon
Definition: Muon.h:324
TrackRef muonTrack(const MuonTrackType &) const

◆ calEnergy()

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

get energy deposition information

Definition at line 106 of file Muon.h.

References calEnergy_.

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

106 { return calEnergy_; }
MuonEnergy calEnergy_
energy deposition
Definition: Muon.h:329

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

References caloCompatibility_.

158 { return caloCompatibility_; }
float caloCompatibility_
muon hypothesis compatibility with observer calorimeter energy
Definition: Muon.h:343

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

References globalTrack().

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

52 { return globalTrack(); }
virtual TrackRef globalTrack() const
reference to Track reconstructed in both tracked and muon detector
Definition: Muon.h:51

◆ combinedQuality()

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

get energy deposition information

Definition at line 119 of file Muon.h.

References combinedQuality_.

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

119 { return combinedQuality_; }
MuonQuality combinedQuality_
quality block
Definition: Muon.h:331

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

References DYT, and muonTrackFromMap().

56 { return muonTrackFromMap(DYT); }
TrackRef muonTrackFromMap(const MuonTrackType &type) const
Definition: Muon.h:68

◆ 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

reference to Track reconstructed in both tracked and muon detector

Reimplemented in pat::Muon.

Definition at line 51 of file Muon.h.

References globalTrack_.

Referenced by EwkMuDQM::analyze(), TrackSplittingMonitor::analyze(), CosmicSplitterValidation::analyze(), MuonToTrackingParticleAssociatorByHitsImpl::associateMuons(), combinedMuon(), MuonMETAlgo::GetMuDepDeltas(), isMediumMuonCustom(), isTightMuonCustom(), Muon.Muon::muonID(), helper::MuonCollectionStoreManager::processMuon(), and BPhysicsOniaDQM::selGlobalMuon().

51 { return globalTrack_; }
TrackRef globalTrack_
reference to Track reconstructed in both tracked and muon detector
Definition: Muon.h:320

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

References caloCompatibility_.

160 { return caloCompatibility_ >= 0; }
float caloCompatibility_
muon hypothesis compatibility with observer calorimeter energy
Definition: Muon.h:343

◆ isCaloMuon()

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

Reimplemented from reco::LeafCandidate.

Definition at line 306 of file Muon.h.

References CaloMuon, and type_.

306 { return type_ & CaloMuon; }
unsigned int type_
muon type mask
Definition: Muon.h:357
static const unsigned int CaloMuon
Definition: Muon.h:292

◆ isEnergyValid()

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

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

energy deposition

Definition at line 104 of file Muon.h.

References energyValid_.

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

104 { return energyValid_; }
bool energyValid_
Definition: Muon.h:337

◆ isGEMMuon()

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

Definition at line 309 of file Muon.h.

References GEMMuon, and type_.

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

309 { return type_ & GEMMuon; }
unsigned int type_
muon type mask
Definition: Muon.h:357
static const unsigned int GEMMuon
Definition: Muon.h:295

◆ isGlobalMuon()

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

◆ isIsolationValid()

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

Definition at line 177 of file Muon.h.

References isolationValid_.

Referenced by MuonMETAlgo::GetMuDepDeltas().

177 { return isolationValid_; }
bool isolationValid_
Definition: Muon.h:339

◆ isMatchesValid()

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

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

Definition at line 143 of file Muon.h.

References matchesValid_.

143 { return matchesValid_; }
bool matchesValid_
Definition: Muon.h:338

◆ isME0Muon()

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

Definition at line 310 of file Muon.h.

References ME0Muon, and type_.

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

310 { return type_ & ME0Muon; }
unsigned int type_
muon type mask
Definition: Muon.h:357
static const unsigned int ME0Muon
Definition: Muon.h:296

◆ isMuon()

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

Reimplemented from reco::LeafCandidate.

Definition at line 302 of file Muon.h.

Referenced by MuonToTrackingParticleAssociatorByHitsImpl::associateMuons().

302 { return true; }

◆ isolationR03()

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

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

Summary of muon isolation information

Definition at line 166 of file Muon.h.

References isolationR03_.

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

166 { return isolationR03_; }
MuonIsolation isolationR03_
Isolation information for two cones with dR=0.3 and dR=0.5.
Definition: Muon.h:345

◆ isolationR05()

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

Definition at line 167 of file Muon.h.

References isolationR05_.

Referenced by EwkMuTauHistManager::fillHistograms().

167 { return isolationR05_; }
MuonIsolation isolationR05_
Definition: Muon.h:346

◆ isPFIsolationValid()

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

Definition at line 180 of file Muon.h.

References pfIsolationValid_.

180 { return pfIsolationValid_; }
bool pfIsolationValid_
Definition: Muon.h:340

◆ isPFMuon()

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

Definition at line 307 of file Muon.h.

References PFMuon, and type_.

Referenced by MuonToTrackingParticleAssociatorByHitsImpl::associateMuons(), heppy::CMGMuonCleanerBySegmentsAlgo::clean(), isLooseMuonCustom(), isTightMuonCustom(), and MuonProducer::produce().

307 { return type_ & PFMuon; } //fix me ! Has to go to type
unsigned int type_
muon type mask
Definition: Muon.h:357
static const unsigned int PFMuon
Definition: Muon.h:293

◆ isQualityValid()

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

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

energy deposition

Definition at line 117 of file Muon.h.

References qualityValid_.

Referenced by MuonIdProducer::fillTrackerKink().

117 { return qualityValid_; }
bool qualityValid_
Definition: Muon.h:341

◆ isRPCMuon()

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

Definition at line 308 of file Muon.h.

References RPCMuon, and type_.

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

308 { return type_ & RPCMuon; }
unsigned int type_
muon type mask
Definition: Muon.h:357
static const unsigned int RPCMuon
Definition: Muon.h:294

◆ isStandAloneMuon()

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

Reimplemented from reco::LeafCandidate.

Definition at line 305 of file Muon.h.

References StandAloneMuon, and type_.

Referenced by MuonToTrackingParticleAssociatorByHitsImpl::associateMuons(), AlignmentMuonSelector::basicCuts(), and MuonProducer::produce().

305 { return type_ & StandAloneMuon; }
unsigned int type_
muon type mask
Definition: Muon.h:357
static const unsigned int StandAloneMuon
Definition: Muon.h:291

◆ isTimeValid()

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

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

timing information

Definition at line 130 of file Muon.h.

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

130 { return (time_.nDof > 0); }
int nDof
number of muon stations used
Definition: MuonTime.h:9
MuonTime time_
timing
Definition: Muon.h:335

◆ isTrackerMuon()

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

◆ matches() [1/2]

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

get muon matching information

Definition at line 145 of file Muon.h.

References muMatches_.

Referenced by pat::PATMuonProducer::fillL1TriggerInfo(), MuonIdProducer::fillMuonId(), MuonResidualsFromTrack::MuonResidualsFromTrack(), muon::overlap(), setMatches(), muon::sharedSegments(), and MuonIdTruthInfo::truthMatchMuon().

145 { return muMatches_; }
std::vector< MuonChamberMatch > muMatches_
Information on matching between tracks and segments.
Definition: Muon.h:333

◆ matches() [2/2]

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

Definition at line 146 of file Muon.h.

References muMatches_.

146 { return muMatches_; }
std::vector< MuonChamberMatch > muMatches_
Information on matching between tracks and segments.
Definition: Muon.h:333

◆ muonBestTrack()

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

Reimplemented in pat::Muon.

Definition at line 60 of file Muon.h.

References bestTrackType_, and muonTrack().

Referenced by isTightMuonCustom().

60 { return muonTrack(bestTrackType_); }
MuonTrackType bestTrackType_
reference to the Track chosen to assign the momentum value to the muon
Definition: Muon.h:324
TrackRef muonTrack(const MuonTrackType &) const

◆ muonBestTrackType()

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

Definition at line 61 of file Muon.h.

References bestTrackType_.

61 { return bestTrackType_; }
MuonTrackType bestTrackType_
reference to the Track chosen to assign the momentum value to the muon
Definition: Muon.h:324

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

References refittedTrackMap_.

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

68  {
69  MuonTrackRefMap::const_iterator iter = refittedTrackMap_.find(type);
70  if (iter != refittedTrackMap_.end())
71  return iter->second;
72  else
73  return TrackRef();
74  }
MuonTrackRefMap refittedTrackMap_
reference to the Global Track refitted with dedicated TeV reconstructors
Definition: Muon.h:322
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
Definition: TrackFwd.h:20

◆ 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 257 of file Muon.h.

References muMatches_.

257 { return muMatches_.size(); }
std::vector< MuonChamberMatch > muMatches_
Information on matching between tracks and segments.
Definition: Muon.h:333

◆ 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

reference to Track reconstructed in the muon detector only

Reimplemented in pat::Muon.

Definition at line 48 of file Muon.h.

References outerTrack_.

Referenced by RPCRecHitProbability::analyze(), RPCMonitorDigi::analyze(), CosmicSplitterValidation::analyze(), MuonToTrackingParticleAssociatorByHitsImpl::associateMuons(), FWMuonBuilder::calculateField(), MuonMETAlgo::GetMuDepDeltas(), CosmicSplitterValidation::is_gold_muon(), and standAloneMuon().

48 { return outerTrack_; }
TrackRef outerTrack_
reference to Track reconstructed in the muon detector only
Definition: Muon.h:318

◆ 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 ( uint64_t  selection) const
inline

Definition at line 241 of file Muon.h.

References corrVsCorr::selection, and selectors_.

Referenced by setSelector().

241 { return (selectors_ & selection) == selection; }
selection
main part
Definition: corrVsCorr.py:100
uint64_t selectors_
selector bitmap
Definition: Muon.h:370

◆ passed() [2/2]

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

Definition at line 242 of file Muon.h.

References passed(), and corrVsCorr::selection.

Referenced by passed().

242 { return passed(static_cast<uint64_t>(1UL << selection)); }
selection
main part
Definition: corrVsCorr.py:100
bool passed(uint64_t selection) const
Definition: Muon.h:241

◆ pfIsolationR03()

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

Definition at line 169 of file Muon.h.

References pfIsolationR03_.

169 { return pfIsolationR03_; }
MuonPFIsolation pfIsolationR03_
PF Isolation information for two cones with dR=0.3 and dR=0.4.
Definition: Muon.h:349

◆ pfIsolationR04()

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

Definition at line 172 of file Muon.h.

References pfIsolationR04_.

172 { return pfIsolationR04_; }
MuonPFIsolation pfIsolationR04_
Definition: Muon.h:352

◆ pfMeanDRIsoProfileR03()

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

Definition at line 170 of file Muon.h.

References pfIsoMeanDRR03_.

170 { return pfIsoMeanDRR03_; }
MuonPFIsolation pfIsoMeanDRR03_
Definition: Muon.h:350

◆ pfMeanDRIsoProfileR04()

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

Definition at line 173 of file Muon.h.

References pfIsoMeanDRR04_.

173 { return pfIsoMeanDRR04_; }
MuonPFIsolation pfIsoMeanDRR04_
Definition: Muon.h:353

◆ pfP4()

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

set reference to PFCandidate

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

Definition at line 97 of file Muon.h.

References pfP4_.

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

97 { return pfP4_; }
reco::Candidate::LorentzVector pfP4_
Definition: Muon.h:360

◆ pfSumDRIsoProfileR03()

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

Definition at line 171 of file Muon.h.

References pfIsoSumDRR03_.

171 { return pfIsoSumDRR03_; }
MuonPFIsolation pfIsoSumDRR03_
Definition: Muon.h:351

◆ pfSumDRIsoProfileR04()

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

Definition at line 174 of file Muon.h.

References pfIsoSumDRR04_.

174 { return pfIsoSumDRR04_; }
MuonPFIsolation pfIsoSumDRR04_
Definition: Muon.h:354

◆ pickyTrack()

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

Reimplemented in pat::Muon.

Definition at line 55 of file Muon.h.

References muonTrackFromMap(), and Picky.

55 { return muonTrackFromMap(Picky); }
TrackRef muonTrackFromMap(const MuonTrackType &type) const
Definition: Muon.h:68

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

References rpcTime_.

136 { return rpcTime_; }
MuonTime rpcTime_
Definition: Muon.h:336

◆ 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 243 of file Muon.h.

References selectors_.

Referenced by setSelectors().

243 { return selectors_; }
uint64_t selectors_
selector bitmap
Definition: Muon.h:370

◆ setBestTrack()

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

Definition at line 86 of file Muon.h.

References bestTrackType_.

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

86 { bestTrackType_ = muonType; }
MuonTrackType bestTrackType_
reference to the Track chosen to assign the momentum value to the muon
Definition: Muon.h:324

◆ setCalEnergy()

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

set energy deposition information

Definition at line 108 of file Muon.h.

References calEnergy(), calEnergy_, and energyValid_.

Referenced by MuonIdProducer::fillMuonId().

108  {
110  energyValid_ = true;
111  }
MuonEnergy calEnergy_
energy deposition
Definition: Muon.h:329
MuonEnergy calEnergy() const
get energy deposition information
Definition: Muon.h:106
bool energyValid_
Definition: Muon.h:337

◆ setCaloCompatibility()

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

Definition at line 159 of file Muon.h.

References caloCompatibility_, and input.

float caloCompatibility_
muon hypothesis compatibility with observer calorimeter energy
Definition: Muon.h:343
static std::string const input
Definition: EdmProvDump.cc:50

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

References combinedQuality(), combinedQuality_, and qualityValid_.

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

121  {
123  qualityValid_ = true;
124  }
MuonQuality combinedQuality() const
get energy deposition information
Definition: Muon.h:119
MuonQuality combinedQuality_
quality block
Definition: Muon.h:331
bool qualityValid_
Definition: Muon.h:341

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

References matches(), matchesValid_, and muMatches_.

Referenced by MuonIdProducer::fillMuonId().

148  {
150  matchesValid_ = true;
151  }
std::vector< MuonChamberMatch > & matches()
get muon matching information
Definition: Muon.h:145
std::vector< MuonChamberMatch > muMatches_
Information on matching between tracks and segments.
Definition: Muon.h:333
bool matchesValid_
Definition: Muon.h:338

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

References rpcTime_, and time().

138 { rpcTime_ = time; }
MuonTime rpcTime_
Definition: Muon.h:336
MuonTime time() const
get DT/CSC combined timing information
Definition: Muon.h:132

◆ setSelector()

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

Definition at line 245 of file Muon.h.

References passed(), collectionMerger::selector, and selectors_.

245  {
246  auto selector64 = 1UL << selector;
247  if (passed)
248  selectors_ |= selector64;
249  else
250  selectors_ &= ~selector64;
251  }
bool passed(uint64_t selection) const
Definition: Muon.h:241
uint64_t selectors_
selector bitmap
Definition: Muon.h:370

◆ setSelectors()

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

Definition at line 244 of file Muon.h.

References selectors(), and selectors_.

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

244 { selectors_ = selectors; }
uint64_t selectors() const
Definition: Muon.h:243
uint64_t selectors_
selector bitmap
Definition: Muon.h:370

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

References time(), and time_.

134 { time_ = time; }
MuonTime time_
timing
Definition: Muon.h:335
MuonTime time() const
get DT/CSC combined timing information
Definition: Muon.h:132

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

References bestTunePTrackType_.

Referenced by MuonIdProducer::makeMuon().

88 { bestTunePTrackType_ = muonType; }
MuonTrackType bestTunePTrackType_
reference to the Track chosen to assign the momentum value to the muon by PF
Definition: Muon.h:326

◆ setType()

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

Definition at line 298 of file Muon.h.

References type(), and type_.

298 { type_ = type; }
unsigned int type_
muon type mask
Definition: Muon.h:357
unsigned int type() const
Definition: Muon.h:299

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

References outerTrack().

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

49 { return outerTrack(); }
virtual TrackRef outerTrack() const
reference to Track reconstructed in the muon detector only
Definition: Muon.h:48

◆ 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 424 of file Muon.h.

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

424  {
425  int i = 0;
426  for (auto& chamber : muMatches_) {
427  int segmentMatchesSize = (int)chamber.segmentMatches.size();
428  if (i + segmentMatchesSize < n) {
429  i += segmentMatchesSize;
430  continue;
431  }
432  return chamber.segmentMatches[n - i].t0;
433  }
434  return 0;
435  }
std::vector< MuonChamberMatch > muMatches_
Information on matching between tracks and segments.
Definition: Muon.h:333

◆ time()

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

get DT/CSC combined timing information

Definition at line 132 of file Muon.h.

References time_.

Referenced by setRPCTime(), and setTime().

132 { return time_; }
MuonTime time_
timing
Definition: Muon.h:335

◆ tpfmsTrack()

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

Reimplemented in pat::Muon.

Definition at line 54 of file Muon.h.

References muonTrackFromMap(), and TPFMS.

54 { return muonTrackFromMap(TPFMS); }
TrackRef muonTrackFromMap(const MuonTrackType &type) const
Definition: Muon.h:68

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

References bestTunePTrackType_, and muonTrack().

62 { return muonTrack(bestTunePTrackType_); }
TrackRef muonTrack(const MuonTrackType &) const
MuonTrackType bestTunePTrackType_
reference to the Track chosen to assign the momentum value to the muon by PF
Definition: Muon.h:326

◆ tunePMuonBestTrackType()

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

Definition at line 63 of file Muon.h.

References bestTunePTrackType_.

63 { return bestTunePTrackType_; }
MuonTrackType bestTunePTrackType_
reference to the Track chosen to assign the momentum value to the muon by PF
Definition: Muon.h:326

◆ type()

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

Definition at line 299 of file Muon.h.

References type_.

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

299 { return type_; }
unsigned int type_
muon type mask
Definition: Muon.h:357

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 324 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 326 of file Muon.h.

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

◆ calEnergy_

MuonEnergy reco::Muon::calEnergy_
private

energy deposition

Definition at line 329 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 343 of file Muon.h.

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

◆ CaloMuon

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

Definition at line 292 of file Muon.h.

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

◆ combinedQuality_

MuonQuality reco::Muon::combinedQuality_
private

quality block

Definition at line 331 of file Muon.h.

Referenced by combinedQuality(), and setCombinedQuality().

◆ energyValid_

bool reco::Muon::energyValid_
private

Definition at line 337 of file Muon.h.

Referenced by isEnergyValid(), and setCalEnergy().

◆ GEMMuon

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

◆ 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 289 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 320 of file Muon.h.

Referenced by globalTrack().

◆ innerTrack_

TrackRef reco::Muon::innerTrack_
private

reference to Track reconstructed in the tracker only

Definition at line 316 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 345 of file Muon.h.

Referenced by isolationR03().

◆ isolationR05_

MuonIsolation reco::Muon::isolationR05_
private

Definition at line 346 of file Muon.h.

Referenced by isolationR05().

◆ isolationValid_

bool reco::Muon::isolationValid_
private

Definition at line 339 of file Muon.h.

Referenced by isIsolationValid().

◆ matchesValid_

bool reco::Muon::matchesValid_
private

Definition at line 338 of file Muon.h.

Referenced by isMatchesValid(), and setMatches().

◆ ME0Muon

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

Definition at line 296 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 333 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 318 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 349 of file Muon.h.

Referenced by pfIsolationR03().

◆ pfIsolationR04_

MuonPFIsolation reco::Muon::pfIsolationR04_
private

Definition at line 352 of file Muon.h.

Referenced by pfIsolationR04().

◆ pfIsolationValid_

bool reco::Muon::pfIsolationValid_
private

Definition at line 340 of file Muon.h.

Referenced by isPFIsolationValid().

◆ pfIsoMeanDRR03_

MuonPFIsolation reco::Muon::pfIsoMeanDRR03_
private

Definition at line 350 of file Muon.h.

Referenced by pfMeanDRIsoProfileR03().

◆ pfIsoMeanDRR04_

MuonPFIsolation reco::Muon::pfIsoMeanDRR04_
private

Definition at line 353 of file Muon.h.

Referenced by pfMeanDRIsoProfileR04().

◆ pfIsoSumDRR03_

MuonPFIsolation reco::Muon::pfIsoSumDRR03_
private

Definition at line 351 of file Muon.h.

Referenced by pfSumDRIsoProfileR03().

◆ pfIsoSumDRR04_

MuonPFIsolation reco::Muon::pfIsoSumDRR04_
private

Definition at line 354 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 360 of file Muon.h.

Referenced by pfP4().

◆ qualityValid_

bool reco::Muon::qualityValid_
private

Definition at line 341 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 322 of file Muon.h.

Referenced by muonTrackFromMap().

◆ RPCMuon

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

Definition at line 294 of file Muon.h.

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

◆ rpcTime_

MuonTime reco::Muon::rpcTime_
private

Definition at line 336 of file Muon.h.

Referenced by rpcTime(), and setRPCTime().

◆ selectors_

uint64_t reco::Muon::selectors_
private

selector bitmap

Definition at line 370 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 335 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