@@ -702,12 +702,15 @@ def doNotInlineEventContent(instance,label = "cms.untracked.vstring(process."+th
702
702
if streamType == '' : continue
703
703
if streamType == 'ALCARECO' and not 'ALCAPRODUCER' in self ._options .step : continue
704
704
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 ]
705
710
eventContent = streamType
706
711
## 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" )
711
714
theEventContent = getattr (self .process , eventContent + "EventContent" )
712
715
if i == 0 :
713
716
theFileName = self ._options .outfile_name
@@ -736,10 +739,11 @@ def doNotInlineEventContent(instance,label = "cms.untracked.vstring(process."+th
736
739
output .dataset .filterName = cms .untracked .string ('StreamALCACombined' )
737
740
738
741
if "MINIAOD" in streamType :
742
+ ## we should definitely get rid of this customization by now
739
743
from PhysicsTools .PatAlgos .slimming .miniAOD_tools import miniAOD_customizeOutput
740
744
miniAOD_customizeOutput (output )
741
745
742
- outputModuleName = streamType + 'output'
746
+ outputModuleName = streamType + streamQualifier + 'output'
743
747
setattr (self .process ,outputModuleName ,output )
744
748
outputModule = getattr (self .process ,outputModuleName )
745
749
setattr (self .process ,outputModuleName + '_step' ,cms .EndPath (outputModule ))
0 commit comments