diff --git a/PhysicsTools/PatAlgos/python/slimming/MicroEventContent_cff.py b/PhysicsTools/PatAlgos/python/slimming/MicroEventContent_cff.py index f610e194dd538..7a061997922a0 100644 --- a/PhysicsTools/PatAlgos/python/slimming/MicroEventContent_cff.py +++ b/PhysicsTools/PatAlgos/python/slimming/MicroEventContent_cff.py @@ -83,6 +83,18 @@ ) ) +# Only add low pT electrons for bParking era +from Configuration.Eras.Modifier_bParking_cff import bParking +_bParking_extraCommands = ['keep *_slimmedLowPtElectrons_*_*', + 'keep recoGsfElectronCores_lowPtGsfElectronCores_*_*', + 'keep recoSuperClusters_lowPtGsfElectronSuperClusters_*_*', + 'keep recoCaloClusters_lowPtGsfElectronSuperClusters_*_*', + 'keep recoGsfTracks_lowPtGsfEleGsfTracks_*_*', + 'keep floatedmValueMap_lowPtGsfElectronSeedValueMaps_*_*', + 'keep floatedmValueMap_lowPtGsfElectronID_*_*', + ] +bParking.toModify(MicroEventContent, outputCommands = MicroEventContent.outputCommands + _bParking_extraCommands) + MicroEventContentGEN = cms.PSet( outputCommands = cms.untracked.vstring( 'keep patPackedGenParticles_packedGenParticles_*_*', @@ -106,18 +118,6 @@ ) ) -# Only add low pT electrons for bParking era -from Configuration.Eras.Modifier_bParking_cff import bParking -_bParking_extraCommands = ['keep *_slimmedLowPtElectrons_*_*', - 'keep recoGsfElectronCores_lowPtGsfElectronCores_*_*', - 'keep recoSuperClusters_lowPtGsfElectronSuperClusters_*_*', - 'keep recoCaloClusters_lowPtGsfElectronSuperClusters_*_*', - 'keep recoGsfTracks_lowPtGsfEleGsfTracks_*_*', - 'keep floatedmValueMap_lowPtGsfElectronSeedValueMaps_*_*', - 'keep floatedmValueMap_lowPtGsfElectronID_*_*', - ] -bParking.toModify(MicroEventContent, outputCommands = MicroEventContent.outputCommands + _bParking_extraCommands) - MicroEventContentMC = cms.PSet( outputCommands = cms.untracked.vstring(MicroEventContent.outputCommands) )