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
 

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

Definition at line 39 of file Muon.h.

Definition at line 40 of file Muon.h.

Member Enumeration Documentation

define arbitration schemes

Enumerator
NoArbitration 
SegmentArbitration 
SegmentAndTrackArbitration 
SegmentAndTrackArbitrationCleaned 
RPCHitAndTrackArbitration 
GEMSegmentAndTrackArbitration 
ME0SegmentAndTrackArbitration 

Definition at line 186 of file Muon.h.

map for Global Muon refitters

Enumerator
None 
InnerTrack 
OuterTrack 
CombinedTrack 
TPFMS 
Picky 
DYT 

Definition at line 38 of file Muon.h.

====================== 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 192 of file Muon.h.

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

Constructor & Destructor Documentation

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

constructor from values

Member Function Documentation

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

Reimplemented from reco::Candidate.

Reimplemented in pat::Muon.

Definition at line 61 of file Muon.h.

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

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

61 {return muonTrack(bestTrackType_).get();}
TrackRef muonTrack(const MuonTrackType &) const
MuonTrackType bestTrackType_
reference to the Track chosen to assign the momentum value to the muon
Definition: Muon.h:312
T const * get() const
Returns C++ pointer to the item.
Definition: Ref.h:243
TrackBaseRef reco::Muon::bestTrackRef ( ) const
inlineoverridevirtual

best track RefToBase

Reimplemented from reco::RecoCandidate.

Definition at line 62 of file Muon.h.

References bestTrackType_, and muonTrack().

edm::RefToBase< reco::Track > TrackBaseRef
persistent reference to a Track, using views
Definition: TrackFwd.h:36
TrackRef muonTrack(const MuonTrackType &) const
MuonTrackType bestTrackType_
reference to the Track chosen to assign the momentum value to the muon
Definition: Muon.h:312
MuonEnergy reco::Muon::calEnergy ( ) const
inline
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 154 of file Muon.h.

References caloCompatibility_.

Referenced by muon::caloCompatibility(), and CaloMuonMerger::produce().

154 { return caloCompatibility_; }
float caloCompatibility_
muon hypothesis compatibility with observer calorimeter energy
Definition: Muon.h:331
const std::vector<const MuonChamberMatch*> reco::Muon::chambers ( int  station,
int  muonSubdetId 
) const
private

get vector of muon chambers for given station and detector

Muon* reco::Muon::clone ( ) const
overridevirtual
TrackRef reco::Muon::combinedMuon ( ) const
inlineoverridevirtual

reference to a stand-alone muon Track

Reimplemented from reco::RecoCandidate.

Reimplemented in pat::Muon.

Definition at line 55 of file Muon.h.

References globalTrack().

Referenced by AlignmentMuonSelector::basicCuts(), MuonIdProducer::fillGlbQuality(), MuonTimingFiller::fillTiming(), and helper::MuonCollectionStoreManager::processMuon().

55 { return globalTrack(); }
virtual TrackRef globalTrack() const
reference to Track reconstructed in both tracked and muon detector
Definition: Muon.h:54
MuonQuality reco::Muon::combinedQuality ( ) const
inline
float reco::Muon::dDxDz ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const
float reco::Muon::dDyDz ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const
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

Referenced by muon::isGoodMuon(), and muon::segmentCompatibility().

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

Reimplemented in pat::Muon.

Definition at line 59 of file Muon.h.

References muonTrackFromMap().

Referenced by reco::operator<<(), and muon::tevOptimized().

59 { return muonTrackFromMap(DYT);}
TrackRef muonTrackFromMap(const MuonTrackType &type) const
Definition: Muon.h:73
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

Referenced by muon::isHighPtMuon(), muon::isLooseTriggerMuon(), and numberOfChambers().

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

tag a shower in a given station layer

Referenced by numberOfChambers().

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

Reimplemented in pat::Muon.

Definition at line 48 of file Muon.h.

References innerTrack_.

