CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Protected Attributes | Friends
pat::Muon Class Reference

Analysis-level muon class. More...

#include "DataFormats/PatCandidates/interface/Muon.h"

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

Public Types

enum  IPTYPE {
  None = 0, PV2D = 1, PV3D = 2, BS2D = 3,
  BS3D = 4
}
 
typedef enum pat::Muon::IPTYPE IpType
 
- Public Types inherited from pat::PATObject< reco::Muon >
typedef reco::Muon base_type
 
- Public Types inherited from reco::Muon
enum  ArbitrationType {
  NoArbitration, SegmentArbitration, SegmentAndTrackArbitration, SegmentAndTrackArbitrationCleaned,
  RPCHitAndTrackArbitration
}
 define arbitration schemes More...
 
typedef std::map
< MuonTrackType,
reco::TrackRef
MuonTrackRefMap
 
enum  MuonTrackType {
  None, InnerTrack, OuterTrack, CombinedTrack,
  TPFMS, Picky, DYT
}
 map for Global Muon refitters More...
 
typedef std::pair< TrackRef,
Muon::MuonTrackType
MuonTrackTypePair
 
- 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 reco::TrackbestTrack () const
 Track selected to be the best measurement of the muon parameters (including PFlow global information) More...
 
float caloIso () const
 
reco::MuonMETCorrectionData caloMETMuonCorrs () const
 muon MET corrections for caloMET; returns the muon correction struct if embedded during pat tuple production or an empty element More...
 
virtual Muonclone () const
 required reimplementation of the Candidate's clone method More...
 
reco::TrackRef combinedMuon () const
 reference to Track reconstructed in both tracked and muon detector (reimplemented from reco::Muon) More...
 
double dB (IpType type=None) const
 
reco::TrackRef dytTrack () const
 reference to Track reconstructed using DYT algorithm More...
 
float ecalIso () const
 
double edB (IpType type=None) const
 
void embedCaloMETMuonCorrs (const reco::MuonMETCorrectionData &t)
 embed the MuonMETCorrectionData for muon corrected caloMET More...
 
void embedCombinedMuon ()
 set reference to Track reconstructed in both tracked and muon detector (reimplemented from reco::Muon) More...
 
void embedDytMuon ()
 embed reference to the above dyt Track More...
 
void embedMuonBestTrack (bool force=false)
 embed the Track selected to be the best measurement of the muon parameters More...
 
void embedPFCandidate ()
 embed the IsolatedPFCandidate pointed to by pfCandidateRef_ More...
 
void embedPickyMuon ()
 embed reference to the above picky Track More...
 
void embedStandAloneMuon ()
 set reference to Track reconstructed in the muon detector only (reimplemented from reco::Muon) More...
 
void embedTcMETMuonCorrs (const reco::MuonMETCorrectionData &t)
 embed the MuonMETCorrectionData for tcMET More...
 
void embedTpfmsMuon ()
 embed reference to the above tpfms Track More...
 
void embedTrack ()
 set reference to Track reconstructed in the tracker only (reimplemented from reco::Muon) More...
 
void embedTunePMuonBestTrack (bool force=false)
 embed the Track selected to be the best measurement of the muon parameters More...
 
reco::TrackRef globalTrack () const
 reference to Track reconstructed in both tracked and muon detector (reimplemented from reco::Muon) More...
 
float hcalIso () const
 
void initImpactParameters (void)
 
reco::TrackRef innerTrack () const
 reference to Track reconstructed in the tracker only (reimplemented from reco::Muon) More...
 
bool isGood (const std::string &name) const
 
bool isHighPtMuon (const reco::Vertex &) const
 
bool isLooseMuon () const
 
bool isSoftMuon (const reco::Vertex &) const
 
bool isTightMuon (const reco::Vertex &) const
 
 Muon ()
 default constructor More...
 
 Muon (const reco::Muon &aMuon)
 constructor from a reco muon More...
 
 Muon (const edm::RefToBase< reco::Muon > &aMuonRef)
 constructor from a RefToBase to a reco muon (to be superseded by Ptr counterpart) More...
 
 Muon (const edm::Ptr< reco::Muon > &aMuonRef)
 constructor from a Ptr to a reco muon More...
 
reco::TrackRef muonBestTrack () const
 Track selected to be the best measurement of the muon parameters (including PFlow global information) More...
 
bool muonID (const std::string &name) const
 
double normChi2 () const
 Norm chi2 gives the normalized chi2 of the global track. More...
 
size_t numberOfSourceCandidatePtrs () const
 get the number of non-null PF candidates More...
 
unsigned int numberOfValidHits () const
 numberOfValidHits returns the number of valid hits on the global track. More...
 
reco::TrackRef outerTrack () const
 reference to Track reconstructed in the muon detector only (reimplemented from reco::Muon) More...
 
reco::PFCandidateRef pfCandidateRef () const
 reference to the source IsolatedPFCandidates More...
 
reco::TrackRef pickyMuon () const
 Deprecated accessors to call the corresponding above two functions; no dytMuon since this naming is deprecated. More...
 
reco::TrackRef pickyTrack () const
 reference to Track reconstructed using hits in the tracker + "good" muon hits (reimplemented from reco::Muon) More...
 
double segmentCompatibility (reco::Muon::ArbitrationType arbitrationType=reco::Muon::SegmentAndTrackArbitration) const
 Returns the segment compatibility, using muon::segmentCompatibility (DataFormats/MuonReco/interface/MuonSelectors.h) More...
 
void setDB (double dB, double edB, IpType type=None)
 
void setNormChi2 (double normChi2)
 
void setNumberOfValidHits (unsigned int numberOfValidHits)
 
void setPFCandidateRef (const reco::PFCandidateRef &ref)
 add a reference to the source IsolatedPFCandidate More...
 
reco::CandidatePtr sourceCandidatePtr (size_type i) const
 get the candidate pointer with index i More...
 
reco::TrackRef standAloneMuon () const
 reference to Track reconstructed in the muon detector only (reimplemented from reco::Muon) More...
 
reco::MuonMETCorrectionData tcMETMuonCorrs () const
 muon MET corrections for tcMET; returns the muon correction struct if embedded during pat tuple production or an empty element More...
 
reco::TrackRef tpfmsMuon () const
 
reco::TrackRef tpfmsTrack () const
 reference to Track reconstructed using hits in the tracker + info from the first muon station that has hits (reimplemented from reco::Muon) More...
 
reco::TrackRef track () const
 reference to Track reconstructed in the tracker only (reimplemented from reco::Muon) More...
 
float trackIso () const
 
virtual reco::TrackRef tunePMuonBestTrack () const
 Track selected to be the best measurement of the muon parameters (from muon information alone) More...
 
virtual ~Muon ()
 destructor More...
 
- Public Member Functions inherited from pat::Lepton< reco::Muon >
float caloIso () const
 
float chargedHadronIso () const
 
float ecalIso () const
 
const IsoDepositecalIsoDeposit () const
 
void ecalIsoDeposit (const IsoDeposit &dep)
 
const reco::GenParticlegenLepton () const
 
float hcalIso () const
 
const IsoDeposithcalIsoDeposit () const
 
void hcalIsoDeposit (const IsoDeposit &dep)
 
const IsoDepositisoDeposit (IsolationKeys key) const
 Returns the IsoDeposit associated with some key, or a null pointer if it is not available. More...
 
 Lepton ()
 
 Lepton (const reco::Muon &aLepton)
 
 Lepton (const edm::RefToBase< reco::Muon > &aLeptonRef)
 
 Lepton (const edm::Ptr< reco::Muon > &aLeptonRef)
 
float neutralHadronIso () const
 
float particleIso () const
 
float photonIso () const
 
float puChargedHadronIso () const
 
void setEcalIso (float caloIso)
 Sets ecal isolation variable. More...
 
void setGenLepton (const reco::GenParticleRef &gl, bool embed=false)
 
void setHcalIso (float caloIso)
 Sets hcal isolation variable. More...
 
void setIsoDeposit (IsolationKeys key, const IsoDeposit &dep)
 Sets the IsoDeposit associated with some key; if it is already existent, it is overwritten. More...
 
void setIsolation (IsolationKeys key, float value)
 
void setTrackIso (float trackIso)
 Sets tracker isolation variable. More...
 
void setUserIso (float value, uint8_t index=0)
 Sets user isolation variable index. More...
 
float trackIso () const
 
const IsoDeposittrackIsoDeposit () const
 
void trackIsoDeposit (const IsoDeposit &dep)
 
float userIso (uint8_t index=0) const
 
const IsoDeposituserIsoDeposit (uint8_t index=0) const
 
void userIsoDeposit (const IsoDeposit &dep, uint8_t index=0)
 
float userIsolation (IsolationKeys key) const
 
float userIsolation (const std::string &key) const
 
virtual ~Lepton ()
 
- Public Member Functions inherited from pat::PATObject< reco::Muon >
void addGenParticleRef (const reco::GenParticleRef &ref)
 
void addTriggerObjectMatch (const TriggerObjectStandAlone &trigObj)
 add a trigger match More...
 
void addUserCand (const std::string &label, const reco::CandidatePtr &data)
 Set user-defined int. More...
 
void addUserData (const std::string &label, const T &data, bool transientOnly=false)
 
void addUserDataFromPtr (const std::string &label, const edm::Ptr< pat::UserData > &data)
 
void addUserFloat (const std::string &label, float data)
 Set user-defined float. More...
 
void addUserInt (const std::string &label, int32_t data)
 Set user-defined int. More...
 
std::vector< std::pair
< std::string,
pat::LookupTableRecord > > 
efficiencies () const
 Returns the efficiencies as <name,value> pairs (by value) More...
 
const pat::LookupTableRecordefficiency (const std::string &name) const
 Returns an efficiency given its name. More...
 
const std::vector< std::string > & efficiencyNames () const
 Returns the list of the names of the stored efficiencies. More...
 
const std::vector
< pat::LookupTableRecord > & 
efficiencyValues () const
 Returns the list of the values of the stored efficiencies (the ordering is the same as in efficiencyNames()) More...
 
void embedGenParticle ()
 
const reco::GenParticlegenParticle (size_t idx=0) const
 
reco::GenParticleRef genParticleById (int pdgId, int status, uint8_t autoCharge=0) const
 
reco::GenParticleRef genParticleRef (size_t idx=0) const
 
std::vector< reco::GenParticleRefgenParticleRefs () const
 
size_t genParticlesSize () const
 Number of generator level particles stored as ref or embedded. More...
 
const pat::CandKinResolutiongetKinResolution (const std::string &label="") const
 
bool hasKinResolution (const std::string &label="") const
 Check if the kinematic resolutions are stored into this object (possibly specifying a label for them) More...
 
bool hasOverlaps (const std::string &label) const
 Returns true if there was at least one overlap for this test label. More...
 
bool hasUserCand (const std::string &key) const
 Return true if there is a user-defined int with a given name. More...
 
bool hasUserData (const std::string &key) const
 Check if user data with a specific type is present. More...
 
bool hasUserFloat (const std::string &key) const
 Return true if there is a user-defined float with a given name. More...
 
bool hasUserFloat (const char *key) const
 a CINT-friendly interface More...
 
bool hasUserInt (const std::string &key) const
 Return true if there is a user-defined int with a given name. More...
 
const reco::CandidateoriginalObject () const
 access to the original object; returns zero for null Ref and throws for unavailable collection More...
 
const edm::Ptr< reco::Candidate > & originalObjectRef () const
 reference to original object. Returns a null reference if not available More...
 
const std::vector< std::string > & overlapLabels () const
 Returns the labels of the overlap tests that found at least one overlap. More...
 
