CMS 3D CMS Logo

RecoEcal_EventContent_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # AOD content
4 RecoEcalAOD = cms.PSet(
5  outputCommands = cms.untracked.vstring(
6  #selected digis
7  'keep *_selectDigi_*_*',
8  # Hits
9  'keep EcalRecHitsSorted_reducedEcalRecHitsEB_*_*',
10  'keep EcalRecHitsSorted_reducedEcalRecHitsEE_*_*',
11  'keep EcalRecHitsSorted_reducedEcalRecHitsES_*_*',
12  # Barrel clusters (uncleaned only in separate collections)
13  'keep recoSuperClusters_correctedHybridSuperClusters_*_*',
14  'keep recoCaloClusters_hybridSuperClusters_*_*',
15  'keep recoSuperClusters_hybridSuperClusters_uncleanOnlyHybridSuperClusters_*',
16  # Endcap clusters
17  'keep recoCaloClusters_multi5x5SuperClusters_multi5x5EndcapBasicClusters_*',
18  'keep recoSuperClusters_correctedMulti5x5SuperClustersWithPreshower_*_*',
19  # Preshower clusters
20  'keep recoPreshowerClusters_multi5x5SuperClustersWithPreshower_*_*',
21  'keep recoPreshowerClusterShapes_multi5x5PreshowerClusterShape_*_*',
22  # Particle Flow superclusters (only SuperCluster and CaloCluster outputs, not association map from PFClusters)
23  'keep recoSuperClusters_particleFlowSuperClusterECAL_*_*',
24  'keep recoCaloClusters_particleFlowSuperClusterECAL_*_*',
25  'keep recoSuperClusters_particleFlowSuperClusterOOTECAL_*_*',
26  'keep recoCaloClusters_particleFlowSuperClusterOOTECAL_*_*')
27 )
28 _phase2_hgcal_scCommandsAOD = ['keep recoSuperClusters_particleFlowSuperClusterHGCal__*',
29  'keep recoCaloClusters_particleFlowSuperClusterHGCal__*']
30 
31 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
32 phase2_hgcal.toModify(RecoEcalAOD,
33  outputCommands = RecoEcalAOD.outputCommands + _phase2_hgcal_scCommandsAOD)
34 
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
40 #HI-specific products needed in pp scenario special configurations
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_*_*'])
45  )
46 
47 # RECO content
48 RecoEcalRECO = cms.PSet(
49  outputCommands = cms.untracked.vstring(
50  # Barrel clusters
51  'keep *_hybridSuperClusters_*_*',
52  'keep recoSuperClusters_correctedHybridSuperClusters_*_*',
53  # Endcap clusters
54  'keep *_multi5x5SuperClusters_*_*',
55  'keep recoSuperClusters_multi5x5SuperClustersWithPreshower_*_*',
56  # Particle Flow superclusters
57  'keep *_particleFlowSuperClusterECAL_*_*',
58  'keep *_particleFlowSuperClusterOOTECAL_*_*',
59  # DROP statements
60  'drop recoClusterShapes_*_*_*',
61  'drop recoBasicClustersToOnerecoClusterShapesAssociation_*_*_*',
62  'drop recoBasicClusters_multi5x5BasicClusters_multi5x5BarrelBasicClusters_*',
63  'drop recoSuperClusters_multi5x5SuperClusters_multi5x5BarrelSuperClusters_*')
64 )
65 RecoEcalRECO.outputCommands.extend(RecoEcalAOD.outputCommands)
66 _phase2_hgcal_scCommands = ['keep *_particleFlowSuperClusterHGCal_*_*']
67 phase2_hgcal.toModify(RecoEcalRECO,
68  outputCommands = RecoEcalRECO.outputCommands + _phase2_hgcal_scCommands)
69 
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_*_*'])
73  )
74 
75 # Full Event content
76 RecoEcalFEVT = cms.PSet(
77  outputCommands = cms.untracked.vstring(
78  # Hits
79  'keep *_reducedEcalRecHitsEB_*_*',
80  'keep *_reducedEcalRecHitsEE_*_*',
81  'keep *_reducedEcalRecHitsES_*_*',
82  'keep *_interestingEcalDetId*_*_*',
83  'keep *_ecalWeightUncalibRecHit_*_*',
84  'keep *_ecalPreshowerRecHit_*_*',
85  # Barrel clusters
86  'keep *_correctedHybridSuperClusters_*_*',
87  # Endcap clusters
88  'keep *_multi5x5*_*_*')
89 )
90 RecoEcalFEVT.outputCommands.extend(RecoEcalRECO.outputCommands)