CMS 3D CMS Logo

RecoParticleFlow_EventContent_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # AOD content
4 RecoParticleFlowAOD = cms.PSet(
5  outputCommands = cms.untracked.vstring(
6  'keep recoPFRecHits_particleFlowRecHitECAL_Cleaned_*',
7  'keep recoPFRecHits_particleFlowRecHitHBHE_Cleaned_*',
8  'keep recoPFRecHits_particleFlowRecHitHF_Cleaned_*',
9  'keep recoPFRecHits_particleFlowRecHitHO_Cleaned_*',
10  'keep recoPFRecHits_particleFlowRecHitPS_Cleaned_*',
11  'keep recoCaloClusters_particleFlowEGamma_*_*',
12  'keep recoSuperClusters_particleFlowEGamma_*_*',
13  'keep recoCaloClusters_particleFlowSuperClusterECAL_*_*',
14  'keep recoSuperClusters_particleFlowSuperClusterECAL_*_*',
15  'keep recoConversions_particleFlowEGamma_*_*',
16  'keep recoPFCandidates_particleFlow_*_*',
17  'keep recoPFCandidates_particleFlowTmp_AddedMuonsAndHadrons_*',
18  'keep recoPFCandidates_particleFlowTmp_CleanedCosmicsMuons_*',
19  'keep recoPFCandidates_particleFlowTmp_CleanedFakeMuons_*',
20  'keep recoPFCandidates_particleFlowTmp_CleanedHF_*',
21  'keep recoPFCandidates_particleFlowTmp_CleanedPunchThroughMuons_*',
22  'keep recoPFCandidates_particleFlowTmp_CleanedPunchThroughNeutralHadrons_*',
23  'keep recoPFCandidates_particleFlowTmp_CleanedTrackerAndGlobalMuons_*',
24  'keep *_particleFlow_electrons_*',
25  'keep *_particleFlow_photons_*',
26  'keep *_particleFlow_muons_*',
27  'keep recoCaloClusters_pfElectronTranslator_*_*',
28  'keep recoPreshowerClusters_pfElectronTranslator_*_*',
29  'keep recoSuperClusters_pfElectronTranslator_*_*',
30  'keep recoCaloClusters_pfPhotonTranslator_*_*',
31  'keep recoPreshowerClusters_pfPhotonTranslator_*_*',
32  'keep recoSuperClusters_pfPhotonTranslator_*_*',
33  'keep recoPhotons_pfPhotonTranslator_*_*',
34  'keep recoPhotonCores_pfPhotonTranslator_*_*',
35  'keep recoConversions_pfPhotonTranslator_*_*',
36  'keep *_particleFlowPtrs_*_*',
37  'keep *_particleFlowTmpPtrs_*_*',
38  'keep *_chargedHadronPFTrackIsolation_*_*')
39 )
40 
41 # mods for HGCAL and timing
42 # Some SC content also defined in RecoEcal/Configuration/python/RecoEcal_EventContent_cff.py
43 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
44 from Configuration.Eras.Modifier_phase2_timing_cff import phase2_timing
45 phase2_hgcal.toModify( RecoParticleFlowAOD,
46  outputCommands = RecoParticleFlowAOD.outputCommands + ['keep recoPFRecHits_particleFlowRecHitHGC_Cleaned_*',
47  'keep recoSuperClusters_simPFProducer_*_*'])
48 phase2_timing.toModify( RecoParticleFlowAOD,
49  outputCommands = RecoParticleFlowAOD.outputCommands + ['keep *_ecalBarrelClusterFastTimer_*_*'])
50 
51 # RECO content
52 RecoParticleFlowRECO = cms.PSet(
53  outputCommands = cms.untracked.vstring(
54  'keep recoPFClusters_particleFlowClusterECAL_*_*',
55  'keep recoPFClusters_particleFlowClusterHCAL_*_*',
56  'keep recoPFClusters_particleFlowClusterHO_*_*',
57  'keep recoPFClusters_particleFlowClusterHF_*_*',
58  'keep recoPFClusters_particleFlowClusterPS_*_*',
59  'keep recoPFBlocks_particleFlowBlock_*_*',
60  'keep recoPFCandidates_particleFlowEGamma_*_*',
61  'keep recoPFCandidates_particleFlowTmp_electrons_*',
62  'keep recoPFDisplacedVertexs_particleFlowDisplacedVertex_*_*',
63  'keep *_pfElectronTranslator_*_*',
64  'keep *_pfPhotonTranslator_*_*',
65  'keep *_trackerDrivenElectronSeeds_preid_*')
66 )
67 RecoParticleFlowRECO.outputCommands.extend(RecoParticleFlowAOD.outputCommands)
68 
69 phase2_hgcal.toModify( RecoParticleFlowRECO,
70  outputCommands = RecoParticleFlowRECO.outputCommands + ['keep *_particleFlowSuperClusterHGCalFromMultiCl_*_*',
71  'keep recoPFBlocks_simPFProducer_*_*'])
72 
73 # Full Event content
74 RecoParticleFlowFEVT = cms.PSet(
75  outputCommands = cms.untracked.vstring()
76 )
77 RecoParticleFlowFEVT.outputCommands.extend(RecoParticleFlowRECO.outputCommands)
78 
79 phase2_hgcal.toModify( RecoParticleFlowFEVT,
80  outputCommands = RecoParticleFlowFEVT.outputCommands + ['keep recoPFRecHits_particleFlowClusterECAL__*',
81  'keep recoPFRecHits_particleFlowRecHitHGC__*',
82  'keep *_simPFProducer_*_*'])
83 
84 from Configuration.ProcessModifiers.mlpf_cff import mlpf
85 from RecoParticleFlow.PFProducer.mlpf_EventContent_cff import MLPF_RECO
86 
87 mlpf.toModify(RecoParticleFlowRECO,
88  outputCommands = RecoParticleFlowRECO.outputCommands + MLPF_RECO.outputCommands)