const reco::CandidatePtrVectoroverlaps (const std::string &label) const
 
 PATObject ()
 default constructor More...
 
 PATObject (const reco::Muon &obj)
 constructor from a base object (leaves invalid reference to original object!) More...
 
 PATObject (const edm::RefToBase< reco::Muon > &ref)
 constructor from reference More...
 
 PATObject (const edm::Ptr< reco::Muon > &ref)
 constructor from reference More...
 
double resolE (const std::string &label="") const
 Resolution on energy, possibly with a label to specify which resolution to use. More...
 
double resolEt (const std::string &label="") const
 Resolution on et, possibly with a label to specify which resolution to use. More...
 
double resolEta (const std::string &label="") const
 Resolution on eta, possibly with a label to specify which resolution to use. More...
 
double resolM (const std::string &label="") const
 
double resolP (const std::string &label="") const
 Resolution on p, possibly with a label to specify which resolution to use. More...
 
double resolPhi (const std::string &label="") const
 Resolution on phi, possibly with a label to specify which resolution to use. More...
 
double resolPInv (const std::string &label="") const
 Resolution on 1/p, possibly with a label to specify which resolution to use. More...
 
double resolPt (const std::string &label="") const
 Resolution on pt, possibly with a label to specify which resolution to use. More...
 
double resolPx (const std::string &label="") const
 Resolution on px, possibly with a label to specify which resolution to use. More...
 
double resolPy (const std::string &label="") const
 Resolution on py, possibly with a label to specify which resolution to use. More...
 
double resolPz (const std::string &label="") const
 Resolution on pz, possibly with a label to specify which resolution to use. More...
 
double resolTheta (const std::string &label="") const
 Resolution on theta, possibly with a label to specify which resolution to use. More...
 
void setEfficiency (const std::string &name, const pat::LookupTableRecord &value)
 
void setGenParticle (const reco::GenParticle &particle)
 Set the generator level particle from a particle not in the Event (embedding it, of course) More...
 
void setGenParticleRef (const reco::GenParticleRef &ref, bool embed=false)
 Set the generator level particle reference. More...
 
void setKinResolution (const pat::CandKinResolution &resol, const std::string &label="")
 Add a kinematic resolution to this object (possibly with a label) More...
 
void setOverlaps (const std::string &label, const reco::CandidatePtrVector &overlaps)
 
const TriggerObjectStandAlonetriggerObjectMatch (const size_t idx=0) const
 get one matched trigger object by index More...
 