Referenced by EwkMuDQM::analyze(), EwkMuLumiMonitorDQM::analyze(), MuonPFAnalyzer::analyze(), HLTMuonMatchAndPlot::analyze(), MuonCosmicCompatibilityFiller::backToBack2LegCosmic(), ZToMuMuGammaAnalyzer::basicMuonSelection(), FWMuonBuilder::buildMuon(), FWMuonBuilder::calculateField(), MuonsFromRefitTracksProducer::cloneAndSwitchTrack(), cms::MuonMETValueMapProducer::determine_deltax_deltay(), MuonTimingFiller::fillTiming(), MuonIdProducer::fillTrackerKink(), WMuNuValidator::filter(), BadParticleFilter::filter(), LeptonRecoSkim::filter(), MuonMETAlgo::GetMuDepDeltas(), cms::MuonTCMETValueMapProducer::isGoodCaloMuon(), muon::isGoodMuon(), cms::MuonTCMETValueMapProducer::isGoodMuon(), cms::MuonTCMETValueMapProducer::isGoodTrack(), muon::isHighPtMuon(), muon::isLooseTriggerMuon(), muon::isMediumMuon(), isMediumMuonCustom(), MuonCosmicCompatibilityFiller::isOverlappingMuon(), muon::isSoftMuon(), muon::isTightMuon(), isTightMuonCustom(), muon::isTrackerHighPtMuon(), Lepton.Lepton::lostInner(), MuonIdProducer::makeCaloMuon(), Muon.Muon::muonID(), MuonResidualsFromTrack::MuonResidualsFromTrack(), MuonTrackCut::operator()(), MuonDxyCut::operator()(), MuonDzCut::operator()(), reco::operator<<(), BadGlobalMuonTagger::outInOnly(), MuonIdProducer::phiOfMuonIneteractionRegion(), helper::MuonCollectionStoreManager::processMuon(), MuonWithPFIsoProducer::produce(), UpdatedMuonInnerTrackRef::produce(), SoftPFMuonTagInfoProducer::produce(), WMuNuProducer::produce(), Onia2MuMuPAT::produce(), cms::MuonTCMETValueMapProducer::produce(), MuonIdProducer::produce(), cms::MuonTCMETValueMapProducer::propagateTrack(), MuonCosmicCompatibilityFiller::pvMatches(), BPhysicsOniaDQM::selGlobalMuon(), BPhysicsOniaDQM::selTrackerMuon(), cms::MuonMETValueMapProducer::should_type_MuonCandidateValuesUsed(), sigmaSwitch(), muon::sigmaSwitch(), muon::tevOptimized(), tevOptimizedTMR(), track(), MuonTrackCut::value(), MuonDzCut::value(), and MuonDxyCut::value().

48 { return innerTrack_; }
TrackRef innerTrack_
reference to Track reconstructed in the tracker only
Definition: Muon.h:304
bool reco::Muon::isAValidMuonTrack ( const MuonTrackType type) const
bool reco::Muon::isCaloCompatibilityValid ( ) const
inline

Definition at line 156 of file Muon.h.

References caloCompatibility_.

Referenced by CaloMuonMerger::produce().

156 { return caloCompatibility_>=0; }
float caloCompatibility_
muon hypothesis compatibility with observer calorimeter energy
Definition: Muon.h:331
bool reco::Muon::isCaloMuon ( ) const
inlineoverridevirtual

Reimplemented from reco::LeafCandidate.

Definition at line 294 of file Muon.h.

References CaloMuon, and type_.

Referenced by cms::MuonTCMETValueMapProducer::produce().

294 { return type_ & CaloMuon; }
unsigned int type_
muon type mask
Definition: Muon.h:345
static const unsigned int CaloMuon
Definition: Muon.h:279
bool reco::Muon::isEnergyValid ( ) const
inline

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

energy deposition

Definition at line 109 of file Muon.h.

References energyValid_.

Referenced by MuonTimingFiller::addEcalTime(), FWMuonDetailView::addSceneInfo(), FWMuonLegoProxyBuilder::build(), FWMuonDetailView::build(), MuonIdProducer::makeCaloMuon(), pat::PATMuonSlimmer::produce(), MuonIdProducer::produce(), and FWMuonDetailView::setTextInfo().

109 { return energyValid_; }
bool energyValid_
Definition: Muon.h:325
bool reco::Muon::isGEMMuon ( ) const
inline
bool reco::Muon::isGlobalMuon ( ) const
inlineoverridevirtual

Reimplemented from reco::LeafCandidate.

Definition at line 291 of file Muon.h.

References GlobalMuon, and type_.

