From 14461e5b49522b4f6ec4f026f71f51bfe7a3ac53 Mon Sep 17 00:00:00 2001 From: Norraphat Date: Tue, 19 Dec 2023 14:57:15 +0100 Subject: [PATCH] fix genfilter in smearing only --- Configuration/Applications/python/ConfigBuilder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Configuration/Applications/python/ConfigBuilder.py b/Configuration/Applications/python/ConfigBuilder.py index 334a5ced55fdb..3fa082f34d77d 100644 --- a/Configuration/Applications/python/ConfigBuilder.py +++ b/Configuration/Applications/python/ConfigBuilder.py @@ -1460,7 +1460,7 @@ def prepare_GEN(self, stepSpec = None): elif isinstance(theObject, cms.Sequence) or isinstance(theObject, cmstypes.ESProducer): self._options.inlineObjets+=','+name - if stepSpec == self.GENDefaultSeq or stepSpec == 'pgen_genonly' or stepSpec == 'pgen_smear': + if stepSpec == self.GENDefaultSeq or stepSpec == 'pgen_genonly': if 'ProductionFilterSequence' in genModules and ('generator' in genModules): self.productionFilterSequence = 'ProductionFilterSequence' elif 'generator' in genModules: @@ -1491,7 +1491,7 @@ def prepare_GEN(self, stepSpec = None): #register to the genstepfilter the name of the path (static right now, but might evolve) self.executeAndRemember('process.genstepfilter.triggerConditions=cms.vstring("generation_step")') - if 'reGEN' in self.stepMap: + if 'reGEN' in self.stepMap or stepSpec == 'pgen_smear': #stop here return