1 import FWCore.ParameterSet.Config
as cms
4 RecoEgammaAOD = cms.PSet(
5 outputCommands = cms.untracked.vstring(
6 'keep recoGsfElectronCores_gsfElectronCores_*_*',
7 'keep recoGsfElectronCores_gedGsfElectronCores_*_*',
8 'keep recoGsfElectrons_gsfElectrons_*_*',
9 'keep recoGsfElectrons_gedGsfElectrons_*_*',
10 'keep recoGsfElectronCores_uncleanedOnlyGsfElectronCores_*_*',
11 'keep recoGsfElectrons_uncleanedOnlyGsfElectrons_*_*',
12 'keep floatedmValueMap_eidRobustLoose_*_*',
13 'keep floatedmValueMap_eidRobustTight_*_*',
14 'keep floatedmValueMap_eidRobustHighEnergy_*_*',
15 'keep floatedmValueMap_eidLoose_*_*',
16 'keep floatedmValueMap_eidTight_*_*',
17 'keep *_egmGedGsfElectronPFIsolation_*_*',
18 'keep recoPhotonCores_gedPhotonCore_*_*',
19 'keep recoPhotons_gedPhotons_*_*',
20 'keep *_particleBasedIsolation_*_*',
21 'keep recoPhotonCores_photonCore_*_*',
22 'keep recoPhotons_photons_*_*',
23 'keep recoPhotonCores_ootPhotonCore_*_*',
24 'keep recoPhotons_ootPhotons_*_*',
25 'keep recoConversions_conversions_*_*',
26 'drop recoConversions_conversions_uncleanedConversions_*',
27 'keep recoConversions_mustacheConversions_*_*',
28 'keep *_gsfTracksOpenConversions_*_*',
29 'keep recoConversions_allConversions_*_*',
30 'keep recoConversions_allConversionsOldEG_*_*',
31 'keep recoTracks_ckfOutInTracksFromConversions_*_*',
32 'keep recoTracks_ckfInOutTracksFromConversions_*_*',
33 'keep recoConversions_uncleanedOnlyAllConversions_*_*',
34 'keep recoTracks_uncleanedOnlyCkfOutInTracksFromConversions_*_*',
35 'keep recoTracks_uncleanedOnlyCkfInOutTracksFromConversions_*_*',
36 'keep *_PhotonIDProd_*_*',
37 'keep *_PhotonIDProdGED_*_*',
38 'keep *_hfRecoEcalCandidate_*_*',
39 'keep *_hfEMClusters_*_*',
40 'keep *_gedGsfElectronCores_*_*',
41 'keep *_gedGsfElectrons_*_*',
42 'keep recoCaloClusters_lowPtGsfElectronSuperClusters_*_*',
43 'keep recoGsfElectrons_lowPtGsfElectrons_*_*',
44 'keep recoGsfElectronCores_lowPtGsfElectronCores_*_*',
45 'keep recoGsfTracks_lowPtGsfEleGsfTracks_*_*',
46 'keep *_lowPtGsfToTrackLinks_*_*',
47 'keep recoSuperClusters_lowPtGsfElectronSuperClusters_*_*',
48 'keep floatedmValueMap_lowPtGsfElectronSeedValueMaps_*_*',
49 'keep floatedmValueMap_rekeyLowPtGsfElectronSeedValueMaps_*_*',
50 'keep floatedmValueMap_lowPtGsfElectronID_*_*')
53 _phase2_hgcal_RecoEgamma_tokeep = [
'keep *_ecalDrivenGsfElectronCores_*_*',
54 'keep *_ecalDrivenGsfElectrons_*_*',
55 'keep *_ecalDrivenGsfElectronCoresHGC_*_*',
56 'keep *_ecalDrivenGsfElectronsHGC_*_*',
57 'keep *_photonCoreHGC_*_*',
58 'keep *_photonsHGC_*_*']
60 from Configuration.Eras.Modifier_phase2_hgcal_cff
import phase2_hgcal
61 phase2_hgcal.toModify( RecoEgammaAOD,
62 outputCommands = RecoEgammaAOD.outputCommands + _phase2_hgcal_RecoEgamma_tokeep )
64 from Configuration.Eras.Modifier_pA_2016_cff
import pA_2016
65 from Configuration.Eras.Modifier_peripheralPbPb_cff
import peripheralPbPb
66 from Configuration.ProcessModifiers.pp_on_AA_cff
import pp_on_AA
67 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff
import pp_on_XeXe_2017
68 from Configuration.Eras.Modifier_ppRef_2017_cff
import ppRef_2017
70 for e
in [pA_2016, peripheralPbPb, pp_on_AA, pp_on_XeXe_2017, ppRef_2017]:
71 e.toModify( RecoEgammaAOD.outputCommands,
72 func=
lambda outputCommands: outputCommands.extend([
'keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerppGED_*_*',
73 'keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerpp_*_*',
74 'keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerppIsland_*_*',
75 'keep recoPhotonCores_islandPhotonCore_*_*',
76 'keep recoPhotons_islandPhotons_*_*'])
80 RecoEgammaRECO = cms.PSet(
81 outputCommands = cms.untracked.vstring(
82 'keep *_gedPhotonCore_*_*',
83 'keep *_gedPhotons_*_*',
84 'keep recoPhotons_mustachePhotons_*_*',
85 'keep recoPhotonCores_mustachePhotonCore_*_*',
86 'keep recoTrackExtras_ckfOutInTracksFromConversions_*_*',
87 'keep recoTrackExtras_ckfInOutTracksFromConversions_*_*',
88 'keep TrackingRecHitsOwned_ckfOutInTracksFromConversions_*_*',
89 'keep TrackingRecHitsOwned_ckfInOutTracksFromConversions_*_*',
90 'keep recoTrackExtras_uncleanedOnlyCkfOutInTracksFromConversions_*_*',
91 'keep recoTrackExtras_uncleanedOnlyCkfInOutTracksFromConversions_*_*',
92 'keep TrackingRecHitsOwned_uncleanedOnlyCkfOutInTracksFromConversions_*_*',
93 'keep TrackingRecHitsOwned_uncleanedOnlyCkfInOutTracksFromConversions_*_*')
95 RecoEgammaRECO.outputCommands.extend(RecoEgammaAOD.outputCommands)
98 RecoEgammaFEVT = cms.PSet(
99 outputCommands = cms.untracked.vstring(
100 'keep *_gsfElectronCores_*_*',
101 'keep *_gsfElectrons_*_*',
102 'keep *_uncleanedOnlyGsfElectronCores_*_*',
103 'keep *_uncleanedOnlyGsfElectrons_*_*',
104 'keep *_eidRobustLoose_*_*',
105 'keep *_eidRobustTight_*_*',
106 'keep *_eidRobustHighEnergy_*_*',
107 'keep *_eidLoose_*_*',
108 'keep *_eidTight_*_*',
109 'keep *_egmGedGsfElectronPFPileUpIsolation_*_*',
110 'keep *_egmGedGsfElectronPFNoPileUpIsolation_*_*',
111 'keep *_egmGsfElectronIDs_*_*',
112 'keep *_egmPhotonIDs_*_*',
113 'keep *_conversions_*_*',
114 'drop *_conversions_uncleanedConversions_*',
115 'keep *_mustacheConversions_*_*',
116 'keep *_gedPhotonCore_*_*',
117 'keep *_gedPhotons_*_*',
118 'keep *_photonCore_*_*',
119 'keep *_photons_*_*',
120 'keep *_mustachePhotonCore_*_*',
121 'keep *_mustachePhotons_*_*',
122 'keep *_ootPhotonCore_*_*',
123 'keep *_ootPhotons_*_*',
124 'keep *_allConversions_*_*',
125 'keep *_allConversionsOldEG_*_*',
126 'keep *_ckfOutInTracksFromConversions_*_*',
127 'keep *_ckfInOutTracksFromConversions_*_*',
128 'keep *_uncleanedOnlyAllConversions_*_*',
129 'keep *_uncleanedOnlyCkfOutInTracksFromConversions_*_*',
130 'keep *_uncleanedOnlyCkfInOutTracksFromConversions_*_*')
132 RecoEgammaFEVT.outputCommands.extend(RecoEgammaRECO.outputCommands)