Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:09:17

0001 from DPGAnalysis.Skims.goodvertexSkim_cff import *
0002 
0003 ###Tracks selection
0004 trackSelector  =cms.EDFilter("TrackSelector",
0005                                     src = cms.InputTag("generalTracks"),
0006                                      cut = cms.string('quality("highPurity")')     
0007                                      )
0008 
0009 #trackSelector = cms.EDProducer("QualityFilter",
0010 #                                       TrackQuality = cms.string('highPurity'),
0011 #                                       recTracks = cms.InputTag("generalTracks")
0012 #                                       )
0013 
0014 trackFilter = cms.EDFilter("TrackCountFilter",
0015                                    src = cms.InputTag("trackSelector"),
0016                                    minNumber = cms.uint32(10)
0017                                    )
0018 
0019 nottoomanytracks = cms.EDFilter("NMaxPerLumi",
0020                                         nMaxPerLumi = cms.uint32(8)
0021                                         )
0022 relvaltrackSkim = cms.Sequence(goodvertexSkim+trackSelector + trackFilter + nottoomanytracks )
0023 
0024 ### muon selection
0025 muonSelector = cms.EDFilter("MuonSelector",
0026                                     src = cms.InputTag("muons"),
0027                                     cut = cms.string(" isGlobalMuon && isTrackerMuon && pt > 3")
0028                                     )
0029 muonFilter = cms.EDFilter("MuonCountFilter",
0030                                   src = cms.InputTag("muonSelector"),
0031                                   minNumber = cms.uint32(1)
0032                                   )
0033 nottoomanymuons = cms.EDFilter("NMaxPerLumi",
0034                                        nMaxPerLumi = cms.uint32(2)
0035                                        )
0036 relvalmuonSkim = cms.Sequence(goodvertexSkim+muonSelector + muonFilter + nottoomanymuons )
0037