CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
valSkim_cff.py
Go to the documentation of this file.
2 
3 ###Tracks selection
4 trackSelector =cms.EDFilter("TrackSelector",
5  src = cms.InputTag("generalTracks"),
6  cut = cms.string('quality("highPurity")')
7  )
8 
9 #trackSelector = cms.EDProducer("QualityFilter",
10 # TrackQuality = cms.string('highPurity'),
11 # recTracks = cms.InputTag("generalTracks")
12 # )
13 
14 trackFilter = cms.EDFilter("TrackCountFilter",
15  src = cms.InputTag("trackSelector"),
16  minNumber = cms.uint32(10)
17  )
18 
19 nottoomanytracks = cms.EDFilter("NMaxPerLumi",
20  nMaxPerLumi = cms.uint32(8)
21  )
22 relvaltrackSkim = cms.Sequence(goodvertexSkim+trackSelector + trackFilter + nottoomanytracks )
23 
24 ### muon selection
25 muonSelector = cms.EDFilter("MuonSelector",
26  src = cms.InputTag("muons"),
27  cut = cms.string(" isGlobalMuon && isTrackerMuon && pt > 3")
28  )
29 muonFilter = cms.EDFilter("MuonCountFilter",
30  src = cms.InputTag("muonSelector"),
31  minNumber = cms.uint32(1)
32  )
33 nottoomanymuons = cms.EDFilter("NMaxPerLumi",
34  nMaxPerLumi = cms.uint32(2)
35  )
36 relvalmuonSkim = cms.Sequence(goodvertexSkim+muonSelector + muonFilter + nottoomanymuons )
37