const TriggerObjectStandAlonetriggerObjectMatchByAlgorithm (const std::string &nameAlgorithm, const bool algoCondAccepted=true, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByAlgorithm (const char *nameAlgorithm, const bool algoCondAccepted=true, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByAlgorithm (const std::string &nameAlgorithm, const unsigned algoCondAccepted, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByAlgorithm (const char *nameAlgorithm, const unsigned algoCondAccepted, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByCollection (const std::string &coll, const size_t idx=0) const
 get one matched trigger object from a certain collection by index More...
 
const TriggerObjectStandAlonetriggerObjectMatchByCollection (const char *coll, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByCondition (const std::string &nameCondition, const size_t idx=0) const
 get one matched L1 object used in a succeeding object combination of a certain L1 condition by index More...
 
const TriggerObjectStandAlonetriggerObjectMatchByCondition (const char *nameCondition, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByFilter (const std::string &labelFilter, const size_t idx=0) const
 get one matched HLT object used in a certain HLT filter by index More...
 
const TriggerObjectStandAlonetriggerObjectMatchByFilter (const char *labelFilter, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByFilterID (const unsigned triggerObjectType, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByPath (const std::string &namePath, const bool pathLastFilterAccepted=false, const bool pathL3FilterAccepted=true, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByPath (const char *namePath, const bool pathLastFilterAccepted=false, const bool pathL3FilterAccepted=true, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByPath (const std::string &namePath, const unsigned pathLastFilterAccepted, const unsigned pathL3FilterAccepted=1, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByPath (const char *namePath, const unsigned pathLastFilterAccepted, const unsigned pathL3FilterAccepted=1, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByType (const trigger::TriggerObjectType triggerObjectType, const size_t idx=0) const
 get one matched trigger object of a certain type by index More...
 
const TriggerObjectStandAlonetriggerObjectMatchByType (const unsigned triggerObjectType, const size_t idx=0) const
 
const
TriggerObjectStandAloneCollection
triggerObjectMatches () const
 get all matched trigger objects More...
 
const
TriggerObjectStandAloneCollection 
triggerObjectMatchesByAlgorithm (const std::string &nameAlgorithm, const bool algoCondAccepted=true) const
 
const
TriggerObjectStandAloneCollection 
triggerObjectMatchesByAlgorithm (const char *nameAlgorithm, const bool algoCondAccepted=true) const
 
const
TriggerObjectStandAloneCollection 
triggerObjectMatchesByAlgorithm (const std::string &nameAlgorithm, const unsigned algoCondAccepted) const
 
const
TriggerObjectStandAloneCollection 
triggerObjectMatchesByAlgorithm (const char *nameAlgorithm, const unsigned algoCondAccepted) const
 
const
TriggerObjectStandAloneCollection 
triggerObjectMatchesByCollection (const std::string &coll) const
 get all matched trigger objects from a certain collection More...
 
const
TriggerObjectStandAloneCollection 
triggerObjectMatchesByCollection (const char *coll) const
 
const
TriggerObjectStandAloneCollection 
triggerObjectMatchesByCondition (const std::string &nameCondition) const
 get all matched L1 objects used in a succeeding object combination of a certain L1 condition More...
 
const
TriggerObjectStandAloneCollection 
triggerObjectMatchesByCondition (const char *nameCondition) const
 
const
TriggerObjectStandAloneCollection 
triggerObjectMatchesByFilter (const std::string &labelFilter) const
 get all matched HLT objects used in a certain HLT filter More...
 
const
TriggerObjectStandAloneCollection 
triggerObjectMatchesByFilter (const char *labelFilter) const
 
const
TriggerObjectStandAloneCollection 
triggerObjectMatchesByFilterID (const unsigned triggerObjectType) const
 
const
TriggerObjectStandAloneCollection 
triggerObjectMatchesByPath (const std::string &namePath, const bool pathLastFilterAccepted=false, const bool pathL3FilterAccepted=true) const
 
const
TriggerObjectStandAloneCollection 
triggerObjectMatchesByPath (const char *namePath, const bool pathLastFilterAccepted=false, const bool pathL3FilterAccepted=true) const
 
const
TriggerObjectStandAloneCollection 
triggerObjectMatchesByPath (const std::string &namePath, const unsigned pathLastFilterAccepted, const unsigned pathL3FilterAccepted=1) const
 
const
TriggerObjectStandAloneCollection 
triggerObjectMatchesByPath (const char *namePath, const unsigned pathLastFilterAccepted, const unsigned pathL3FilterAccepted=1) const
 
const
TriggerObjectStandAloneCollection 
triggerObjectMatchesByType (const trigger::TriggerObjectType triggerObjectType) const
 
const
TriggerObjectStandAloneCollection 
triggerObjectMatchesByType (const unsigned triggerObjectType) const
 
void unpackTriggerObjectPathNames (const edm::TriggerNames &names)
 unpack path names of matched trigger objects (if they were packed before embedding, which is not normally the case) More...
 
reco::CandidatePtr userCand (const std::string &key) const
 
const std::vector< std::string > & userCandNames () const
 Get list of user-defined cand names. More...
 
const TuserData (const std::string &key) const
 Returns user-defined data. Returns NULL if the data is not present, or not of type T. More...
 
const void * userDataBare (const std::string &key) const
 
const std::vector< std::string > & userDataNames () const
 Get list of user data object names. More...
 
const std::string & userDataObjectType (const std::string &key) const
 Get human-readable type of user data object, for debugging. More...
 
float userFloat (const std::string &key) const
 
float userFloat (const char *key) const
 a CINT-friendly interface More...
 
const std::vector< std::string > & userFloatNames () const
 Get list of user-defined float names. More...
 
int32_t userInt (const std::string &key) const
 
const std::vector< std::string > & userIntNames () const
 Get list of user-defined int names. More...
 
virtual ~PATObject ()
 destructor More...
 
- Public Member Functions inherited from reco::Muon
virtual TrackBaseRef bestTrackRef () const
 best track RefToBase More...
 
MuonEnergy calEnergy () const
 get energy deposition information More...
 
float caloCompatibility () const
 
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
 
bool isAValidMuonTrack (const MuonTrackType &type) const
 
bool isCaloCompatibilityValid () const
 
bool isCaloMuon () const
 
bool isEnergyValid () const
 
bool isGlobalMuon () const
 
bool isIsolationValid () const
 
bool isMatchesValid () const
 
bool isMuon () const
 
const MuonIsolationisolationR03 () const
 
const MuonIsolationisolationR05 () const
 
bool isPFIsolationValid () const
 
bool isPFMuon () const
 
bool isQualityValid () const
 
bool isRPCMuon () const
 
bool isStandAloneMuon () const
 
bool isTimeValid () const
 
bool isTrackerMuon () const
 
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 MuonTrackType muonBestTrackType () const
 
TrackRef muonTrack (const MuonTrackType &) const
 
TrackRef muonTrackFromMap (const MuonTrackType &type) const
 
int numberOfChambers () const
 
int numberOfChambersNoRPC () const
 number of chambers not including RPC matches (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...
 
const MuonPFIsolationpfIsolationR03 () const
 
const MuonPFIsolationpfIsolationR04 () const
 
const MuonPFIsolationpfMeanDRIsoProfileR03 () const
 
const MuonPFIsolationpfMeanDRIsoProfileR04 () const
 
reco::Candidate::LorentzVector pfP4 () const
 
const MuonPFIsolationpfSumDRIsoProfileR03 () const
 
const MuonPFIsolationpfSumDRIsoProfileR04 () 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
 
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
 
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_)
 
virtual void setStandAlone (const TrackRef &t)
 
void setTime (const MuonTime &time)
 set timing information More...
 
virtual void setTrack (const TrackRef &t)
 
virtual void setTunePBestTrack (MuonTrackType muonType)
 
void setType (unsigned int type)
 
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 timing information 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 MuonTrackType tunePMuonBestTrackType () const
 
unsigned int type () const
 
- Public Member Functions inherited from reco::RecoCandidate
virtual TrackType bestTrackType () const
 track type More...
 
virtual CaloTowerRef caloTower () const
 reference to a CaloTower 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...
 
virtual ~RecoCandidate ()
 destructor More...
 
- Public Member Functions inherited from reco::LeafCandidate
virtual const_iterator begin () const
 first daughter const_iterator More...
 
virtual iterator begin ()
 first daughter iterator More...
 
template<typename S >
daughter_iterator< S >::type beginFilter (const S &s) const
 
virtual Vector boostToCM () const GCC11_FINAL
 
virtual int charge () const GCC11_FINAL
 electric charge More...
 
virtual const Candidatedaughter (size_type) const
 return daughter at a given position (throws an exception) More...
 
virtual Candidatedaughter (size_type)
 return daughter at a given position (throws an exception) More...
 
virtual Candidatedaughter (const std::string &s)
 return daughter with a specified role name More...
 
virtual const Candidatedaughter (const std::string &s) const
 return daughter with a specified role name More...
 
virtual const_iterator end () const
 last daughter const_iterator More...
 
virtual iterator end ()
 last daughter iterator More...
 
template<typename S >
daughter_iterator< S >::type endFilter (const S &s) const
 
virtual double energy () const GCC11_FINAL
 energy More...
 
virtual double et () const GCC11_FINAL
 transverse energy More...
 
virtual float eta () const GCC11_FINAL
 momentum pseudorapidity More...
 
virtual void fillVertexCovariance (CovarianceMatrix &v) const
 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...
 
virtual bool hasMasterClone () const
 
virtual bool hasMasterClonePtr () const
 
virtual bool isConvertedPhoton () const
 
virtual bool isElectron () const
 
virtual bool isJet () const
 
virtual bool isPhoton () const
 
 LeafCandidate ()
 default constructor More...
 
 LeafCandidate (const Candidate &c)
 
template<typename P4 >
 LeafCandidate (Charge q, const P4 &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
 constructor from Any values More...
 
 LeafCandidate (Charge q, const PtEtaPhiMass &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
 constructor from values More...
 
 LeafCandidate (Charge q, const LorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
 constructor from values More...
 
 LeafCandidate (Charge q, const PolarLorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
 constructor from values More...
 
virtual bool longLived () const GCC11_FINAL
 is long lived? More...
 
virtual float mass () const GCC11_FINAL
 mass More...
 
virtual bool massConstraint () const GCC11_FINAL
 do mass constraint? More...
 
virtual float massSqr () const GCC11_FINAL
 mass squared More...
 
virtual const CandidateBaseRefmasterClone () const
 
virtual const CandidatePtrmasterClonePtr () const
 
template<typename Ref >
Ref masterRef () const
 cast master clone reference to a concrete type More...
 
virtual Vector momentum () const GCC11_FINAL
 spatial momentum vector More...
 
virtual const Candidatemother (size_type) const
 return mother at a given position (throws an exception) More...
 
virtual double mt () const GCC11_FINAL
 transverse mass More...
 
virtual double mtSqr () const GCC11_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...
 
virtual size_t numberOfDaughters () const
 number of daughters More...
 
virtual size_t numberOfMothers () const
 number of mothers More...
 
virtual double p () const GCC11_FINAL
 magnitude of momentum vector More...
 
virtual const LorentzVectorp4 () const GCC11_FINAL
 four-momentum Lorentz vector More...
 
virtual int pdgId () const GCC11_FINAL
 PDG identifier. More...
 
virtual float phi () const GCC11_FINAL
 momentum azimuthal angle More...
 
virtual const PolarLorentzVectorpolarP4 () const GCC11_FINAL
 four-momentum Lorentz vector More...
 
virtual float pt () const GCC11_FINAL
 transverse momentum More...
 
virtual double px () const GCC11_FINAL
 x coordinate of momentum vector More...
 
virtual double py () const GCC11_FINAL
 y coordinate of momentum vector More...
 
virtual double pz () const GCC11_FINAL
 z coordinate of momentum vector More...
 
virtual double rapidity () const GCC11_FINAL
 rapidity More...
 
virtual void setCharge (Charge q) GCC11_FINAL
 set electric charge More...
 
virtual void setLongLived () GCC11_FINAL
 set long lived flag More...
 
virtual void setMass (double m) GCC11_FINAL
 set particle mass More...
 
virtual void setMassConstraint () GCC11_FINAL
 set mass constraint flag More...
 
virtual void setP4 (const LorentzVector &p4) GCC11_FINAL
 set 4-momentum More...
 
virtual void setP4 (const PolarLorentzVector &p4) GCC11_FINAL
 set 4-momentum More...
 
virtual void setPdgId (int pdgId) GCC11_FINAL
 
virtual void setPz (double pz) GCC11_FINAL
 
virtual void setStatus (int status) GCC11_FINAL
 set status word More...
 
virtual void setThreeCharge (Charge qx3) GCC11_FINAL
 set electric charge More...
 
virtual void setVertex (const Point &vertex)
 set vertex More...
 
virtual int status () const GCC11_FINAL
 status word More...
 
virtual double theta () const GCC11_FINAL
 momentum polar angle More...
 
virtual int threeCharge () const GCC11_FINAL
 electric charge More...
 
virtual const Pointvertex () const
 vertex position (overwritten by PF...) More...
 
virtual double vertexChi2 () const
 chi-squares More...
 
virtual double vertexCovariance (int i, int j) const
 (i, j)-th element of error matrix, i, j = 0, ... 2 More...
 
CovarianceMatrix vertexCovariance () const GCC11_FINAL
 return SMatrix More...
 
virtual double vertexNdof () const
 
virtual double vertexNormalizedChi2 () const
 chi-squared divided by n.d.o.f. More...
 
virtual double vx () const
 x coordinate of vertex position More...
 
virtual double vy () const
 y coordinate of vertex position More...
 
virtual double vz () const
 z coordinate of vertex position More...
 
virtual double y () const GCC11_FINAL
 rapidity More...
 
virtual ~LeafCandidate ()
 destructor More...
 
- Public Member Functions inherited from reco::Candidate
template<typename S >
daughter_iterator< S >::type beginFilter (const S &s) const
 
 Candidate ()
 default constructor More...
 
template<typename S >
daughter_iterator< S >::type endFilter (const S &s) const
 
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...
 

Protected Attributes

bool cachedDB_
 has the normalized chi2 been cached? More...
 
std::vector< bool > cachedIP_
 
bool cachedNormChi2_
 
bool cachedNumberOfValidHits_
 has the dB been cached? More...
 
std::vector
< reco::MuonMETCorrectionData
caloMETMuonCorrs_
 
std::vector< reco::TrackcombinedMuon_
 
double dB_
 globalTrack->chi2() / globalTrack->ndof() More...
 
std::vector< reco::TrackdytMuon_
 
double edB_
 dB and edB are the impact parameter at the primary vertex, More...
 
std::vector< double > eip_
 
bool embeddedCaloMETMuonCorrs_
 muon MET corrections for caloMET More...
 
bool embeddedCombinedMuon_
 track of combined fit More...
 
bool embeddedDytMuon_
 
bool embeddedMuonBestTrack_
 best muon track (global pflow) More...
 
bool embeddedPFCandidate_
 true if the IsolatedPFCandidate is embedded More...
 
bool embeddedPickyMuon_
 
bool embeddedStandAloneMuon_
 track of muon system More...
 
bool embeddedTCMETMuonCorrs_
 muon MET corrections for tcMET More...
 
bool embeddedTpfmsMuon_
 
bool embeddedTrack_
 track of inner track detector More...
 
bool embeddedTunePMuonBestTrack_
 best muon track (muon only) More...
 
std::vector< double > ip_
 
std::vector< reco::TrackmuonBestTrack_
 
double normChi2_
 has the numberOfValidHits been cached? More...
 
unsigned int numberOfValidHits_
 
reco::PFCandidateCollection pfCandidate_
 
reco::PFCandidateRef pfCandidateRef_
 
std::vector< reco::TrackpickyMuon_
 
std::vector< reco::TrackstandAloneMuon_
 
std::vector
< reco::MuonMETCorrectionData
tcMETMuonCorrs_
 
std::vector< reco::TracktpfmsMuon_
 
std::vector< reco::Tracktrack_
 
std::vector< reco::TracktunePMuonBestTrack_
 
- Protected Attributes inherited from pat::Lepton< reco::Muon >
IsoDepositPairs isoDeposits_
 
std::vector< float > isolations_
 
- Protected Attributes inherited from pat::PATObject< reco::Muon >
std::vector< std::string > efficiencyNames_
 vector of the efficiencies (names) More...
 
std::vector
< pat::LookupTableRecord
efficiencyValues_
 vector of the efficiencies (values) More...
 
std::vector< reco::GenParticlegenParticleEmbedded_
 vector to hold an embedded generator level particle More...
 
std::vector< reco::GenParticleRefgenParticleRef_
 Reference to a generator level particle. More...
 
std::vector< std::string > kinResolutionLabels_
 
std::vector
< pat::CandKinResolution
kinResolutions_
 Kinematic resolutions. More...
 
std::vector
< reco::CandidatePtrVector
overlapItems_
 Overlapping items (sorted by distance) More...
 
std::vector< std::string > overlapLabels_
 Overlapping test labels (only if there are any overlaps) More...
 
edm::Ptr< reco::CandidaterefToOrig_
 
TriggerObjectStandAloneCollection triggerObjectMatchesEmbedded_
 vector of trigger matches More...
 
std::vector< std::string > userCandLabels_
 
std::vector< reco::CandidatePtruserCands_
 
std::vector< std::string > userDataLabels_
 User data object. More...
 
pat::UserDataCollection userDataObjects_
 
std::vector< std::string > userFloatLabels_
 
std::vector< float > userFloats_
 
std::vector< std::string > userIntLabels_
 
std::vector< int32_t > userInts_
 
- Protected Attributes inherited from reco::LeafCandidate
bool cacheCartesianFixed_
 
bool cachePolarFixed_
 has cache been set? More...
 
float eta_
 
float mass_
 
LorentzVector p4Cartesian_
 internal cache for p4 More...
 
PolarLorentzVector p4Polar_
 internal cache for p4 More...
 
int pdgId_
 PDG identifier. More...
 
float phi_
 
float pt_
 four-momentum Lorentz vector More...
 
Charge qx3_
 electric charge More...
 
int status_
 status word More...
 
Point vertex_
 vertex position More...
 

Friends

class PATMuonSlimmer
 
std::ostream & reco::operator<< (std::ostream &out, const Muon &obj)
 pipe operator (introduced to use pat::Muon with PFTopProjectors) More...
 

Additional Inherited Members

- Static Public Attributes inherited from reco::Muon
static const unsigned int CaloMuon = 1<<4
 
static const unsigned int GlobalMuon = 1<<1
 
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
 
- Static Public Attributes inherited from reco::LeafCandidate
static const unsigned int longLivedTag = 65536
 long lived flag More...
 
static const unsigned int massConstraintTag = 131072
 do mass constraint flag More...
 
- Protected Types inherited from pat::Lepton< reco::Muon >
typedef std::vector< std::pair
< IsolationKeys,
pat::IsoDeposit > > 
IsoDepositPairs
 
- 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...
 
- Protected Member Functions inherited from reco::LeafCandidate
void cacheCartesian () const
 set internal cache More...
 
void cachePolar () const
 set internal cache More...
 
void clearCache () const
 clear internal cache More...
 

Detailed Description

Analysis-level muon class.

pat::Muon implements the analysis-level muon class within the 'pat' namespace.

Please post comments and questions to the Physics Tools hypernews: https://hypernews.cern.ch/HyperNews/CMS/get/physTools.html

Author
Steven Lowette, Giovanni Petrucciani, Frederic Ronga, Colin Bernet

Definition at line 50 of file Muon.h.

Member Typedef Documentation

Muon High Level Selection The user can choose to cache this info so they can drop the global tracks. If the global track is present these should not be set, but the "getters" will return the appropriate value. The exception is dB which requires the beamline

Member Enumeration Documentation

Muon High Level Selection The user can choose to cache this info so they can drop the global tracks. If the global track is present these should not be set, but the "getters" will return the appropriate value. The exception is dB which requires the beamline

Enumerator
None 
PV2D 
PV3D 
BS2D 
BS3D 

Definition at line 209 of file Muon.h.

210  {
211  None = 0, PV2D = 1, PV3D = 2, BS2D = 3, BS3D = 4
212  } IpType;
enum pat::Muon::IPTYPE IpType

Constructor & Destructor Documentation

Muon::Muon ( )

default constructor

Definition at line 14 of file Muon.cc.

References initImpactParameters().

Referenced by clone().

14  :
18  embeddedTrack_(false),
20  embeddedCombinedMuon_(false),
23  embeddedPickyMuon_(false),
24  embeddedTpfmsMuon_(false),
25  embeddedDytMuon_(false),
26  embeddedPFCandidate_(false),
28  cachedNormChi2_(false),
29  cachedDB_(false),
31  normChi2_(0.0),
32  dB_(0.0),
33  edB_(0.0),
35 {
37 }
reco::PFCandidateRef pfCandidateRef_
Definition: Muon.h:285
bool embeddedTCMETMuonCorrs_
muon MET corrections for tcMET
Definition: Muon.h:263
unsigned int numberOfValidHits_
Definition: Muon.h:301
bool embeddedTrack_
track of inner track detector
Definition: Muon.h:253
bool cachedNumberOfValidHits_
has the dB been cached?
Definition: Muon.h:291
bool embeddedStandAloneMuon_
track of muon system
Definition: Muon.h:256
bool embeddedPickyMuon_
Definition: Muon.h:270
bool embeddedTpfmsMuon_
Definition: Muon.h:271
bool cachedNormChi2_
Definition: Muon.h:288
double normChi2_
has the numberOfValidHits been cached?
Definition: Muon.h:292
bool embeddedTunePMuonBestTrack_
best muon track (muon only)
Definition: Muon.h:250
bool embeddedDytMuon_
Definition: Muon.h:272
bool embeddedPFCandidate_
true if the IsolatedPFCandidate is embedded
Definition: Muon.h:279
bool embeddedCaloMETMuonCorrs_
muon MET corrections for caloMET
Definition: Muon.h:266
bool embeddedCombinedMuon_
track of combined fit
Definition: Muon.h:259
bool cachedDB_
has the normalized chi2 been cached?
Definition: Muon.h:289
double edB_
dB and edB are the impact parameter at the primary vertex,
Definition: Muon.h:294
double dB_
globalTrack-&gt;chi2() / globalTrack-&gt;ndof()
Definition: Muon.h:293
bool embeddedMuonBestTrack_
best muon track (global pflow)
Definition: Muon.h:247
void initImpactParameters(void)
Definition: Muon.cc:139
Muon::Muon ( const reco::Muon aMuon)

constructor from a reco muon

constructor from reco::Muon

Definition at line 40 of file Muon.cc.

References initImpactParameters().

40  :
41  Lepton<reco::Muon>(aMuon),
44  embeddedTrack_(false),
46  embeddedCombinedMuon_(false),
49  embeddedPickyMuon_(false),
50  embeddedTpfmsMuon_(false),
51  embeddedDytMuon_(false),
52  embeddedPFCandidate_(false),
54  cachedNormChi2_(false),
55  cachedDB_(false),
57  normChi2_(0.0),
58  dB_(0.0),
59  edB_(0.0),
61 {
63 }
reco::PFCandidateRef pfCandidateRef_
Definition: Muon.h:285
bool embeddedTCMETMuonCorrs_
muon MET corrections for tcMET
Definition: Muon.h:263
unsigned int numberOfValidHits_
Definition: Muon.h:301
bool embeddedTrack_
track of inner track detector
Definition: Muon.h:253
bool cachedNumberOfValidHits_
has the dB been cached?
Definition: Muon.h:291
bool embeddedStandAloneMuon_
track of muon system
Definition: Muon.h:256
bool embeddedPickyMuon_
Definition: Muon.h:270
bool embeddedTpfmsMuon_
Definition: Muon.h:271
bool cachedNormChi2_
Definition: Muon.h:288
double normChi2_
has the numberOfValidHits been cached?
Definition: Muon.h:292
bool embeddedTunePMuonBestTrack_
best muon track (muon only)
Definition: Muon.h:250
bool embeddedDytMuon_
Definition: Muon.h:272
bool embeddedPFCandidate_
true if the IsolatedPFCandidate is embedded
Definition: Muon.h:279
bool embeddedCaloMETMuonCorrs_
muon MET corrections for caloMET
Definition: Muon.h:266
bool embeddedCombinedMuon_
track of combined fit
Definition: Muon.h:259
bool cachedDB_
has the normalized chi2 been cached?
Definition: Muon.h:289
double edB_
dB and edB are the impact parameter at the primary vertex,
Definition: Muon.h:294
double dB_
globalTrack-&gt;chi2() / globalTrack-&gt;ndof()
Definition: Muon.h:293
bool embeddedMuonBestTrack_
best muon track (global pflow)
Definition: Muon.h:247
void initImpactParameters(void)
Definition: Muon.cc:139
Muon::Muon ( const edm::RefToBase< reco::Muon > &  aMuonRef)

constructor from a RefToBase to a reco muon (to be superseded by Ptr counterpart)

constructor from ref to reco::Muon

Definition at line 66 of file Muon.cc.

References initImpactParameters().

66  :
67  Lepton<reco::Muon>(aMuonRef),
70  embeddedTrack_(false),
72  embeddedCombinedMuon_(false),
75  embeddedPickyMuon_(false),
76  embeddedTpfmsMuon_(false),
77  embeddedDytMuon_(false),
78  embeddedPFCandidate_(false),
80  cachedNormChi2_(false),
81  cachedDB_(false),
83  normChi2_(0.0),
84  dB_(0.0),
85  edB_(0.0),
87 {
89 }
reco::PFCandidateRef pfCandidateRef_
Definition: Muon.h:285
bool embeddedTCMETMuonCorrs_
muon MET corrections for tcMET
Definition: Muon.h:263
unsigned int numberOfValidHits_
Definition: Muon.h:301
bool embeddedTrack_
track of inner track detector
Definition: Muon.h:253
bool cachedNumberOfValidHits_
has the dB been cached?
Definition: Muon.h:291
bool embeddedStandAloneMuon_
track of muon system
Definition: Muon.h:256
bool embeddedPickyMuon_
Definition: Muon.h:270
bool embeddedTpfmsMuon_
Definition: Muon.h:271
bool cachedNormChi2_
Definition: Muon.h:288
double normChi2_
has the numberOfValidHits been cached?
Definition: Muon.h:292
bool embeddedTunePMuonBestTrack_
best muon track (muon only)
Definition: Muon.h:250
bool embeddedDytMuon_
Definition: Muon.h:272
bool embeddedPFCandidate_
true if the IsolatedPFCandidate is embedded
Definition: Muon.h:279
bool embeddedCaloMETMuonCorrs_
muon MET corrections for caloMET
Definition: Muon.h:266
bool embeddedCombinedMuon_
track of combined fit
Definition: Muon.h:259
bool cachedDB_
has the normalized chi2 been cached?
Definition: Muon.h:289
double edB_
dB and edB are the impact parameter at the primary vertex,
Definition: Muon.h:294
double dB_
globalTrack-&gt;chi2() / globalTrack-&gt;ndof()
Definition: Muon.h:293
bool embeddedMuonBestTrack_
best muon track (global pflow)
Definition: Muon.h:247
void initImpactParameters(void)
Definition: Muon.cc:139
Muon::Muon ( const edm::Ptr< reco::Muon > &  aMuonRef)

constructor from a Ptr to a reco muon

constructor from ref to reco::Muon

Definition at line 92 of file Muon.cc.

References initImpactParameters().

92  :
93  Lepton<reco::Muon>(aMuonRef),
96  embeddedTrack_(false),
98  embeddedCombinedMuon_(false),
101  embeddedPickyMuon_(false),
102  embeddedTpfmsMuon_(false),
103  embeddedDytMuon_(false),
104  embeddedPFCandidate_(false),
105  pfCandidateRef_(),
106  cachedNormChi2_(false),
107  cachedDB_(false),
109  normChi2_(0.0),
110  dB_(0.0),
111  edB_(0.0),
113 {
115 }
reco::PFCandidateRef pfCandidateRef_
Definition: Muon.h:285
bool embeddedTCMETMuonCorrs_
muon MET corrections for tcMET
Definition: Muon.h:263
unsigned int numberOfValidHits_
Definition: Muon.h:301
bool embeddedTrack_
track of inner track detector
Definition: Muon.h:253
bool cachedNumberOfValidHits_
has the dB been cached?
Definition: Muon.h:291
bool embeddedStandAloneMuon_
track of muon system
Definition: Muon.h:256
bool embeddedPickyMuon_
Definition: Muon.h:270
bool embeddedTpfmsMuon_
Definition: Muon.h:271
bool cachedNormChi2_
Definition: Muon.h:288
double normChi2_
has the numberOfValidHits been cached?
Definition: Muon.h:292
bool embeddedTunePMuonBestTrack_
best muon track (muon only)
Definition: Muon.h:250
bool embeddedDytMuon_
Definition: Muon.h:272
bool embeddedPFCandidate_
true if the IsolatedPFCandidate is embedded
Definition: Muon.h:279
bool embeddedCaloMETMuonCorrs_
muon MET corrections for caloMET
Definition: Muon.h:266
bool embeddedCombinedMuon_
track of combined fit
Definition: Muon.h:259
bool cachedDB_
has the normalized chi2 been cached?
Definition: Muon.h:289
double edB_
dB and edB are the impact parameter at the primary vertex,
Definition: Muon.h:294
double dB_
globalTrack-&gt;chi2() / globalTrack-&gt;ndof()
Definition: Muon.h:293
bool embeddedMuonBestTrack_
best muon track (global pflow)
Definition: Muon.h:247
void initImpactParameters(void)
Definition: Muon.cc:139
Muon::~Muon ( )
virtual

destructor

Definition at line 118 of file Muon.cc.

118  {
119 }

Member Function Documentation

const reco::Track* pat::Muon::bestTrack ( ) const
inlinevirtual

Track selected to be the best measurement of the muon parameters (including PFlow global information)

Reimplemented from reco::Muon.

Definition at line 83 of file Muon.h.

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

83 { return muonBestTrack().get(); }
reco::TrackRef muonBestTrack() const
Track selected to be the best measurement of the muon parameters (including PFlow global information)...
Definition: Muon.cc:205
T const * get() const
Returns C++ pointer to the item.
Definition: Ref.h:242
float pat::Muon::caloIso ( ) const
inline

Overload of pat::Lepton::trackIso(); returns the sum of ecalIso() and hcalIso

Definition at line 181 of file Muon.h.

References ecalIso(), and hcalIso().

181 { return ecalIso()+hcalIso(); }
float ecalIso() const
Definition: Muon.h:174
float hcalIso() const
Definition: Muon.h:178
reco::MuonMETCorrectionData pat::Muon::caloMETMuonCorrs ( ) const
inline

muon MET corrections for caloMET; returns the muon correction struct if embedded during pat tuple production or an empty element

Definition at line 104 of file Muon.h.

References caloMETMuonCorrs_, and embeddedCaloMETMuonCorrs_.

std::vector< reco::MuonMETCorrectionData > caloMETMuonCorrs_
Definition: Muon.h:267
bool embeddedCaloMETMuonCorrs_
muon MET corrections for caloMET
Definition: Muon.h:266
virtual Muon* pat::Muon::clone ( void  ) const
inlinevirtual

required reimplementation of the Candidate's clone method

Reimplemented from pat::Lepton< reco::Muon >.

Definition at line 66 of file Muon.h.

References Muon().

66 { return new Muon(*this); }
Muon()
default constructor
Definition: Muon.cc:14
reco::TrackRef Muon::combinedMuon ( ) const
virtual

reference to Track reconstructed in both tracked and muon detector (reimplemented from reco::Muon)

Reimplemented from reco::Muon.

Definition at line 169 of file Muon.cc.

References combinedMuon_, embeddedCombinedMuon_, and reco::Muon::globalTrack().

Referenced by globalTrack().

169  {
170  if (embeddedCombinedMuon_) {
171  return reco::TrackRef(&combinedMuon_, 0);
172  } else {
173  return reco::Muon::globalTrack();
174  }
175 }
bool embeddedCombinedMuon_
track of combined fit
Definition: Muon.h:259
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
Definition: TrackFwd.h:14
std::vector< reco::Track > combinedMuon_
Definition: Muon.h:260
virtual TrackRef globalTrack() const
reference to Track reconstructed in both tracked and muon detector
Definition: Muon.h:54
double Muon::dB ( IpType  type = None) const

Definition at line 410 of file Muon.cc.

References cachedDB_, cachedIP_, dB_, ip_, max(), None, and reco::Muon::type_.

Referenced by GlbMuQualityCutsAnalysis::analyze(), MuonVPlusJetsIDSelectionFunctor::fall10Cuts(), MuonVPlusJetsIDSelectionFunctor::firstDataCuts(), MuonVPlusJetsIDSelectionFunctor::kitQCDCuts(), setDB(), MuonVPlusJetsIDSelectionFunctor::spring10Cuts(), MuonVPlusJetsIDSelectionFunctor::summer08Cuts(), and PFMuonSelector::TopPag12LjetsCuts().

410  {
411 
412  // preserve old functionality exactly
413  if (type_ == None){
414  if ( cachedDB_ ) {
415  return dB_;
416  }
417  else {
419  }
420  }
421 
422  // more IP types (new)
423  else if ( cachedIP_[type_] ) {
424  return ip_[type_];
425  } else {
427  }
428 }
unsigned int type_
muon type mask
Definition: Muon.h:269
const T & max(const T &a, const T &b)
std::vector< bool > cachedIP_
Definition: Muon.h:297
std::vector< double > ip_
Definition: Muon.h:298
bool cachedDB_
has the normalized chi2 been cached?
Definition: Muon.h:289
double dB_
globalTrack-&gt;chi2() / globalTrack-&gt;ndof()
Definition: Muon.h:293
reco::TrackRef Muon::dytTrack ( ) const
virtual

reference to Track reconstructed using DYT algorithm

reference to Track reconstructed using hits in the tracker + info from the first muon station that has hits

Reimplemented from reco::Muon.

Definition at line 196 of file Muon.cc.

References dytMuon_, reco::Muon::dytTrack(), and embeddedDytMuon_.

196  {
197  if (embeddedDytMuon_) {
198  return reco::TrackRef(&dytMuon_, 0);
199  } else {
200  return reco::Muon::dytTrack();
201  }
202 }
std::vector< reco::Track > dytMuon_
Definition: Muon.h:275
bool embeddedDytMuon_
Definition: Muon.h:272
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
Definition: TrackFwd.h:14
virtual TrackRef dytTrack() const
Definition: Muon.h:59
float pat::Muon::ecalIso ( ) const
inline

Overload of pat::Lepton::trackIso(); returns the value of the summed Et of all recHits in the ecal in a cone of deltaR<0.3

Definition at line 174 of file Muon.h.

References reco::MuonIsolation::emEt, and reco::Muon::isolationR03().

Referenced by caloIso(), MuonVPlusJetsIDSelectionFunctor::fall10Cuts(), MuonVPlusJetsIDSelectionFunctor::firstDataCuts(), MuonVPlusJetsIDSelectionFunctor::kitQCDCuts(), MuonVPlusJetsIDSelectionFunctor::spring10Cuts(), and MuonVPlusJetsIDSelectionFunctor::summer08Cuts().

174 { return isolationR03().emEt; }
float emEt
ecal sum-Et
Definition: MuonIsolation.h:8
const MuonIsolation & isolationR03() const
Definition: Muon.h:158
double Muon::edB ( IpType  type = None) const

Definition at line 435 of file Muon.cc.

References cachedDB_, cachedIP_, edB_, eip_, max(), None, and reco::Muon::type_.

Referenced by MuonVPlusJetsIDSelectionFunctor::fall10Cuts(), MuonVPlusJetsIDSelectionFunctor::firstDataCuts(), MuonVPlusJetsIDSelectionFunctor::kitQCDCuts(), setDB(), and MuonVPlusJetsIDSelectionFunctor::spring10Cuts().

435  {
436 
437  // preserve old functionality exactly
438  if (type_ == None){
439  if ( cachedDB_ ) {
440  return edB_;
441  }
442  else {
444  }
445  }
446 
447  // more IP types (new)
448  else if ( cachedIP_[type_] ) {
449  return eip_[type_];
450  } else {
452  }
453 }
unsigned int type_
muon type mask
Definition: Muon.h:269
const T & max(const T &a, const T &b)
std::vector< bool > cachedIP_
Definition: Muon.h:297
std::vector< double > eip_
Definition: Muon.h:299
bool cachedDB_
has the normalized chi2 been cached?
Definition: Muon.h:289
double edB_
dB and edB are the impact parameter at the primary vertex,
Definition: Muon.h:294
void Muon::embedCaloMETMuonCorrs ( const reco::MuonMETCorrectionData t)

embed the MuonMETCorrectionData for muon corrected caloMET

Definition at line 322 of file Muon.cc.

References caloMETMuonCorrs_, and embeddedCaloMETMuonCorrs_.

Referenced by pat::PATMuonProducer::produce().

322  {
323  caloMETMuonCorrs_.clear();
324  caloMETMuonCorrs_.push_back(t);
326 }
std::vector< reco::MuonMETCorrectionData > caloMETMuonCorrs_
Definition: Muon.h:267
bool embeddedCaloMETMuonCorrs_
muon MET corrections for caloMET
Definition: Muon.h:266
void Muon::embedCombinedMuon ( )

set reference to Track reconstructed in both tracked and muon detector (reimplemented from reco::Muon)

embed the Track reconstructed in both tracked and muon detector

Definition at line 313 of file Muon.cc.

References combinedMuon_, embeddedCombinedMuon_, and reco::Muon::globalTrack().

Referenced by pat::PATMuonProducer::fillMuon().

313  {
314  combinedMuon_.clear();
315  if (reco::Muon::globalTrack().isNonnull()) {
317  embeddedCombinedMuon_ = true;
318  }
319 }
bool embeddedCombinedMuon_
track of combined fit
Definition: Muon.h:259
std::vector< reco::Track > combinedMuon_
Definition: Muon.h:260
virtual TrackRef globalTrack() const
reference to Track reconstructed in both tracked and muon detector
Definition: Muon.h:54
void Muon::embedDytMuon ( )

embed reference to the above dyt Track

embed the dyt Track

Definition at line 356 of file Muon.cc.

References dytMuon_, reco::Muon::dytTrack(), embeddedDytMuon_, and edm::Ref< C, T, F >::isNonnull().

Referenced by pat::PATMuonProducer::fillMuon().

356  {
357  dytMuon_.clear();
359  if (tk.isNonnull()) {
360  dytMuon_.push_back(*tk);
361  embeddedDytMuon_ = true;
362  }
363 }
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:250
std::vector< reco::Track > dytMuon_
Definition: Muon.h:275
bool embeddedDytMuon_
Definition: Muon.h:272
virtual TrackRef dytTrack() const
Definition: Muon.h:59
void Muon::embedMuonBestTrack ( bool  force = false)

embed the Track selected to be the best measurement of the muon parameters

set reference to Track selected to be the best measurement of the muon parameters (reimplemented from reco::Muon) if force == false, do not embed this track if it's embedded already (e.g. ig it's a tracker track, and that's already embedded)

Definition at line 245 of file Muon.cc.

References reco::Muon::CombinedTrack, reco::Muon::DYT, embeddedCombinedMuon_, embeddedDytMuon_, embeddedMuonBestTrack_, embeddedPickyMuon_, embeddedStandAloneMuon_, embeddedTpfmsMuon_, embeddedTrack_, reco::Muon::InnerTrack, reco::Muon::muonBestTrack(), muonBestTrack_, reco::Muon::muonBestTrackType(), None, reco::Muon::OuterTrack, reco::Muon::Picky, and reco::Muon::TPFMS.

Referenced by pat::PATMuonProducer::fillMuon().

245  {
246  muonBestTrack_.clear();
247  embeddedMuonBestTrack_ = false;
248  bool alreadyEmbedded = force;
249  if (!force) {
250  switch (muonBestTrackType()) {
251  case None: alreadyEmbedded = true; break;
252  case InnerTrack: if (embeddedTrack_) alreadyEmbedded = true; break;
253  case OuterTrack: if (embeddedStandAloneMuon_) alreadyEmbedded = true; break;
254  case CombinedTrack: if (embeddedCombinedMuon_) alreadyEmbedded = true; break;
255  case TPFMS: if (embeddedTpfmsMuon_) alreadyEmbedded = true; break;
256  case Picky: if (embeddedPickyMuon_) alreadyEmbedded = true; break;
257  case DYT: if (embeddedDytMuon_) alreadyEmbedded = true; break;
258  }
259  }
260  if (!alreadyEmbedded) {
262  embeddedMuonBestTrack_ = true;
263  }
264 }
virtual MuonTrackType muonBestTrackType() const
Definition: Muon.h:64
bool embeddedTrack_
track of inner track detector
Definition: Muon.h:253
bool embeddedStandAloneMuon_
track of muon system
Definition: Muon.h:256
bool embeddedPickyMuon_
Definition: Muon.h:270
bool embeddedTpfmsMuon_
Definition: Muon.h:271
virtual TrackRef muonBestTrack() const
Definition: Muon.h:63
bool embeddedDytMuon_
Definition: Muon.h:272
bool embeddedCombinedMuon_
track of combined fit
Definition: Muon.h:259
std::vector< reco::Track > muonBestTrack_
Definition: Muon.h:248
bool embeddedMuonBestTrack_
best muon track (global pflow)
Definition: Muon.h:247
void Muon::embedPFCandidate ( )

embed the IsolatedPFCandidate pointed to by pfCandidateRef_

Definition at line 366 of file Muon.cc.

References embeddedPFCandidate_, edm::Ref< C, T, F >::isAvailable(), edm::Ref< C, T, F >::isNonnull(), pfCandidate_, and pfCandidateRef_.

Referenced by pat::PATMuonProducer::produce().

366  {
367  pfCandidate_.clear();
369  pfCandidate_.push_back( *pfCandidateRef_ );
370  embeddedPFCandidate_ = true;
371  }
372 }
reco::PFCandidateRef pfCandidateRef_
Definition: Muon.h:285
bool isAvailable() const
Definition: Ref.h:276
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:250
reco::PFCandidateCollection pfCandidate_
Definition: Muon.h:282
bool embeddedPFCandidate_
true if the IsolatedPFCandidate is embedded
Definition: Muon.h:279
void Muon::embedPickyMuon ( )

embed reference to the above picky Track

embed the picky Track

Definition at line 336 of file Muon.cc.

References embeddedPickyMuon_, edm::Ref< C, T, F >::isNonnull(), pickyMuon_, and reco::Muon::pickyTrack().

Referenced by pat::PATMuonProducer::fillMuon().

336  {
337  pickyMuon_.clear();
339  if (tk.isNonnull()) {
340  pickyMuon_.push_back(*tk);
341  embeddedPickyMuon_ = true;
342  }
343 }
bool embeddedPickyMuon_
Definition: Muon.h:270
std::vector< reco::Track > pickyMuon_
Definition: Muon.h:273
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:250
virtual TrackRef pickyTrack() const
Definition: Muon.h:58
void Muon::embedStandAloneMuon ( )

set reference to Track reconstructed in the muon detector only (reimplemented from reco::Muon)

embed the Track reconstructed in the muon detector only

Definition at line 303 of file Muon.cc.

References embeddedStandAloneMuon_, reco::Muon::outerTrack(), and standAloneMuon_.

Referenced by pat::PATMuonProducer::fillMuon().

303  {
304  standAloneMuon_.clear();
305  if (reco::Muon::outerTrack().isNonnull()) {
308  }
309 }
bool embeddedStandAloneMuon_
track of muon system
Definition: Muon.h:256
virtual TrackRef outerTrack() const
reference to Track reconstructed in the muon detector only
Definition: Muon.h:51
std::vector< reco::Track > standAloneMuon_
Definition: Muon.h:257
void Muon::embedTcMETMuonCorrs ( const reco::MuonMETCorrectionData t)

embed the MuonMETCorrectionData for tcMET

Definition at line 329 of file Muon.cc.

References embeddedTCMETMuonCorrs_, and tcMETMuonCorrs_.

Referenced by pat::PATMuonProducer::produce().

329  {
330  tcMETMuonCorrs_.clear();
331  tcMETMuonCorrs_.push_back(t);
333 }
bool embeddedTCMETMuonCorrs_
muon MET corrections for tcMET
Definition: Muon.h:263
std::vector< reco::MuonMETCorrectionData > tcMETMuonCorrs_
Definition: Muon.h:264
void Muon::embedTpfmsMuon ( )

embed reference to the above tpfms Track

embed the tpfms Track

Definition at line 346 of file Muon.cc.

References embeddedTpfmsMuon_, edm::Ref< C, T, F >::isNonnull(), tpfmsMuon_, and reco::Muon::tpfmsTrack().

Referenced by pat::PATMuonProducer::fillMuon().

346  {
347  tpfmsMuon_.clear();
349  if (tk.isNonnull()) {
350  tpfmsMuon_.push_back(*tk);
351  embeddedTpfmsMuon_ = true;
352  }
353 }
virtual TrackRef tpfmsTrack() const
Definition: Muon.h:57
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:250
bool embeddedTpfmsMuon_
Definition: Muon.h:271
std::vector< reco::Track > tpfmsMuon_
Definition: Muon.h:274
void Muon::embedTrack ( )

set reference to Track reconstructed in the tracker only (reimplemented from reco::Muon)

embed the Track reconstructed in the tracker only

Definition at line 293 of file Muon.cc.

References embeddedTrack_, reco::Muon::innerTrack(), and track_.

Referenced by pat::PATMuonProducer::fillMuon().

293  {
294  track_.clear();
295  if (reco::Muon::innerTrack().isNonnull()) {
296  track_.push_back(*reco::Muon::innerTrack());
297  embeddedTrack_ = true;
298  }
299 }
virtual TrackRef innerTrack() const
Definition: Muon.h:48
bool embeddedTrack_
track of inner track detector
Definition: Muon.h:253
std::vector< reco::Track > track_
Definition: Muon.h:254
void Muon::embedTunePMuonBestTrack ( bool  force = false)

embed the Track selected to be the best measurement of the muon parameters

set reference to Track selected to be the best measurement of the muon parameters (reimplemented from reco::Muon) if force == false, do not embed this track if it's embedded already (e.g. ig it's a tracker track, and that's already embedded)

Definition at line 267 of file Muon.cc.

References reco::Muon::CombinedTrack, reco::Muon::DYT, embeddedCombinedMuon_, embeddedDytMuon_, embeddedMuonBestTrack_, embeddedPickyMuon_, embeddedStandAloneMuon_, embeddedTpfmsMuon_, embeddedTrack_, embeddedTunePMuonBestTrack_, reco::Muon::InnerTrack, reco::Muon::muonBestTrackType(), None, reco::Muon::OuterTrack, reco::Muon::Picky, reco::Muon::TPFMS, reco::Muon::tunePMuonBestTrack(), tunePMuonBestTrack_, and reco::Muon::tunePMuonBestTrackType().

Referenced by pat::PATMuonProducer::fillMuon().

267  {
268  tunePMuonBestTrack_.clear();
269  bool alreadyEmbedded = force;
271  if (!force) {
272  switch (muonBestTrackType()) {
273  case None: alreadyEmbedded = true; break;
274  case InnerTrack: if (embeddedTrack_) alreadyEmbedded = true; break;
275  case OuterTrack: if (embeddedStandAloneMuon_) alreadyEmbedded = true; break;
276  case CombinedTrack: if (embeddedCombinedMuon_) alreadyEmbedded = true; break;
277  case TPFMS: if (embeddedTpfmsMuon_) alreadyEmbedded = true; break;
278  case Picky: if (embeddedPickyMuon_) alreadyEmbedded = true; break;
279  case DYT: if (embeddedDytMuon_) alreadyEmbedded = true; break;
280  }
282  if (embeddedMuonBestTrack_) alreadyEmbedded = true;
283  }
284  }
285  if (!alreadyEmbedded) {
288  }
289 }
virtual MuonTrackType muonBestTrackType() const
Definition: Muon.h:64
bool embeddedTrack_
track of inner track detector
Definition: Muon.h:253
bool embeddedStandAloneMuon_
track of muon system
Definition: Muon.h:256
std::vector< reco::Track > tunePMuonBestTrack_
Definition: Muon.h:251
bool embeddedPickyMuon_
Definition: Muon.h:270
bool embeddedTpfmsMuon_
Definition: Muon.h:271
bool embeddedTunePMuonBestTrack_
best muon track (muon only)
Definition: Muon.h:250
bool embeddedDytMuon_
Definition: Muon.h:272
bool embeddedCombinedMuon_
track of combined fit
Definition: Muon.h:259
virtual MuonTrackType tunePMuonBestTrackType() const
Definition: Muon.h:66
virtual TrackRef tunePMuonBestTrack() const
Definition: Muon.h:65
bool embeddedMuonBestTrack_
best muon track (global pflow)
Definition: Muon.h:247
reco::TrackRef pat::Muon::globalTrack ( ) const
inlinevirtual

reference to Track reconstructed in both tracked and muon detector (reimplemented from reco::Muon)

Reimplemented from reco::Muon.

Definition at line 81 of file Muon.h.

References combinedMuon().

Referenced by MuonVPlusJetsIDSelectionFunctor::fall10Cuts(), MuonVPlusJetsIDSelectionFunctor::kitQCDCuts(), normChi2(), ZMuMuMuonUserData::produce(), MuScleFitMuonSelector::selGlobalMuon(), MuScleFit::selGlobalMuon(), MuonVPlusJetsIDSelectionFunctor::spring10Cuts(), and PFMuonSelector::TopPag12LjetsCuts().

81 { return combinedMuon(); }
reco::TrackRef combinedMuon() const
reference to Track reconstructed in both tracked and muon detector (reimplemented from reco::Muon) ...
Definition: Muon.cc:169
float pat::Muon::hcalIso ( ) const
inline

Overload of pat::Lepton::trackIso(); returns the value of the summed Et of all caloTowers in the hcal in a cone of deltaR<0.4

Definition at line 178 of file Muon.h.

References reco::MuonIsolation::hadEt, and reco::Muon::isolationR03().

Referenced by caloIso(), MuonVPlusJetsIDSelectionFunctor::fall10Cuts(), MuonVPlusJetsIDSelectionFunctor::firstDataCuts(), MuonVPlusJetsIDSelectionFunctor::kitQCDCuts(), MuonVPlusJetsIDSelectionFunctor::spring10Cuts(), and MuonVPlusJetsIDSelectionFunctor::summer08Cuts().

178 { return isolationR03().hadEt; }
float hadEt
hcal sum-Et
Definition: MuonIsolation.h:9
const MuonIsolation & isolationR03() const
Definition: Muon.h:158
void Muon::initImpactParameters ( void  )

Definition at line 139 of file Muon.cc.

References cachedIP_, eip_, and ip_.

Referenced by Muon().

139  {
140  for (int i_ = 0; i_<5; ++i_){
141  ip_.push_back(0.0);
142  eip_.push_back(0.0);
143  cachedIP_.push_back(false);
144  }
145 }
std::vector< bool > cachedIP_
Definition: Muon.h:297
std::vector< double > ip_
Definition: Muon.h:298
std::vector< double > eip_
Definition: Muon.h:299
reco::TrackRef pat::Muon::innerTrack ( ) const
inlinevirtual
bool pat::Muon::isGood ( const std::string &  name) const
inline

wrapper for the muonID method to maintain backwards compatibility with when the reco::Muon::isGood method existed

Definition at line 155 of file Muon.h.

References muonID().

155 { return muonID(name); }
bool muonID(const std::string &name) const
Definition: Muon.cc:374
bool Muon::isHighPtMuon ( const reco::Vertex vtx) const

Definition at line 475 of file Muon.cc.

References muon::isHighPtMuon().

475  {
476  return muon::isHighPtMuon(*this, vtx);
477 }
bool isHighPtMuon(const reco::Muon &, const reco::Vertex &)
bool Muon::isLooseMuon ( ) const

Definition at line 465 of file Muon.cc.

References muon::isLooseMuon().

465  {
466  return muon::isLooseMuon(*this);
467 
468 }
bool isLooseMuon(const reco::Muon &)
bool Muon::isSoftMuon ( const reco::Vertex vtx) const

Definition at line 470 of file Muon.cc.

References muon::isSoftMuon().

470  {
471  return muon::isSoftMuon(*this, vtx);
472 }
bool isSoftMuon(const reco::Muon &, const reco::Vertex &)
bool Muon::isTightMuon ( const reco::Vertex vtx) const

if muon id results are ever extracted from muon id value maps then the isMuonIDAvailable method will be defined Muon Selectors as specified in https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideMuonId

Definition at line 461 of file Muon.cc.

References muon::isTightMuon().

461  {
462  return muon::isTightMuon(*this, vtx);
463 }
bool isTightMuon(const reco::Muon &, const reco::Vertex &)
reco::TrackRef Muon::muonBestTrack ( ) const
virtual

Track selected to be the best measurement of the muon parameters (including PFlow global information)

reference to Track giving best momentum (global PFlow algo)

Reimplemented from reco::Muon.

Definition at line 205 of file Muon.cc.

References reco::Muon::muonBestTrack(), and muonBestTrack_.

Referenced by bestTrack(), and tunePMuonBestTrack().

205  {
206  if (!muonBestTrack_.empty()) {
207  return reco::TrackRef(&muonBestTrack_, 0);
208  } else {
209  return reco::Muon::muonBestTrack();
210  }
211 }
virtual TrackRef muonBestTrack() const
Definition: Muon.h:63
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
Definition: TrackFwd.h:14
std::vector< reco::Track > muonBestTrack_
Definition: Muon.h:248
bool Muon::muonID ( const std::string &  name) const

accessor for the various muon id algorithms currently defined in DataFormats/MuonReco/interface/MuonSelectors.h e.g. bool result = patmuon.muonID("TMLastStationLoose")

Definition at line 374 of file Muon.cc.

References muon::isGoodMuon(), and muon::selectionTypeFromString().

Referenced by isGood(), MuScleFitMuonSelector::selGlobalMuon(), MuScleFit::selGlobalMuon(), MuScleFitMuonSelector::selTrackerMuon(), and MuScleFit::selTrackerMuon().

374  {
376  return muon::isGoodMuon(*this, st);
377 }
SelectionType
Selector type.
Definition: MuonSelectors.h:17
bool isGoodMuon(const reco::Muon &muon, SelectionType type, reco::Muon::ArbitrationType arbitrationType=reco::Muon::SegmentAndTrackArbitration)
main GoodMuon wrapper call
SelectionType selectionTypeFromString(const std::string &label)
Definition: MuonSelectors.cc:9
double Muon::normChi2 ( ) const

Norm chi2 gives the normalized chi2 of the global track.

Norm chi2 gives the normalized chi2 of the global track. The user can choose to cache this info so they can drop the global track, or they can use the track itself if it is present in the event.

Definition at line 384 of file Muon.cc.

References cachedNormChi2_, globalTrack(), normChi2_, and lumiQTWidget::t.

Referenced by GlbMuQualityCutsAnalysis::analyze(), MuonVPlusJetsIDSelectionFunctor::fall10Cuts(), MuonVPlusJetsIDSelectionFunctor::firstDataCuts(), MuonVPlusJetsIDSelectionFunctor::kitQCDCuts(), ZToLLEdmNtupleDumper::produce(), setNormChi2(), MuonVPlusJetsIDSelectionFunctor::spring10Cuts(), MuonVPlusJetsIDSelectionFunctor::summer08Cuts(), and PFMuonSelector::TopPag12LjetsCuts().

384  {
385  if ( cachedNormChi2_ ) {
386  return normChi2_;
387  } else {
389  return t->chi2() / t->ndof();
390  }
391 }
bool cachedNormChi2_
Definition: Muon.h:288
double normChi2_
has the numberOfValidHits been cached?
Definition: Muon.h:292
reco::TrackRef globalTrack() const
reference to Track reconstructed in both tracked and muon detector (reimplemented from reco::Muon) ...
Definition: Muon.h:81
size_t pat::Muon::numberOfSourceCandidatePtrs ( ) const
inlinevirtual

get the number of non-null PF candidates

Reimplemented from reco::LeafCandidate.

Definition at line 139 of file Muon.h.

References edm::Ptr< T >::isNonnull(), edm::Ref< C, T, F >::isNonnull(), pfCandidateRef_, and pat::PATObject< reco::Muon >::refToOrig_.

139  {
140  size_t res=0;
141  if(pfCandidateRef_.isNonnull()) res++;
142  if(refToOrig_.isNonnull()) res++;
143  return res;
144  }
reco::PFCandidateRef pfCandidateRef_
Definition: Muon.h:285
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:250
bool isNonnull() const
Checks for non-null.
Definition: Ptr.h:152
edm::Ptr< reco::Candidate > refToOrig_
Definition: PATObject.h:407
unsigned int Muon::numberOfValidHits ( ) const

numberOfValidHits returns the number of valid hits on the global track.

numberOfValidHits returns the number of valid hits on the global track. The user can choose to cache this info so they can drop the global track, or they can use the track itself if it is present in the event.

Definition at line 397 of file Muon.cc.

References cachedNumberOfValidHits_, innerTrack(), numberOfValidHits_, and lumiQTWidget::t.

Referenced by GlbMuQualityCutsAnalysis::analyze(), MuonVPlusJetsIDSelectionFunctor::fall10Cuts(), MuonVPlusJetsIDSelectionFunctor::firstDataCuts(), MuonVPlusJetsIDSelectionFunctor::kitQCDCuts(), ZToLLEdmNtupleDumper::produce(), setNumberOfValidHits(), MuonVPlusJetsIDSelectionFunctor::spring10Cuts(), and MuonVPlusJetsIDSelectionFunctor::summer08Cuts().

397  {
398  if ( cachedNumberOfValidHits_ ) {
399  return numberOfValidHits_;
400  } else {
402  return t->numberOfValidHits();
403  }
404 }
reco::TrackRef innerTrack() const
reference to Track reconstructed in the tracker only (reimplemented from reco::Muon) ...
Definition: Muon.h:73
unsigned int numberOfValidHits_
Definition: Muon.h:301
bool cachedNumberOfValidHits_
has the dB been cached?
Definition: Muon.h:291
reco::TrackRef pat::Muon::outerTrack ( ) const
inlinevirtual

reference to Track reconstructed in the muon detector only (reimplemented from reco::Muon)

Reimplemented from reco::Muon.

Definition at line 77 of file Muon.h.

References standAloneMuon().

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

77 { return standAloneMuon(); }
reco::TrackRef standAloneMuon() const
reference to Track reconstructed in the muon detector only (reimplemented from reco::Muon) ...
Definition: Muon.cc:159
reco::PFCandidateRef Muon::pfCandidateRef ( ) const

reference to the source IsolatedPFCandidates

reference to the source IsolatedPFCandidates null if this has been built from a standard muon

Definition at line 228 of file Muon.cc.

References embeddedPFCandidate_, pfCandidate_, and pfCandidateRef_.

Referenced by pat::PATMuonProducer::fillMuon().

228  {
229  if (embeddedPFCandidate_) {
231  } else {
232  return pfCandidateRef_;
233  }
234 }
reco::PFCandidateRef pfCandidateRef_
Definition: Muon.h:285
reco::PFCandidateCollection pfCandidate_
Definition: Muon.h:282
edm::Ref< PFCandidateCollection > PFCandidateRef
persistent reference to a PFCandidate
bool embeddedPFCandidate_
true if the IsolatedPFCandidate is embedded
Definition: Muon.h:279
reco::TrackRef pat::Muon::pickyMuon ( ) const
inline

Deprecated accessors to call the corresponding above two functions; no dytMuon since this naming is deprecated.

Definition at line 119 of file Muon.h.

References pickyTrack().

119 { return pickyTrack(); } // JMTBAD gcc deprecated attribute?
reco::TrackRef pickyTrack() const
reference to Track reconstructed using hits in the tracker + &quot;good&quot; muon hits (reimplemented from rec...
Definition: Muon.cc:178
reco::TrackRef Muon::pickyTrack ( ) const
virtual

reference to Track reconstructed using hits in the tracker + "good" muon hits (reimplemented from reco::Muon)

reference to Track reconstructed using hits in the tracker + "good" muon hits

Reimplemented from reco::Muon.

Definition at line 178 of file Muon.cc.

References embeddedPickyMuon_, pickyMuon_, and reco::Muon::pickyTrack().

Referenced by pickyMuon().

178  {
179  if (embeddedPickyMuon_) {
180  return reco::TrackRef(&pickyMuon_, 0);
181  } else {
182  return reco::Muon::pickyTrack();
183  }
184 }
bool embeddedPickyMuon_
Definition: Muon.h:270
std::vector< reco::Track > pickyMuon_
Definition: Muon.h:273
virtual TrackRef pickyTrack() const
Definition: Muon.h:58
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
Definition: TrackFwd.h:14
double Muon::segmentCompatibility ( reco::Muon::ArbitrationType  arbitrationType = reco::Muon::SegmentAndTrackArbitration) const

Returns the segment compatibility, using muon::segmentCompatibility (DataFormats/MuonReco/interface/MuonSelectors.h)

Definition at line 456 of file Muon.cc.

References muon::segmentCompatibility().

456  {
457  return muon::segmentCompatibility(*this, arbitrationType);
458 }
float segmentCompatibility(const reco::Muon &muon, reco::Muon::ArbitrationType arbitrationType=reco::Muon::SegmentAndTrackArbitration)
void pat::Muon::setDB ( double  dB,
double  edB,
IpType  type = None 
)
inline

Definition at line 216 of file Muon.h.

References cachedDB_, cachedIP_, dB(), dB_, edB(), edB_, eip_, ip_, None, and reco::Muon::type().

Referenced by pat::PATMuonProducer::embedHighLevel(), and pat::PATMuonProducer::produce().

216  {
217  if (type == None) {
218  dB_ = dB; edB_ = edB;
219  cachedDB_ = true;
220  }
221  ip_[type] = dB; eip_[type] = edB; cachedIP_[type] = true;
222  }
type
Definition: HCALResponse.h:21
std::vector< bool > cachedIP_
Definition: Muon.h:297
double dB(IpType type=None) const
Definition: Muon.cc:410
std::vector< double > ip_
Definition: Muon.h:298
double edB(IpType type=None) const
Definition: Muon.cc:435
std::vector< double > eip_
Definition: Muon.h:299
bool cachedDB_
has the normalized chi2 been cached?
Definition: Muon.h:289
double edB_
dB and edB are the impact parameter at the primary vertex,
Definition: Muon.h:294
unsigned int type() const
Definition: Muon.h:215
double dB_
globalTrack-&gt;chi2() / globalTrack-&gt;ndof()
Definition: Muon.h:293
void pat::Muon::setNormChi2 ( double  normChi2)
inline

Definition at line 231 of file Muon.h.

References cachedNormChi2_, normChi2(), and normChi2_.

Referenced by pat::PATMuonProducer::produce().

232  { normChi2_ = normChi2; cachedNormChi2_ = true; }
double normChi2() const
Norm chi2 gives the normalized chi2 of the global track.
Definition: Muon.cc:384
bool cachedNormChi2_
Definition: Muon.h:288
double normChi2_
has the numberOfValidHits been cached?
Definition: Muon.h:292
void pat::Muon::setNumberOfValidHits ( unsigned int  numberOfValidHits)
inline

Definition at line 226 of file Muon.h.

References cachedNumberOfValidHits_, numberOfValidHits(), and numberOfValidHits_.

Referenced by pat::PATMuonProducer::produce().

unsigned int numberOfValidHits() const
numberOfValidHits returns the number of valid hits on the global track.
Definition: Muon.cc:397
unsigned int numberOfValidHits_
Definition: Muon.h:301
bool cachedNumberOfValidHits_
has the dB been cached?
Definition: Muon.h:291
void pat::Muon::setPFCandidateRef ( const reco::PFCandidateRef ref)
inline

add a reference to the source IsolatedPFCandidate

Definition at line 133 of file Muon.h.

References pfCandidateRef_.

Referenced by pat::PATMuonProducer::produce().

133  {
134  pfCandidateRef_ = ref;
135  }
reco::PFCandidateRef pfCandidateRef_
Definition: Muon.h:285
reco::CandidatePtr Muon::sourceCandidatePtr ( size_type  i) const
virtual

get the candidate pointer with index i

reference to the parent PF candidate for use in TopProjector

Reimplemented from reco::LeafCandidate.

Definition at line 237 of file Muon.cc.

References edm::Ptr< T >::isNonnull(), edm::Ref< C, T, F >::isNonnull(), pfCandidateRef_, pat::PATObject< reco::Muon >::refToOrig_, and edm::refToPtr().

237  {
239  if(refToOrig_.isNonnull() && pfCandidateRef_.isNonnull() && i==1 ) return refToOrig_;
240  if(refToOrig_.isNonnull() && ! pfCandidateRef_.isNonnull() && i==0 ) return refToOrig_;
241  return reco::CandidatePtr();
242 }
int i
Definition: DBlmapReader.cc:9
reco::PFCandidateRef pfCandidateRef_
Definition: Muon.h:285
Ptr< typename C::value_type > refToPtr(Ref< C, typename C::value_type, refhelper::FindUsingAdvance< C, typename C::value_type > > const &ref)
Definition: RefToPtr.h:18
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:250
bool isNonnull() const
Checks for non-null.
Definition: Ptr.h:152
edm::Ptr< Candidate > CandidatePtr
persistent reference to an object in a collection of Candidate objects
Definition: CandidateFwd.h:25
edm::Ptr< reco::Candidate > refToOrig_
Definition: PATObject.h:407
reco::TrackRef Muon::standAloneMuon ( ) const
virtual

reference to Track reconstructed in the muon detector only (reimplemented from reco::Muon)

Reimplemented from reco::Muon.

Definition at line 159 of file Muon.cc.

References embeddedStandAloneMuon_, reco::Muon::outerTrack(), and standAloneMuon_.

Referenced by outerTrack().

159  {
161  return reco::TrackRef(&standAloneMuon_, 0);
162  } else {
163  return reco::Muon::outerTrack();
164  }
165 }
bool embeddedStandAloneMuon_
track of muon system
Definition: Muon.h:256
virtual TrackRef outerTrack() const
reference to Track reconstructed in the muon detector only
Definition: Muon.h:51
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
Definition: TrackFwd.h:14
std::vector< reco::Track > standAloneMuon_
Definition: Muon.h:257
reco::MuonMETCorrectionData pat::Muon::tcMETMuonCorrs ( ) const
inline

muon MET corrections for tcMET; returns the muon correction struct if embedded during pat tuple production or an empty element

Definition at line 107 of file Muon.h.

References embeddedTCMETMuonCorrs_, and tcMETMuonCorrs_.

bool embeddedTCMETMuonCorrs_
muon MET corrections for tcMET
Definition: Muon.h:263
std::vector< reco::MuonMETCorrectionData > tcMETMuonCorrs_
Definition: Muon.h:264
reco::TrackRef pat::Muon::tpfmsMuon ( ) const
inline

Definition at line 120 of file Muon.h.

References tpfmsTrack().

120 { return tpfmsTrack(); } // JMTBAD gcc deprecated attribute?
reco::TrackRef tpfmsTrack() const
reference to Track reconstructed using hits in the tracker + info from the first muon station that ha...
Definition: Muon.cc:187
reco::TrackRef Muon::tpfmsTrack ( ) const
virtual

reference to Track reconstructed using hits in the tracker + info from the first muon station that has hits (reimplemented from reco::Muon)

reference to Track reconstructed using hits in the tracker + info from the first muon station that has hits

Reimplemented from reco::Muon.

Definition at line 187 of file Muon.cc.

References embeddedTpfmsMuon_, tpfmsMuon_, and reco::Muon::tpfmsTrack().

Referenced by tpfmsMuon().

187  {
188  if (embeddedTpfmsMuon_) {
189  return reco::TrackRef(&tpfmsMuon_, 0);
190  } else {
191  return reco::Muon::tpfmsTrack();
192  }
193 }
virtual TrackRef tpfmsTrack() const
Definition: Muon.h:57
bool embeddedTpfmsMuon_
Definition: Muon.h:271
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
Definition: TrackFwd.h:14
std::vector< reco::Track > tpfmsMuon_
Definition: Muon.h:274
reco::TrackRef Muon::track ( void  ) const
virtual

reference to Track reconstructed in the tracker only (reimplemented from reco::Muon)

Reimplemented from reco::Muon.

Definition at line 149 of file Muon.cc.

References embeddedTrack_, reco::Muon::innerTrack(), and track_.

Referenced by ZMuMu_vtxAnalyzer::analyze(), GenPurposeSkimmerData::analyze(), pat::TrackerIsolationPt::calculate(), pat::CaloIsolationEnergy::calculate(), pat::LeptonVertexSignificance::calculate(), innerTrack(), and PFMuonSelector::TopPag12LjetsCuts().

149  {
150  if (embeddedTrack_) {
151  return reco::TrackRef(&track_, 0);
152  } else {
153  return reco::Muon::innerTrack();
154  }
155 }
virtual TrackRef innerTrack() const
Definition: Muon.h:48
bool embeddedTrack_
track of inner track detector
Definition: Muon.h:253
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
Definition: TrackFwd.h:14
std::vector< reco::Track > track_
Definition: Muon.h:254
float pat::Muon::trackIso ( ) const
inline
reco::TrackRef Muon::tunePMuonBestTrack ( ) const
virtual

Track selected to be the best measurement of the muon parameters (from muon information alone)

reference to Track giving best momentum (muon only)

Reimplemented from reco::Muon.

Definition at line 214 of file Muon.cc.

References muonBestTrack(), reco::Muon::muonBestTrackType(), reco::Muon::tunePMuonBestTrack(), tunePMuonBestTrack_, and reco::Muon::tunePMuonBestTrackType().

214  {
215  if (!tunePMuonBestTrack_.empty()) {
217  } else if (muonBestTrackType() == tunePMuonBestTrackType()) {
218  return muonBestTrack();
219  } else {
221  }
222 }
virtual MuonTrackType muonBestTrackType() const
Definition: Muon.h:64
std::vector< reco::Track > tunePMuonBestTrack_
Definition: Muon.h:251
reco::TrackRef muonBestTrack() const
Track selected to be the best measurement of the muon parameters (including PFlow global information)...
Definition: Muon.cc:205
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
Definition: TrackFwd.h:14
virtual MuonTrackType tunePMuonBestTrackType() const
Definition: Muon.h:66
virtual TrackRef tunePMuonBestTrack() const
Definition: Muon.h:65

Friends And Related Function Documentation

friend class PATMuonSlimmer
friend

Definition at line 240 of file Muon.h.

std::ostream& reco::operator<< ( std::ostream &  out,
const Muon obj 
)
friend

pipe operator (introduced to use pat::Muon with PFTopProjectors)

Member Data Documentation

bool pat::Muon::cachedDB_
protected

has the normalized chi2 been cached?

Definition at line 289 of file Muon.h.

Referenced by dB(), edB(), and setDB().

std::vector<bool> pat::Muon::cachedIP_
protected

Definition at line 297 of file Muon.h.

Referenced by dB(), edB(), initImpactParameters(), and setDB().

bool pat::Muon::cachedNormChi2_
protected

Definition at line 288 of file Muon.h.

Referenced by normChi2(), and setNormChi2().

bool pat::Muon::cachedNumberOfValidHits_
protected

has the dB been cached?

Definition at line 291 of file Muon.h.

Referenced by numberOfValidHits(), and setNumberOfValidHits().

std::vector<reco::MuonMETCorrectionData> pat::Muon::caloMETMuonCorrs_
protected

Definition at line 267 of file Muon.h.

Referenced by caloMETMuonCorrs(), and embedCaloMETMuonCorrs().

std::vector<reco::Track> pat::Muon::combinedMuon_
protected

Definition at line 260 of file Muon.h.

Referenced by combinedMuon(), and embedCombinedMuon().

double pat::Muon::dB_
protected

globalTrack->chi2() / globalTrack->ndof()

Definition at line 293 of file Muon.h.

Referenced by dB(), and setDB().

std::vector<reco::Track> pat::Muon::dytMuon_
protected

Definition at line 275 of file Muon.h.

Referenced by dytTrack(), and embedDytMuon().

double pat::Muon::edB_
protected

dB and edB are the impact parameter at the primary vertex,

Definition at line 294 of file Muon.h.

Referenced by edB(), and setDB().

std::vector<double> pat::Muon::eip_
protected

Definition at line 299 of file Muon.h.

Referenced by edB(), initImpactParameters(), and setDB().

bool pat::Muon::embeddedCaloMETMuonCorrs_
protected

muon MET corrections for caloMET

Definition at line 266 of file Muon.h.

Referenced by caloMETMuonCorrs(), and embedCaloMETMuonCorrs().

bool pat::Muon::embeddedCombinedMuon_
protected

track of combined fit

Definition at line 259 of file Muon.h.

Referenced by combinedMuon(), embedCombinedMuon(), embedMuonBestTrack(), and embedTunePMuonBestTrack().

bool pat::Muon::embeddedDytMuon_
protected

Definition at line 272 of file Muon.h.

Referenced by dytTrack(), embedDytMuon(), embedMuonBestTrack(), and embedTunePMuonBestTrack().

bool pat::Muon::embeddedMuonBestTrack_
protected

best muon track (global pflow)

Definition at line 247 of file Muon.h.

Referenced by embedMuonBestTrack(), and embedTunePMuonBestTrack().

bool pat::Muon::embeddedPFCandidate_
protected

true if the IsolatedPFCandidate is embedded

Definition at line 279 of file Muon.h.

Referenced by embedPFCandidate(), and pfCandidateRef().

bool pat::Muon::embeddedPickyMuon_
protected

Definition at line 270 of file Muon.h.

Referenced by embedMuonBestTrack(), embedPickyMuon(), embedTunePMuonBestTrack(), and pickyTrack().

bool pat::Muon::embeddedStandAloneMuon_
protected

track of muon system

Definition at line 256 of file Muon.h.

Referenced by embedMuonBestTrack(), embedStandAloneMuon(), embedTunePMuonBestTrack(), and standAloneMuon().

bool pat::Muon::embeddedTCMETMuonCorrs_
protected

muon MET corrections for tcMET

Definition at line 263 of file Muon.h.

Referenced by embedTcMETMuonCorrs(), and tcMETMuonCorrs().

bool pat::Muon::embeddedTpfmsMuon_
protected

Definition at line 271 of file Muon.h.

Referenced by embedMuonBestTrack(), embedTpfmsMuon(), embedTunePMuonBestTrack(), and tpfmsTrack().

bool pat::Muon::embeddedTrack_
protected

track of inner track detector

Definition at line 253 of file Muon.h.

Referenced by embedMuonBestTrack(), embedTrack(), embedTunePMuonBestTrack(), and track().

bool pat::Muon::embeddedTunePMuonBestTrack_
protected

best muon track (muon only)

Definition at line 250 of file Muon.h.

Referenced by embedTunePMuonBestTrack().

std::vector<double> pat::Muon::ip_
protected

Definition at line 298 of file Muon.h.

Referenced by dB(), initImpactParameters(), and setDB().

std::vector<reco::Track> pat::Muon::muonBestTrack_
protected

Definition at line 248 of file Muon.h.

Referenced by embedMuonBestTrack(), and muonBestTrack().

double pat::Muon::normChi2_
protected

has the numberOfValidHits been cached?

Definition at line 292 of file Muon.h.

Referenced by normChi2(), and setNormChi2().

unsigned int pat::Muon::numberOfValidHits_
protected

Definition at line 301 of file Muon.h.

Referenced by numberOfValidHits(), and setNumberOfValidHits().

reco::PFCandidateCollection pat::Muon::pfCandidate_
protected

if embeddedPFCandidate_, a copy of the source IsolatedPFCandidate is stored in this vector

Definition at line 282 of file Muon.h.

Referenced by embedPFCandidate(), and pfCandidateRef().

reco::PFCandidateRef pat::Muon::pfCandidateRef_
protected

reference to the IsolatedPFCandidate this has been built from null if this has been built from a standard muon

Definition at line 285 of file Muon.h.

Referenced by embedPFCandidate(), numberOfSourceCandidatePtrs(), pfCandidateRef(), setPFCandidateRef(), and sourceCandidatePtr().

std::vector<reco::Track> pat::Muon::pickyMuon_
protected

Definition at line 273 of file Muon.h.

Referenced by embedPickyMuon(), and pickyTrack().

std::vector<reco::Track> pat::Muon::standAloneMuon_
protected

Definition at line 257 of file Muon.h.

Referenced by embedStandAloneMuon(), and standAloneMuon().

std::vector<reco::MuonMETCorrectionData> pat::Muon::tcMETMuonCorrs_
protected

Definition at line 264 of file Muon.h.

Referenced by embedTcMETMuonCorrs(), and tcMETMuonCorrs().

std::vector<reco::Track> pat::Muon::tpfmsMuon_
protected

Definition at line 274 of file Muon.h.

Referenced by embedTpfmsMuon(), and tpfmsTrack().

std::vector<reco::Track> pat::Muon::track_
protected

Definition at line 254 of file Muon.h.

Referenced by embedTrack(), and track().

std::vector<reco::Track> pat::Muon::tunePMuonBestTrack_
protected

Definition at line 251 of file Muon.h.

Referenced by embedTunePMuonBestTrack(), and tunePMuonBestTrack().