1 import FWCore.ParameterSet.Config
as cms
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 'drop *_conversions_uncleanedConversions_*',
21 'keep *_gedPhotonCore_*_*',
22 'keep *_gedPhotonsTmp_*_*',
23 'keep *_gedPhotons_*_*',
24 'keep *_particleBasedIsolation_*_*',
25 'keep *_photonCore_*_*',
27 'keep *_mustachePhotonCore_*_*',
28 'keep *_mustachePhotons_*_*',
29 'keep *_ootPhotonCore_*_*',
30 'keep *_ootPhotons_*_*',
31 'keep *_allConversions_*_*',
32 'keep *_allConversionsOldEG_*_*',
33 'keep *_ckfOutInTracksFrom*Conversions_*_*',
34 'keep *_ckfInOutTracksFrom*Conversions_*_*',
35 'keep *_uncleanedOnlyAllConversions_*_*',
36 'keep *_uncleanedOnlyCkfOutInTracksFromConversions_*_*',
37 'keep *_uncleanedOnlyCkfInOutTracksFromConversions_*_*',
38 'keep *_PhotonIDProd_*_*',
39 'keep *_PhotonIDProdGED_*_*',
40 'keep *_hfRecoEcalCandidate_*_*',
41 'keep *_hfEMClusters_*_*',
42 'keep *_gedGsfElectronCores_*_*',
43 'keep *_gedGsfElectrons_*_*' 48 RecoEgammaRECO = cms.PSet(
49 outputCommands = cms.untracked.vstring(
50 'keep recoGsfElectronCores_gsfElectronCores_*_*',
51 'keep recoGsfElectronCores_gedGsfElectronCores_*_*',
52 'keep recoGsfElectrons_gsfElectrons_*_*',
53 'keep recoGsfElectrons_gedGsfElectrons_*_*',
54 'keep recoGsfElectronCores_uncleanedOnlyGsfElectronCores_*_*',
55 'keep recoGsfElectrons_uncleanedOnlyGsfElectrons_*_*',
56 'keep floatedmValueMap_eidRobustLoose_*_*',
57 'keep floatedmValueMap_eidRobustTight_*_*',
58 'keep floatedmValueMap_eidRobustHighEnergy_*_*',
59 'keep floatedmValueMap_eidLoose_*_*',
60 'keep floatedmValueMap_eidTight_*_*',
61 'keep *_egmGedGsfElectronPFIsolation_*_*',
62 'drop *_egmGsfElectronIDs_*_*',
63 'drop *_egmPhotonIDs_*_*',
64 'keep *_gedPhotonCore_*_*',
65 'keep *_gedPhotons_*_*',
66 'keep *_particleBasedIsolation_*_*',
68 'keep recoPhotons_mustachePhotons_*_*',
69 'keep recoPhotonCores_mustachePhotonCore_*_*',
70 'keep recoPhotons_ootPhotons_*_*',
71 'keep recoPhotonCores_ootPhotonCore_*_*',
72 'keep recoPhotons_photons_*_*',
73 'keep recoPhotonCores_photonCore_*_*',
74 'keep recoConversions_conversions_*_*',
75 'keep recoConversions_mustacheConversions_*_*',
76 'drop *_conversions_uncleanedConversions_*',
77 'drop *_gedPhotonsTmp_valMapPFEgammaCandToPhoton_*',
78 'keep recoConversions_allConversions_*_*',
79 'keep recoConversions_allConversionsOldEG_*_*',
80 'keep recoTracks_ckfOutInTracksFromConversions_*_*',
81 'keep recoTracks_ckfInOutTracksFromConversions_*_*',
82 'keep recoTrackExtras_ckfOutInTracksFromConversions_*_*',
83 'keep recoTrackExtras_ckfInOutTracksFromConversions_*_*',
84 'keep TrackingRecHitsOwned_ckfOutInTracksFromConversions_*_*',
85 'keep TrackingRecHitsOwned_ckfInOutTracksFromConversions_*_*',
86 'keep recoConversions_uncleanedOnlyAllConversions_*_*',
87 'keep recoTracks_uncleanedOnlyCkfOutInTracksFromConversions_*_*',
88 'keep recoTracks_uncleanedOnlyCkfInOutTracksFromConversions_*_*',
89 'keep recoTrackExtras_uncleanedOnlyCkfOutInTracksFromConversions_*_*',
90 'keep recoTrackExtras_uncleanedOnlyCkfInOutTracksFromConversions_*_*',
91 'keep TrackingRecHitsOwned_uncleanedOnlyCkfOutInTracksFromConversions_*_*',
92 'keep TrackingRecHitsOwned_uncleanedOnlyCkfInOutTracksFromConversions_*_*',
93 'keep *_PhotonIDProd_*_*',
94 'keep *_PhotonIDProdGED_*_*',
96 'keep recoRecoEcalCandidates_hfRecoEcalCandidate_*_*',
97 'keep *_hfEMClusters_*_*',
98 'keep *_gedGsfElectronCores_*_*',
99 'keep *_gedGsfElectrons_*_*' 104 RecoEgammaAOD = cms.PSet(
105 outputCommands = cms.untracked.vstring(
106 'keep recoGsfElectronCores_gsfElectronCores_*_*',
107 'keep recoGsfElectronCores_gedGsfElectronCores_*_*',
108 'keep recoGsfElectrons_gsfElectrons_*_*',
109 'keep recoGsfElectrons_gedGsfElectrons_*_*',
110 'keep recoGsfElectronCores_uncleanedOnlyGsfElectronCores_*_*',
111 'keep recoGsfElectrons_uncleanedOnlyGsfElectrons_*_*',
112 'keep floatedmValueMap_eidRobustLoose_*_*',
113 'keep floatedmValueMap_eidRobustTight_*_*',
114 'keep floatedmValueMap_eidRobustHighEnergy_*_*',
115 'keep floatedmValueMap_eidLoose_*_*',
116 'keep floatedmValueMap_eidTight_*_*',
117 'keep *_egmGedGsfElectronPFIsolation_*_*',
118 'drop *_egmGsfElectronIDs_*_*',
119 'drop *_egmPhotonIDs_*_*',
120 'keep recoPhotonCores_gedPhotonCore_*_*',
121 'keep recoPhotons_gedPhotons_*_*',
122 'keep *_particleBasedIsolation_*_*',
123 'drop *_gedPhotons_valMapPFEgammaCandToPhoton_*',
124 'keep recoPhotonCores_photonCore_*_*',
125 'keep recoPhotons_photons_*_*',
126 'keep recoPhotonCores_ootPhotonCore_*_*',
127 'keep recoPhotons_ootPhotons_*_*',
128 'keep recoConversions_conversions_*_*',
129 'keep recoConversions_mustacheConversions_*_*',
130 'drop *_conversions_uncleanedConversions_*',
131 'keep recoConversions_allConversions_*_*',
132 'keep recoConversions_allConversionsOldEG_*_*',
133 'keep recoTracks_ckfOutInTracksFromConversions_*_*',
134 'keep recoTracks_ckfInOutTracksFromConversions_*_*',
135 'keep recoConversions_uncleanedOnlyAllConversions_*_*',
136 'keep recoTracks_uncleanedOnlyCkfOutInTracksFromConversions_*_*',
137 'keep recoTracks_uncleanedOnlyCkfInOutTracksFromConversions_*_*',
138 'keep *_PhotonIDProd_*_*',
139 'keep *_PhotonIDProdGED_*_*',
140 'keep *_hfRecoEcalCandidate_*_*',
141 'keep recoRecoEcalCandidates_hfRecoEcalCandidate_*_*',
142 'keep *_hfEMClusters_*_*',
143 'keep *_gedGsfElectronCores_*_*',
144 'keep *_gedGsfElectrons_*_*' 149 _phase2_hgcal_RecoEgamma_tokeep = [
'keep *_ecalDrivenGsfElectronCores_*_*',
150 'keep *_ecalDrivenGsfElectrons_*_*',
151 'keep *_ecalDrivenGsfElectronCoresFromMultiCl_*_*',
152 'keep *_ecalDrivenGsfElectronsFromMultiCl_*_*',
153 'keep *_photonCoreFromMultiCl_*_*',
154 'keep *_photonsFromMultiCl_*_*']
155 from Configuration.Eras.Modifier_phase2_hgcal_cff
import phase2_hgcal
156 phase2_hgcal.toModify( RecoEgammaFEVT, outputCommands = RecoEgammaFEVT.outputCommands + _phase2_hgcal_RecoEgamma_tokeep
158 phase2_hgcal.toModify( RecoEgammaRECO, outputCommands = RecoEgammaRECO.outputCommands + _phase2_hgcal_RecoEgamma_tokeep )
159 phase2_hgcal.toModify( RecoEgammaAOD, outputCommands = RecoEgammaAOD.outputCommands + _phase2_hgcal_RecoEgamma_tokeep )
161 from Configuration.Eras.Modifier_pA_2016_cff
import pA_2016
162 from Configuration.Eras.Modifier_peripheralPbPb_cff
import peripheralPbPb
163 from Configuration.Eras.Modifier_pp_on_AA_2018_cff
import pp_on_AA_2018
164 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff
import pp_on_XeXe_2017
165 from Configuration.Eras.Modifier_ppRef_2017_cff
import ppRef_2017
167 for e
in [pA_2016, peripheralPbPb, pp_on_AA_2018, pp_on_XeXe_2017, ppRef_2017]:
168 for ec
in [RecoEgammaAOD.outputCommands, RecoEgammaRECO.outputCommands, RecoEgammaFEVT.outputCommands]:
169 e.toModify( ec, func=
lambda outputCommands: outputCommands.extend([
'keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerppGED_*_*',
170 'keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerpp_*_*',
171 'keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerppIsland_*_*',
172 'keep recoPhotonCores_islandPhotonCore_*_*',
173 'keep recoPhotons_islandPhotons_*_*'