copytree is ok !
Error in TBufferFile::WriteByteCount: bytecount too large (more than 1073741822)
Error in TBufferFile::WriteByteCount: bytecount too large (more than 1073741822)
Error in TBufferFile::CheckByteCount: object of class TObjArray read too many bytes: 1674128446 instead of 600386622
Warning in TBufferFile::CheckByteCount: TObjArray::Streamer() not in sync with data, fix Streamer(),
i have no idea about this, can you help me?
In order to help you we would need more information. For example, the ROOT version you used, the OS you are running on, the parameters you passed to the macro, etc. In summary, everything that is relevant to reproduce the issue.
The file you sent is more than 300 lines and is not self-contained. Please focus on creating a Minimal Reproducible Example that demonstrates the issue.
(working) [root@DESKTOP-ADTHE2U unbiased]# root -l 'example.c("S24c4_down_BsToJpsiPhi_prompt_unbiased_cut_BDT0.root","S24c4_down_BsToJpsiPhi_prompt_unbiased_cut_BDT0_sw.root","sig_sw",2960,3240)'
root [0]
Processing example.c("S24c4_down_BsToJpsiPhi_prompt_unbiased_cut_BDT0.root","S24c4_down_BsToJpsiPhi_prompt_unbiased_cut_BDT0_sw.root","sig_sw",2960,3240)...
copytree is ok !
Error in <TBufferFile::WriteByteCount>: bytecount too large (more than 1073741822)
Error in <TBufferFile::WriteByteCount>: bytecount too large (more than 1073741822)
Error in <TBufferFile::CheckByteCount>: object of class TObjArray read too many bytes: 1674128446 instead of 600386622
Warning in <TBufferFile::CheckByteCount>: TObjArray::Streamer() not in sync with data, fix Streamer()
ROOT version is ROOT 6.30/04. I am running on Centos7. But the root file is too big, i can not upload it.
Does the error show up on other (perhaps smaller) input files too?
Please wrap code or output in ``` for better readability. I edited your post to illustrate.
Thanks to your help, I learned a new editing method!
When I’m only using half the amount of data, this problem doesn’t come up anymore. But I want to use as much data as I can. I suspect the problem may be due to clonetree.
This seems to indicate that you reach the current maximum number of baskets in a single TTree (more than 50 millions baskets). You will need to split the TTree accross multiple files.