CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_9_patch3/src/DPGAnalysis/Skims/python/valSkim_cff.py

Go to the documentation of this file.
00001 from DPGAnalysis.Skims.goodvertexSkim_cff import *
00002 
00003 ###Tracks selection
00004 trackSelector  =cms.EDFilter("trackSelector",
00005                                     src = cms.InputTag("generalTracks"),
00006                                      cut = cms.string('quality("highPurity")')     
00007                                      )
00008 
00009 #trackSelector = cms.EDProducer("QualityFilter",
00010 #                                       TrackQuality = cms.string('highPurity'),
00011 #                                       recTracks = cms.InputTag("generalTracks")
00012 #                                       )
00013 
00014 trackFilter = cms.EDFilter("TrackCountFilter",
00015                                    src = cms.InputTag("trackSelector"),
00016                                    minNumber = cms.uint32(10)
00017                                    )
00018 
00019 nottoomanytracks = cms.EDFilter("NMaxPerLumi",
00020                                         NMaxPerLumi = cms.uint32(8)
00021                                         )
00022 relvaltrackSkim = cms.Sequence(goodvertexSkim+trackSelector + trackFilter + nottoomanytracks )
00023 
00024 ### muon selection
00025 muonSelector = cms.EDFilter("muonSelector",
00026                                     src = cms.InputTag("muons"),
00027                                     cut = cms.string(" isGlobalMuon && isTrackerMuon && pt > 3")
00028                                     )
00029 muonFilter = cms.EDFilter("MuonCountFilter",
00030                                   src = cms.InputTag("muonSelector"),
00031                                   minNumber = cms.uint32(1)
00032                                   )
00033 nottoomanymuons = cms.EDFilter("NMaxPerLumi",
00034                                        NMaxPerLumi = cms.uint32(2)
00035                                        )
00036 relvalmuonSkim = cms.Sequence(goodvertexSkim+muonSelector + muonFilter + nottoomanymuons )
00037