Hello,
I am having problems merging files that are on the grid with the latest versions of root. This problem doesn’t exist with root v5-17-06 (but I cannot use it because then I get two copies of each NTuple in the merged file)
If locally I run the attached macro with the trunk (or with version v5-18-00a) I get the following error message (for two files):
[quote]Info in TAlienFile::Open: Accessing image 1 of alien:///alice/cern.ch/user/m/mercedes/muonAnalysis/output/Bntkine/200007/no_se/root_archive.zip?filetype=raw&cachesz=2000000&readaheadsz=1000000&rmpolicy=1#bNtKineAnalysis_singleM.root in SE ALICE::GSI::SE
[TFile::Cp] Total 0.87 MB |====================| 100.00 % [2.6 MB/s]
Error in TFile::Cp: read and written bytes differ (922647 != 912536)
Error in TFileMerger::AddFile: cannot get a local copy of file alien:///alice/cern.ch/user/m/mercedes/muonAnalysis/output/Bntkine/200007/no_se/root_archive.zip#bNtKineAnalysis_singleM.root
Info in TAlienFile::Open: Accessing image 1 of alien:///alice/cern.ch/user/m/mercedes/muonAnalysis/output/Bntkine/200007/no_se_1/root_archive.zip?filetype=raw&cachesz=2000000&readaheadsz=1000000&rmpolicy=1#bNtKineAnalysis_singleM.root in SE ALICE::GSI::SE
[TFile::Cp] Total 0.87 MB |====================| 100.00 % [3.3 MB/s]
Error in TFile::Cp: read and written bytes differ (925697 != 915586)
Error in TFileMerger::AddFile: cannot get a local copy of file alien:///alice/cern.ch/user/m/mercedes/muonAnalysis/output/Bntkine/200007/no_se_1/root_archive.zip#bNtKineAnalysis_singleM.root
[/quote]
If now I copy those files locally (I can do that with no problem), their sizes are: 912536 and 915586 respectively, and I can merge them with no problem.
Any suggestion?
Thanks a lot,
Mercedes
mergeFiles.C (703 Bytes)