Dear ROOT experts
I am running a C++ file on a root file and its output is a root file with tree inside it. If the input root file is small then my code is running fine but in case its size exceeds 2GB it terminates the process with following –
Error in TRFIOFile::TRFIOFile: error doing rfio_lseek
Error in TBranch::GetBasket: File: rfio:///tmp/khurana/input/Merged_ZZtoAnything_TuneZ2_7TeV-pythia6-tauola_v2.root at byte:0, branch:ifTrackIsoUsingLeadingPion, entry:1337352, badread=0, nerrors=1, basketnumber=1
Error in TBranch::GetBasket: File: rfio:///tmp/khurana/input/Merged_ZZtoAnything_TuneZ2_7TeV-pythia6-tauola_v2.root at byte:0, branch:is_SingleHardPhoton_event, entry:1340093, badread=0, nerrors=0, basketnumber=2
Error in TBranch::GetBasket: File: rfio:///tmp/khurana/input/Merged_ZZtoAnything_TuneZ2_7TeV-pythia6-tauola_v2.root at byte:0, branch:is_SingleHardPhoton_event, entry:1340093, badread=0, nerrors=0, basketnumber=3
Error in TBranch::GetBasket: File: rfio:///tmp/khurana/input/Merged_ZZtoAnything_TuneZ2_7TeV-pythia6-tauola_v2.root at byte:0, branch:is_SingleHardPhoton_event, entry:1340093, badread=0, nerrors=0, basketnumber=4
Error in TBranch::GetBasket: File: rfio:///tmp/khurana/input/Merged_ZZtoAnything_TuneZ2_7TeV-pythia6-tauola_v2.root at byte:0, branch:is_SingleHardPhoton_event, entry:1340093, badread=0, nerrors=0, basketnumber=5
Error in TBranch::GetBasket: File: rfio:///tmp/khurana/input/Merged_ZZtoAnything_TuneZ2_7TeV-pythia6-tauola_v2.root at byte:0, branch:is_SingleHardPhoton_event, entry:1340093, badread=0, nerrors=0, basketnumber=6
Error in TBranch::GetBasket: File: rfio:///tmp/khurana/input/Merged_ZZtoAnything_TuneZ2_7TeV-pythia6-tauola_v2.root at byte:0, branch:is_SingleHardPhoton_event, entry:1340093, badread=0, nerrors=0, basketnumber=7
Error in TBranch::GetBasket: File: rfio:///tmp/khurana/input/Merged_ZZtoAnything_TuneZ2_7TeV-pythia6-tauola_v2.root at byte:0, branch:is_SingleHardPhoton_event, entry:1340093, badread=0, nerrors=0, basketnumber=8
Error in TBranch::GetBasket: File: rfio:///tmp/khurana/input/Merged_ZZtoAnything_TuneZ2_7TeV-pythia6-tauola_v2.root at byte:0, branch:is_SingleHardPhoton_event, entry:1340093, badread=0, nerrors=0, basketnumber=9
file probably overwritten: stopping reporting error messages
===>File is more than 2 Gigabytes
Please suggest some alternative to avoid such errors.
Regards
Raman