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("pt > 1. && electronID('ID') > -0.25"),
10 )
11 
12 # Modifier for bParking (fully open selection)
13 from Configuration.Eras.Modifier_bParking_cff import bParking
14 bParking.toModify(selectedPatLowPtElectrons,cut = "pt > 1.")
15 
16 # Modifiers for legacy AOD
17 from Configuration.Eras.Modifier_run2_miniAOD_80XLegacy_cff import run2_miniAOD_80XLegacy
18 from Configuration.Eras.Modifier_run2_miniAOD_94XFall17_cff import run2_miniAOD_94XFall17
19 (run2_miniAOD_80XLegacy | run2_miniAOD_94XFall17).toModify(selectedPatLowPtElectrons,
20  cut = "pt>99999."
21  )