14 #ifndef MuonIdentification_MuonCosmicCompatibilityFiller_h 15 #define MuonIdentification_MuonCosmicCompatibilityFiller_h 86 std::vector<edm::EDGetTokenT<reco::MuonCollection> >
muonTokens_;
87 std::vector<edm::EDGetTokenT<reco::TrackCollection> >
trackTokens_;
float combinedCosmicID(const edm::Event &, const edm::EventSetup &iSetup, const reco::Muon &, bool CheckMuonID, bool checkVertex) const
combined cosmic-likeness: 0 == not cosmic-like
edm::ESGetToken< GlobalTrackingGeometry, GlobalTrackingGeometryRecord > geometryToken_
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) ...
std::vector< edm::EDGetTokenT< reco::TrackCollection > > trackTokens_
double offTimeNegLooseMult_
double offTimePosTightMult_
edm::EDGetTokenT< reco::MuonCollection > cosmicToken_
double offTimeNegTightMult_
std::vector< edm::EDGetTokenT< reco::MuonCollection > > muonTokens_
unsigned int nMuons(const edm::Event &) const
get number of muons in the vent
edm::InputTag inputVertexCollection_
reco::MuonCosmicCompatibility fillCompatibility(const reco::Muon &muon, edm::Event &, const edm::EventSetup &)
fill cosmic compatibility variables
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 ...
bool checkMuonID(const reco::Muon &) const
tag a muon as cosmic based on the muonID information
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 ...
unsigned int eventActivity(const edm::Event &, const reco::Muon &) const
returns cosmic-likeness based on the event activity information: tracker track multiplicity and verte...
edm::EDGetTokenT< reco::VertexCollection > vertexToken_
MuonCosmicCompatibilityFiller(const edm::ParameterSet &, edm::ConsumesCollector &)
unsigned int nTrackThreshold_
std::vector< edm::InputTag > inputTrackCollections_
~MuonCosmicCompatibilityFiller()
edm::InputTag inputCosmicMuonCollection_
bool checkMuonSegments(const reco::Muon &muon) const
tag a muon as cosmic based on segment compatibility and the number of segment matches ...
std::vector< edm::InputTag > inputMuonCollections_
float muonTiming(const edm::Event &iEvent, const reco::Muon &muon, bool isLoose) const
check muon time (DT and CSC) information: 0 == prompt-like
double offTimePosLooseMult_