22"""getEventContent.py: print EventContent cff fragment of a ConfDB configuration
33"""
44import argparse
5- import subprocess
65import os
7- import re
86
97import FWCore .ParameterSet .Config as cms
108import 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