Referenced by GlbMuQualityCutsAnalysis::analyze(), RPCRecHitProbability::analyze(), RPCMonitorDigi::analyze(), EwkMuDQM::analyze(), EwkMuLumiMonitorDQM::analyze(), ZMuMu_vtxAnalyzer::analyze(), ZMuMu_efficiencyAnalyzer::analyze(), HiggsDQM::analyze(), MuTriggerAnalyzer::analyze(), MuonToTrackingParticleAssociatorByHitsImpl::associateMuons(), MuonCosmicCompatibilityFiller::backToBack2LegCosmic(), AlignmentMuonSelector::basicCuts(), ZToMuMuGammaAnalyzer::basicMuonSelection(), FWMuonBuilder::buildMuon(), MuonCosmicCompatibilityFiller::combinedCosmicID(), cms::MuonMETValueMapProducer::determine_deltax_deltay(), MuonIdProducer::fillGlbQuality(), EwkMuTauHistManager::fillHistograms(), MuonShowerInformationFiller::fillHitsByStation(), pat::PATMuonProducer::fillMuon(), WMuNuValidator::filter(), BadParticleFilter::filter(), WMuNuSelector::filter(), LeptonRecoSkim::filter(), MuonMETAlgo::GetMuDepDeltas(), BPHTrackReference::getMuonGT(), heppy::CMGMuonCleanerBySegmentsAlgo::isBetterMuon(), muon::isGoodMuon(), cms::MuonTCMETValueMapProducer::isGoodMuon(), muon::isHighPtMuon(), muon::isLooseMuon(), isLooseMuonCustom(), muon::isMediumMuon(), isMediumMuonCustom(), MuonIDTableProducer::isMediumMuonHIP(), MuonCosmicCompatibilityFiller::isOverlappingMuon(), muon::isTightMuon(), isTightMuonCustom(), Muon.Muon::muonID(), MuonSegmentCompatibilityCut::operator()(), DistortedPFCandProducer::produce(), ZMuMuMuonUserData::produce(), ZMuMuUserData::produce(), WMuNuProducer::produce(), ZToLLEdmNtupleDumper::produce(), cms::MuonTCMETValueMapProducer::produce(), MuonProducer::produce(), MuonMCClassifier::produce(), MuonCosmicCompatibilityFiller::pvMatches(), MuScleFitMuonSelector::selectMuons(), cms::MuonMETValueMapProducer::should_type_MuonCandidateValuesUsed(), BadGlobalMuonTagger::tightGlobal(), and PFMuonSelector::TopPag12LjetsCuts().

291 { return type_ & GlobalMuon; }
static const unsigned int GlobalMuon
Definition: Muon.h:276
unsigned int type_
muon type mask
Definition: Muon.h:345
bool reco::Muon::isIsolationValid ( ) const
inline

Definition at line 174 of file Muon.h.

