Skip to content

Commit d45e5e7

Browse files
authored
Merge pull request #47899 from vlimant/delay_read_for_MININANO_150X
no delay read when runing PAT or NANO by itself [150X]
2 parents af4388f + e57ee06 commit d45e5e7

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Configuration/Applications/python/ConfigBuilder.py

+11-1
Original file line numberDiff line numberDiff line change
@@ -1788,6 +1788,11 @@ def prepare_PAT(self, stepSpec = "miniAOD"):
17881788
self._options.customise_commands = self._options.customise_commands + "process.slimmedPatTrigger.triggerResults= cms.InputTag( 'TriggerResults::"+self._options.hltProcess+"' )\n"
17891789
self._options.customise_commands = self._options.customise_commands + "process.patMuons.triggerResults= cms.InputTag( 'TriggerResults::"+self._options.hltProcess+"' )\n"
17901790

1791+
# cpu efficiency boost when running PAT/MINI by itself
1792+
if self.stepKeys[0] == 'PAT':
1793+
if len(self._options.customise_commands) > 1:
1794+
self._options.customise_commands = self._options.customise_commands + " \n"
1795+
self._options.customise_commands = self._options.customise_commands + "process.source.delayReadingEventProducts = cms.untracked.bool(False)\n"
17911796
# self.renameHLTprocessInSequence(sequence)
17921797

17931798
return
@@ -1850,7 +1855,12 @@ def prepare_NANO(self, stepSpec = '' ):
18501855
if len(self._options.customise_commands) > 1:
18511856
self._options.customise_commands = self._options.customise_commands + " \n"
18521857
self._options.customise_commands = self._options.customise_commands + "process.unpackedPatTrigger.triggerResults= cms.InputTag( 'TriggerResults::"+self._options.hltProcess+"' )\n"
1853-
1858+
# cpu efficiency boost when running NANO by itself
1859+
if self.stepKeys[0] == 'NANO':
1860+
if len(self._options.customise_commands) > 1:
1861+
self._options.customise_commands = self._options.customise_commands + " \n"
1862+
self._options.customise_commands = self._options.customise_commands + "process.source.delayReadingEventProducts = cms.untracked.bool(False)\n"
1863+
18541864
def prepare_SKIM(self, stepSpec = "all"):
18551865
''' Enrich the schedule with skimming fragments'''
18561866
skimConfig,sequence,_ = self.loadDefaultOrSpecifiedCFF(stepSpec,self.SKIMDefaultCFF)

0 commit comments

Comments
 (0)