Good !
it works fine … except for ROOT files up to CMSSW_10_6_20.
I tried with 11_3_0_pre1[pre4], 12_0_0_pre3 or 12_1_0_pre4 (see file list below) with a pbm :
Traceback (most recent call last):
File "/cvmfs/sft.cern.ch/lcg/views/LCG_100/x86_64-centos7-gcc8-opt/bin/rootcp", line 58, in <module>
sys.exit(execute())
File "/cvmfs/sft.cern.ch/lcg/views/LCG_100/x86_64-centos7-gcc8-opt/bin/rootcp", line 54, in execute
return cmdLineUtils.rootCp(sourceList, destFileName, destPathSplit, \
File "/cvmfs/sft.cern.ch/lcg/views/LCG_100/x86_64-centos7-gcc8-opt/lib/cmdLineUtils.py", line 790, in rootCp
retcode += _copyObjects(fileName, pathSplitList, destFile, destPathSplit, \
File "/cvmfs/sft.cern.ch/lcg/views/LCG_100/x86_64-centos7-gcc8-opt/lib/cmdLineUtils.py", line 769, in _copyObjects
retcode += copyRootObject(rootFile, pathSplit, destFile, destPathSplit, \
File "/cvmfs/sft.cern.ch/lcg/views/LCG_100/x86_64-centos7-gcc8-opt/lib/cmdLineUtils.py", line 545, in copyRootObject
retcode += copyRootObjectRecursive(sourceFile,sourcePathSplit, \
File "/cvmfs/sft.cern.ch/lcg/views/LCG_100/x86_64-centos7-gcc8-opt/lib/cmdLineUtils.py", line 612, in copyRootObjectRecursive
retcode +=copyRootObjectRecursive(sourceFile, \
File "/cvmfs/sft.cern.ch/lcg/views/LCG_100/x86_64-centos7-gcc8-opt/lib/cmdLineUtils.py", line 612, in copyRootObjectRecursive
retcode +=copyRootObjectRecursive(sourceFile, \
File "/cvmfs/sft.cern.ch/lcg/views/LCG_100/x86_64-centos7-gcc8-opt/lib/cmdLineUtils.py", line 657, in copyRootObjectRecursive
obj.SetName(objectName)
AttributeError: 'TObjString' object has no attribute 'SetName'
Is there a difference between those root files ? The used ROOT files are “official” files download from https://cmsweb.cern.ch/dqm/relval/data/browse/ROOT/RelVal/ and the list below are located on /afs/cern.ch/user/a/archiron/public/ROOT_SIZE
list of root files :
#SOURCE="DQM_V0001_R000000001__Global__CMSSW_X_Y_Z__RECO.root"
#SOURCE="DQM_V0001_R000000001__RelValZEE_13__CMSSW_10_6_20-106X_mc2017_realistic_v9_miniv2-v1__DQMIO.root"
#SOURCE="DQM_V0001_R000000001__RelValZEE_13__CMSSW_10_6_20-106X_mc2017_realistic_v9-v1__DQMIO.root"
#SOURCE="DQM_V0001_R000000001__RelValZEE_14__CMSSW_11_3_0_pre1-113X_mcRun4_realistic_v1_2026D49noPU-v1__DQMIO.root"
#SOURCE="DQM_V0001_R000000001__RelValZEE_14__CMSSW_11_3_0_pre4-113X_mcRun3_2021_realistic_v7-v1__DQMIO.root"
SOURCE="DQM_V0001_R000000001__RelValZEE_14__CMSSW_11_3_0_pre4-113X_mcRun4_realistic_v4_2026D76noPU-v1__DQMIO.root"
#SOURCE="DQM_V0001_R000000001__RelValZEE_14__CMSSW_12_0_0_pre3-120X_mcRun3_2021_realistic_v1-v1__DQMIO.root"
#SOURCE="DQM_V0001_R000000001__RelValZEE_14__CMSSW_12_1_0_pre4-121X_mcRun3_2021_realistic_v10-v1__DQMIO.root"