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_lowPtGsfElectronID_*_*')
52 _phase2_hgcal_RecoEgamma_tokeep = [
'keep *_ecalDrivenGsfElectronCores_*_*',
53 'keep *_ecalDrivenGsfElectrons_*_*',
54 'keep *_ecalDrivenGsfElectronCoresFromMultiCl_*_*',
55 'keep *_ecalDrivenGsfElectronsFromMultiCl_*_*',
56 'keep *_photonCoreFromMultiCl_*_*',
57 'keep *_photonsFromMultiCl_*_*']
59 from Configuration.Eras.Modifier_phase2_hgcal_cff
import phase2_hgcal
60 phase2_hgcal.toModify( RecoEgammaAOD,
61 outputCommands = RecoEgammaAOD.outputCommands + _phase2_hgcal_RecoEgamma_tokeep )
63 from Configuration.Eras.Modifier_pA_2016_cff
import pA_2016
64 from Configuration.Eras.Modifier_peripheralPbPb_cff
import peripheralPbPb
65 from Configuration.Eras.Modifier_pp_on_AA_2018_cff
import pp_on_AA_2018
66 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff
import pp_on_XeXe_2017
67 from Configuration.Eras.Modifier_ppRef_2017_cff
import ppRef_2017
69 for e
in [pA_2016, peripheralPbPb, pp_on_AA_2018, pp_on_XeXe_2017, ppRef_2017]:
70 e.toModify( RecoEgammaAOD.outputCommands,
71 func=
lambda outputCommands: outputCommands.extend([
'keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerppGED_*_*',
72 'keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerpp_*_*',
73 'keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerppIsland_*_*',
74 'keep recoPhotonCores_islandPhotonCore_*_*',
75 'keep recoPhotons_islandPhotons_*_*'])
79 RecoEgammaRECO = cms.PSet(
80 outputCommands = cms.untracked.vstring(
81 'keep *_gedPhotonCore_*_*',
82 'keep *_gedPhotons_*_*',
83 'keep recoPhotons_mustachePhotons_*_*',
84 'keep recoPhotonCores_mustachePhotonCore_*_*',
85 'keep recoTrackExtras_ckfOutInTracksFromConversions_*_*',
86 'keep recoTrackExtras_ckfInOutTracksFromConversions_*_*',
87 'keep TrackingRecHitsOwned_ckfOutInTracksFromConversions_*_*',
88 'keep TrackingRecHitsOwned_ckfInOutTracksFromConversions_*_*',
89 'keep recoTrackExtras_uncleanedOnlyCkfOutInTracksFromConversions_*_*',
90 'keep recoTrackExtras_uncleanedOnlyCkfInOutTracksFromConversions_*_*',
91 'keep TrackingRecHitsOwned_uncleanedOnlyCkfOutInTracksFromConversions_*_*',
92 'keep TrackingRecHitsOwned_uncleanedOnlyCkfInOutTracksFromConversions_*_*')
94 RecoEgammaRECO.outputCommands.extend(RecoEgammaAOD.outputCommands)
97 RecoEgammaFEVT = cms.PSet(
98 outputCommands = cms.untracked.vstring(
99 'keep *_gsfElectronCores_*_*',
100 'keep *_gsfElectrons_*_*',
101 'keep *_uncleanedOnlyGsfElectronCores_*_*',
102 'keep *_uncleanedOnlyGsfElectrons_*_*',
103 'keep *_eidRobustLoose_*_*',
104 'keep *_eidRobustTight_*_*',
105 'keep *_eidRobustHighEnergy_*_*',
106 'keep *_eidLoose_*_*',
107 'keep *_eidTight_*_*',
108 'keep *_egmGedGsfElectronPFPileUpIsolation_*_*',
109 'keep *_egmGedGsfElectronPFNoPileUpIsolation_*_*',
110 'keep *_egmGsfElectronIDs_*_*',
111 'keep *_egmPhotonIDs_*_*',
112 'keep *_conversions_*_*',
113 'drop *_conversions_uncleanedConversions_*',
114 'keep *_mustacheConversions_*_*',
115 'keep *_gedPhotonCore_*_*',
116 'keep *_gedPhotons_*_*',
117 'keep *_photonCore_*_*',
118 'keep *_photons_*_*',
119 'keep *_mustachePhotonCore_*_*',
120 'keep *_mustachePhotons_*_*',
121 'keep *_ootPhotonCore_*_*',
122 'keep *_ootPhotons_*_*',
123 'keep *_allConversions_*_*',
124 'keep *_allConversionsOldEG_*_*',
125 'keep *_ckfOutInTracksFromConversions_*_*',
126 'keep *_ckfInOutTracksFromConversions_*_*',
127 'keep *_uncleanedOnlyAllConversions_*_*',
128 'keep *_uncleanedOnlyCkfOutInTracksFromConversions_*_*',
129 'keep *_uncleanedOnlyCkfInOutTracksFromConversions_*_*')
131 RecoEgammaFEVT.outputCommands.extend(RecoEgammaRECO.outputCommands)