#include <MuonCosmicCompatibilityFiller.h>
Public Member Functions | |
reco::MuonCosmicCompatibility | fillCompatibility (const reco::Muon &muon, edm::Event &, const edm::EventSetup &) |
fill cosmic compatibility variables More... | |
MuonCosmicCompatibilityFiller (const edm::ParameterSet &, edm::ConsumesCollector &) | |
~MuonCosmicCompatibilityFiller () | |
Private Member Functions | |
unsigned int | backToBack2LegCosmic (const edm::Event &, const reco::Muon &) const |
return cosmic-likeness based on presence of a track in opp side: 0 == no matching opp tracks More... | |
bool | checkMuonID (const reco::Muon &) const |
tag a muon as cosmic based on the muonID information More... | |
bool | checkMuonSegments (const reco::Muon &muon) const |
tag a muon as cosmic based on segment compatibility and the number of segment matches More... | |
float | combinedCosmicID (const edm::Event &, const edm::EventSetup &iSetup, const reco::Muon &, bool CheckMuonID, bool checkVertex) const |
combined cosmic-likeness: 0 == not cosmic-like More... | |
unsigned int | eventActivity (const edm::Event &, const reco::Muon &) const |
returns cosmic-likeness based on the event activity information: tracker track multiplicity and vertex quality. 0 == cosmic-like More... | |
bool | isOverlappingMuon (const edm::Event &, const edm::EventSetup &iSetup, const reco::Muon &) const |
returns cosmic-likeness based on overlap with traversing cosmic muon (only muon/STA hits are used) More... | |
float | muonTiming (const edm::Event &iEvent, const reco::Muon &muon, bool isLoose) const |
check muon time (DT and CSC) information: 0 == prompt-like More... | |
unsigned int | nMuons (const edm::Event &) const |
get number of muons in the vent More... | |
unsigned int | pvMatches (const edm::Event &, const reco::Muon &, bool) const |
return cosmic-likeness based on the 2D impact parameters (dxy, dz wrt to PV). 0 == cosmic-like More... | |
Description: class for cosmic muon identification
Definition at line 39 of file MuonCosmicCompatibilityFiller.h.
MuonCosmicCompatibilityFiller::MuonCosmicCompatibilityFiller | ( | const edm::ParameterSet & | iConfig, |
edm::ConsumesCollector & | iC | ||
) |
Definition at line 47 of file MuonCosmicCompatibilityFiller.cc.
References angleThreshold_, edm::ConsumesCollector::consumes(), corrTimeNeg_, corrTimePos_, cosmicToken_, deltaPt_, edm::ParameterSet::getParameter(), hIpTrdxy_, hIpTrvProb_, mps_fire::i, inputCosmicMuonCollection_, inputMuonCollections_, inputTrackCollections_, inputVertexCollection_, ipThreshold_, largedxy_, largedxyMult_, maxdxyLoose_, maxdxyLooseMult_, maxdxyTight_, maxdxyTightMult_, maxdzLoose_, maxdzLooseMult_, maxdzTight_, maxdzTightMult_, maxvertRho_, maxvertZ_, minvProb_, MuonServiceProxy_cff::MuonServiceProxy, muonTokens_, nChamberMatches_, offTimeNegLoose_, offTimeNegLooseMult_, offTimeNegTight_, offTimeNegTightMult_, offTimePosLoose_, offTimePosLooseMult_, offTimePosTight_, offTimePosTightMult_, segmentComp_, service_, sharedFrac_, sharedHits_, trackTokens_, and vertexToken_.
MuonCosmicCompatibilityFiller::~MuonCosmicCompatibilityFiller | ( | ) |
Definition at line 110 of file MuonCosmicCompatibilityFiller.cc.
References service_.
|
private |
return cosmic-likeness based on presence of a track in opp side: 0 == no matching opp tracks
Definition at line 226 of file MuonCosmicCompatibilityFiller.cc.
References angleThreshold_, deltaPt_, muonid::findOppositeTrack(), edm::Event::getByToken(), reco::Muon::innerTrack(), reco::Muon::isGEMMuon(), reco::Muon::isGlobalMuon(), reco::Muon::isME0Muon(), reco::Muon::isRPCMuon(), reco::Muon::isStandAloneMuon(), reco::Muon::isTrackerMuon(), mps_fire::result, HiIsolationCommonParameters_cff::track, reco::Muon::track(), and trackTokens_.
Referenced by combinedCosmicID(), and fillCompatibility().
|
private |
tag a muon as cosmic based on the muonID information
Definition at line 610 of file MuonCosmicCompatibilityFiller.cc.
References muon::GlobalMuonPromptTight, muon::isGoodMuon(), mps_fire::result, and muon::TMOneStationLoose.
|
private |
tag a muon as cosmic based on segment compatibility and the number of segment matches
Definition at line 619 of file MuonCosmicCompatibilityFiller.cc.
References nChamberMatches_, reco::Muon::numberOfMatches(), mps_fire::result, segmentComp_, and muon::segmentCompatibility().
|
private |
combined cosmic-likeness: 0 == not cosmic-like
Definition at line 486 of file MuonCosmicCompatibilityFiller.cc.
References backToBack2LegCosmic(), eventActivity(), reco::Muon::isGlobalMuon(), isOverlappingMuon(), muonTiming(), pvMatches(), and mps_fire::result.
Referenced by fillCompatibility().
|
private |
returns cosmic-likeness based on the event activity information: tracker track multiplicity and vertex quality. 0 == cosmic-like
Definition at line 584 of file MuonCosmicCompatibilityFiller.cc.
References edm::HandleBase::failedToGet(), edm::Event::getByToken(), createfilelist::int, maxvertRho_, maxvertZ_, minvProb_, edm::Handle< T >::product(), mps_fire::result, l1t::tracks, trackTokens_, vertexToken_, and electrons_cff::vertices.
Referenced by combinedCosmicID(), and fillCompatibility().
reco::MuonCosmicCompatibility MuonCosmicCompatibilityFiller::fillCompatibility | ( | const reco::Muon & | muon, |
edm::Event & | iEvent, | ||
const edm::EventSetup & | iSetup | ||
) |
fill cosmic compatibility variables
Definition at line 115 of file MuonCosmicCompatibilityFiller.cc.
References backToBack2LegCosmic(), reco::MuonCosmicCompatibility::backToBackCompatibility, combinedCosmicID(), reco::MuonCosmicCompatibility::cosmicCompatibility, eventActivity(), reco::MuonCosmicCompatibility::ipCompatibility, isOverlappingMuon(), muonTiming(), reco::MuonCosmicCompatibility::overlapCompatibility, pvMatches(), service_, AlCaHLTBitMon_QueryRunRegistry::string, reco::MuonCosmicCompatibility::timeCompatibility, and reco::MuonCosmicCompatibility::vertexCompatibility.
Referenced by CosmicsMuonIdProducer::produce().
|
private |
returns cosmic-likeness based on overlap with traversing cosmic muon (only muon/STA hits are used)
Definition at line 272 of file MuonCosmicCompatibilityFiller.cc.
References cosmicToken_, MillePedeFileConverter_cfg::e, edm::HandleBase::failedToGet(), dedxEstimators_cff::fraction, edm::EventSetup::get(), edm::Event::getByToken(), triggerObjects_cff::id, GlobalTrackingGeometry::idToDet(), reco::Muon::innerTrack(), reco::Muon::isGlobalMuon(), edm::Ref< C, T, F >::isNonnull(), mag(), reco::Muon::outerTrack(), GeomDet::position(), edm::Handle< T >::product(), sharedFrac_, sharedHits_, MuonServiceProxy::trackingGeometry(), vertexToken_, electrons_cff::vertices, and PV3DBase< T, PVType, FrameType >::y().
Referenced by combinedCosmicID(), and fillCompatibility().
|
private |
check muon time (DT and CSC) information: 0 == prompt-like
Definition at line 145 of file MuonCosmicCompatibilityFiller.cc.
References corrTimeNeg_, corrTimePos_, edm::HandleBase::failedToGet(), edm::Event::getByToken(), edm::Ref< C, T, F >::isNonnull(), reco::Muon::isTimeValid(), muonTokens_, nMuons(), offTimeNegLoose_, offTimeNegLooseMult_, offTimeNegTight_, offTimeNegTightMult_, offTimePosLoose_, offTimePosLooseMult_, offTimePosTight_, offTimePosTightMult_, reco::Muon::outerTrack(), pvMatches(), mps_fire::result, reco::Muon::time(), and reco::MuonTime::timeAtIpInOut.
Referenced by combinedCosmicID(), and fillCompatibility().
|
private |
get number of muons in the vent
Definition at line 250 of file MuonCosmicCompatibilityFiller.cc.
References edm::HandleBase::failedToGet(), edm::Event::getByToken(), and muonTokens_.
Referenced by muonTiming(), and pvMatches().
|
private |
return cosmic-likeness based on the 2D impact parameters (dxy, dz wrt to PV). 0 == cosmic-like
Definition at line 388 of file MuonCosmicCompatibilityFiller.cc.
References edm::HandleBase::failedToGet(), edm::Event::getByToken(), hIpTrdxy_, hIpTrvProb_, reco::Muon::innerTrack(), createfilelist::int, reco::Muon::isGlobalMuon(), edm::Ref< C, T, F >::isNonnull(), reco::Muon::isRPCMuon(), reco::Muon::isStandAloneMuon(), reco::Muon::isTrackerMuon(), largedxy_, largedxyMult_, maxdxyLoose_, maxdxyLooseMult_, maxdxyTight_, maxdxyTightMult_, maxdzLoose_, maxdzLooseMult_, maxdzTight_, maxdzTightMult_, extraflags_cff::muons, muonTokens_, nMuons(), reco::Muon::outerTrack(), edm::Handle< T >::product(), mps_fire::result, reco::Muon::standAloneMuon(), HiIsolationCommonParameters_cff::track, reco::Muon::track(), l1t::tracks, vertexToken_, and electrons_cff::vertices.
Referenced by combinedCosmicID(), fillCompatibility(), and muonTiming().
|
private |
Definition at line 121 of file MuonCosmicCompatibilityFiller.h.
Referenced by backToBack2LegCosmic(), and MuonCosmicCompatibilityFiller().
|
private |
Definition at line 119 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and muonTiming().
|
private |
Definition at line 118 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and muonTiming().
|
private |
Definition at line 87 of file MuonCosmicCompatibilityFiller.h.
Referenced by isOverlappingMuon(), and MuonCosmicCompatibilityFiller().
|
private |
Definition at line 120 of file MuonCosmicCompatibilityFiller.h.
Referenced by backToBack2LegCosmic(), and MuonCosmicCompatibilityFiller().
|
private |
Definition at line 104 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and pvMatches().
|
private |
Definition at line 105 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and pvMatches().
|
private |
Definition at line 82 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller().
|
private |
Definition at line 80 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller().
|
private |
Definition at line 81 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller().
|
private |
Definition at line 83 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller().
|
private |
Definition at line 124 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller().
|
private |
Definition at line 103 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and pvMatches().
|
private |
Definition at line 102 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and pvMatches().
|
private |
Definition at line 94 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and pvMatches().
|
private |
Definition at line 98 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and pvMatches().
|
private |
Definition at line 96 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and pvMatches().
|
private |
Definition at line 100 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and pvMatches().
|
private |
Definition at line 95 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and pvMatches().
|
private |
Definition at line 99 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and pvMatches().
|
private |
Definition at line 97 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and pvMatches().
|
private |
Definition at line 101 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and pvMatches().
|
private |
Definition at line 108 of file MuonCosmicCompatibilityFiller.h.
Referenced by eventActivity(), and MuonCosmicCompatibilityFiller().
|
private |
Definition at line 107 of file MuonCosmicCompatibilityFiller.h.
Referenced by eventActivity(), and MuonCosmicCompatibilityFiller().
|
private |
Definition at line 106 of file MuonCosmicCompatibilityFiller.h.
Referenced by eventActivity(), and MuonCosmicCompatibilityFiller().
|
private |
Definition at line 85 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), muonTiming(), nMuons(), and pvMatches().
|
private |
Definition at line 125 of file MuonCosmicCompatibilityFiller.h.
Referenced by checkMuonSegments(), and MuonCosmicCompatibilityFiller().
|
private |
Definition at line 109 of file MuonCosmicCompatibilityFiller.h.
|
private |
Definition at line 111 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and muonTiming().
|
private |
Definition at line 115 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and muonTiming().
|
private |
Definition at line 113 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and muonTiming().
|
private |
Definition at line 117 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and muonTiming().
|
private |
Definition at line 110 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and muonTiming().
|
private |
Definition at line 114 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and muonTiming().
|
private |
Definition at line 112 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and muonTiming().
|
private |
Definition at line 116 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and muonTiming().
|
private |
Definition at line 126 of file MuonCosmicCompatibilityFiller.h.
Referenced by checkMuonSegments(), and MuonCosmicCompatibilityFiller().
|
private |
Definition at line 92 of file MuonCosmicCompatibilityFiller.h.
Referenced by fillCompatibility(), MuonCosmicCompatibilityFiller(), and ~MuonCosmicCompatibilityFiller().
|
private |
Definition at line 123 of file MuonCosmicCompatibilityFiller.h.
Referenced by isOverlappingMuon(), and MuonCosmicCompatibilityFiller().
|
private |
Definition at line 122 of file MuonCosmicCompatibilityFiller.h.
Referenced by isOverlappingMuon(), and MuonCosmicCompatibilityFiller().
|
private |
Definition at line 86 of file MuonCosmicCompatibilityFiller.h.
Referenced by backToBack2LegCosmic(), eventActivity(), and MuonCosmicCompatibilityFiller().
|
private |
Definition at line 88 of file MuonCosmicCompatibilityFiller.h.
Referenced by eventActivity(), isOverlappingMuon(), MuonCosmicCompatibilityFiller(), and pvMatches().