#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 &) | |
~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... | |
Private Attributes | |
double | angleThreshold_ |
double | corrTimeNeg_ |
double | corrTimePos_ |
double | deltaPt_ |
double | hIpTrdxy_ |
double | hIpTrvProb_ |
edm::InputTag | inputCosmicMuonCollection_ |
std::vector< edm::InputTag > | inputMuonCollections_ |
std::vector< edm::InputTag > | inputTrackCollections_ |
edm::InputTag | inputVertexCollection_ |
double | ipThreshold_ |
double | largedxy_ |
double | largedxyMult_ |
double | maxdxyLoose_ |
double | maxdxyLooseMult_ |
double | maxdxyTight_ |
double | maxdxyTightMult_ |
double | maxdzLoose_ |
double | maxdzLooseMult_ |
double | maxdzTight_ |
double | maxdzTightMult_ |
double | maxvertRho_ |
double | maxvertZ_ |
double | minvProb_ |
int | nChamberMatches_ |
unsigned int | nTrackThreshold_ |
double | offTimeNegLoose_ |
double | offTimeNegLooseMult_ |
double | offTimeNegTight_ |
double | offTimeNegTightMult_ |
double | offTimePosLoose_ |
double | offTimePosLooseMult_ |
double | offTimePosTight_ |
double | offTimePosTightMult_ |
double | segmentComp_ |
MuonServiceProxy * | service_ |
double | sharedFrac_ |
int | sharedHits_ |
Description: class for cosmic muon identification
Description: class for cosmic muon identification
Definition at line 32 of file MuonCosmicCompatibilityFiller.h.
MuonCosmicCompatibilityFiller::MuonCosmicCompatibilityFiller | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 55 of file MuonCosmicCompatibilityFiller.cc.
References angleThreshold_, corrTimeNeg_, corrTimePos_, deltaPt_, edm::ParameterSet::getParameter(), hIpTrdxy_, hIpTrvProb_, ipThreshold_, largedxy_, largedxyMult_, maxdxyLoose_, maxdxyLooseMult_, maxdxyTight_, maxdxyTightMult_, maxdzLoose_, maxdzLooseMult_, maxdzTight_, maxdzTightMult_, maxvertRho_, maxvertZ_, minvProb_, MuonServiceProxy_cff::MuonServiceProxy, nChamberMatches_, offTimeNegLoose_, offTimeNegLooseMult_, offTimeNegTight_, offTimeNegTightMult_, offTimePosLoose_, offTimePosLooseMult_, offTimePosTight_, offTimePosTightMult_, segmentComp_, service_, sharedFrac_, and sharedHits_.
MuonCosmicCompatibilityFiller::~MuonCosmicCompatibilityFiller | ( | ) |
Definition at line 106 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 222 of file MuonCosmicCompatibilityFiller.cc.
References angleThreshold_, deltaPt_, muonid::findOppositeTrack(), edm::Event::getByLabel(), reco::Muon::innerTrack(), inputTrackCollections_, reco::Muon::isGlobalMuon(), reco::Muon::isStandAloneMuon(), reco::Muon::isTrackerMuon(), query::result, and reco::Muon::track().
Referenced by combinedCosmicID(), and fillCompatibility().
|
private |
tag a muon as cosmic based on the muonID information
Definition at line 605 of file MuonCosmicCompatibilityFiller.cc.
References muon::GlobalMuonPromptTight, muon::isGoodMuon(), query::result, and muon::TMOneStationLoose.
|
private |
tag a muon as cosmic based on segment compatibility and the number of segment matches
Definition at line 614 of file MuonCosmicCompatibilityFiller.cc.
References nChamberMatches_, reco::Muon::numberOfMatches(), query::result, segmentComp_, and muon::segmentCompatibility().
|
private |
combined cosmic-likeness: 0 == not cosmic-like
Definition at line 481 of file MuonCosmicCompatibilityFiller.cc.
References backToBack2LegCosmic(), eventActivity(), reco::Muon::isGlobalMuon(), isOverlappingMuon(), muonTiming(), pvMatches(), and query::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 579 of file MuonCosmicCompatibilityFiller.cc.
References edm::HandleBase::failedToGet(), edm::Event::getByLabel(), inputTrackCollections_, inputVertexCollection_, maxvertRho_, maxvertZ_, minvProb_, edm::Handle< T >::product(), query::result, and testEve_cfg::tracks.
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 111 of file MuonCosmicCompatibilityFiller.cc.
References backToBack2LegCosmic(), reco::MuonCosmicCompatibility::backToBackCompatibility, combinedCosmicID(), reco::MuonCosmicCompatibility::cosmicCompatibility, eventActivity(), reco::MuonCosmicCompatibility::ipCompatibility, isOverlappingMuon(), muonTiming(), reco::MuonCosmicCompatibility::overlapCompatibility, pvMatches(), service_, 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 267 of file MuonCosmicCompatibilityFiller.cc.
References alignCSCRings::e, edm::HandleBase::failedToGet(), edm::EventSetup::get(), edm::Event::getByLabel(), errorMatrix2Lands_multiChannel::id, reco::Muon::innerTrack(), inputCosmicMuonCollection_, inputVertexCollection_, reco::Muon::isGlobalMuon(), edm::Ref< C, T, F >::isNonnull(), mag(), reco::Muon::outerTrack(), edm::Handle< T >::product(), sharedFrac_, sharedHits_, and MuonServiceProxy::trackingGeometry().
Referenced by combinedCosmicID(), and fillCompatibility().
|
private |
check muon time (DT and CSC) information: 0 == prompt-like
Definition at line 141 of file MuonCosmicCompatibilityFiller.cc.
References corrTimeNeg_, corrTimePos_, edm::HandleBase::failedToGet(), edm::Event::getByLabel(), inputMuonCollections_, edm::Ref< C, T, F >::isNonnull(), reco::Muon::isTimeValid(), nMuons(), offTimeNegLoose_, offTimeNegLooseMult_, offTimeNegTight_, offTimeNegTightMult_, offTimePosLoose_, offTimePosLooseMult_, offTimePosTight_, offTimePosTightMult_, reco::Muon::outerTrack(), pvMatches(), query::result, reco::Muon::time(), and reco::MuonTime::timeAtIpInOut.
Referenced by combinedCosmicID(), and fillCompatibility().
|
private |
get number of muons in the vent
Definition at line 245 of file MuonCosmicCompatibilityFiller.cc.
References edm::HandleBase::failedToGet(), edm::Event::getByLabel(), and inputMuonCollections_.
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 383 of file MuonCosmicCompatibilityFiller.cc.
References edm::HandleBase::failedToGet(), edm::Event::getByLabel(), hIpTrdxy_, hIpTrvProb_, reco::Muon::innerTrack(), inputMuonCollections_, inputVertexCollection_, reco::Muon::isGlobalMuon(), edm::Ref< C, T, F >::isNonnull(), reco::Muon::isStandAloneMuon(), reco::Muon::isTrackerMuon(), largedxy_, largedxyMult_, maxdxyLoose_, maxdxyLooseMult_, maxdxyTight_, maxdxyTightMult_, maxdzLoose_, maxdzLooseMult_, maxdzTight_, maxdzTightMult_, patZpeak::muons, nMuons(), reco::Muon::outerTrack(), edm::Handle< T >::product(), query::result, reco::Muon::standAloneMuon(), reco::Muon::track(), and testEve_cfg::tracks.
Referenced by combinedCosmicID(), fillCompatibility(), and muonTiming().
|
private |
Definition at line 106 of file MuonCosmicCompatibilityFiller.h.
Referenced by backToBack2LegCosmic(), and MuonCosmicCompatibilityFiller().
|
private |
Definition at line 104 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and muonTiming().
|
private |
Definition at line 103 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and muonTiming().
|
private |
Definition at line 105 of file MuonCosmicCompatibilityFiller.h.
Referenced by backToBack2LegCosmic(), and MuonCosmicCompatibilityFiller().
|
private |
Definition at line 89 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and pvMatches().
|
private |
Definition at line 90 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and pvMatches().
|
private |
Definition at line 75 of file MuonCosmicCompatibilityFiller.h.
Referenced by isOverlappingMuon().
|
private |
Definition at line 73 of file MuonCosmicCompatibilityFiller.h.
Referenced by muonTiming(), nMuons(), and pvMatches().
|
private |
Definition at line 74 of file MuonCosmicCompatibilityFiller.h.
Referenced by backToBack2LegCosmic(), and eventActivity().
|
private |
Definition at line 76 of file MuonCosmicCompatibilityFiller.h.
Referenced by eventActivity(), isOverlappingMuon(), and pvMatches().
|
private |
Definition at line 109 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller().
|
private |
Definition at line 88 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and pvMatches().
|
private |
Definition at line 87 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and pvMatches().
|
private |
Definition at line 79 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and pvMatches().
|
private |
Definition at line 83 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and pvMatches().
|
private |
Definition at line 81 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and pvMatches().
|
private |
Definition at line 85 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and pvMatches().
|
private |
Definition at line 80 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and pvMatches().
|
private |
Definition at line 84 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and pvMatches().
|
private |
Definition at line 82 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and pvMatches().
|
private |
Definition at line 86 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and pvMatches().
|
private |
Definition at line 93 of file MuonCosmicCompatibilityFiller.h.
Referenced by eventActivity(), and MuonCosmicCompatibilityFiller().
|
private |
Definition at line 92 of file MuonCosmicCompatibilityFiller.h.
Referenced by eventActivity(), and MuonCosmicCompatibilityFiller().
|
private |
Definition at line 91 of file MuonCosmicCompatibilityFiller.h.
Referenced by eventActivity(), and MuonCosmicCompatibilityFiller().
|
private |
Definition at line 110 of file MuonCosmicCompatibilityFiller.h.
Referenced by checkMuonSegments(), and MuonCosmicCompatibilityFiller().
|
private |
Definition at line 94 of file MuonCosmicCompatibilityFiller.h.
|
private |
Definition at line 96 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and muonTiming().
|
private |
Definition at line 100 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and muonTiming().
|
private |
Definition at line 98 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and muonTiming().
|
private |
Definition at line 102 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and muonTiming().
|
private |
Definition at line 95 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and muonTiming().
|
private |
Definition at line 99 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and muonTiming().
|
private |
Definition at line 97 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and muonTiming().
|
private |
Definition at line 101 of file MuonCosmicCompatibilityFiller.h.
Referenced by MuonCosmicCompatibilityFiller(), and muonTiming().
|
private |
Definition at line 111 of file MuonCosmicCompatibilityFiller.h.
Referenced by checkMuonSegments(), and MuonCosmicCompatibilityFiller().
|
private |
Definition at line 77 of file MuonCosmicCompatibilityFiller.h.
Referenced by fillCompatibility(), MuonCosmicCompatibilityFiller(), and ~MuonCosmicCompatibilityFiller().
|
private |
Definition at line 108 of file MuonCosmicCompatibilityFiller.h.
Referenced by isOverlappingMuon(), and MuonCosmicCompatibilityFiller().
|
private |
Definition at line 107 of file MuonCosmicCompatibilityFiller.h.
Referenced by isOverlappingMuon(), and MuonCosmicCompatibilityFiller().