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 *_photonEcalPFClusterIsolationProducer_*_*',
19  'keep *_ootPhotonEcalPFClusterIsolationProducer_*_*',
20  'keep *_electronEcalPFClusterIsolationProducer_*_*',
21  'keep *_photonHcalPFClusterIsolationProducer_*_*',
22  'keep *_ootPhotonHcalPFClusterIsolationProducer_*_*',
23  'keep *_electronHcalPFClusterIsolationProducer_*_*',
24  'keep *_conversions_*_*',
25  'keep *_mustacheConversions_*_*',
26  'drop *_conversions_uncleanedConversions_*',
27  'keep *_gedPhotonCore_*_*',
28  'keep *_gedPhotonsTmp_*_*',
29  'keep *_gedPhotons_*_*',
30  'keep *_particleBasedIsolation_*_*',
31  'keep *_photonCore_*_*',
32  'keep *_photons_*_*',
33  'keep *_mustachePhotonCore_*_*',
34  'keep *_mustachePhotons_*_*',
35  'keep *_ootPhotonCore_*_*',
36  'keep *_ootPhotons_*_*',
37  'keep *_allConversions_*_*',
38  'keep *_allConversionsOldEG_*_*',
39  'keep *_ckfOutInTracksFrom*Conversions_*_*',
40  'keep *_ckfInOutTracksFrom*Conversions_*_*',
41  'keep *_uncleanedOnlyAllConversions_*_*',
42  'keep *_uncleanedOnlyCkfOutInTracksFromConversions_*_*',
43  'keep *_uncleanedOnlyCkfInOutTracksFromConversions_*_*',
44  'keep *_PhotonIDProd_*_*',
45  'keep *_PhotonIDProdGED_*_*',
46  'keep *_hfRecoEcalCandidate_*_*',
47  'keep *_hfEMClusters_*_*',
48  'keep *_gedGsfElectronCores_*_*',
49  'keep *_gedGsfElectrons_*_*'
50  )
51 )
52 
53 # RECO content
54 RecoEgammaRECO = cms.PSet(
55  outputCommands = cms.untracked.vstring(
56  'keep recoGsfElectronCores_gsfElectronCores_*_*',
57  'keep recoGsfElectronCores_gedGsfElectronCores_*_*',
58  'keep recoGsfElectrons_gsfElectrons_*_*',
59  'keep recoGsfElectrons_gedGsfElectrons_*_*',
60  'keep recoGsfElectronCores_uncleanedOnlyGsfElectronCores_*_*',
61  'keep recoGsfElectrons_uncleanedOnlyGsfElectrons_*_*',
62  'keep floatedmValueMap_eidRobustLoose_*_*',
63  'keep floatedmValueMap_eidRobustTight_*_*',
64  'keep floatedmValueMap_eidRobustHighEnergy_*_*',
65  'keep floatedmValueMap_eidLoose_*_*',
66  'keep floatedmValueMap_eidTight_*_*',
67  'keep *_egmGedGsfElectronPFIsolation_*_*',
68  'keep *_photonEcalPFClusterIsolationProducer_*_*',
69  'keep *_ootPhotonEcalPFClusterIsolationProducer_*_*',
70  'keep *_electronEcalPFClusterIsolationProducer_*_*',
71  'keep *_photonHcalPFClusterIsolationProducer_*_*',
72  'keep *_ootPhotonHcalPFClusterIsolationProducer_*_*',
73  'keep *_electronHcalPFClusterIsolationProducer_*_*',
74  'drop *_egmGsfElectronIDs_*_*',
75  'drop *_egmPhotonIDs_*_*',
76  'keep *_gedPhotonCore_*_*',
77  'keep *_gedPhotons_*_*',
78  'keep *_particleBasedIsolation_*_*',
79  #'keep *_gedPhotonsTmp_*_*',
80  'keep recoPhotons_mustachePhotons_*_*',
81  'keep recoPhotonCores_mustachePhotonCore_*_*',
82  'keep recoPhotons_ootPhotons_*_*',
83  'keep recoPhotonCores_ootPhotonCore_*_*',
84  'keep recoPhotons_photons_*_*',
85  'keep recoPhotonCores_photonCore_*_*',
86  'keep recoConversions_conversions_*_*',
87  'keep recoConversions_mustacheConversions_*_*',
88  'drop *_conversions_uncleanedConversions_*',
89  'drop *_gedPhotonsTmp_valMapPFEgammaCandToPhoton_*',
90  'keep recoConversions_allConversions_*_*',
91  'keep recoConversions_allConversionsOldEG_*_*',
92  'keep recoTracks_ckfOutInTracksFromConversions_*_*',
93  'keep recoTracks_ckfInOutTracksFromConversions_*_*',
94  'keep recoTrackExtras_ckfOutInTracksFromConversions_*_*',
95  'keep recoTrackExtras_ckfInOutTracksFromConversions_*_*',
96  'keep TrackingRecHitsOwned_ckfOutInTracksFromConversions_*_*',
97  'keep TrackingRecHitsOwned_ckfInOutTracksFromConversions_*_*',
98  'keep recoConversions_uncleanedOnlyAllConversions_*_*',
99  'keep recoTracks_uncleanedOnlyCkfOutInTracksFromConversions_*_*',
100  'keep recoTracks_uncleanedOnlyCkfInOutTracksFromConversions_*_*',
101  'keep recoTrackExtras_uncleanedOnlyCkfOutInTracksFromConversions_*_*',
102  'keep recoTrackExtras_uncleanedOnlyCkfInOutTracksFromConversions_*_*',
103  'keep TrackingRecHitsOwned_uncleanedOnlyCkfOutInTracksFromConversions_*_*',
104  'keep TrackingRecHitsOwned_uncleanedOnlyCkfInOutTracksFromConversions_*_*',
105  'keep *_PhotonIDProd_*_*',
106  'keep *_PhotonIDProdGED_*_*',
107  #'keep *_hfRecoEcalCandidate_*_*',
108  'keep recoRecoEcalCandidates_hfRecoEcalCandidate_*_*',
109  'keep *_hfEMClusters_*_*',
110  'keep *_gedGsfElectronCores_*_*',
111  'keep *_gedGsfElectrons_*_*'
112  )
113 )
114 
115 # AOD content
116 RecoEgammaAOD = cms.PSet(
117  outputCommands = cms.untracked.vstring(
118  'keep recoGsfElectronCores_gsfElectronCores_*_*',
119  'keep recoGsfElectronCores_gedGsfElectronCores_*_*',
120  'keep recoGsfElectrons_gsfElectrons_*_*',
121  'keep recoGsfElectrons_gedGsfElectrons_*_*',
122  'keep recoGsfElectronCores_uncleanedOnlyGsfElectronCores_*_*',
123  'keep recoGsfElectrons_uncleanedOnlyGsfElectrons_*_*',
124  'keep floatedmValueMap_eidRobustLoose_*_*',
125  'keep floatedmValueMap_eidRobustTight_*_*',
126  'keep floatedmValueMap_eidRobustHighEnergy_*_*',
127  'keep floatedmValueMap_eidLoose_*_*',
128  'keep floatedmValueMap_eidTight_*_*',
129  'keep *_egmGedGsfElectronPFIsolation_*_*',
130  'keep *_photonEcalPFClusterIsolationProducer_*_*',
131  'keep *_ootPhotonEcalPFClusterIsolationProducer_*_*',
132  'keep *_electronEcalPFClusterIsolationProducer_*_*',
133  'keep *_photonHcalPFClusterIsolationProducer_*_*',
134  'keep *_ootPhotonHcalPFClusterIsolationProducer_*_*',
135  'keep *_electronHcalPFClusterIsolationProducer_*_*',
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  'drop *_conversions_uncleanedConversions_*',
149  'keep recoConversions_allConversions_*_*',
150  'keep recoConversions_allConversionsOldEG_*_*',
151  'keep recoTracks_ckfOutInTracksFromConversions_*_*',
152  'keep recoTracks_ckfInOutTracksFromConversions_*_*',
153  'keep recoConversions_uncleanedOnlyAllConversions_*_*',
154  'keep recoTracks_uncleanedOnlyCkfOutInTracksFromConversions_*_*',
155  'keep recoTracks_uncleanedOnlyCkfInOutTracksFromConversions_*_*',
156  'keep *_PhotonIDProd_*_*',
157  'keep *_PhotonIDProdGED_*_*',
158  'keep *_hfRecoEcalCandidate_*_*',
159  'keep recoRecoEcalCandidates_hfRecoEcalCandidate_*_*',
160  'keep *_hfEMClusters_*_*',
161  'keep *_gedGsfElectronCores_*_*',
162  'keep *_gedGsfElectrons_*_*'
163  )
164 )
165 
166 # mods for HGCAL
167 _phase2_hgcal_RecoEgamma_tokeep = [ 'keep *_ecalDrivenGsfElectronCores_*_*',
168  'keep *_ecalDrivenGsfElectrons_*_*',
169  'keep *_ecalDrivenGsfElectronCoresFromMultiCl_*_*',
170  'keep *_ecalDrivenGsfElectronsFromMultiCl_*_*',
171  'keep *_photonCoreFromMultiCl_*_*',
172  'keep *_photonsFromMultiCl_*_*']
173 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
174 phase2_hgcal.toModify( RecoEgammaFEVT, outputCommands = RecoEgammaFEVT.outputCommands + _phase2_hgcal_RecoEgamma_tokeep
175 )
176 phase2_hgcal.toModify( RecoEgammaRECO, outputCommands = RecoEgammaRECO.outputCommands + _phase2_hgcal_RecoEgamma_tokeep )
177 phase2_hgcal.toModify( RecoEgammaAOD, outputCommands = RecoEgammaAOD.outputCommands + _phase2_hgcal_RecoEgamma_tokeep )
178 
179 from Configuration.Eras.Modifier_pA_2016_cff import pA_2016
180 from Configuration.Eras.Modifier_peripheralPbPb_cff import peripheralPbPb
181 #HI-specific products needed in pp scenario special configurations
182 for e in [pA_2016, peripheralPbPb]:
183  for ec in [RecoEgammaAOD.outputCommands, RecoEgammaRECO.outputCommands, RecoEgammaFEVT.outputCommands]:
184  e.toModify( ec, func=lambda outputCommands: outputCommands.extend(['keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerppGED_*_*',
185  'keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerpp_*_*'
186  ])
187  )