Skip to content

Commit 6b481a3

Browse files
committed
update getEventContent.py script to provide HLTriggerMINIAODSIM event content and update EventContent_cff accordingly
1 parent b02848d commit 6b481a3

File tree

2 files changed

+19
-10
lines changed

2 files changed

+19
-10
lines changed

Configuration/EventContent/python/EventContent_cff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ def SwapKeepAndDrop(l):
962962
compressionLevel=cms.untracked.int32(4)
963963
)
964964
MINIAODSIMEventContent.outputCommands.extend(MicroEventContentMC.outputCommands)
965-
MINIAODSIMEventContent.outputCommands.extend(HLTriggerMINIAOD.outputCommands)
965+
MINIAODSIMEventContent.outputCommands.extend(HLTriggerMINIAODSIM.outputCommands)
966966

967967
MINIGENEventContent= cms.PSet(
968968
outputCommands = cms.untracked.vstring('drop *'),

HLTrigger/Configuration/test/getEventContent.py

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
"""getEventContent.py: print EventContent cff fragment of a ConfDB configuration
33
"""
44
import argparse
5-
import subprocess
65
import os
7-
import re
86

97
import FWCore.ParameterSet.Config as cms
108
import HLTrigger.Configuration.Tools.pipe as pipe
@@ -125,7 +123,7 @@ def printHLTriggerEventContentCff(process):
125123
'hltOutputReleaseValidation',
126124
],
127125
'hltOutputScouting_cff': [
128-
'hltOutputScoutingPF',
126+
'hltOutputScoutingPF0',
129127
],
130128
})
131129

@@ -193,13 +191,14 @@ def printHLTriggerEventContentCff(process):
193191

194192
# hltScoutingOutput
195193

196-
if not hasattr(hltOutputScouting_cff,'block_hltOutputScoutingPF'):
197-
hltOutputScouting_cff.block_hltOutputScoutingPF = cms.PSet(outputCommands = cms.untracked.vstring( 'drop *' ))
194+
if not hasattr(hltOutputScouting_cff,'block_hltOutputScoutingPF0'):
195+
hltOutputScouting_cff.block_hltOutputScoutingPF0 = cms.PSet(outputCommands = cms.untracked.vstring( 'drop *' ))
198196

199197
hltScoutingOutputBlocks = (
200198
# the Scouting streams have the Scouting outputs
201-
hltOutputScouting_cff.block_hltOutputScoutingPF.outputCommands,
199+
hltOutputScouting_cff.block_hltOutputScoutingPF0.outputCommands,
202200
)
201+
203202
hltScoutingOutputContent = buildPSet(hltScoutingOutputBlocks)
204203
hltScoutingOutputContentNoDrop = buildPSetNoDrop(hltScoutingOutputBlocks)
205204

@@ -243,6 +242,15 @@ def printHLTriggerEventContentCff(process):
243242
)
244243
HLTriggerMINIAOD.outputCommands.extend(hltScoutingOutputContent.outputCommands)
245244

245+
# MINIAODSIM event content
246+
HLTriggerMINIAODSIM = cms.PSet(
247+
outputCommands = cms.vstring()
248+
)
249+
250+
_hltScoutingOutputContentForMINIAODSIM = hltScoutingOutputContent.outputCommands.copy()
251+
_hltScoutingOutputContentForMINIAODSIM.remove('keep *_hltScoutingRecHitPacker_*_*')
252+
HLTriggerMINIAODSIM.outputCommands.extend(_hltScoutingOutputContentForMINIAODSIM)
253+
246254
# HLTDEBUG RAW event content
247255
HLTDebugRAW = cms.PSet(
248256
outputCommands = cms.vstring()
@@ -269,9 +277,9 @@ def printHLTriggerEventContentCff(process):
269277
# EventContent for HLT-related products.
270278
271279
# This file exports the following EventContent blocks:
272-
# HLTrigger(RAW|RECO|AOD|MINIAOD) [without DEBUG products]
273-
# HLTDebug(RAW|FEVT) [with DEBUG products]
274-
# HLTScouting [only Scouting products]
280+
# HLTrigger(RAW|RECO|AOD|MINIAOD{SIM}) [without DEBUG products]
281+
# HLTDebug(RAW|FEVT) [with DEBUG products]
282+
# HLTScouting [only Scouting products]
275283
#
276284
# as these are used in Configuration/EventContent
277285
#''')
@@ -284,6 +292,7 @@ def psetString(name, outputCommands):
284292
print(psetString('HLTriggerRECO', HLTriggerRECO.outputCommands))
285293
print(psetString('HLTriggerAOD', HLTriggerAOD.outputCommands))
286294
print(psetString('HLTriggerMINIAOD', HLTriggerMINIAOD.outputCommands))
295+
print(psetString('HLTriggerMINIAODSIM', HLTriggerMINIAODSIM.outputCommands))
287296
print(psetString('HLTDebugRAW', HLTDebugRAW.outputCommands))
288297
print(psetString('HLTDebugFEVT', HLTDebugFEVT.outputCommands))
289298
print(psetString('HLTScouting', HLTScouting.outputCommands))

0 commit comments

Comments
 (0)