References isolationValid_, label, setPFIsolation(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by MuonMETAlgo::GetMuDepDeltas().

174 { return isolationValid_; }
bool isolationValid_
Definition: Muon.h:327
bool reco::Muon::isMatchesValid ( ) const
inline

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

Definition at line 142 of file Muon.h.

References matchesValid_.

Referenced by FWMuonBuilder::buildMuon(), muon::isGoodMuon(), MuonIdProducer::overlap(), and pat::PATMuonSlimmer::produce().

142 { return matchesValid_; }
bool matchesValid_
Definition: Muon.h:326
bool reco::Muon::isME0Muon ( ) const
inline
bool reco::Muon::isMuon ( ) const
inlineoverridevirtual

Reimplemented from reco::LeafCandidate.

Definition at line 290 of file Muon.h.

Referenced by MuonToTrackingParticleAssociatorByHitsImpl::associateMuons().

290 { return true; }
const MuonIsolation& reco::Muon::isolationR03 ( ) const
inline
const MuonIsolation& reco::Muon::isolationR05 ( ) const
inline

Definition at line 163 of file Muon.h.

References isolationR05_.

Referenced by EwkMuTauHistManager::fillHistograms(), and MuonIsolationDQM::RecordData().

163 { return isolationR05_; }
MuonIsolation isolationR05_
Definition: Muon.h:334
bool reco::Muon::isPFIsolationValid ( ) const
inline

Definition at line 178 of file Muon.h.

References pfIsolationValid_.

178 { return pfIsolationValid_; }
bool pfIsolationValid_
Definition: Muon.h:328
bool reco::Muon::isPFMuon ( ) const
inline
bool reco::Muon::isQualityValid ( ) const
inline

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

energy deposition

Definition at line 119 of file Muon.h.

References qualityValid_.

Referenced by MuonIdProducer::fillTrackerKink(), muon::isGoodMuon(), and pat::PATMuonSlimmer::produce().

119 { return qualityValid_; }
bool qualityValid_
Definition: Muon.h:329
bool reco::Muon::isRPCMuon ( ) const
inline
bool reco::Muon::isStandAloneMuon ( ) const
inlineoverridevirtual
bool reco::Muon::isTimeValid ( ) const
inline

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

timing information

Definition at line 129 of file Muon.h.

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

Referenced by MuonCosmicCompatibilityFiller::muonTiming(), and MuonIdProducer::produce().

129 { return (time_.nDof>0); }
int nDof
number of muon stations used
Definition: MuonTime.h:10
MuonTime time_
timing
Definition: Muon.h:323
bool reco::Muon::isTrackerMuon ( ) const
inlineoverridevirtual

Reimplemented from reco::LeafCandidate.

Definition at line 292 of file Muon.h.

References TrackerMuon, and type_.

Referenced by GlbMuQualityCutsAnalysis::analyze(), EwkMuDQM::analyze(), HiggsDQM::analyze(), HLTMuonMatchAndPlot::analyze(), MuonToSimAssociatorByHits::associateMuons(), MuonToTrackingParticleAssociatorByHitsImpl::associateMuons(), MuonCosmicCompatibilityFiller::backToBack2LegCosmic(), AlignmentMuonSelector::basicCuts(), FWMuonBuilder::buildMuon(), cms::MuonMETValueMapProducer::determine_deltax_deltay(), EwkMuTauHistManager::fillHistograms(), MuonIdProducer::fillMuonId(), MuonTimingFiller::fillTiming(), WMuNuValidator::filter(), WMuNuSelector::filter(), LeptonRecoSkim::filter(), MuonMETAlgo::GetMuDepDeltas(), BPHTrackReference::getMuonIT(), muon::isGoodMuon(), cms::MuonTCMETValueMapProducer::isGoodMuon(), muon::isHighPtMuon(), muon::isLooseMuon(), isLooseMuonCustom(), muon::isTrackerHighPtMuon(), MuonResidualsFromTrack::MuonResidualsFromTrack(), ZToMuMuGammaAnalyzer::muonSelection(), DistortedPFCandProducer::produce(), ZMuMuMuonUserData::produce(), ZToLLEdmNtupleDumper::produce(), cms::MuonTCMETValueMapProducer::produce(), MuonProducer::produce(), MuonCosmicCompatibilityFiller::pvMatches(), MuScleFitMuonSelector::selectMuons(), cms::MuonMETValueMapProducer::should_type_MuonCandidateValuesUsed(), and PFMuonSelector::TopPag12LjetsCuts().

292 { return type_ & TrackerMuon; }
unsigned int type_
muon type mask
Definition: Muon.h:345
static const unsigned int TrackerMuon
Definition: Muon.h:277
std::vector<MuonChamberMatch>& reco::Muon::matches ( )
inline
const std::vector<MuonChamberMatch>& reco::Muon::matches ( ) const
inline

Definition at line 145 of file Muon.h.

References muMatches_.

145 { return muMatches_; }
std::vector< MuonChamberMatch > muMatches_
Information on matching between tracks and segments.
Definition: Muon.h:321
virtual TrackRef reco::Muon::muonBestTrack ( ) const
inlinevirtual

Reimplemented in pat::Muon.

Definition at line 63 of file Muon.h.

References bestTrackType_, and muonTrack().

Referenced by BadParticleFilter::filter(), BPHTrackReference::getMuonBT(), muon::isTightMuon(), isTightMuonCustom(), muon::makeSelectorBitset(), MuonMomQualityCut::operator()(), MuonDxyCut::operator()(), MuonDzCut::operator()(), reco::operator<<(), BadGlobalMuonTagger::safeId(), MuonMomQualityCut::value(), MuonDzCut::value(), and MuonDxyCut::value().

63 {return muonTrack(bestTrackType_);}
TrackRef muonTrack(const MuonTrackType &) const
MuonTrackType bestTrackType_
reference to the Track chosen to assign the momentum value to the muon
Definition: Muon.h:312
virtual MuonTrackType reco::Muon::muonBestTrackType ( ) const
inlinevirtual

Definition at line 64 of file Muon.h.

References bestTrackType_.

Referenced by MuonPFAnalyzer::muonTrackType().

64 {return bestTrackType_;}
MuonTrackType bestTrackType_
reference to the Track chosen to assign the momentum value to the muon
Definition: Muon.h:312
TrackRef reco::Muon::muonTrack ( const MuonTrackType ) const
TrackRef reco::Muon::muonTrackFromMap ( const MuonTrackType type) const
inline

Definition at line 73 of file Muon.h.

References refittedTrackMap_, setCombined(), setGlobalTrack(), setInnerTrack(), setOuterTrack(), setStandAlone(), setTrack(), and lumiQTWidget::t.

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

73  {
74  MuonTrackRefMap::const_iterator iter = refittedTrackMap_.find(type);
75  if (iter != refittedTrackMap_.end())
76  return iter->second;
77  else
78  return TrackRef();
79  }
type
Definition: HCALResponse.h:21
MuonTrackRefMap refittedTrackMap_
reference to the Global Track refitted with dedicated TeV reconstructors
Definition: Muon.h:310
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
Definition: TrackFwd.h:21
int reco::Muon::nDigisInStation ( int  station,
int  muonSubdetId 
) const

of digis in a given station layer

Referenced by numberOfChambers().

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

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

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

Definition at line 244 of file Muon.h.

References expectedNnumberOfMatchedStations(), hasShowerInStation(), muMatches_, nDigisInStation(), numberOfChambersCSCorDT(), numberOfMatchedRPCLayers(), numberOfMatchedStations(), numberOfMatches(), numberOfShowers(), RPCHitAndTrackArbitration, RPClayerMask(), SegmentAndTrackArbitration, particleFlowRecHitHBHE_cfi::sigmaCut, relativeConstraints::station, stationGapMaskDistance(), stationGapMaskPull(), and stationMask().

Referenced by ZMuMuMuonUserData::produce(), and ZToLLEdmNtupleDumper::produce().

244 { return muMatches_.size(); }
std::vector< MuonChamberMatch > muMatches_
Information on matching between tracks and segments.
Definition: Muon.h:321
int reco::Muon::numberOfChambersCSCorDT ( ) const

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

Referenced by numberOfChambers().

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

Referenced by MuonIdProducer::isGoodRPCMuon(), muon::isHighPtMuon(), and numberOfChambers().

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

get number of segments

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

count the number of showers along a muon track

Referenced by numberOfChambers().

virtual TrackRef reco::Muon::outerTrack ( ) const
inlinevirtual
bool reco::Muon::overlap ( const Candidate ) const
overrideprivatevirtual

check overlap with another candidate

Implements reco::RecoCandidate.

Referenced by isME0Muon().

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

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

Definition at line 229 of file Muon.h.

References corrVsCorr::selection, and selectors_.

229 { return (selectors_ & selection)==selection; }
selection
main part
Definition: corrVsCorr.py:100
uint64_t selectors_
selector bitmap
Definition: Muon.h:358
bool reco::Muon::passed ( Selector  selection) const
inline

Definition at line 230 of file Muon.h.

References passed().

Referenced by passed().

230 { return passed(static_cast<unsigned int>(selection)); }
bool passed(uint64_t selection) const
Definition: Muon.h:229
const MuonPFIsolation& reco::Muon::pfIsolationR03 ( ) const
inline

Definition at line 165 of file Muon.h.

References pfIsolationR03_.

Referenced by MuonIsolationDQM::RecordData().

165 { return pfIsolationR03_; }
MuonPFIsolation pfIsolationR03_
PF Isolation information for two cones with dR=0.3 and dR=0.4.
Definition: Muon.h:337
const MuonPFIsolation& reco::Muon::pfIsolationR04 ( ) const
inline

Definition at line 168 of file Muon.h.

References pfIsolationR04_.

Referenced by pat::MuonMvaEstimator::computeMva(), muon::makeSelectorBitset(), ZCounting::passMuonIso(), and MuonIsolationDQM::RecordData().

168 { return pfIsolationR04_; }
MuonPFIsolation pfIsolationR04_
Definition: Muon.h:340
const MuonPFIsolation& reco::Muon::pfMeanDRIsoProfileR03 ( ) const
inline

Definition at line 166 of file Muon.h.

References pfIsoMeanDRR03_.

166 { return pfIsoMeanDRR03_; }
MuonPFIsolation pfIsoMeanDRR03_
Definition: Muon.h:338
const MuonPFIsolation& reco::Muon::pfMeanDRIsoProfileR04 ( ) const
inline

Definition at line 169 of file Muon.h.

References pfIsoMeanDRR04_.

Referenced by MuonIsolationDQM::RecordData().

169 { return pfIsoMeanDRR04_; }
MuonPFIsolation pfIsoMeanDRR04_
Definition: Muon.h:341
reco::Candidate::LorentzVector reco::Muon::pfP4 ( ) const
inline

set reference to PFCandidate

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

Definition at line 102 of file Muon.h.

References pfP4_, and setPFP4().

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

102 {return pfP4_;}
reco::Candidate::LorentzVector pfP4_
Definition: Muon.h:348
const MuonPFIsolation& reco::Muon::pfSumDRIsoProfileR03 ( ) const
inline

Definition at line 167 of file Muon.h.

References pfIsoSumDRR03_.

167 { return pfIsoSumDRR03_; }
MuonPFIsolation pfIsoSumDRR03_
Definition: Muon.h:339
const MuonPFIsolation& reco::Muon::pfSumDRIsoProfileR04 ( ) const
inline

Definition at line 170 of file Muon.h.

References pfIsoSumDRR04_, and setIsolation().

Referenced by MuonIsolationDQM::RecordData().

170 { return pfIsoSumDRR04_; }
MuonPFIsolation pfIsoSumDRR04_
Definition: Muon.h:342
virtual TrackRef reco::Muon::pickyTrack ( ) const
inlinevirtual

Reimplemented in pat::Muon.

Definition at line 58 of file Muon.h.

References muonTrackFromMap(), and Picky.

Referenced by reco::operator<<(), and muon::tevOptimized().

58 { return muonTrackFromMap(Picky);}
TrackRef muonTrackFromMap(const MuonTrackType &type) const
Definition: Muon.h:73
float reco::Muon::pullDxDz ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration,
bool  includeSegmentError = true 
) const

