Skip to content

Commit 53babbf

Browse files
authored
Merge pull request #47649 from vlimant/stepchain_utility_140X
McM/production bound option to cmsDriver [14.0]
2 parents 493b2d8 + 88312b9 commit 53babbf

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

Diff for: Configuration/Applications/python/ConfigBuilder.py

+9-5
Original file line numberDiff line numberDiff line change
@@ -702,12 +702,15 @@ def doNotInlineEventContent(instance,label = "cms.untracked.vstring(process."+th
702702
if streamType=='': continue
703703
if streamType == 'ALCARECO' and not 'ALCAPRODUCER' in self._options.step: continue
704704
if streamType=='DQMIO': streamType='DQM'
705+
streamQualifier=''
706+
if streamType[-1].isdigit():
707+
## a special case where --eventcontent MINIAODSIM1 is set to have more than one output in a chain of configuration
708+
streamQualifier = str(streamType[-1])
709+
streamType = streamType[:-1]
705710
eventContent=streamType
706711
## override streamType to eventContent in case NANOEDM
707-
if streamType == "NANOEDMAOD" :
708-
eventContent = "NANOAOD"
709-
elif streamType == "NANOEDMAODSIM" :
710-
eventContent = "NANOAODSIM"
712+
if streamType.startswith("NANOEDMAOD"):
713+
eventContent = eventContent.replace("NANOEDM","NANO")
711714
theEventContent = getattr(self.process, eventContent+"EventContent")
712715
if i==0:
713716
theFileName=self._options.outfile_name
@@ -736,10 +739,11 @@ def doNotInlineEventContent(instance,label = "cms.untracked.vstring(process."+th
736739
output.dataset.filterName = cms.untracked.string('StreamALCACombined')
737740

738741
if "MINIAOD" in streamType:
742+
## we should definitely get rid of this customization by now
739743
from PhysicsTools.PatAlgos.slimming.miniAOD_tools import miniAOD_customizeOutput
740744
miniAOD_customizeOutput(output)
741745

742-
outputModuleName=streamType+'output'
746+
outputModuleName=streamType+streamQualifier+'output'
743747
setattr(self.process,outputModuleName,output)
744748
outputModule=getattr(self.process,outputModuleName)
745749
setattr(self.process,outputModuleName+'_step',cms.EndPath(outputModule))

0 commit comments

Comments
 (0)