Skip to content

Commit 9b2c675

Browse files
committed
Fixed issue when using .rntpl file extension
1 parent 858479a commit 9b2c675

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Configuration/Applications/python/ConfigBuilder.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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=self._options.outfile_name.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=self._options.outfile_name.replace('.rntpl','_in'+streamType+'.rntpl')
701703
theFilterName=self._options.filtername
702704
if streamType=='ALCARECO':
703705
theFilterName = 'StreamALCACombined'
@@ -725,7 +727,10 @@ 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+
if len(fileName) > 6 and fileName[-6:] == '.rntpl':
733+
fileName = fileName.replace('.rntpl', '.root')
729734
if not ignoreNano and "NANOAOD" in streamType : CppType='NanoAODOutputModule'
730735
if self._options.rntuple_out and CppType == 'PoolOutputModule':
731736
CppType='RNTupleOutputModule'

0 commit comments

Comments
 (0)