@@ -619,6 +619,7 @@ def _addOutputUsingOutputDefinition(self):
619619 defaultFileName = self ._options .outfile_name
620620 else :
621621 defaultFileName = self ._options .outfile_name .replace ('.root' ,'_in' + theTier + '.root' )
622+ defaultFileName = defaultFileName .replace ('.rntpl' ,'_in' + theTier + '.rntpl' )
622623
623624 theFileName = self ._options .dirout + anyOf (['fn' ,'fileName' ],outDefDict ,defaultFileName )
624625 if not theFileName .endswith ('.root' ):
@@ -698,6 +699,7 @@ def _addOutputUsingTier(self):
698699 theFileName = self ._options .outfile_name
699700 else :
700701 theFileName = self ._options .outfile_name .replace ('.root' ,'_in' + streamType + '.root' )
702+ theFileName = theFileName .replace ('.rntpl' ,'_in' + streamType + '.rntpl' )
701703 theFilterName = self ._options .filtername
702704 if streamType == 'ALCARECO' :
703705 theFilterName = 'StreamALCACombined'
@@ -725,7 +727,9 @@ def _createOutputModuleInAddOutput(self, tier, streamType, eventContent, fileNam
725727 CppType = 'PoolOutputModule'
726728 if self ._options .timeoutOutput :
727729 CppType = 'TimeoutPoolOutputModule'
728- if streamType == 'DQM' and tier == 'DQMIO' : CppType = 'DQMRootOutputModule'
730+ if streamType == 'DQM' and tier == 'DQMIO' :
731+ CppType = 'DQMRootOutputModule'
732+ fileName = fileName .replace ('.rntpl' , '.root' )
729733 if not ignoreNano and "NANOAOD" in streamType : CppType = 'NanoAODOutputModule'
730734 if self ._options .rntuple_out and CppType == 'PoolOutputModule' :
731735 CppType = 'RNTupleOutputModule'
0 commit comments