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 UPC
13 from Configuration.ProcessModifiers.egamma_lowPt_exclusive_cff import egamma_lowPt_exclusive
14 egamma_lowPt_exclusive.toModify(selectedPatLowPtElectrons,cut = "")
15 
16 # Modifier for bParking (fully open selection)
17 from Configuration.Eras.Modifier_bParking_cff import bParking
18 bParking.toModify(selectedPatLowPtElectrons,cut = "pt > 1.")
19 
20 # Modifiers for legacy AOD
21 from Configuration.Eras.Modifier_run2_miniAOD_80XLegacy_cff import run2_miniAOD_80XLegacy
22 from Configuration.Eras.Modifier_run2_miniAOD_94XFall17_cff import run2_miniAOD_94XFall17
23 (run2_miniAOD_80XLegacy | run2_miniAOD_94XFall17).toModify(selectedPatLowPtElectrons,
24  cut = "pt>99999."
25  )