CMS 3D CMS Logo

RecoHGCal_EventContent_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from RecoHGCal.TICL.iterativeTICL_cff import ticlIterLabelsMerge
4 
5 trackstersIters = ['keep *_ticlTracksters'+iteration+'_*_*' for iteration in ticlIterLabelsMerge]
6 
7 #AOD content
8 TICL_AOD = cms.PSet(
9  outputCommands = cms.untracked.vstring()
10  )
11 
12 #RECO content
13 TICL_RECO = cms.PSet(
14  outputCommands = cms.untracked.vstring(
15  trackstersIters +
16  ['keep *_ticlTrackstersHFNoseTrkEM_*_*',
17  'keep *_ticlTrackstersHFNoseEM_*_*',
18  'keep *_ticlTrackstersHFNoseTrk_*_*',
19  'keep *_ticlTrackstersHFNoseMIP_*_*',
20  'keep *_ticlTrackstersHFNoseHAD_*_*',
21  'keep *_ticlTrackstersHFNoseMerge_*_*',] +
22  ['keep *_pfTICL_*_*'] +
23  ['keep CaloParticles_mix_*_*', 'keep SimClusters_mix_*_*'] +
24  ['keep *_layerClusterSimClusterAssociationProducer_*_*','keep *_layerClusterCaloParticleAssociationProducer_*_*', 'keep *_layerClusterSimTracksterAssociationProducer_*_*'] +
25  ['keep *_tracksterSimTracksterAssociationLinking_*_*' ,'keep *_tracksterSimTracksterAssociationPR_*_*'] +
26  ['keep *_tracksterSimTracksterAssociationLinkingPU_*_*' ,'keep *_tracksterSimTracksterAssociationPRPU_*_*'] +
27  ['keep *_tracksterSimTracksterAssociationLinkingbyCLUE3D_*_*', 'keep *_tracksterSimTracksterAssociationPRbyCLUE3D_*_*']
28  )
29  )
30 TICL_RECO.outputCommands.extend(TICL_AOD.outputCommands)
31 
32 # FEVT Content
33 TICL_FEVT = cms.PSet(
34  outputCommands = cms.untracked.vstring(
35  'keep *_ticlSimTracksters_*_*',
36  'keep *_ticlSimTICLCandidates_*_*',
37  'keep *_ticlSimTrackstersFromCP_*_*',
38  )
39  )
40 TICL_FEVT.outputCommands.extend(TICL_RECO.outputCommands)
41 
43  def cleanOutputAndSet(outputModule, ticl_outputCommads):
44  outputModule.outputCommands = ['drop *_*_*_*']
45  outputModule.outputCommands.extend(ticl_outputCommads)
46  outputModule.outputCommands.extend(['keep *_HGCalRecHit_*_*',
47  'keep *_hgcalMergeLayerClusters_*_*',
48  'keep CaloParticles_mix_*_*',
49  'keep SimClusters_mix_*_*',
50  'keep recoTracks_generalTracks_*_*',
51  'keep recoTrackExtras_generalTracks_*_*',
52  'keep SimTracks_g4SimHits_*_*',
53  'keep SimVertexs_g4SimHits_*_*',
54  'keep *_layerClusterSimClusterAssociationProducer_*_*',
55  'keep *_layerClusterCaloParticleAssociationProducer_*_*',
56  'keep *_randomEngineStateProducer_*_*',
57  'keep *_layerClusterSimTracksterAssociationProducer_*_*',
58  'keep *_tracksterSimTracksterAssociationLinking_*_*',
59  'keep *_tracksterSimTracksterAssociationPR_*_*',
60  'keep *_tracksterSimTracksterAssociationLinkingPU_*_*',
61  'keep *_tracksterSimTracksterAssociationPRPU_*_*',
62  'keep *_tracksterSimTracksterAssociationLinkingbyCLUE3D_*_*',
63  'keep *_tracksterSimTracksterAssociationPRbyCLUE3D_*_*',
64  ])
65 
66  if hasattr(process, 'FEVTDEBUGEventContent'):
67  cleanOutputAndSet(process.FEVTDEBUGEventContent, TICL_FEVT.outputCommands)
68  if hasattr(process, 'FEVTDEBUGHLToutput'):
69  cleanOutputAndSet(process.FEVTDEBUGHLToutput, TICL_FEVT.outputCommands)
70 
71  return process