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 trackstersHLTIters = ['keep *_hltTiclTracksters'+iteration+'_*_*' for iteration in ticlIterLabelsMerge]
7 
8 #AOD content
9 TICL_AOD = cms.PSet(
10  outputCommands = cms.untracked.vstring()
11  )
12 
13 #RECO content
14 TICL_RECO = cms.PSet(
15  outputCommands = cms.untracked.vstring(
16  trackstersIters +
17  [
18  'keep *_ticlTrackstersHFNoseTrkEM_*_*',
19  'keep *_ticlTrackstersHFNoseEM_*_*',
20  'keep *_ticlTrackstersHFNoseTrk_*_*',
21  'keep *_ticlTrackstersHFNoseMIP_*_*',
22  'keep *_ticlTrackstersHFNoseHAD_*_*',
23  'keep *_ticlTrackstersHFNoseMerge_*_*',] +
24  ['keep *_pfTICL_*_*'] +
25  ['keep CaloParticles_mix_*_*', 'keep SimClusters_mix_*_*'] +
26  ['keep *_layerClusterSimClusterAssociationProducer_*_*','keep *_layerClusterCaloParticleAssociationProducer_*_*', 'keep *_layerClusterSimTracksterAssociationProducer_*_*'] +
27  ['keep *_tracksterSimTracksterAssociationLinking_*_*' ,'keep *_tracksterSimTracksterAssociationPR_*_*'] +
28  ['keep *_tracksterSimTracksterAssociationLinkingPU_*_*' ,'keep *_tracksterSimTracksterAssociationPRPU_*_*'] +
29  ['keep *_tracksterSimTracksterAssociationLinkingbyCLUE3D_*_*', 'keep *_tracksterSimTracksterAssociationPRbyCLUE3D_*_*']
30  )
31  )
32 
33 TICLv5_RECO = cms.PSet(
34  outputCommands = cms.untracked.vstring(
35  [
36  'drop *_ticlTracksters*_*_*',
37  'keep *_ticlTrackstersCLUE3DHigh_*_*',
38  'keep *_ticlTracksterLinks_*_*',
39  'keep *_ticlTracksterLinksSuperclustering*_*_*',
40  'keep *_ticlCandidate_*_*',
41  ]
42  )
43 )
44 
45 
46 TICL_RECO.outputCommands.extend(TICL_AOD.outputCommands)
47 
48 
49 # FEVT Content
50 TICL_FEVT = cms.PSet(
51  outputCommands = cms.untracked.vstring(
52  'keep *_ticlSimTracksters_*_*',
53  'keep *_ticlSimTICLCandidates_*_*',
54  'keep *_ticlSimTrackstersFromCP_*_*',
55  'keep *_SimTau*_*_*'
56  )
57  )
58 TICL_FEVT.outputCommands.extend(TICL_RECO.outputCommands)
59 TICLv5_FEVT = cms.PSet(
60  outputCommands = cms.untracked.vstring(
61  'keep *_ticlSimTracksters_*_*',
62  'keep *_ticlSimTICLCandidates_*_*',
63  'keep *_ticlSimTrackstersFromCP_*_*',
64  'keep *_tracksterSimTracksterAssociationLinkingSuperclustering_*_*',
65  'keep *_tracksterSimTracksterAssociationPRSuperclustering_*_*',
66  )
67  )
68 
69 TICLv5_FEVT.outputCommands.extend(TICLv5_RECO.outputCommands)
70 
71 TICL_FEVTHLT = cms.PSet(
72  outputCommands = cms.untracked.vstring(
73  trackstersHLTIters +
74  ['keep *_hltPfTICL_*_*']
75  )
76 )
77 
78 TICL_FEVTHLT.outputCommands.extend(TICL_FEVT.outputCommands)
79 
80 TICLv5_FEVTHLT = cms.PSet(
81  outputCommands = cms.untracked.vstring(
82  [
83  'drop *_hltTiclTracksters*_*_*',
84  'keep *_hltTiclTrackstersCLUE3D*_*_*',
85  'keep *_hltTiclTracksterLinks_*_*',
86  'keep *_hltTiclCandidate_*_*',
87  'keep *_hltPfTICL_*_*',
88  ]
89  )
90 )
91 
92 TICLv5_FEVTHLT.outputCommands.extend(TICLv5_FEVT.outputCommands)
93 
95  def cleanOutputAndSet(outputModule, ticl_outputCommads):
96  outputModule.outputCommands = ['drop *_*_*_*']
97  outputModule.outputCommands.extend(ticl_outputCommads)
98  outputModule.outputCommands.extend(['keep *_HGCalRecHit_*_*',
99  'keep *_hgcalMergeLayerClusters_*_*',
100  'keep CaloParticles_mix_*_*',
101  'keep SimClusters_mix_*_*',
102  'keep recoTracks_generalTracks_*_*',
103  'keep recoTrackExtras_generalTracks_*_*',
104  'keep SimTracks_g4SimHits_*_*',
105  'keep SimVertexs_g4SimHits_*_*',
106  'keep *_layerClusterSimClusterAssociationProducer_*_*',
107  'keep *_layerClusterCaloParticleAssociationProducer_*_*',
108  'keep *_randomEngineStateProducer_*_*',
109  'keep *_layerClusterSimTracksterAssociationProducer_*_*',
110  'keep *_tracksterSimTracksterAssociationLinking_*_*',
111  'keep *_tracksterSimTracksterAssociationPR_*_*',
112  'keep *_tracksterSimTracksterAssociationLinkingPU_*_*',
113  'keep *_tracksterSimTracksterAssociationPRPU_*_*',
114  'keep *_tracksterSimTracksterAssociationLinkingbyCLUE3D_*_*',
115  'keep *_tracksterSimTracksterAssociationPRbyCLUE3D_*_*',
116  ])
117 
118  if hasattr(process, 'FEVTDEBUGEventContent'):
119  cleanOutputAndSet(process.FEVTDEBUGEventContent, TICL_FEVT.outputCommands)
120  if hasattr(process, 'FEVTDEBUGHLToutput'):
121  cleanOutputAndSet(process.FEVTDEBUGHLToutput, TICL_FEVTHLT.outputCommands)
122 
123  return process
124 
125 
126 
128  def cleanOutputAndSet(outputModule, ticl_outputCommands):
129  outputModule.outputCommands.extend(ticl_outputCommands)
130 
131  if hasattr(process, 'FEVTDEBUGEventContent'):
132  cleanOutputAndSet(process.FEVTDEBUGEventContent, TICLv5_FEVT.outputCommands)
133  if hasattr(process, 'FEVTDEBUGHLToutput'):
134  cleanOutputAndSet(process.FEVTDEBUGHLToutput, TICLv5_FEVTHLT.outputCommands)
135  if hasattr(process, 'FEVTEventContent'):
136  cleanOutputAndSet(process.FEVTEventContent, TICLv5_FEVT.outputCommands)
137 
138  return process
139