CMS 3D CMS Logo

TkAlMuonSelectors_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 TkAlGoodIdMuonSelector = cms.EDFilter("MuonSelector",
4  src = cms.InputTag('muons'),
5  cut = cms.string('isGlobalMuon &'
6  'isTrackerMuon &'
7  'numberOfMatches > 1 &'
8  'globalTrack.hitPattern.numberOfValidMuonHits > 0 &'
9  'abs(eta) < 2.5 &'
10  'globalTrack.normalizedChi2 < 20.'),
11  filter = cms.bool(True)
12 )
13 
14 TkAlRelCombIsoMuonSelector = cms.EDFilter("MuonSelector",
15  src = cms.InputTag(''),
16  cut = cms.string('(isolationR03().sumPt + isolationR03().emEt + isolationR03().hadEt)/pt < 0.15'),
17  filter = cms.bool(True)
18 )
19 
20 
22 
23 from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
24 phase2_common.toModify(TkAlGoodIdMuonSelector,
25  cut = '(abs(eta) < 2.5 & isGlobalMuon & isTrackerMuon & numberOfMatches > 1 & globalTrack.hitPattern.numberOfValidMuonHits > 0 & globalTrack.normalizedChi2 < 20.) ||' # regular selection
26  '(abs(eta) > 2.3 & abs(eta) < 3.0 & numberOfMatches >= 0 & isTrackerMuon)' # to recover GE0 tracks
27  )
28 
29 phase2_common.toModify(TkAlRelCombIsoMuonSelector,
30  cut = '(isolationR03().sumPt)/pt < 0.1' # only tracker isolation
31  )