Skip to content

Commit

Permalink
Merge pull request #43600 from srimanob/130_FixGenFilterSmearOnly
Browse files Browse the repository at this point in the history
[13_0] Fix to avoid running genfilter with pgen_smear
  • Loading branch information
cmsbuild authored Dec 19, 2023
2 parents e43a7a8 + 14461e5 commit 41b4b0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Configuration/Applications/python/ConfigBuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 41b4b0c

Please sign in to comment.