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  'drop *',
6  'keep *_slimmedPhotons_*_*',
7  'keep *_slimmedOOTPhotons_*_*',
8  'keep *_slimmedElectrons_*_*',
9  'keep *_slimmedMuons_*_*',
10  'keep recoTrackExtras_slimmedMuonTrackExtras_*_*',
11  'keep TrackingRecHitsOwned_slimmedMuonTrackExtras_*_*',
12  'keep SiPixelClusteredmNewDetSetVector_slimmedMuonTrackExtras_*_*',
13  'keep SiStripClusteredmNewDetSetVector_slimmedMuonTrackExtras_*_*',
14  'keep *_slimmedTaus_*_*',
15  'keep *_slimmedTausBoosted_*_*',
16  'keep *_slimmedCaloJets_*_*',
17  'keep *_slimmedJets_*_*',
18  # drop content created by MINIAOD DeepFlavour production
19  'drop 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 *_slimmedMETsNoHF_*_*',
26  'keep *_slimmedMETsPuppi_*_*',
27  'keep *_slimmedSecondaryVertices_*_*',
28  'keep *_slimmedLambdaVertices_*_*',
29  'keep *_slimmedKshortVertices_*_*',
30  'keep *_slimmedJetsAK8PFPuppiSoftDropPacked_SubJets_*',
31 
32  'keep recoPhotonCores_reducedEgamma_*_*',
33  'keep recoGsfElectronCores_reducedEgamma_*_*',
34  'keep recoConversions_reducedEgamma_*_*',
35  'keep recoSuperClusters_reducedEgamma_*_*',
36  'keep recoCaloClusters_reducedEgamma_*_*',
37  'keep EcalRecHitsSorted_reducedEgamma_*_*',
38  'keep recoGsfTracks_reducedEgamma_*_*',
39  'keep HBHERecHitsSorted_reducedEgamma_*_*',
40  'drop *_*_caloTowers_*',
41  'drop *_*_pfCandidates_*',
42  'drop *_*_genJets_*',
43  'keep *_offlineBeamSpot_*_*',
44  'keep *_offlineSlimmedPrimaryVertices_*_*',
45  'keep patPackedCandidates_packedPFCandidates_*_*',
46  'keep *_isolatedTracks_*_*',
47  # low energy conversions for BPH
48  'keep *_oniaPhotonCandidates_*_*',
49 
50  'keep *_bunchSpacingProducer_*_*',
51 
52  'keep double_fixedGridRhoAll__*',
53  'keep double_fixedGridRhoFastjetAll__*',
54  'keep double_fixedGridRhoFastjetAllTmp__*',
55  'keep double_fixedGridRhoFastjetAllCalo__*',
56  'keep double_fixedGridRhoFastjetCentral_*_*',
57  'keep double_fixedGridRhoFastjetCentralCalo__*',
58  'keep double_fixedGridRhoFastjetCentralChargedPileUp__*',
59  'keep double_fixedGridRhoFastjetCentralNeutral__*',
60 
61  'keep *_slimmedPatTrigger_*_*',
62  'keep patPackedTriggerPrescales_patTrigger__*',
63  'keep patPackedTriggerPrescales_patTrigger_l1max_*',
64  'keep patPackedTriggerPrescales_patTrigger_l1min_*',
65  # old L1 trigger
66  'keep *_l1extraParticles_*_*',
67  'keep L1GlobalTriggerReadoutRecord_gtDigis_*_*',
68  # stage 2 L1 trigger
69  'keep *_gtStage2Digis__*',
70  'keep *_gmtStage2Digis_Muon_*',
71  'keep *_caloStage2Digis_Jet_*',
72  'keep *_caloStage2Digis_Tau_*',
73  'keep *_caloStage2Digis_EGamma_*',
74  'keep *_caloStage2Digis_EtSum_*',
75  # HLT
76  'keep *_TriggerResults_*_HLT',
77  'keep *_TriggerResults_*_*', # for MET filters (a catch all for the moment, but ideally it should be only the current process)
78  'keep patPackedCandidates_lostTracks_*_*',
79  'keep HcalNoiseSummary_hcalnoise__*',
80  'keep recoCSCHaloData_CSCHaloData_*_*',
81  'keep recoBeamHaloSummary_BeamHaloSummary_*_*',
82  # Lumi
83  'keep LumiScalerss_scalersRawToDigi_*_*',
84  # CTPPS
85  'keep CTPPSLocalTrackLites_ctppsLocalTrackLiteProducer_*_*',
86  'keep recoForwardProtons_ctppsProtons_*_*',
87  # displacedStandAlone muon collection for EXO
88  'keep recoTracks_displacedStandAloneMuons__*',
89  # L1 prefiring weights
90  'keep *_prefiringweight_*_*',
91  )
92 )
93 
94 MicroEventContentGEN = cms.PSet(
95  outputCommands = cms.untracked.vstring(
96  'keep patPackedGenParticles_packedGenParticles_*_*',
97  'keep recoGenParticles_prunedGenParticles_*_*',
98  'keep LHEEventProduct_*_*_*',
99  'keep GenFilterInfo_*_*_*',
100  'keep GenLumiInfoHeader_generator_*_*',
101  'keep GenLumiInfoProduct_*_*_*',
102  'keep GenEventInfoProduct_generator_*_*',
103  'keep recoGenParticles_genPUProtons_*_*',
104  'keep *_slimmedGenJetsFlavourInfos_*_*',
105  'keep *_slimmedGenJets__*',
106  'keep *_slimmedGenJetsAK8__*',
107  'keep *_slimmedGenJetsAK8SoftDropSubJets__*',
108  'keep *_genMetTrue_*_*',
109  # RUN
110  'keep LHERunInfoProduct_*_*_*',
111  'keep GenRunInfoProduct_*_*_*',
112  'keep *_genParticles_xyz0_*',
113  'keep *_genParticles_t0_*',
114  )
115 )
116 
117 # Only add low pT electrons for bParking era
118 from Configuration.Eras.Modifier_bParking_cff import bParking
119 _bParking_extraCommands = ['keep *_slimmedLowPtElectrons_*_*',
120  'keep recoGsfElectronCores_lowPtGsfElectronCores_*_*',
121  'keep recoSuperClusters_lowPtGsfElectronSuperClusters_*_*',
122  'keep recoCaloClusters_lowPtGsfElectronSuperClusters_*_*',
123  'keep recoGsfTracks_lowPtGsfEleGsfTracks_*_*',
124  'keep floatedmValueMap_lowPtGsfElectronSeedValueMaps_*_*',
125  'keep floatedmValueMap_lowPtGsfElectronID_*_*',
126  'keep *_lowPtGsfLinks_*_*',
127  'keep *_gsfTracksOpenConversions_*_*',
128  ]
129 bParking.toModify(MicroEventContent, outputCommands = MicroEventContent.outputCommands + _bParking_extraCommands)
130 
131 # --- Only for 2018 data & MC
132 _run2_HCAL_2018_extraCommands = ["keep *_packedPFCandidates_hcalDepthEnergyFractions_*"]
133 from Configuration.Eras.Modifier_run2_HCAL_2018_cff import run2_HCAL_2018
134 run2_HCAL_2018.toModify(MicroEventContent, outputCommands = MicroEventContent.outputCommands + _run2_HCAL_2018_extraCommands)
135 
136 _run3_common_extraCommands = ["drop *_packedPFCandidates_hcalDepthEnergyFractions_*"]
137 from Configuration.Eras.Modifier_run3_common_cff import run3_common
138 run3_common.toModify(MicroEventContent, outputCommands = MicroEventContent.outputCommands + _run3_common_extraCommands)
139 # ---
140 
141 MicroEventContentMC = cms.PSet(
142  outputCommands = cms.untracked.vstring(MicroEventContent.outputCommands)
143 )
144 MicroEventContentMC.outputCommands += MicroEventContentGEN.outputCommands
145 MicroEventContentMC.outputCommands += [
146  'keep PileupSummaryInfos_slimmedAddPileupInfo_*_*',
147  # RUN
148  'keep L1GtTriggerMenuLite_l1GtTriggerMenuLite__*'
149  ]
150 
151 from Configuration.Eras.Modifier_strips_vfp30_2016_cff import strips_vfp30_2016
152 strips_vfp30_2016.toModify(MicroEventContentMC, outputCommands = MicroEventContentMC.outputCommands + [
153  'keep *_simAPVsaturation_SimulatedAPVDynamicGain_*'
154 ])
155 
156 MiniAODOverrideBranchesSplitLevel = cms.untracked.VPSet( [
157 cms.untracked.PSet(branch = cms.untracked.string("patPackedCandidates_packedPFCandidates__*"),splitLevel=cms.untracked.int32(99)),
158 cms.untracked.PSet(branch = cms.untracked.string("recoGenParticles_prunedGenParticles__*"),splitLevel=cms.untracked.int32(99)),
159 cms.untracked.PSet(branch = cms.untracked.string("patTriggerObjectStandAlones_slimmedPatTrigger__*"),splitLevel=cms.untracked.int32(99)),
160 cms.untracked.PSet(branch = cms.untracked.string("patPackedGenParticles_packedGenParticles__*"),splitLevel=cms.untracked.int32(99)),
161 cms.untracked.PSet(branch = cms.untracked.string("patJets_slimmedJets__*"),splitLevel=cms.untracked.int32(99)),
162 cms.untracked.PSet(branch = cms.untracked.string("recoVertexs_offlineSlimmedPrimaryVertices__*"),splitLevel=cms.untracked.int32(99)),
163 cms.untracked.PSet(branch = cms.untracked.string("recoCaloClusters_reducedEgamma_reducedESClusters_*"),splitLevel=cms.untracked.int32(99)),
164 cms.untracked.PSet(branch = cms.untracked.string("EcalRecHitsSorted_reducedEgamma_reducedEBRecHits_*"),splitLevel=cms.untracked.int32(99)),
165 cms.untracked.PSet(branch = cms.untracked.string("EcalRecHitsSorted_reducedEgamma_reducedEERecHits_*"),splitLevel=cms.untracked.int32(99)),
166 cms.untracked.PSet(branch = cms.untracked.string("recoGenJets_slimmedGenJets__*"),splitLevel=cms.untracked.int32(99)),
167 cms.untracked.PSet(branch = cms.untracked.string("patJets_slimmedJetsPuppi__*"),splitLevel=cms.untracked.int32(99)),
168 cms.untracked.PSet(branch = cms.untracked.string("EcalRecHitsSorted_reducedEgamma_reducedESRecHits_*"),splitLevel=cms.untracked.int32(99)),
169 ])
170 
171 _phase2_hgc_extraCommands = ["keep *_slimmedElectronsFromMultiCl_*_*", "keep *_slimmedPhotonsFromMultiCl_*_*"]
172 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
173 phase2_hgcal.toModify(MicroEventContentMC, outputCommands = MicroEventContentMC.outputCommands + _phase2_hgc_extraCommands)
174 
175 _phase2_timing_extraCommands = ["keep *_offlineSlimmedPrimaryVertices4D_*_*"]
176 from Configuration.Eras.Modifier_phase2_timing_cff import phase2_timing
177 phase2_timing.toModify(MicroEventContentMC, outputCommands = MicroEventContentMC.outputCommands + _phase2_timing_extraCommands)