#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 43 of file MuonCosmicCompatibilityFiller.h.
MuonCosmicCompatibilityFiller::MuonCosmicCompatibilityFiller | ( | const edm::ParameterSet & | iConfig, |
edm::ConsumesCollector & | iC | ||
) |
Definition at line 43 of file MuonCosmicCompatibilityFiller.cc.
References angleThreshold_, edm::ConsumesCollector::consumes(), corrTimeNeg_, corrTimePos_, cosmicToken_, deltaPt_, edm::ConsumesCollector::esConsumes(), geometryToken_, 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_, muonTokens_, nChamberMatches_, offTimeNegLoose_, offTimeNegLooseMult_, offTimeNegTight_, offTimeNegTightMult_, offTimePosLoose_, offTimePosLooseMult_, offTimePosTight_, offTimePosTightMult_, segmentComp_, sharedFrac_, sharedHits_, trackTokens_, and vertexToken_.
MuonCosmicCompatibilityFiller::~MuonCosmicCompatibilityFiller | ( | ) |
Definition at line 98 of file MuonCosmicCompatibilityFiller.cc.
|
private |
return cosmic-likeness based on presence of a track in opp side: 0 == no matching opp tracks
Definition at line 211 of file MuonCosmicCompatibilityFiller.cc.
References angleThreshold_, deltaPt_, muonid::findOppositeTrack(), iEvent, mps_fire::result, HLT_2022v15_cff::track, and trackTokens_.
Referenced by combinedCosmicID(), and fillCompatibility().
|
private |
tag a muon as cosmic based on the muonID information
Definition at line 618 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 627 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 488 of file MuonCosmicCompatibilityFiller.cc.
References backToBack2LegCosmic(), eventActivity(), iEvent, 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 588 of file MuonCosmicCompatibilityFiller.cc.
References iEvent, createfilelist::int, maxvertRho_, maxvertZ_, minvProb_, edm::Handle< T >::product(), mps_fire::result, tracks, trackTokens_, vertexToken_, and AlignmentTracksFromVertexSelector_cfi::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 100 of file MuonCosmicCompatibilityFiller.cc.
References backToBack2LegCosmic(), reco::MuonCosmicCompatibility::backToBackCompatibility, combinedCosmicID(), reco::MuonCosmicCompatibility::cosmicCompatibility, eventActivity(), iEvent, reco::MuonCosmicCompatibility::ipCompatibility, isOverlappingMuon(), muonTiming(), reco::MuonCosmicCompatibility::overlapCompatibility, pvMatches(), 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 256 of file MuonCosmicCompatibilityFiller.cc.
References cosmicToken_, MillePedeFileConverter_cfg::e, edm::HandleBase::failedToGet(), HLT_2022v15_cff::fraction, geometryToken_, edm::EventSetup::getHandle(), l1ctLayer2EG_cff::id, GlobalTrackingGeometry::idToDet(), iEvent, edm::Ref< C, T, F >::isNonnull(), mag(), GeomDet::position(), edm::Handle< T >::product(), sharedFrac_, sharedHits_, MuonServiceProxy::trackingGeometry(), vertexToken_, AlignmentTracksFromVertexSelector_cfi::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 127 of file MuonCosmicCompatibilityFiller.cc.
References corrTimeNeg_, corrTimePos_, edm::HandleBase::failedToGet(), iEvent, edm::Ref< C, T, F >::isNonnull(), muonTokens_, nMuons(), offTimeNegLoose_, offTimeNegLooseMult_, offTimeNegTight_, offTimeNegTightMult_, offTimePosLoose_, offTimePosLooseMult_, offTimePosTight_, offTimePosTightMult_, pvMatches(), and mps_fire::result.
Referenced by combinedCosmicID(), and fillCompatibility().
|
private |
get number of muons in the vent
Definition at line 236 of file MuonCosmicCompatibilityFiller.cc.
References edm::HandleBase::failedToGet(), iEvent, 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 381 of file MuonCosmicCompatibilityFiller.cc.
References edm::HandleBase::failedToGet(), hIpTrdxy_, hIpTrvProb_, iEvent, createfilelist::int, largedxy_, largedxyMult_, maxdxyLoose_, maxdxyLooseMult_, maxdxyTight_, maxdxyTightMult_, maxdzLoose_, maxdzLooseMult_, maxdzTight_, maxdzTightMult_, PDWG_BPHSkim_cff::muons, muonTokens_, nMuons(), edm::Handle< T >::product(), mps_fire::result, HLT_2022v15_cff::track, tracks, vertexToken_, and AlignmentTracksFromVertexSelector_cfi::vertices.
Referenced by combinedCosmicID(), fillCompatibility(), and muonTiming().
|
private |
Definition at line 119 of file MuonCosmicCompatibilityFiller.h.
Referenced by backToBack2LegCosmic(), and MuonCosmicCompatibilityFiller().
|
private |
Definition at line 117 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 88 of file MuonCosmicCompatibilityFiller.h.
Referenced by isOverlappingMuon(), and MuonCosmicCompatibilityFiller().
|
private |
Definition at line 118 of file MuonCosmicCompatibilityFiller.h.
Referenced by backToBack2LegCosmic(), and MuonCosmicCompatibilityFiller().
|
private |
Definition at line 90 of file MuonCosmicCompatibilityFiller.h.
Referenced by isOverlappingMuon(), and MuonCosmicCompatibilityFiller().
|
private |
Definition at line 102 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and pvMatches().
|
private |
Definition at line 103 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and pvMatches().
|
private |
Definition at line 83 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller().
|
private |
Definition at line 81 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller().
|
private |
Definition at line 82 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller().
|
private |
Definition at line 84 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller().
|
private |
Definition at line 122 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller().
|
private |
Definition at line 101 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 92 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 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 93 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 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 106 of file MuonCosmicCompatibilityFiller.h.
Referenced by eventActivity(), and MuonCosmicCompatibilityFiller().
|
private |
Definition at line 105 of file MuonCosmicCompatibilityFiller.h.
Referenced by eventActivity(), and MuonCosmicCompatibilityFiller().
|
private |
Definition at line 104 of file MuonCosmicCompatibilityFiller.h.
Referenced by eventActivity(), and MuonCosmicCompatibilityFiller().
|
private |
Definition at line 86 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), muonTiming(), nMuons(), and pvMatches().
|
private |
Definition at line 123 of file MuonCosmicCompatibilityFiller.h.
Referenced by checkMuonSegments(), and MuonCosmicCompatibilityFiller().
|
private |
Definition at line 107 of file MuonCosmicCompatibilityFiller.h.
|
private |
Definition at line 109 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 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 108 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 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 124 of file MuonCosmicCompatibilityFiller.h.
Referenced by checkMuonSegments(), and MuonCosmicCompatibilityFiller().
|
private |
Definition at line 121 of file MuonCosmicCompatibilityFiller.h.
Referenced by isOverlappingMuon(), and MuonCosmicCompatibilityFiller().
|
private |
Definition at line 120 of file MuonCosmicCompatibilityFiller.h.
Referenced by isOverlappingMuon(), and MuonCosmicCompatibilityFiller().
|
private |
Definition at line 87 of file MuonCosmicCompatibilityFiller.h.
Referenced by backToBack2LegCosmic(), eventActivity(), and MuonCosmicCompatibilityFiller().
|
private |
Definition at line 89 of file MuonCosmicCompatibilityFiller.h.
Referenced by eventActivity(), isOverlappingMuon(), MuonCosmicCompatibilityFiller(), and pvMatches().