CMS 3D CMS Logo

RecoParticleFlow_EventContent_cff.py
Go to the documentation of this file.
1 # The following comments couldn't be translated into the new config version:
2 
3 # "keep recoPFClusters_*_*_*",
4 # "keep recoPFBlocks_*_*_*",
5 
6 import FWCore.ParameterSet.Config as cms
7 
8 # Full Event content
9 RecoParticleFlowFEVT = cms.PSet(
10  outputCommands = cms.untracked.vstring(
11  'drop CaloTowersSorted_towerMakerPF_*_*',
12  #'keep recoPFRecHits_*_Cleaned_*',
13  'keep recoPFRecHits_particleFlowClusterECAL_Cleaned_*',
14  'keep recoPFRecHits_particleFlowClusterHCAL_Cleaned_*',
15  'keep recoPFRecHits_particleFlowClusterHO_Cleaned_*',
16  'keep recoPFRecHits_particleFlowClusterHF_Cleaned_*',
17  'keep recoPFRecHits_particleFlowClusterPS_Cleaned_*',
18  'keep recoPFRecHits_particleFlowRecHitECAL_Cleaned_*',
19  'keep recoPFRecHits_particleFlowRecHitHO_Cleaned_*',
20  'keep recoPFRecHits_particleFlowRecHitHBHE_Cleaned_*',
21  'keep recoPFRecHits_particleFlowRecHitHF_Cleaned_*',
22  'keep recoPFRecHits_particleFlowRecHitPS_Cleaned_*',
23  #'keep recoPFClusters_*_*_*',
24  'keep recoPFClusters_particleFlowClusterECAL_*_*',
25  'keep recoPFClusters_particleFlowClusterHCAL_*_*',
26  'keep recoPFClusters_particleFlowClusterHO_*_*',
27  'keep recoPFClusters_particleFlowClusterHF_*_*',
28  'keep recoPFClusters_particleFlowClusterPS_*_*',
29  #'keep recoPFBlocks_*_*_*',
30  'keep recoPFBlocks_particleFlowBlock_*_*',
31  #'keep recoPFCandidates_*_*_*',
32  'keep recoPFCandidates_particleFlowEGamma_*_*',
33  'keep recoCaloClusters_particleFlowEGamma_*_*',
34  'keep recoSuperClusters_particleFlowEGamma_*_*',
35  'keep recoConversions_particleFlowEGamma_*_*',
36  'keep recoPFCandidates_particleFlow_*_*',
37  'keep recoPFCandidates_particleFlowTmp_*_*',
38  'drop recoPFCandidates_particleFlowTmp__*',
39  #'keep recoPFDisplacedVertexs_*_*_*',
40  'keep recoPFDisplacedVertexs_particleFlowDisplacedVertex_*_*',
41  'keep *_pfElectronTranslator_*_*',
42  'keep *_pfPhotonTranslator_*_*',
43  'keep *_particleFlow_electrons_*',
44  'keep *_particleFlow_photons_*',
45  'keep *_trackerDrivenElectronSeeds_preid_*',
46  'keep *_particleFlowPtrs_*_*',
47  'keep *_particleFlowTmpPtrs_*_*',
48  'keep *_chargedHadronPFTrackIsolation_*_*'
49  )
50  )
51 # RECO content
52 RecoParticleFlowRECO = cms.PSet(
53  outputCommands = cms.untracked.vstring(
54  'drop CaloTowersSorted_towerMakerPF_*_*',
55  #'keep recoPFRecHits_*_Cleaned_*',
56  'keep recoPFRecHits_particleFlowClusterECAL_Cleaned_*',
57  'keep recoPFRecHits_particleFlowClusterHCAL_Cleaned_*',
58  'keep recoPFRecHits_particleFlowClusterHO_Cleaned_*',
59  'keep recoPFRecHits_particleFlowClusterHF_Cleaned_*',
60  'keep recoPFRecHits_particleFlowClusterPS_Cleaned_*',
61  'keep recoPFRecHits_particleFlowRecHitECAL_Cleaned_*',
62  'keep recoPFRecHits_particleFlowRecHitHBHE_Cleaned_*',
63  'keep recoPFRecHits_particleFlowRecHitHF_Cleaned_*',
64  'keep recoPFRecHits_particleFlowRecHitHO_Cleaned_*',
65  'keep recoPFRecHits_particleFlowRecHitPS_Cleaned_*',
66  #'keep recoPFClusters_*_*_*',
67  'keep recoPFClusters_particleFlowClusterECAL_*_*',
68  'keep recoPFClusters_particleFlowClusterHCAL_*_*',
69  'keep recoPFClusters_particleFlowClusterHO_*_*',
70  'keep recoPFClusters_particleFlowClusterHF_*_*',
71  'keep recoPFClusters_particleFlowClusterPS_*_*',
72  #'keep recoPFBlocks_*_*_*',
73  'keep recoPFBlocks_particleFlowBlock_*_*',
74  #'keep recoPFCandidates_*_*_*',
75  'keep recoPFCandidates_particleFlowEGamma_*_*',
76  'keep recoCaloClusters_particleFlowEGamma_*_*',
77  'keep recoSuperClusters_particleFlowEGamma_*_*',
78  'keep recoConversions_particleFlowEGamma_*_*',
79  'keep recoPFCandidates_particleFlow_*_*',
80  'keep recoPFCandidates_particleFlowTmp_electrons_*',
81  'keep recoPFCandidates_particleFlowTmp_*_*',
82  'drop recoPFCandidates_particleFlowTmp__*',
83  #'keep recoPFDisplacedVertexs_*_*_*',
84  'keep recoPFDisplacedVertexs_particleFlowDisplacedVertex_*_*',
85  'keep *_pfElectronTranslator_*_*',
86  'keep *_pfPhotonTranslator_*_*',
87  'keep *_particleFlow_electrons_*',
88  'keep *_particleFlow_photons_*',
89  'keep *_particleFlow_muons_*',
90  'keep *_trackerDrivenElectronSeeds_preid_*',
91  'keep *_particleFlowPtrs_*_*',
92  'keep *_particleFlowTmpPtrs_*_*',
93  'keep *_chargedHadronPFTrackIsolation_*_*'
94  )
95 )
96 
97 # AOD content
98 RecoParticleFlowAOD = cms.PSet(
99  outputCommands = cms.untracked.vstring(
100  'drop CaloTowersSorted_towerMakerPF_*_*',
101  'drop *_pfElectronTranslator_*_*',
102  #'keep recoPFRecHits_*_Cleaned_*',
103  'keep recoPFRecHits_particleFlowClusterECAL_Cleaned_*',
104  'keep recoPFRecHits_particleFlowClusterHCAL_Cleaned_*',
105  'keep recoPFRecHits_particleFlowClusterHO_Cleaned_*',
106  'keep recoPFRecHits_particleFlowClusterHF_Cleaned_*',
107  'keep recoPFRecHits_particleFlowClusterPS_Cleaned_*',
108  'keep recoPFRecHits_particleFlowRecHitECAL_Cleaned_*',
109  'keep recoPFRecHits_particleFlowRecHitHBHE_Cleaned_*',
110  'keep recoPFRecHits_particleFlowRecHitHF_Cleaned_*',
111  'keep recoPFRecHits_particleFlowRecHitHO_Cleaned_*',
112  'keep recoPFRecHits_particleFlowRecHitPS_Cleaned_*',
113  #'keep recoPFCandidates_*_*_*',
114  'keep recoCaloClusters_particleFlowEGamma_*_*',
115  'keep recoSuperClusters_particleFlowEGamma_*_*',
116  'keep recoCaloClusters_particleFlowSuperClusterECAL_*_*',
117  'keep recoSuperClusters_particleFlowSuperClusterECAL_*_*',
118  'keep recoConversions_particleFlowEGamma_*_*',
119  'keep recoPFCandidates_particleFlow_*_*',
120  'keep recoPFCandidates_particleFlowTmp_*_*',
121  'drop recoPFCandidates_particleFlowTmp__*',
122  'keep *_particleFlow_electrons_*',
123  'keep *_particleFlow_photons_*',
124  'keep *_particleFlow_muons_*',
125  'keep recoCaloClusters_pfElectronTranslator_*_*',
126  'keep recoPreshowerClusters_pfElectronTranslator_*_*',
127  'keep recoSuperClusters_pfElectronTranslator_*_*',
128  'keep recoCaloClusters_pfPhotonTranslator_*_*',
129  'keep recoPreshowerClusters_pfPhotonTranslator_*_*',
130  'keep recoSuperClusters_pfPhotonTranslator_*_*',
131  'keep recoPhotons_pfPhotonTranslator_*_*',
132  'keep recoPhotonCores_pfPhotonTranslator_*_*',
133  'keep recoConversions_pfPhotonTranslator_*_*',
134  'keep *_particleFlowPtrs_*_*',
135  'keep *_particleFlowTmpPtrs_*_*',
136  'keep *_chargedHadronPFTrackIsolation_*_*'
137  )
138 )
139 
141  obj.outputCommands.append('keep recoPFRecHits_particleFlowClusterECAL_Cleaned_*')
142 
144  obj.outputCommands.append('keep recoPFRecHits_particleFlowClusterECAL__*')
145  obj.outputCommands.append('keep recoPFRecHits_particleFlowClusterECAL_Cleaned_*')
146 
147 
148 # mods for HGCAL
149 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
150 phase2_hgcal.toModify( RecoParticleFlowFEVT, outputCommands = RecoParticleFlowFEVT.outputCommands + [
151  'keep recoPFRecHits_particleFlowClusterECAL__*',
152  'keep recoPFRecHits_particleFlowClusterECAL_Cleaned_*',
153  'keep recoPFRecHits_particleFlowRecHitHGC__*',
154  'keep recoPFRecHits_particleFlowRecHitHGC_Cleaned_*',
155  'keep recoPFClusters_particleFlowClusterHGCal__*',
156  'keep recoPFClusters_particleFlowClusterHGCalFromMultiCl__*',
157  'keep *_particleFlowSuperClusterHGCalFromMultiCl_*_*',
158  'keep *_simPFProducer_*_*',
159  'keep *_particleFlowTmpBarrel_*_*',
160  ]
161 )
162 phase2_hgcal.toModify( RecoParticleFlowRECO, outputCommands = RecoParticleFlowRECO.outputCommands + [
163  'keep recoPFRecHits_particleFlowClusterECAL_Cleaned_*',
164  'keep recoPFRecHits_particleFlowRecHitHGC_Cleaned_*',
165  'keep recoPFClusters_particleFlowClusterHGCal__*',
166  'keep recoPFClusters_particleFlowClusterHGCalFromMultiCl__*',
167  'keep *_particleFlowSuperClusterHGCalFromMultiCl_*_*',
168  'keep recoPFBlocks_simPFProducer_*_*',
169  'keep recoSuperClusters_simPFProducer_*_*',
170  'keep *_particleFlowTmpBarrel_*_*'
171  ] )
172 phase2_hgcal.toModify( RecoParticleFlowAOD, outputCommands = RecoParticleFlowAOD.outputCommands + [
173 'keep recoPFRecHits_particleFlowClusterECAL_Cleaned_*',
174 'keep recoPFRecHits_particleFlowRecHitHGC_Cleaned_*',
175 'keep recoPFClusters_particleFlowClusterHGCal__*',
176 'keep recoPFClusters_particleFlowClusterHGCalFromMultiCl__*',
177 'keep recoSuperClusters_simPFProducer_*_*' ] )
178 
179 #timing
180 from Configuration.Eras.Modifier_phase2_timing_cff import phase2_timing
181 phase2_timing.toModify(
182  RecoParticleFlowFEVT,
183  outputCommands = RecoParticleFlowFEVT.outputCommands + [
184  'keep *_ecalBarrelClusterFastTimer_*_*'
185  ])
186 phase2_timing.toModify(
187  RecoParticleFlowRECO,
188  outputCommands = RecoParticleFlowRECO.outputCommands + [
189  'keep *_ecalBarrelClusterFastTimer_*_*'
190  ])
191 phase2_timing.toModify(
192  RecoParticleFlowAOD,
193  outputCommands = RecoParticleFlowAOD.outputCommands + [
194  'keep *_ecalBarrelClusterFastTimer_*_*'
195  ])