Dear ROOT experts,
I am experiencin an issue with merging nearly 100 root files of about 70 Gega combined. I use the following script for merging [1]. But when my Output reaches 50 Gega it crashes with this error[2]
Any ideas ?
Thanks in advance
[1]
import ROOT
import os, sys
print 'Merging %s' % sys.argv[1]
print "Max tree size",ROOT.TTree.GetMaxTreeSize()
ROOT.TTree.SetMaxTreeSize(200000000000) # 200 Gb
print "Updated tree size",ROOT.TTree.GetMaxTreeSize()
rm = ROOT.TFileMerger(False)
rm.SetFastMethod(True)
path = 'mypath'
file_output = '%s.root' % sys.argv[1]
file_list = []
for path, dirs, files in os.walk(path):
for filename in files:
if ('%s_part' % sys.argv[1]) in filename: file_list.append(path+filename)
print "Input file list:",file_list
print "Output file:",file_output
for F in file_list:
print "Adding ->",F
rm.AddFile(F)
rm.OutputFile(file_output)
rm.Merge()
```========================================================================
[2]
SysError in <TFile::WriteBuffer>: error writing to file mc16e.root (-1) (File too large)
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
TTree::CopyEntries:0: RuntimeWarning: The output TTree (CollectionTree) must be associated with a writable file (mc16e.root).
Error in <TFileMerger::Merge>: error during merge of your ROOT files