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  )
24  )
25 TICL_RECO.outputCommands.extend(TICL_AOD.outputCommands)
26 
27 # FEVT Content
28 TICL_FEVT = cms.PSet(
29  outputCommands = cms.untracked.vstring(
30  'keep *_ticlSimTracksters_*_*',
31  'keep *_ticlSimTrackstersFromCP_*_*',
32  )
33  )
34 TICL_FEVT.outputCommands.extend(TICL_RECO.outputCommands)
35 
37  def cleanOutputAndSet(outputModule, ticl_outputCommads):
38  outputModule.outputCommands = ['drop *_*_*_*']
39  outputModule.outputCommands.extend(ticl_outputCommads)
40  outputModule.outputCommands.extend(['keep *_HGCalRecHit_*_*',
41  'keep *_hgcalMergeLayerClusters_*_*',
42  'keep CaloParticles_mix_*_*',
43  'keep SimClusters_mix_*_*',
44  'keep recoTracks_generalTracks_*_*',
45  'keep recoTrackExtras_generalTracks_*_*',
46  'keep SimTracks_g4SimHits_*_*',
47  'keep SimVertexs_g4SimHits_*_*',
48  'keep *_layerClusterSimClusterAssociationProducer_*_*',
49  'keep *_layerClusterCaloParticleAssociationProducer_*_*',
50  'keep *_randomEngineStateProducer_*_*',
51  ])
52 
53  if hasattr(process, 'FEVTDEBUGEventContent'):
54  cleanOutputAndSet(process.FEVTDEBUGEventContent, TICL_FEVT.outputCommands)
55  if hasattr(process, 'FEVTDEBUGHLToutput'):
56  cleanOutputAndSet(process.FEVTDEBUGHLToutput, TICL_FEVT.outputCommands)
57 
58  return process