@@ -1788,6 +1788,11 @@ def prepare_PAT(self, stepSpec = "miniAOD"):
1788
1788
self ._options .customise_commands = self ._options .customise_commands + "process.slimmedPatTrigger.triggerResults= cms.InputTag( 'TriggerResults::" + self ._options .hltProcess + "' )\n "
1789
1789
self ._options .customise_commands = self ._options .customise_commands + "process.patMuons.triggerResults= cms.InputTag( 'TriggerResults::" + self ._options .hltProcess + "' )\n "
1790
1790
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 "
1791
1796
# self.renameHLTprocessInSequence(sequence)
1792
1797
1793
1798
return
@@ -1850,7 +1855,12 @@ def prepare_NANO(self, stepSpec = '' ):
1850
1855
if len (self ._options .customise_commands ) > 1 :
1851
1856
self ._options .customise_commands = self ._options .customise_commands + " \n "
1852
1857
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
+
1854
1864
def prepare_SKIM (self , stepSpec = "all" ):
1855
1865
''' Enrich the schedule with skimming fragments'''
1856
1866
skimConfig ,sequence ,_ = self .loadDefaultOrSpecifiedCFF (stepSpec ,self .SKIMDefaultCFF )
0 commit comments