Skip to content

Commit

Permalink
Merge pull request cms-sw#8459 from bendavid/lheinputfix_75x
Browse files Browse the repository at this point in the history
automatically drop LHEXMLStringProduct on input from cmsDriver
  • Loading branch information
davidlange6 authored and bendavid committed Aug 13, 2015
1 parent 9e9e0f1 commit f5691aa
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Configuration/Applications/python/ConfigBuilder.py
Expand Up @@ -427,7 +427,14 @@ def filesFromOption(self):
self.process.source=cms.Source("PoolSource", fileNames = cms.untracked.vstring(),secondaryFileNames = cms.untracked.vstring())
filesFromDASQuery(self._options.dasquery,self.process.source)

if self._options.inputCommands:
##drop LHEXMLStringProduct on input to save memory if appropriate
if 'GEN' in self.stepMap.keys():
if self._options.inputCommands:
self._options.inputCommands+=',drop LHEXMLStringProduct_*_*_*,'
else:
self._options.inputCommands='keep *, drop LHEXMLStringProduct_*_*_*,'

if self.process.source and self._options.inputCommands:
if not hasattr(self.process.source,'inputCommands'): self.process.source.inputCommands=cms.untracked.vstring()
for command in self._options.inputCommands.split(','):
# remove whitespace around the keep/drop statements
Expand Down

0 comments on commit f5691aa

Please sign in to comment.