Referenced by muon::isGoodMuon().

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

Referenced by muon::isGoodMuon().

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

Referenced by numberOfChambers().

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

get RPC timing information

Definition at line 135 of file Muon.h.

References rpcTime_.

Referenced by outOfTimeMuon().

135 { return rpcTime_; }
MuonTime rpcTime_
Definition: Muon.h:324
float reco::Muon::segmentDxDz ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const
float reco::Muon::segmentDxDzErr ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const
float reco::Muon::segmentDyDz ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const
float reco::Muon::segmentDyDzErr ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const
float reco::Muon::segmentX ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const

get (best) segment information If no segment returns 999999

Referenced by muon::segmentCompatibility().

float reco::Muon::segmentXErr ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const
float reco::Muon::segmentY ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const
float reco::Muon::segmentYErr ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const
uint64_t reco::Muon::selectors ( ) const
inline

Definition at line 231 of file Muon.h.

References selectors_.

Referenced by muon::makeSelectorBitset(), and setSelectors().

231 { return selectors_; }
uint64_t selectors_
selector bitmap
Definition: Muon.h:358
virtual void reco::Muon::setBestTrack ( MuonTrackType  muonType)
inlinevirtual

Definition at line 91 of file Muon.h.

References bestTrackType_.

Referenced by MuonsFromRefitTracksProducer::cloneAndSwitchTrack(), and MuonProducer::produce().

