Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-07-05 03:36:56

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 MicroEventContent = cms.PSet(
0004     outputCommands = cms.untracked.vstring(
0005         'keep *_slimmedPhotons_*_*',
0006         'keep *_slimmedOOTPhotons_*_*',
0007         'keep *_slimmedElectrons_*_*',
0008         'keep *_slimmedMuons_*_*',
0009         'keep recoTrackExtras_slimmedMuonTrackExtras_*_*',
0010         'keep TrackingRecHitsOwned_slimmedMuonTrackExtras_*_*',
0011         'keep SiPixelClusteredmNewDetSetVector_slimmedMuonTrackExtras_*_*',
0012         'keep SiStripClusteredmNewDetSetVector_slimmedMuonTrackExtras_*_*',
0013         'keep *_slimmedTaus_*_*',
0014         'keep *_slimmedTausBoosted_*_*',
0015         'keep *_slimmedCaloJets_*_*',
0016         'keep *_slimmedJPTJets_*_*',
0017         'keep *_slimmedJets_*_*',
0018         # keep slimmedJets TagInfos, currently only PixelClusterTagInfo
0019         'keep recoBaseTagInfosOwned_slimmedJets_*_*',
0020         'keep *_slimmedJetsAK8_*_*',
0021         # drop content created by MINIAOD DeepDoubleB production
0022         'drop recoBaseTagInfosOwned_slimmedJetsAK8_*_*',
0023         'keep *_slimmedJetsPuppi_*_*',
0024         'keep *_slimmedMETs_*_*',
0025         'keep *_slimmedMETsPuppi_*_*',
0026         'keep *_slimmedSecondaryVertices_*_*',
0027         'keep *_slimmedLambdaVertices_*_*',
0028         'keep *_slimmedKshortVertices_*_*',
0029         'keep *_slimmedJetsAK8PFPuppiSoftDropPacked_SubJets_*',
0030 
0031         'keep recoPhotonCores_reducedEgamma_*_*',
0032         'keep recoGsfElectronCores_reducedEgamma_*_*',
0033         'keep recoConversions_reducedEgamma_*_*',
0034         'keep recoSuperClusters_reducedEgamma_*_*',
0035         'keep recoCaloClusters_reducedEgamma_*_*',
0036         'keep EcalRecHitsSorted_reducedEgamma_*_*',
0037         'keep recoGsfTracks_reducedEgamma_*_*',
0038         'keep HBHERecHitsSorted_reducedEgamma_*_*',
0039         'keep *_slimmedHcalRecHits_*_*',
0040         'drop *_*_caloTowers_*',
0041         'drop *_*_pfCandidates_*',
0042         'drop *_*_genJets_*',
0043         'keep *_offlineBeamSpot_*_*',
0044         'keep *_offlineSlimmedPrimaryVertices_*_*',
0045         'keep *_offlineSlimmedPrimaryVerticesWithBS_*_*',
0046         'keep patPackedCandidates_packedPFCandidates_*_*',
0047         'keep *_isolatedTracks_*_*',
0048         # low energy conversions for BPH
0049         'keep *_oniaPhotonCandidates_*_*',
0050 
0051         'keep *_bunchSpacingProducer_*_*',
0052 
0053         'keep double_fixedGridRhoAll__*',
0054         'keep double_fixedGridRhoFastjetAll__*',
0055         'keep double_fixedGridRhoFastjetAllTmp__*',
0056         'keep double_fixedGridRhoFastjetAllCalo__*',
0057         'keep double_fixedGridRhoFastjetCentral_*_*',
0058         'keep double_fixedGridRhoFastjetCentralCalo__*',
0059         'keep double_fixedGridRhoFastjetCentralChargedPileUp__*',
0060         'keep double_fixedGridRhoFastjetCentralNeutral__*',
0061 
0062         'keep *_slimmedPatTrigger_*_*',
0063         'keep patPackedTriggerPrescales_patTrigger__*',
0064         'keep patPackedTriggerPrescales_patTrigger_l1max_*',
0065         'keep patPackedTriggerPrescales_patTrigger_l1min_*',
0066         # old L1 trigger
0067         'keep *_l1extraParticles_*_*',
0068         'keep L1GlobalTriggerReadoutRecord_gtDigis_*_*',
0069         # stage 2 L1 trigger
0070         'keep GlobalExtBlkBXVector_simGtExtUnprefireable_*_*',
0071         'keep *_gtStage2Digis__*',
0072         'keep *_gmtStage2Digis_Muon_*',
0073         'keep *_caloStage2Digis_Jet_*',
0074         'keep *_caloStage2Digis_Tau_*',
0075         'keep *_caloStage2Digis_EGamma_*',
0076         'keep *_caloStage2Digis_EtSum_*',
0077         # HLT
0078         'keep *_TriggerResults_*_HLT',
0079         'keep *_TriggerResults_*_*', # for MET filters (a catch all for the moment, but ideally it should be only the current process)
0080         'keep patPackedCandidates_lostTracks_*_*',
0081         'keep HcalNoiseSummary_hcalnoise__*',
0082         'keep recoCSCHaloData_CSCHaloData_*_*',
0083         'keep recoBeamHaloSummary_BeamHaloSummary_*_*',
0084         # Lumi
0085         'keep LumiScalerss_scalersRawToDigi_*_*',
0086         # CTPPS
0087         'keep CTPPSLocalTrackLites_ctppsLocalTrackLiteProducer_*_*',
0088         'keep recoForwardProtons_ctppsProtons_*_*',
0089     # displacedStandAlone muon collection for EXO
0090     'keep recoTracks_displacedStandAloneMuons__*',
0091         'keep recoTracks_displacedGlobalMuons__*',
0092         'keep recoTracks_displacedTracks__*',
0093         # L1 prefiring weights
0094         'keep *_prefiringweight_*_*',
0095         # patLowPtElectrons
0096         'keep *_slimmedLowPtElectrons_*_*',
0097         'keep *_gsfTracksOpenConversions_*_*',
0098         # patDisplacedMuons
0099         'keep *_slimmedDisplacedMuons_*_*',
0100         'keep recoTrackExtras_slimmedDisplacedMuonTrackExtras_*_*',
0101         'keep TrackingRecHitsOwned_slimmedDisplacedMuonTrackExtras_*_*',
0102         'keep SiPixelClusteredmNewDetSetVector_slimmedDisplacedMuonTrackExtras_*_*',
0103         'keep SiStripClusteredmNewDetSetVector_slimmedDisplacedMuonTrackExtras_*_*',
0104     )
0105 )
0106 
0107 MicroEventContentGEN = cms.PSet(
0108     outputCommands = cms.untracked.vstring(
0109         'keep patPackedGenParticles_packedGenParticles_*_*',
0110         'keep recoGenParticles_prunedGenParticles_*_*',
0111         'keep *_packedPFCandidateToGenAssociation_*_*',
0112         'keep *_lostTracksToGenAssociation_*_*',
0113         'keep LHEEventProduct_*_*_*',
0114         'keep GenFilterInfo_*_*_*',
0115         'keep GenLumiInfoHeader_generator_*_*',
0116         'keep GenLumiInfoProduct_*_*_*',
0117         'keep GenEventInfoProduct_generator_*_*',
0118         'keep recoGenParticles_genPUProtons_*_*',
0119         'keep *_slimmedGenJetsFlavourInfos_*_*',
0120         'keep *_slimmedGenJets__*',
0121         'keep *_slimmedGenJetsAK8__*',
0122         'keep *_slimmedGenJetsAK8SoftDropSubJets__*',
0123         'keep *_genMetTrue_*_*',
0124         # RUN
0125         'keep LHERunInfoProduct_*_*_*',
0126         'keep GenRunInfoProduct_*_*_*',
0127         'keep *_genParticles_xyz0_*',
0128         'keep *_genParticles_t0_*',
0129     )
0130 )
0131 
0132 # --- Only for 2018 data & MC
0133 _run2_HCAL_2018_extraCommands = ["keep *_packedPFCandidates_hcalDepthEnergyFractions_*"]
0134 from Configuration.Eras.Modifier_run2_HCAL_2018_cff import run2_HCAL_2018
0135 run2_HCAL_2018.toModify(MicroEventContent, outputCommands = MicroEventContent.outputCommands + _run2_HCAL_2018_extraCommands)
0136 
0137 _run3_common_extraCommands = ["drop *_packedPFCandidates_hcalDepthEnergyFractions_*"]
0138 from Configuration.Eras.Modifier_run3_common_cff import run3_common
0139 run3_common.toModify(MicroEventContent, outputCommands = MicroEventContent.outputCommands + _run3_common_extraCommands)
0140 # ---
0141 
0142 _pp_on_AA_extraCommands = [
0143     'keep patPackedCandidates_hiPixelTracks_*_*',
0144     'keep patPackedCandidates_packedPFCandidatesRemoved_*_*',
0145     'keep *_packedCandidateMuonID_*_*',
0146     'keep *_slimmedJets_pfCandidates_*',
0147     'keep floatedmValueMap_packedPFCandidateTrackChi2_*_*',
0148     'keep floatedmValueMap_lostTrackChi2_*_*',
0149     'keep recoCentrality_hiCentrality_*_*',
0150     'keep int_centralityBin_*_*',
0151     'keep recoHFFilterInfo_hiHFfilters_*_*',
0152     'keep recoClusterCompatibility_hiClusterCompatibility_*_*',
0153     'keep *_offlineSlimmedPrimaryVerticesRecovery_*_*',
0154     'keep *_hiEvtPlane_*_*',
0155     'keep *_hiEvtPlaneFlat_*_*',
0156     'keep QIE10DataFrameHcalDataFrameContainer_hcalDigis_ZDC_*',
0157 ]
0158 
0159 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
0160 pp_on_AA.toModify(MicroEventContent, outputCommands = MicroEventContent.outputCommands + _pp_on_AA_extraCommands)
0161 
0162 _upc_extraCommands = [
0163     'keep patPackedCandidates_hiPixelTracks_*_*',
0164     'keep floatedmValueMap_packedPFCandidateTrackChi2_*_*',
0165     'keep floatedmValueMap_lostTrackChi2_*_*',
0166     'keep recoCentrality_hiCentrality_*_*',
0167     'keep recoClusterCompatibility_hiClusterCompatibility_*_*',
0168     'keep QIE10DataFrameHcalDataFrameContainer_hcalDigis_ZDC_*',
0169     'keep *_dedxEstimator_*_*',
0170 ]
0171 
0172 from Configuration.Eras.Modifier_run3_upc_cff import run3_upc
0173 run3_upc.toModify(MicroEventContent, outputCommands = MicroEventContent.outputCommands + _upc_extraCommands)
0174 
0175 _ppRef_extraCommands = [
0176     'keep floatedmValueMap_*TrackChi2_*_*',
0177     'keep recoClusterCompatibility_hiClusterCompatibility_*_*',
0178 ]
0179 
0180 from Configuration.Eras.Modifier_ppRef_2024_cff import ppRef_2024
0181 ppRef_2024.toModify(MicroEventContent, outputCommands = MicroEventContent.outputCommands + _ppRef_extraCommands)
0182 
0183 _zdc_extraCommands = ['keep QIE10DataFrameHcalDataFrameContainer_hcalDigis_ZDC_*']
0184 from Configuration.ProcessModifiers.storeZDCDigis_cff import storeZDCDigis
0185 storeZDCDigis.toModify(MicroEventContent, outputCommands = MicroEventContent.outputCommands + _zdc_extraCommands)
0186 
0187 MicroEventContentMC = cms.PSet(
0188     outputCommands = cms.untracked.vstring(MicroEventContent.outputCommands)
0189 )
0190 MicroEventContentMC.outputCommands += MicroEventContentGEN.outputCommands
0191 MicroEventContentMC.outputCommands += [
0192                                         'keep PileupSummaryInfos_slimmedAddPileupInfo_*_*',
0193                                         # RUN
0194                                         'keep L1GtTriggerMenuLite_l1GtTriggerMenuLite__*'
0195                                       ]
0196 _pp_on_AA_MC_extraCommands = ['keep *_packedGenParticlesSignal_*_*','keep edmGenHIEvent_heavyIon_*_*']
0197 pp_on_AA.toModify(MicroEventContentMC, outputCommands = MicroEventContentMC.outputCommands + _pp_on_AA_MC_extraCommands)
0198 
0199 from Configuration.Eras.Modifier_strips_vfp30_2016_cff import strips_vfp30_2016
0200 strips_vfp30_2016.toModify(MicroEventContentMC, outputCommands = MicroEventContentMC.outputCommands + [
0201     'keep *_simAPVsaturation_SimulatedAPVDynamicGain_*'
0202 ])
0203 
0204 MiniAODOverrideBranchesSplitLevel = cms.untracked.VPSet( [
0205 cms.untracked.PSet(branch = cms.untracked.string("patPackedCandidates_packedPFCandidates__*"),splitLevel=cms.untracked.int32(99)),
0206 cms.untracked.PSet(branch = cms.untracked.string("recoGenParticles_prunedGenParticles__*"),splitLevel=cms.untracked.int32(99)),
0207 cms.untracked.PSet(branch = cms.untracked.string("patTriggerObjectStandAlones_slimmedPatTrigger__*"),splitLevel=cms.untracked.int32(99)),
0208 cms.untracked.PSet(branch = cms.untracked.string("patPackedGenParticles_packedGenParticles__*"),splitLevel=cms.untracked.int32(99)),
0209 cms.untracked.PSet(branch = cms.untracked.string("patJets_slimmedJets__*"),splitLevel=cms.untracked.int32(99)),
0210 cms.untracked.PSet(branch = cms.untracked.string("recoVertexs_offlineSlimmedPrimaryVertices__*"),splitLevel=cms.untracked.int32(99)),
0211 cms.untracked.PSet(branch = cms.untracked.string("recoVertexs_offlineSlimmedPrimaryVerticesWithBS__*"),splitLevel=cms.untracked.int32(99)),
0212 cms.untracked.PSet(branch = cms.untracked.string("recoCaloClusters_reducedEgamma_reducedESClusters_*"),splitLevel=cms.untracked.int32(99)),
0213 cms.untracked.PSet(branch = cms.untracked.string("EcalRecHitsSorted_reducedEgamma_reducedEBRecHits_*"),splitLevel=cms.untracked.int32(99)),
0214 cms.untracked.PSet(branch = cms.untracked.string("EcalRecHitsSorted_reducedEgamma_reducedEERecHits_*"),splitLevel=cms.untracked.int32(99)),
0215 cms.untracked.PSet(branch = cms.untracked.string("recoGenJets_slimmedGenJets__*"),splitLevel=cms.untracked.int32(99)),
0216 cms.untracked.PSet(branch = cms.untracked.string("patJets_slimmedJetsPuppi__*"),splitLevel=cms.untracked.int32(99)),
0217 cms.untracked.PSet(branch = cms.untracked.string("EcalRecHitsSorted_reducedEgamma_reducedESRecHits_*"),splitLevel=cms.untracked.int32(99)),
0218 ])
0219 
0220 _phase2_hgc_extraCommands = ["keep *_slimmedElectronsHGC_*_*", "keep *_slimmedPhotonsHGC_*_*"]
0221 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
0222 phase2_hgcal.toModify(MicroEventContentMC, outputCommands = MicroEventContentMC.outputCommands + _phase2_hgc_extraCommands)
0223 
0224 _phase2_timing_extraCommands = ["keep *_offlineSlimmedPrimaryVertices4D_*_*"]
0225 from Configuration.Eras.Modifier_phase2_timing_cff import phase2_timing
0226 phase2_timing.toModify(MicroEventContentMC, outputCommands = MicroEventContentMC.outputCommands + _phase2_timing_extraCommands)