CMS 3D CMS Logo

RecoEgamma_EventContent_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # Full Event content
4 RecoEgammaFEVT = cms.PSet(
5  outputCommands = cms.untracked.vstring(
6  'keep *_gsfElectronCores_*_*',
7  'keep *_gsfElectrons_*_*',
8  'keep *_uncleanedOnlyGsfElectronCores_*_*',
9  'keep *_uncleanedOnlyGsfElectrons_*_*',
10  'keep *_eidRobustLoose_*_*',
11  'keep *_eidRobustTight_*_*',
12  'keep *_eidRobustHighEnergy_*_*',
13  'keep *_eidLoose_*_*',
14  'keep *_eidTight_*_*',
15  'keep *_egmGedGsfElectronPF*Isolation_*_*',
16  'keep *_egmGsfElectronIDs_*_*',
17  'keep *_egmPhotonIDs_*_*',
18  'keep *_conversions_*_*',
19  'keep *_mustacheConversions_*_*',
20  'keep *_gsfTracksOpenConversions_*_*',
21  'drop *_conversions_uncleanedConversions_*',
22  'keep *_gedPhotonCore_*_*',
23  'keep *_gedPhotonsTmp_*_*',
24  'keep *_gedPhotons_*_*',
25  'keep *_particleBasedIsolation_*_*',
26  'keep *_photonCore_*_*',
27  'keep *_photons_*_*',
28  'keep *_mustachePhotonCore_*_*',
29  'keep *_mustachePhotons_*_*',
30  'keep *_ootPhotonCore_*_*',
31  'keep *_ootPhotons_*_*',
32  'keep *_allConversions_*_*',
33  'keep *_allConversionsOldEG_*_*',
34  'keep *_ckfOutInTracksFrom*Conversions_*_*',
35  'keep *_ckfInOutTracksFrom*Conversions_*_*',
36  'keep *_uncleanedOnlyAllConversions_*_*',
37  'keep *_uncleanedOnlyCkfOutInTracksFromConversions_*_*',
38  'keep *_uncleanedOnlyCkfInOutTracksFromConversions_*_*',
39  'keep *_PhotonIDProd_*_*',
40  'keep *_PhotonIDProdGED_*_*',
41  'keep *_hfRecoEcalCandidate_*_*',
42  'keep *_hfEMClusters_*_*',
43  'keep *_gedGsfElectronCores_*_*',
44  'keep *_gedGsfElectrons_*_*',
45  'keep recoCaloClusters_lowPtGsfElectronSuperClusters_*_*',
46  'keep recoGsfElectrons_lowPtGsfElectrons_*_*',
47  'keep recoGsfElectronCores_lowPtGsfElectronCores_*_*',
48  'keep recoGsfTracks_lowPtGsfEleGsfTracks_*_*',
49  'keep *_lowPtGsfToTrackLinks_*_*',
50  'keep recoSuperClusters_lowPtGsfElectronSuperClusters_*_*',
51  'keep floatedmValueMap_lowPtGsfElectronSeedValueMaps_*_*',
52  'keep floatedmValueMap_rekeyLowPtGsfElectronSeedValueMaps_*_*',
53  'keep floatedmValueMap_lowPtGsfElectronID_*_*',
54  )
55 )
56 
57 # RECO content
58 RecoEgammaRECO = cms.PSet(
59  outputCommands = cms.untracked.vstring(
60  'keep recoGsfElectronCores_gsfElectronCores_*_*',
61  'keep recoGsfElectronCores_gedGsfElectronCores_*_*',
62  'keep recoGsfElectrons_gsfElectrons_*_*',
63  'keep recoGsfElectrons_gedGsfElectrons_*_*',
64  'keep recoGsfElectronCores_uncleanedOnlyGsfElectronCores_*_*',
65  'keep recoGsfElectrons_uncleanedOnlyGsfElectrons_*_*',
66  'keep floatedmValueMap_eidRobustLoose_*_*',
67  'keep floatedmValueMap_eidRobustTight_*_*',
68  'keep floatedmValueMap_eidRobustHighEnergy_*_*',
69  'keep floatedmValueMap_eidLoose_*_*',
70  'keep floatedmValueMap_eidTight_*_*',
71  'keep *_egmGedGsfElectronPFIsolation_*_*',
72  'drop *_egmGsfElectronIDs_*_*',
73  'drop *_egmPhotonIDs_*_*',
74  'keep *_gedPhotonCore_*_*',
75  'keep *_gedPhotons_*_*',
76  'keep *_particleBasedIsolation_*_*',
77  #'keep *_gedPhotonsTmp_*_*',
78  'keep recoPhotons_mustachePhotons_*_*',
79  'keep recoPhotonCores_mustachePhotonCore_*_*',
80  'keep recoPhotons_ootPhotons_*_*',
81  'keep recoPhotonCores_ootPhotonCore_*_*',
82  'keep recoPhotons_photons_*_*',
83  'keep recoPhotonCores_photonCore_*_*',
84  'keep recoConversions_conversions_*_*',
85  'keep recoConversions_mustacheConversions_*_*',
86  'keep *_gsfTracksOpenConversions_*_*',
87  'drop *_conversions_uncleanedConversions_*',
88  'drop *_gedPhotonsTmp_valMapPFEgammaCandToPhoton_*',
89  'keep recoConversions_allConversions_*_*',
90  'keep recoConversions_allConversionsOldEG_*_*',
91  'keep recoTracks_ckfOutInTracksFromConversions_*_*',
92  'keep recoTracks_ckfInOutTracksFromConversions_*_*',
93  'keep recoTrackExtras_ckfOutInTracksFromConversions_*_*',
94  'keep recoTrackExtras_ckfInOutTracksFromConversions_*_*',
95  'keep TrackingRecHitsOwned_ckfOutInTracksFromConversions_*_*',
96  'keep TrackingRecHitsOwned_ckfInOutTracksFromConversions_*_*',
97  'keep recoConversions_uncleanedOnlyAllConversions_*_*',
98  'keep recoTracks_uncleanedOnlyCkfOutInTracksFromConversions_*_*',
99  'keep recoTracks_uncleanedOnlyCkfInOutTracksFromConversions_*_*',
100  'keep recoTrackExtras_uncleanedOnlyCkfOutInTracksFromConversions_*_*',
101  'keep recoTrackExtras_uncleanedOnlyCkfInOutTracksFromConversions_*_*',
102  'keep TrackingRecHitsOwned_uncleanedOnlyCkfOutInTracksFromConversions_*_*',
103  'keep TrackingRecHitsOwned_uncleanedOnlyCkfInOutTracksFromConversions_*_*',
104  'keep *_PhotonIDProd_*_*',
105  'keep *_PhotonIDProdGED_*_*',
106  #'keep *_hfRecoEcalCandidate_*_*',
107  'keep recoRecoEcalCandidates_hfRecoEcalCandidate_*_*',
108  'keep *_hfEMClusters_*_*',
109  'keep *_gedGsfElectronCores_*_*',
110  'keep *_gedGsfElectrons_*_*',
111  'keep recoCaloClusters_lowPtGsfElectronSuperClusters_*_*',
112  'keep recoGsfElectrons_lowPtGsfElectrons_*_*',
113  'keep recoGsfElectronCores_lowPtGsfElectronCores_*_*',
114  'keep recoGsfTracks_lowPtGsfEleGsfTracks_*_*',
115  'keep *_lowPtGsfToTrackLinks_*_*',
116  'keep recoSuperClusters_lowPtGsfElectronSuperClusters_*_*',
117  'keep floatedmValueMap_lowPtGsfElectronSeedValueMaps_*_*',
118  'keep floatedmValueMap_rekeyLowPtGsfElectronSeedValueMaps_*_*',
119  'keep floatedmValueMap_lowPtGsfElectronID_*_*',
120  )
121 )
122 
123 # AOD content
124 RecoEgammaAOD = cms.PSet(
125  outputCommands = cms.untracked.vstring(
126  'keep recoGsfElectronCores_gsfElectronCores_*_*',
127  'keep recoGsfElectronCores_gedGsfElectronCores_*_*',
128  'keep recoGsfElectrons_gsfElectrons_*_*',
129  'keep recoGsfElectrons_gedGsfElectrons_*_*',
130  'keep recoGsfElectronCores_uncleanedOnlyGsfElectronCores_*_*',
131  'keep recoGsfElectrons_uncleanedOnlyGsfElectrons_*_*',
132  'keep floatedmValueMap_eidRobustLoose_*_*',
133  'keep floatedmValueMap_eidRobustTight_*_*',
134  'keep floatedmValueMap_eidRobustHighEnergy_*_*',
135  'keep floatedmValueMap_eidLoose_*_*',
136  'keep floatedmValueMap_eidTight_*_*',
137  'keep *_egmGedGsfElectronPFIsolation_*_*',
138  'drop *_egmGsfElectronIDs_*_*',
139  'drop *_egmPhotonIDs_*_*',
140  'keep recoPhotonCores_gedPhotonCore_*_*',
141  'keep recoPhotons_gedPhotons_*_*',
142  'keep *_particleBasedIsolation_*_*',
143  'drop *_gedPhotons_valMapPFEgammaCandToPhoton_*',
144  'keep recoPhotonCores_photonCore_*_*',
145  'keep recoPhotons_photons_*_*',
146  'keep recoPhotonCores_ootPhotonCore_*_*',
147  'keep recoPhotons_ootPhotons_*_*',
148  'keep recoConversions_conversions_*_*',
149  'keep recoConversions_mustacheConversions_*_*',
150  'keep *_gsfTracksOpenConversions_*_*',
151  'drop *_conversions_uncleanedConversions_*',
152  'keep recoConversions_allConversions_*_*',
153  'keep recoConversions_allConversionsOldEG_*_*',
154  'keep recoTracks_ckfOutInTracksFromConversions_*_*',
155  'keep recoTracks_ckfInOutTracksFromConversions_*_*',
156  'keep recoConversions_uncleanedOnlyAllConversions_*_*',
157  'keep recoTracks_uncleanedOnlyCkfOutInTracksFromConversions_*_*',
158  'keep recoTracks_uncleanedOnlyCkfInOutTracksFromConversions_*_*',
159  'keep *_PhotonIDProd_*_*',
160  'keep *_PhotonIDProdGED_*_*',
161  'keep *_hfRecoEcalCandidate_*_*',
162  'keep recoRecoEcalCandidates_hfRecoEcalCandidate_*_*',
163  'keep *_hfEMClusters_*_*',
164  'keep *_gedGsfElectronCores_*_*',
165  'keep *_gedGsfElectrons_*_*',
166  'keep recoCaloClusters_lowPtGsfElectronSuperClusters_*_*',
167  'keep recoGsfElectrons_lowPtGsfElectrons_*_*',
168  'keep recoGsfElectronCores_lowPtGsfElectronCores_*_*',
169  'keep recoGsfTracks_lowPtGsfEleGsfTracks_*_*',
170  'keep *_lowPtGsfToTrackLinks_*_*',
171  'keep recoSuperClusters_lowPtGsfElectronSuperClusters_*_*',
172  'keep floatedmValueMap_lowPtGsfElectronSeedValueMaps_*_*',
173  'keep floatedmValueMap_rekeyLowPtGsfElectronSeedValueMaps_*_*',
174  'keep floatedmValueMap_lowPtGsfElectronID_*_*')
175 )
176 
177 # mods for HGCAL
178 _phase2_hgcal_RecoEgamma_tokeep = [ 'keep *_ecalDrivenGsfElectronCores_*_*',
179  'keep *_ecalDrivenGsfElectrons_*_*',
180  'keep *_ecalDrivenGsfElectronCoresFromMultiCl_*_*',
181  'keep *_ecalDrivenGsfElectronsFromMultiCl_*_*',
182  'keep *_photonCoreFromMultiCl_*_*',
183  'keep *_photonsFromMultiCl_*_*']
184 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
185 phase2_hgcal.toModify( RecoEgammaFEVT, outputCommands = RecoEgammaFEVT.outputCommands + _phase2_hgcal_RecoEgamma_tokeep
186 )
187 phase2_hgcal.toModify( RecoEgammaRECO, outputCommands = RecoEgammaRECO.outputCommands + _phase2_hgcal_RecoEgamma_tokeep )
188 phase2_hgcal.toModify( RecoEgammaAOD, outputCommands = RecoEgammaAOD.outputCommands + _phase2_hgcal_RecoEgamma_tokeep )
189 
190 from Configuration.Eras.Modifier_pA_2016_cff import pA_2016
191 from Configuration.Eras.Modifier_peripheralPbPb_cff import peripheralPbPb
192 from Configuration.Eras.Modifier_pp_on_AA_2018_cff import pp_on_AA_2018
193 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
194 from Configuration.Eras.Modifier_ppRef_2017_cff import ppRef_2017
195 #HI-specific products needed in pp scenario special configurations
196 for e in [pA_2016, peripheralPbPb, pp_on_AA_2018, pp_on_XeXe_2017, ppRef_2017]:
197  for ec in [RecoEgammaAOD.outputCommands, RecoEgammaRECO.outputCommands, RecoEgammaFEVT.outputCommands]:
198  e.toModify( ec, func=lambda outputCommands: outputCommands.extend(['keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerppGED_*_*',
199  'keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerpp_*_*',
200  'keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerppIsland_*_*',
201  'keep recoPhotonCores_islandPhotonCore_*_*',
202  'keep recoPhotons_islandPhotons_*_*'
203  ])
204  )