91 {bestTrackType_ = muonType;}
MuonTrackType bestTrackType_
reference to the Track chosen to assign the momentum value to the muon
Definition: Muon.h:312
void reco::Muon::setCalEnergy ( const MuonEnergy calEnergy)
inline

set energy deposition information

Definition at line 113 of file Muon.h.

References calEnergy(), calEnergy_, and energyValid_.

Referenced by MuonIdProducer::fillMuonId(), CaloMuonMerger::produce(), and pat::PATMuonSlimmer::produce().

113 { calEnergy_ = calEnergy; energyValid_ = true; }
MuonEnergy calEnergy_
energy deposition
Definition: Muon.h:317
bool energyValid_
Definition: Muon.h:325
MuonEnergy calEnergy() const
get energy deposition information
Definition: Muon.h:111
void reco::Muon::setCaloCompatibility ( float  input)
inline

Definition at line 155 of file Muon.h.

References caloCompatibility_, and input.

Referenced by CaloMuonMerger::produce().

float caloCompatibility_
muon hypothesis compatibility with observer calorimeter energy
Definition: Muon.h:331
static std::string const input
Definition: EdmProvDump.cc:48
virtual void reco::Muon::setCombined ( const TrackRef t)
virtual
void reco::Muon::setCombinedQuality ( const MuonQuality combinedQuality)
inline

set energy deposition information

Definition at line 123 of file Muon.h.

References combinedQuality(), combinedQuality_, and qualityValid_.

Referenced by MuonIdProducer::fillGlbQuality(), MuonIdProducer::fillTrackerKink(), and pat::PATMuonSlimmer::produce().

MuonQuality combinedQuality() const
get energy deposition information
Definition: Muon.h:121
MuonQuality combinedQuality_
quality block
Definition: Muon.h:319
bool qualityValid_
Definition: Muon.h:329
virtual void reco::Muon::setGlobalTrack ( const TrackRef t)
virtual
virtual void reco::Muon::setInnerTrack ( const TrackRef t)
virtual
void reco::Muon::setIsolation ( const MuonIsolation isoR03,
const MuonIsolation isoR05 
)
void reco::Muon::setMatches ( const std::vector< MuonChamberMatch > &  matches)
inline

set muon matching information

Definition at line 147 of file Muon.h.

References matches(), matchesValid_, and muMatches_.

Referenced by MuonIdProducer::fillMuonId().

147 { muMatches_ = matches; matchesValid_ = true; }
std::vector< MuonChamberMatch > & matches()
get muon matching information
Definition: Muon.h:144
std::vector< MuonChamberMatch > muMatches_
Information on matching between tracks and segments.
Definition: Muon.h:321
bool matchesValid_
Definition: Muon.h:326
void reco::Muon::setMuonTrack ( const MuonTrackType ,
const TrackRef  
)

Referenced by setTunePBestTrack().

virtual void reco::Muon::setOuterTrack ( const TrackRef t)
virtual
void reco::Muon::setPFIsolation ( const std::string &  label,
const reco::MuonPFIsolation deposit 
)
virtual void reco::Muon::setPFP4 ( const reco::Candidate::LorentzVector p4_)
virtual
void reco::Muon::setRPCTime ( const MuonTime time)
inline

set RPC timing information

Definition at line 137 of file Muon.h.

References rpcTime_, and time().

137 { rpcTime_ = time; }
MuonTime rpcTime_
Definition: Muon.h:324
MuonTime time() const
get DT/CSC combined timing information
Definition: Muon.h:131
void reco::Muon::setSelector ( Selector  selector,
bool  passed 
)
inline

Definition at line 233 of file Muon.h.

References selectors_.

