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_lowPtGsfElectronID_*_*',
53  )
54 )
55 
56 # RECO content
57 RecoEgammaRECO = cms.PSet(
58  outputCommands = cms.untracked.vstring(
59  'keep recoGsfElectronCores_gsfElectronCores_*_*',
60  'keep recoGsfElectronCores_gedGsfElectronCores_*_*',
61  'keep recoGsfElectrons_gsfElectrons_*_*',
62  'keep recoGsfElectrons_gedGsfElectrons_*_*',
63  'keep recoGsfElectronCores_uncleanedOnlyGsfElectronCores_*_*',
64  'keep recoGsfElectrons_uncleanedOnlyGsfElectrons_*_*',
65  'keep floatedmValueMap_eidRobustLoose_*_*',
66  'keep floatedmValueMap_eidRobustTight_*_*',
67  'keep floatedmValueMap_eidRobustHighEnergy_*_*',
68  'keep floatedmValueMap_eidLoose_*_*',
69  'keep floatedmValueMap_eidTight_*_*',
70  'keep *_egmGedGsfElectronPFIsolation_*_*',
71  'drop *_egmGsfElectronIDs_*_*',
72  'drop *_egmPhotonIDs_*_*',
73  'keep *_gedPhotonCore_*_*',
74  'keep *_gedPhotons_*_*',
75  'keep *_particleBasedIsolation_*_*',
76  #'keep *_gedPhotonsTmp_*_*',
77  'keep recoPhotons_mustachePhotons_*_*',
78  'keep recoPhotonCores_mustachePhotonCore_*_*',
79  'keep recoPhotons_ootPhotons_*_*',
80  'keep recoPhotonCores_ootPhotonCore_*_*',
81  'keep recoPhotons_photons_*_*',
82  'keep recoPhotonCores_photonCore_*_*',
83  'keep recoConversions_conversions_*_*',
84  'keep recoConversions_mustacheConversions_*_*',
85  'keep *_gsfTracksOpenConversions_*_*',
86  'drop *_conversions_uncleanedConversions_*',
87  'drop *_gedPhotonsTmp_valMapPFEgammaCandToPhoton_*',
88  'keep recoConversions_allConversions_*_*',
89  'keep recoConversions_allConversionsOldEG_*_*',
90  'keep recoTracks_ckfOutInTracksFromConversions_*_*',
91  'keep recoTracks_ckfInOutTracksFromConversions_*_*',
92  'keep recoTrackExtras_ckfOutInTracksFromConversions_*_*',
93  'keep recoTrackExtras_ckfInOutTracksFromConversions_*_*',
94  'keep TrackingRecHitsOwned_ckfOutInTracksFromConversions_*_*',
95  'keep TrackingRecHitsOwned_ckfInOutTracksFromConversions_*_*',
96  'keep recoConversions_uncleanedOnlyAllConversions_*_*',
97  'keep recoTracks_uncleanedOnlyCkfOutInTracksFromConversions_*_*',
98  'keep recoTracks_uncleanedOnlyCkfInOutTracksFromConversions_*_*',
99  'keep recoTrackExtras_uncleanedOnlyCkfOutInTracksFromConversions_*_*',
100  'keep recoTrackExtras_uncleanedOnlyCkfInOutTracksFromConversions_*_*',
101  'keep TrackingRecHitsOwned_uncleanedOnlyCkfOutInTracksFromConversions_*_*',
102  'keep TrackingRecHitsOwned_uncleanedOnlyCkfInOutTracksFromConversions_*_*',
103  'keep *_PhotonIDProd_*_*',
104  'keep *_PhotonIDProdGED_*_*',
105  #'keep *_hfRecoEcalCandidate_*_*',
106  'keep recoRecoEcalCandidates_hfRecoEcalCandidate_*_*',
107  'keep *_hfEMClusters_*_*',
108  'keep *_gedGsfElectronCores_*_*',
109  'keep *_gedGsfElectrons_*_*',
110  'keep recoCaloClusters_lowPtGsfElectronSuperClusters_*_*',
111  'keep recoGsfElectrons_lowPtGsfElectrons_*_*',
112  'keep recoGsfElectronCores_lowPtGsfElectronCores_*_*',
113  'keep recoGsfTracks_lowPtGsfEleGsfTracks_*_*',
114  'keep *_lowPtGsfToTrackLinks_*_*',
115  'keep recoSuperClusters_lowPtGsfElectronSuperClusters_*_*',
116  'keep floatedmValueMap_lowPtGsfElectronSeedValueMaps_*_*',
117  'keep floatedmValueMap_lowPtGsfElectronID_*_*',
118  )
119 )
120 
121 # AOD content
122 RecoEgammaAOD = cms.PSet(
123  outputCommands = cms.untracked.vstring(
124  'keep recoGsfElectronCores_gsfElectronCores_*_*',
125  'keep recoGsfElectronCores_gedGsfElectronCores_*_*',
126  'keep recoGsfElectrons_gsfElectrons_*_*',
127  'keep recoGsfElectrons_gedGsfElectrons_*_*',
128  'keep recoGsfElectronCores_uncleanedOnlyGsfElectronCores_*_*',
129  'keep recoGsfElectrons_uncleanedOnlyGsfElectrons_*_*',
130  'keep floatedmValueMap_eidRobustLoose_*_*',
131  'keep floatedmValueMap_eidRobustTight_*_*',
132  'keep floatedmValueMap_eidRobustHighEnergy_*_*',
133  'keep floatedmValueMap_eidLoose_*_*',
134  'keep floatedmValueMap_eidTight_*_*',
135  'keep *_egmGedGsfElectronPFIsolation_*_*',
136  'drop *_egmGsfElectronIDs_*_*',
137  'drop *_egmPhotonIDs_*_*',
138  'keep recoPhotonCores_gedPhotonCore_*_*',
139  'keep recoPhotons_gedPhotons_*_*',
140  'keep *_particleBasedIsolation_*_*',
141  'drop *_gedPhotons_valMapPFEgammaCandToPhoton_*',
142  'keep recoPhotonCores_photonCore_*_*',
143  'keep recoPhotons_photons_*_*',
144  'keep recoPhotonCores_ootPhotonCore_*_*',
145  'keep recoPhotons_ootPhotons_*_*',
146  'keep recoConversions_conversions_*_*',
147  'keep recoConversions_mustacheConversions_*_*',
148  'keep *_gsfTracksOpenConversions_*_*',
149  'drop *_conversions_uncleanedConversions_*',
150  'keep recoConversions_allConversions_*_*',
151  'keep recoConversions_allConversionsOldEG_*_*',
152  'keep recoTracks_ckfOutInTracksFromConversions_*_*',
153  'keep recoTracks_ckfInOutTracksFromConversions_*_*',
154  'keep recoConversions_uncleanedOnlyAllConversions_*_*',
155  'keep recoTracks_uncleanedOnlyCkfOutInTracksFromConversions_*_*',
156  'keep recoTracks_uncleanedOnlyCkfInOutTracksFromConversions_*_*',
157  'keep *_PhotonIDProd_*_*',
158  'keep *_PhotonIDProdGED_*_*',
159  'keep *_hfRecoEcalCandidate_*_*',
160  'keep recoRecoEcalCandidates_hfRecoEcalCandidate_*_*',
161  'keep *_hfEMClusters_*_*',
162  'keep *_gedGsfElectronCores_*_*',
163  'keep *_gedGsfElectrons_*_*',
164  'keep recoCaloClusters_lowPtGsfElectronSuperClusters_*_*',
165  'keep recoGsfElectrons_lowPtGsfElectrons_*_*',
166  'keep recoGsfElectronCores_lowPtGsfElectronCores_*_*',
167  'keep recoGsfTracks_lowPtGsfEleGsfTracks_*_*',
168  'keep *_lowPtGsfToTrackLinks_*_*',
169  'keep recoSuperClusters_lowPtGsfElectronSuperClusters_*_*',
170  'keep floatedmValueMap_lowPtGsfElectronSeedValueMaps_*_*',
171  'keep floatedmValueMap_lowPtGsfElectronID_*_*',
172  )
173 )
174 
175 # mods for HGCAL
176 _phase2_hgcal_RecoEgamma_tokeep = [ 'keep *_ecalDrivenGsfElectronCores_*_*',
177  'keep *_ecalDrivenGsfElectrons_*_*',
178  'keep *_ecalDrivenGsfElectronCoresFromMultiCl_*_*',
179  'keep *_ecalDrivenGsfElectronsFromMultiCl_*_*',
180  'keep *_photonCoreFromMultiCl_*_*',
181  'keep *_photonsFromMultiCl_*_*']
182 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
183 phase2_hgcal.toModify( RecoEgammaFEVT, outputCommands = RecoEgammaFEVT.outputCommands + _phase2_hgcal_RecoEgamma_tokeep
184 )
185 phase2_hgcal.toModify( RecoEgammaRECO, outputCommands = RecoEgammaRECO.outputCommands + _phase2_hgcal_RecoEgamma_tokeep )
186 phase2_hgcal.toModify( RecoEgammaAOD, outputCommands = RecoEgammaAOD.outputCommands + _phase2_hgcal_RecoEgamma_tokeep )
187 
188 from Configuration.Eras.Modifier_pA_2016_cff import pA_2016
189 from Configuration.Eras.Modifier_peripheralPbPb_cff import peripheralPbPb
190 from Configuration.Eras.Modifier_pp_on_AA_2018_cff import pp_on_AA_2018
191 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
192 from Configuration.Eras.Modifier_ppRef_2017_cff import ppRef_2017
193 #HI-specific products needed in pp scenario special configurations
194 for e in [pA_2016, peripheralPbPb, pp_on_AA_2018, pp_on_XeXe_2017, ppRef_2017]:
195  for ec in [RecoEgammaAOD.outputCommands, RecoEgammaRECO.outputCommands, RecoEgammaFEVT.outputCommands]:
196  e.toModify( ec, func=lambda outputCommands: outputCommands.extend(['keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerppGED_*_*',
197  'keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerpp_*_*',
198  'keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerppIsland_*_*',
199  'keep recoPhotonCores_islandPhotonCore_*_*',
200  'keep recoPhotons_islandPhotons_*_*'
201  ])
202  )