1 import FWCore.ParameterSet.Config
as cms
4 RecoEcalAOD = cms.PSet(
5 outputCommands = cms.untracked.vstring(
7 'keep *_selectDigi_*_*',
9 'keep EcalRecHitsSorted_reducedEcalRecHitsEB_*_*',
10 'keep EcalRecHitsSorted_reducedEcalRecHitsEE_*_*',
11 'keep EcalRecHitsSorted_reducedEcalRecHitsES_*_*',
13 'keep recoSuperClusters_correctedHybridSuperClusters_*_*',
14 'keep recoCaloClusters_hybridSuperClusters_*_*',
15 'keep recoSuperClusters_hybridSuperClusters_uncleanOnlyHybridSuperClusters_*',
17 'keep recoCaloClusters_multi5x5SuperClusters_multi5x5EndcapBasicClusters_*',
18 'keep recoSuperClusters_correctedMulti5x5SuperClustersWithPreshower_*_*',
20 'keep recoPreshowerClusters_multi5x5SuperClustersWithPreshower_*_*',
21 'keep recoPreshowerClusterShapes_multi5x5PreshowerClusterShape_*_*',
23 'keep recoSuperClusters_particleFlowSuperClusterECAL_*_*',
24 'keep recoCaloClusters_particleFlowSuperClusterECAL_*_*',
25 'keep recoSuperClusters_particleFlowSuperClusterOOTECAL_*_*',
26 'keep recoCaloClusters_particleFlowSuperClusterOOTECAL_*_*')
28 _phase2_hgcal_scCommandsAOD = [
'keep recoSuperClusters_particleFlowSuperClusterHGCal__*',
29 'keep recoCaloClusters_particleFlowSuperClusterHGCal__*']
31 from Configuration.Eras.Modifier_phase2_hgcal_cff
import phase2_hgcal
32 phase2_hgcal.toModify(RecoEcalAOD,
33 outputCommands = RecoEcalAOD.outputCommands + _phase2_hgcal_scCommandsAOD)
35 from Configuration.Eras.Modifier_pA_2016_cff
import pA_2016
36 from Configuration.Eras.Modifier_peripheralPbPb_cff
import peripheralPbPb
37 from Configuration.ProcessModifiers.pp_on_AA_cff
import pp_on_AA
38 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff
import pp_on_XeXe_2017
39 from Configuration.Eras.Modifier_ppRef_2017_cff
import ppRef_2017
41 for e
in [pA_2016, peripheralPbPb, pp_on_AA, pp_on_XeXe_2017, ppRef_2017]:
42 e.toModify( RecoEcalAOD.outputCommands,
43 func=
lambda outputCommands: outputCommands.extend([
'keep recoSuperClusters_correctedIslandBarrelSuperClusters_*_*',
44 'keep recoSuperClusters_correctedIslandEndcapSuperClusters_*_*'])
48 RecoEcalRECO = cms.PSet(
49 outputCommands = cms.untracked.vstring(
51 'keep *_hybridSuperClusters_*_*',
52 'keep recoSuperClusters_correctedHybridSuperClusters_*_*',
54 'keep *_multi5x5SuperClusters_*_*',
55 'keep recoSuperClusters_multi5x5SuperClustersWithPreshower_*_*',
57 'keep *_particleFlowSuperClusterECAL_*_*',
58 'keep *_particleFlowSuperClusterOOTECAL_*_*',
60 'drop recoClusterShapes_*_*_*',
61 'drop recoBasicClustersToOnerecoClusterShapesAssociation_*_*_*',
62 'drop recoBasicClusters_multi5x5BasicClusters_multi5x5BarrelBasicClusters_*',
63 'drop recoSuperClusters_multi5x5SuperClusters_multi5x5BarrelSuperClusters_*')
65 RecoEcalRECO.outputCommands.extend(RecoEcalAOD.outputCommands)
66 _phase2_hgcal_scCommands = [
'keep *_particleFlowSuperClusterHGCal_*_*']
67 phase2_hgcal.toModify(RecoEcalRECO,
68 outputCommands = RecoEcalRECO.outputCommands + _phase2_hgcal_scCommands)
70 for e
in [pA_2016, peripheralPbPb, pp_on_AA, pp_on_XeXe_2017, ppRef_2017]:
71 e.toModify( RecoEcalRECO.outputCommands,
72 func=
lambda outputCommands: outputCommands.extend([
'keep recoCaloClusters_islandBasicClusters_*_*'])
76 RecoEcalFEVT = cms.PSet(
77 outputCommands = cms.untracked.vstring(
79 'keep *_reducedEcalRecHitsEB_*_*',
80 'keep *_reducedEcalRecHitsEE_*_*',
81 'keep *_reducedEcalRecHitsES_*_*',
82 'keep *_interestingEcalDetId*_*_*',
83 'keep *_ecalWeightUncalibRecHit_*_*',
84 'keep *_ecalPreshowerRecHit_*_*',
86 'keep *_correctedHybridSuperClusters_*_*',
88 'keep *_multi5x5*_*_*')
90 RecoEcalFEVT.outputCommands.extend(RecoEcalRECO.outputCommands)