233  {
234  if (passed)
235  selectors_ |= selector;
236  else
237  selectors_ &= ~selector;
238  }
bool passed(uint64_t selection) const
Definition: Muon.h:229
uint64_t selectors_
selector bitmap
Definition: Muon.h:358
void reco::Muon::setSelectors ( uint64_t  selectors)
inline

Definition at line 232 of file Muon.h.

References selectors(), and selectors_.

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

232 { selectors_ = selectors; }
uint64_t selectors() const
Definition: Muon.h:231
uint64_t selectors_
selector bitmap
Definition: Muon.h:358
virtual void reco::Muon::setStandAlone ( const TrackRef t)
virtual
void reco::Muon::setTime ( const MuonTime time)
inline

set DT/CSC combined timing information

Definition at line 133 of file Muon.h.

References time(), and time_.

133 { time_ = time; }
MuonTime time() const
get DT/CSC combined timing information
Definition: Muon.h:131
MuonTime time_
timing
Definition: Muon.h:323
virtual void reco::Muon::setTrack ( const TrackRef t)
virtual
virtual void reco::Muon::setTunePBestTrack ( MuonTrackType  muonType)
inlinevirtual

Definition at line 93 of file Muon.h.

References bestTunePTrackType_, and setMuonTrack().

93 {bestTunePTrackType_ = muonType;}
MuonTrackType bestTunePTrackType_
reference to the Track chosen to assign the momentum value to the muon by PF
Definition: Muon.h:314
void reco::Muon::setType ( unsigned int  type)
inline

Definition at line 285 of file Muon.h.

References type(), and type_.

Referenced by PFMuonUntagger::produce(), CaloMuonMerger::produce(), and MuonIdProducer::produce().

285 { type_ = type; }
unsigned int type_
muon type mask
Definition: Muon.h:345
unsigned int type() const
Definition: Muon.h:286
TrackRef reco::Muon::standAloneMuon ( ) const
inlineoverridevirtual
unsigned int reco::Muon::stationGapMaskDistance ( float  distanceCut = 10.) const

Referenced by numberOfChambers().

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

same as above for given number of sigmas

Referenced by numberOfChambers().

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

Referenced by muon::isGoodMuon(), muon::isHighPtMuon(), and numberOfChambers().

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

Definition at line 399 of file Muon.h.

References relativeConstraints::chamber, mps_fire::i, and gen::n.

399  {
400  int i = 0;
401  for( std::vector<MuonChamberMatch>::const_iterator chamber = muMatches_.begin();
402  chamber != muMatches_.end(); ++chamber )
403  for ( std::vector<reco::MuonSegmentMatch>::const_iterator segment = chamber->segmentMatches.begin();
404  segment != chamber->segmentMatches.end(); ++segment )
405  {
406  if (i==n) return segment->t0;
407  ++i;
408  }
409  return 0;
410  }
std::vector< MuonChamberMatch > muMatches_
Information on matching between tracks and segments.
Definition: Muon.h:321
MuonTime reco::Muon::time ( ) const
inline

get DT/CSC combined timing information

Definition at line 131 of file Muon.h.

References time_.

Referenced by pat::SoftMuonMvaEstimator::computeMva(), MuonCosmicCompatibilityFiller::muonTiming(), outOfTimeMuon(), MuonIdProducer::produce(), setRPCTime(), and setTime().

131 { return time_; }
MuonTime time_
timing
Definition: Muon.h:323
virtual TrackRef reco::Muon::tpfmsTrack ( ) const
inlinevirtual

Reimplemented in pat::Muon.

Definition at line 57 of file Muon.h.

References muonTrackFromMap(), and TPFMS.

Referenced by reco::operator<<(), and muon::tevOptimized().

57 { return muonTrackFromMap(TPFMS);}
TrackRef muonTrackFromMap(const MuonTrackType &type) const
Definition: Muon.h:73
TrackRef reco::Muon::track ( ) const
inlineoverridevirtual
float reco::Muon::trackDist ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const
float reco::Muon::trackDistErr ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const
float reco::Muon::trackDxDz ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const
float reco::Muon::trackDxDzErr ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const
float reco::Muon::trackDyDz ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const
float reco::Muon::trackDyDzErr ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const
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

float reco::Muon::trackEdgeY ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const
float reco::Muon::trackX ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const
float reco::Muon::trackXErr ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const
float reco::Muon::trackY ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const
float reco::Muon::trackYErr ( int  station,
int  muonSubdetId,
ArbitrationType  type = SegmentAndTrackArbitration 
) const
virtual TrackRef reco::Muon::tunePMuonBestTrack ( ) const
inlinevirtual

Reimplemented in pat::Muon.

Definition at line 65 of file Muon.h.

References bestTunePTrackType_, and muonTrack().

Referenced by MuonPFAnalyzer::analyze(), muon::isHighPtMuon(), muon::isTrackerHighPtMuon(), and reco::operator<<().

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:314
virtual MuonTrackType reco::Muon::tunePMuonBestTrackType ( ) const
inlinevirtual

