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