CMS 3D CMS Logo

lowPtElectronSelector_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # module to select Electrons
4 # See https://twiki.cern.ch/twiki/bin/view/CMS/SWGuidePhysicsCutParser
5 # on how to use the cut-string
6 #
7 selectedPatLowPtElectrons = cms.EDFilter("PATElectronSelector",
8  src = cms.InputTag("patLowPtElectrons"),
9  cut = cms.string("")
10 )
11 
12 # Modifiers for legacy AOD
13 from Configuration.Eras.Modifier_run2_miniAOD_80XLegacy_cff import run2_miniAOD_80XLegacy
14 from Configuration.Eras.Modifier_run2_miniAOD_94XFall17_cff import run2_miniAOD_94XFall17
15 (run2_miniAOD_80XLegacy | run2_miniAOD_94XFall17).toModify(selectedPatLowPtElectrons,
16  cut = "pt>99999."
17  )