Definition at line 66 of file Muon.h.

References bestTunePTrackType_, isAValidMuonTrack(), and muonTrack().

Referenced by MuonPFAnalyzer::muonTrackType().

66 {return bestTunePTrackType_;}
MuonTrackType bestTunePTrackType_
reference to the Track chosen to assign the momentum value to the muon by PF
Definition: Muon.h:314
unsigned int reco::Muon::type ( ) const
inline

Member Data Documentation

MuonTrackType reco::Muon::bestTrackType_
private

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

Definition at line 312 of file Muon.h.

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

MuonTrackType reco::Muon::bestTunePTrackType_
private

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

Definition at line 314 of file Muon.h.

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

MuonEnergy reco::Muon::calEnergy_
private

energy deposition

Definition at line 317 of file Muon.h.

Referenced by calEnergy(), and setCalEnergy().

float reco::Muon::caloCompatibility_
private

muon hypothesis compatibility with observer calorimeter energy

Definition at line 331 of file Muon.h.

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

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

Definition at line 279 of file Muon.h.

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

MuonQuality reco::Muon::combinedQuality_
private

quality block

Definition at line 319 of file Muon.h.

Referenced by combinedQuality(), and setCombinedQuality().

bool reco::Muon::energyValid_
private

Definition at line 325 of file Muon.h.

Referenced by isEnergyValid(), and setCalEnergy().

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

Definition at line 282 of file Muon.h.

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

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

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

TrackRef reco::Muon::globalTrack_
private

reference to Track reconstructed in both tracked and muon detector

Definition at line 308 of file Muon.h.

Referenced by globalTrack().

TrackRef reco::Muon::innerTrack_
private

reference to Track reconstructed in the tracker only

Definition at line 304 of file Muon.h.

Referenced by innerTrack().

MuonIsolation reco::Muon::isolationR03_
private

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

Definition at line 333 of file Muon.h.

Referenced by isolationR03().

MuonIsolation reco::Muon::isolationR05_
private

Definition at line 334 of file Muon.h.

Referenced by isolationR05().

bool reco::Muon::isolationValid_
private

Definition at line 327 of file Muon.h.

Referenced by isIsolationValid().

bool reco::Muon::matchesValid_
private

Definition at line 326 of file Muon.h.

Referenced by isMatchesValid(), and setMatches().

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

Definition at line 283 of file Muon.h.

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

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

Information on matching between tracks and segments.

Definition at line 321 of file Muon.h.

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

TrackRef reco::Muon::outerTrack_
private

reference to Track reconstructed in the muon detector only

Definition at line 306 of file Muon.h.

Referenced by outerTrack().

MuonPFIsolation reco::Muon::pfIsolationR03_
private

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

Definition at line 337 of file Muon.h.

Referenced by pfIsolationR03().

MuonPFIsolation reco::Muon::pfIsolationR04_
private

Definition at line 340 of file Muon.h.

Referenced by pfIsolationR04().

bool reco::Muon::pfIsolationValid_
private

Definition at line 328 of file Muon.h.

Referenced by isPFIsolationValid().

MuonPFIsolation reco::Muon::pfIsoMeanDRR03_
private

Definition at line 338 of file Muon.h.

Referenced by pfMeanDRIsoProfileR03().

MuonPFIsolation reco::Muon::pfIsoMeanDRR04_
private

Definition at line 341 of file Muon.h.

Referenced by pfMeanDRIsoProfileR04().

MuonPFIsolation reco::Muon::pfIsoSumDRR03_
private

Definition at line 339 of file Muon.h.

Referenced by pfSumDRIsoProfileR03().

MuonPFIsolation reco::Muon::pfIsoSumDRR04_
private

Definition at line 342 of file Muon.h.

Referenced by pfSumDRIsoProfileR04().

const unsigned int reco::Muon::PFMuon = 1<<5
static
reco::Candidate::LorentzVector reco::Muon::pfP4_
private

Definition at line 348 of file Muon.h.

Referenced by pfP4().

bool reco::Muon::qualityValid_
private

Definition at line 329 of file Muon.h.

Referenced by isQualityValid(), and setCombinedQuality().

MuonTrackRefMap reco::Muon::refittedTrackMap_
private

reference to the Global Track refitted with dedicated TeV reconstructors

Definition at line 310 of file Muon.h.

Referenced by muonTrackFromMap().

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

Definition at line 281 of file Muon.h.

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

MuonTime reco::Muon::rpcTime_
private

Definition at line 324 of file Muon.h.

Referenced by rpcTime(), and setRPCTime().

uint64_t reco::Muon::selectors_
private

selector bitmap

Definition at line 358 of file Muon.h.

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

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

timing

Definition at line 323 of file Muon.h.

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

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