CMS 3D CMS Logo

MicroEventContent_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 MicroEventContent = cms.PSet(
4  outputCommands = cms.untracked.vstring(
5  'keep *_slimmedPhotons_*_*',
6  'keep *_slimmedOOTPhotons_*_*',
7  'keep *_slimmedElectrons_*_*',
8  'keep *_slimmedMuons_*_*',
9  'keep recoTrackExtras_slimmedMuonTrackExtras_*_*',
10  'keep TrackingRecHitsOwned_slimmedMuonTrackExtras_*_*',
11  'keep SiPixelClusteredmNewDetSetVector_slimmedMuonTrackExtras_*_*',
12  'keep SiStripClusteredmNewDetSetVector_slimmedMuonTrackExtras_*_*',
13  'keep *_slimmedTaus_*_*',
14  'keep *_slimmedTausBoosted_*_*',
15  'keep *_slimmedCaloJets_*_*',
16  'keep *_slimmedJPTJets_*_*',
17  'keep *_slimmedJets_*_*',
18  # keep slimmedJets TagInfos, currently only PixelClusterTagInfo
19  'keep recoBaseTagInfosOwned_slimmedJets_*_*',
20  'keep *_slimmedJetsAK8_*_*',
21  # drop content created by MINIAOD DeepDoubleB production
22  'drop recoBaseTagInfosOwned_slimmedJetsAK8_*_*',
23  'keep *_slimmedJetsPuppi_*_*',
24  'keep *_slimmedMETs_*_*',
25  'keep *_slimmedMETsPuppi_*_*',
26  'keep *_slimmedSecondaryVertices_*_*',
27  'keep *_slimmedLambdaVertices_*_*',
28  'keep *_slimmedKshortVertices_*_*',
29  'keep *_slimmedJetsAK8PFPuppiSoftDropPacked_SubJets_*',
30 
31  'keep recoPhotonCores_reducedEgamma_*_*',
32  'keep recoGsfElectronCores_reducedEgamma_*_*',
33  'keep recoConversions_reducedEgamma_*_*',
34  'keep recoSuperClusters_reducedEgamma_*_*',
35  'keep recoCaloClusters_reducedEgamma_*_*',
36  'keep EcalRecHitsSorted_reducedEgamma_*_*',
37  'keep recoGsfTracks_reducedEgamma_*_*',
38  'keep HBHERecHitsSorted_reducedEgamma_*_*',
39  'keep *_slimmedHcalRecHits_*_*',
40  'drop *_*_caloTowers_*',
41  'drop *_*_pfCandidates_*',
42  'drop *_*_genJets_*',
43  'keep *_offlineBeamSpot_*_*',
44  'keep *_offlineSlimmedPrimaryVertices_*_*',
45  'keep *_offlineSlimmedPrimaryVerticesWithBS_*_*',
46  'keep patPackedCandidates_packedPFCandidates_*_*',
47  'keep *_isolatedTracks_*_*',
48  # low energy conversions for BPH
49  'keep *_oniaPhotonCandidates_*_*',
50 
51  'keep *_bunchSpacingProducer_*_*',
52 
53  'keep double_fixedGridRhoAll__*',
54  'keep double_fixedGridRhoFastjetAll__*',
55  'keep double_fixedGridRhoFastjetAllTmp__*',
56  'keep double_fixedGridRhoFastjetAllCalo__*',
57  'keep double_fixedGridRhoFastjetCentral_*_*',
58  'keep double_fixedGridRhoFastjetCentralCalo__*',
59  'keep double_fixedGridRhoFastjetCentralChargedPileUp__*',
60  'keep double_fixedGridRhoFastjetCentralNeutral__*',
61 
62  'keep *_slimmedPatTrigger_*_*',
63  'keep patPackedTriggerPrescales_patTrigger__*',
64  'keep patPackedTriggerPrescales_patTrigger_l1max_*',
65  'keep patPackedTriggerPrescales_patTrigger_l1min_*',
66  # old L1 trigger
67  'keep *_l1extraParticles_*_*',
68  'keep L1GlobalTriggerReadoutRecord_gtDigis_*_*',
69  # stage 2 L1 trigger
70  'keep GlobalExtBlkBXVector_simGtExtUnprefireable_*_*',
71  'keep *_gtStage2Digis__*',
72  'keep *_gmtStage2Digis_Muon_*',
73  'keep *_caloStage2Digis_Jet_*',
74  'keep *_caloStage2Digis_Tau_*',
75  'keep *_caloStage2Digis_EGamma_*',
76  'keep *_caloStage2Digis_EtSum_*',
77  # HLT
78  'keep *_TriggerResults_*_HLT',
79  'keep *_TriggerResults_*_*', # for MET filters (a catch all for the moment, but ideally it should be only the current process)
80  'keep patPackedCandidates_lostTracks_*_*',
81  'keep HcalNoiseSummary_hcalnoise__*',
82  'keep recoCSCHaloData_CSCHaloData_*_*',
83  'keep recoBeamHaloSummary_BeamHaloSummary_*_*',
84  # Lumi
85  'keep LumiScalerss_scalersRawToDigi_*_*',
86  # CTPPS
87  'keep CTPPSLocalTrackLites_ctppsLocalTrackLiteProducer_*_*',
88  'keep recoForwardProtons_ctppsProtons_*_*',
89  # displacedStandAlone muon collection for EXO
90  'keep recoTracks_displacedStandAloneMuons__*',
91  'keep recoTracks_displacedGlobalMuons__*',
92  'keep recoTracks_displacedTracks__*',
93  # L1 prefiring weights
94  'keep *_prefiringweight_*_*',
95  # patLowPtElectrons
96  'keep *_slimmedLowPtElectrons_*_*',
97  'keep *_gsfTracksOpenConversions_*_*',
98  # patDisplacedMuons
99  'keep *_slimmedDisplacedMuons_*_*',
100  'keep recoTrackExtras_slimmedDisplacedMuonTrackExtras_*_*',
101  'keep TrackingRecHitsOwned_slimmedDisplacedMuonTrackExtras_*_*',
102  'keep SiPixelClusteredmNewDetSetVector_slimmedDisplacedMuonTrackExtras_*_*',
103  'keep SiStripClusteredmNewDetSetVector_slimmedDisplacedMuonTrackExtras_*_*',
104  )
105 )
106 
107 MicroEventContentGEN = cms.PSet(
108  outputCommands = cms.untracked.vstring(
109  'keep patPackedGenParticles_packedGenParticles_*_*',
110  'keep recoGenParticles_prunedGenParticles_*_*',
111  'keep *_packedPFCandidateToGenAssociation_*_*',
112  'keep *_lostTracksToGenAssociation_*_*',
113  'keep LHEEventProduct_*_*_*',
114  'keep GenFilterInfo_*_*_*',
115  'keep GenLumiInfoHeader_generator_*_*',
116  'keep GenLumiInfoProduct_*_*_*',
117  'keep GenEventInfoProduct_generator_*_*',
118  'keep recoGenParticles_genPUProtons_*_*',
119  'keep *_slimmedGenJetsFlavourInfos_*_*',
120  'keep *_slimmedGenJets__*',
121  'keep *_slimmedGenJetsAK8__*',
122  'keep *_slimmedGenJetsAK8SoftDropSubJets__*',
123  'keep *_genMetTrue_*_*',
124  # RUN
125  'keep LHERunInfoProduct_*_*_*',
126  'keep GenRunInfoProduct_*_*_*',
127  'keep *_genParticles_xyz0_*',
128  'keep *_genParticles_t0_*',
129  )
130 )
131 
132 # --- Only for 2018 data & MC
133 _run2_HCAL_2018_extraCommands = ["keep *_packedPFCandidates_hcalDepthEnergyFractions_*"]
134 from Configuration.Eras.Modifier_run2_HCAL_2018_cff import run2_HCAL_2018
135 run2_HCAL_2018.toModify(MicroEventContent, outputCommands = MicroEventContent.outputCommands + _run2_HCAL_2018_extraCommands)
136 
137 _run3_common_extraCommands = ["drop *_packedPFCandidates_hcalDepthEnergyFractions_*"]
138 from Configuration.Eras.Modifier_run3_common_cff import run3_common
139 run3_common.toModify(MicroEventContent, outputCommands = MicroEventContent.outputCommands + _run3_common_extraCommands)
140 # ---
141 
142 _pp_on_AA_extraCommands = [
143  'keep patPackedCandidates_hiPixelTracks_*_*',
144  'keep patPackedCandidates_packedPFCandidatesRemoved_*_*',
145  'keep *_packedCandidateMuonID_*_*',
146  'keep *_slimmedJets_pfCandidates_*',
147  'keep floatedmValueMap_packedPFCandidateTrackChi2_*_*',
148  'keep floatedmValueMap_lostTrackChi2_*_*',
149  'keep recoCentrality_hiCentrality_*_*',
150  'keep int_centralityBin_*_*',
151  'keep recoHFFilterInfo_hiHFfilters_*_*',
152  'keep recoClusterCompatibility_hiClusterCompatibility_*_*',
153  'keep *_offlineSlimmedPrimaryVerticesRecovery_*_*',
154  'keep *_hiEvtPlane_*_*',
155  'keep *_hiEvtPlaneFlat_*_*',
156  'keep QIE10DataFrameHcalDataFrameContainer_hcalDigis_ZDC_*',
157 ]
158 
159 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
160 pp_on_AA.toModify(MicroEventContent, outputCommands = MicroEventContent.outputCommands + _pp_on_AA_extraCommands)
161 
162 _upc_extraCommands = [
163  'keep patPackedCandidates_hiPixelTracks_*_*',
164  'keep floatedmValueMap_packedPFCandidateTrackChi2_*_*',
165  'keep floatedmValueMap_lostTrackChi2_*_*',
166  'keep recoCentrality_hiCentrality_*_*',
167  'keep recoClusterCompatibility_hiClusterCompatibility_*_*',
168  'keep QIE10DataFrameHcalDataFrameContainer_hcalDigis_ZDC_*',
169  'keep *_dedxEstimator_*_*',
170 ]
171 
172 from Configuration.Eras.Modifier_run3_upc_cff import run3_upc
173 run3_upc.toModify(MicroEventContent, outputCommands = MicroEventContent.outputCommands + _upc_extraCommands)
174 
175 _ppRef_extraCommands = [
176  'keep floatedmValueMap_*TrackChi2_*_*',
177  'keep recoClusterCompatibility_hiClusterCompatibility_*_*',
178 ]
179 
180 from Configuration.Eras.Modifier_ppRef_2024_cff import ppRef_2024
181 ppRef_2024.toModify(MicroEventContent, outputCommands = MicroEventContent.outputCommands + _ppRef_extraCommands)
182 
183 _zdc_extraCommands = ['keep QIE10DataFrameHcalDataFrameContainer_hcalDigis_ZDC_*']
184 from Configuration.ProcessModifiers.storeZDCDigis_cff import storeZDCDigis
185 storeZDCDigis.toModify(MicroEventContent, outputCommands = MicroEventContent.outputCommands + _zdc_extraCommands)
186 
187 MicroEventContentMC = cms.PSet(
188  outputCommands = cms.untracked.vstring(MicroEventContent.outputCommands)
189 )
190 MicroEventContentMC.outputCommands += MicroEventContentGEN.outputCommands
191 MicroEventContentMC.outputCommands += [
192  'keep PileupSummaryInfos_slimmedAddPileupInfo_*_*',
193  # RUN
194  'keep L1GtTriggerMenuLite_l1GtTriggerMenuLite__*'
195  ]
196 _pp_on_AA_MC_extraCommands = ['keep *_packedGenParticlesSignal_*_*','keep edmGenHIEvent_heavyIon_*_*']
197 pp_on_AA.toModify(MicroEventContentMC, outputCommands = MicroEventContentMC.outputCommands + _pp_on_AA_MC_extraCommands)
198 
199 from Configuration.Eras.Modifier_strips_vfp30_2016_cff import strips_vfp30_2016
200 strips_vfp30_2016.toModify(MicroEventContentMC, outputCommands = MicroEventContentMC.outputCommands + [
201  'keep *_simAPVsaturation_SimulatedAPVDynamicGain_*'
202 ])
203 
204 MiniAODOverrideBranchesSplitLevel = cms.untracked.VPSet( [
205 cms.untracked.PSet(branch = cms.untracked.string("patPackedCandidates_packedPFCandidates__*"),splitLevel=cms.untracked.int32(99)),
206 cms.untracked.PSet(branch = cms.untracked.string("recoGenParticles_prunedGenParticles__*"),splitLevel=cms.untracked.int32(99)),
207 cms.untracked.PSet(branch = cms.untracked.string("patTriggerObjectStandAlones_slimmedPatTrigger__*"),splitLevel=cms.untracked.int32(99)),
208 cms.untracked.PSet(branch = cms.untracked.string("patPackedGenParticles_packedGenParticles__*"),splitLevel=cms.untracked.int32(99)),
209 cms.untracked.PSet(branch = cms.untracked.string("patJets_slimmedJets__*"),splitLevel=cms.untracked.int32(99)),
210 cms.untracked.PSet(branch = cms.untracked.string("recoVertexs_offlineSlimmedPrimaryVertices__*"),splitLevel=cms.untracked.int32(99)),
211 cms.untracked.PSet(branch = cms.untracked.string("recoVertexs_offlineSlimmedPrimaryVerticesWithBS__*"),splitLevel=cms.untracked.int32(99)),
212 cms.untracked.PSet(branch = cms.untracked.string("recoCaloClusters_reducedEgamma_reducedESClusters_*"),splitLevel=cms.untracked.int32(99)),
213 cms.untracked.PSet(branch = cms.untracked.string("EcalRecHitsSorted_reducedEgamma_reducedEBRecHits_*"),splitLevel=cms.untracked.int32(99)),
214 cms.untracked.PSet(branch = cms.untracked.string("EcalRecHitsSorted_reducedEgamma_reducedEERecHits_*"),splitLevel=cms.untracked.int32(99)),
215 cms.untracked.PSet(branch = cms.untracked.string("recoGenJets_slimmedGenJets__*"),splitLevel=cms.untracked.int32(99)),
216 cms.untracked.PSet(branch = cms.untracked.string("patJets_slimmedJetsPuppi__*"),splitLevel=cms.untracked.int32(99)),
217 cms.untracked.PSet(branch = cms.untracked.string("EcalRecHitsSorted_reducedEgamma_reducedESRecHits_*"),splitLevel=cms.untracked.int32(99)),
218 ])
219 
220 _phase2_hgc_extraCommands = ["keep *_slimmedElectronsHGC_*_*", "keep *_slimmedPhotonsHGC_*_*"]
221 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
222 phase2_hgcal.toModify(MicroEventContentMC, outputCommands = MicroEventContentMC.outputCommands + _phase2_hgc_extraCommands)
223 
224 _phase2_timing_extraCommands = ["keep *_offlineSlimmedPrimaryVertices4D_*_*"]
225 from Configuration.Eras.Modifier_phase2_timing_cff import phase2_timing
226 phase2_timing.toModify(MicroEventContentMC, outputCommands = MicroEventContentMC.outputCommands + _phase2_timing_extraCommands)