TChain: TBufferFile::WriteByteCount>: bytecount too large

Dear experts,

I am getting the issue with the byte count too large. I checked there there are several post there on the ROOT forum like here. But, I am unable to get why I am getting this.

I am trying to add 4 files in a TChain like below (taken from my full macro here):

def reduceTree(inTree, cut):
  small = inTree.CopyTree(str(cut))
  return small

treeNames = [
bkg_tree_2017 = ROOT.TChain()
for tree in treeNames:
bkg_tree_2017 = reduceTree(bkg_tree_2017,Cut_noMass)

sum of size of these 4 files is 711M. I am not sure why I am getting this error. If I run my macro with individual files or 2 at at time it works fine but not with all of them simultaneously.

Do you have any suggestion how I can fix this.

Thanks in advance for your help.

with regards,

ROOT Version: 6.20/07
Platform: lxplus
Compiler: Not Provided


file = ROOT.TFile('bkg_tree_2017.small.root', 'recreate')
bkg_tree_2017 = reduceTree(bkg_tree_2017, Cut_noMass)
file.Write # ... or ... bkg_tree_2017.Write()

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.