Skip to content

Commit a0689d0

Browse files
elenavernazzammusich
authored andcommitted
Remove warning for OutputModule
1 parent 8b42834 commit a0689d0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

HLTrigger/NGTScouting/python/HLTNanoProducer_cff.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ def hltNanoCustomize(process):
3838
process.NANOAODSIMoutput.outputCommands.append(
3939
"keep nanoaodFlatTable_*Table*_*_*"
4040
)
41-
process.NANOAODSIMoutput.SelectEvents = cms.untracked.PSet( SelectEvents = cms.vstring( 'HLT_*', 'DST_*' ) )
41+
process.NANOAODSIMoutput.SelectEvents = cms.untracked.PSet(
42+
SelectEvents = cms.vstring(
43+
[p for p in process.paths if p.startswith('HLT_') or p.startswith('DST_')]
44+
)
45+
)
4246

4347
return process

0 commit comments

Comments
 (0)