One error about the "chain "

Dear all,

I have used chain to do my data analysis. The *.root file is generated all the same way. i’m wondering what the error prompt means like:

Error in <TBranch::GetBasket>: File: /mnt/LDATA/s30/rdata/S30m020.root at byte:823831, branch:t2si2e, entry:-1, badread=-1 Error in <TBranch::GetBasket>: File: /mnt/LDATA/s30/rdata/S30m021.root at byte:829309, branch:t2si2e, entry:-1, badread=-1 ...........

I’ve checked file “S30m021.root” and find that branch t2si2e is no error.

I’ve attached my .C file and i’m looking forward to help.
s30crscal.C (13.7 KB)

Could you post your data file in some public area?

Rene

My data file is not large. i attach 2 of them here. File 18 is the normal one and file 20 is the one makes the error shows.
S30m020.root (1.02 MB)
S30m018.root (1.01 MB)

You have many problems in your script. I fixed some and the script runs.
see also comment at line 27.

Try running it with

root > .x s30crscal.C+
Rene
s30crscal.C (11.8 KB)

Hi,Rene,
there is no error when use the single file. but if chained more files, the same errors comes again.

Error in <TBranch::GetBasket>: File: /mnt/LDATA/s30/rdata/S30m020.root at byte:823831, branch:t2si2e, entry:-1, badread=-1 Error in <TBranch::GetBasket>: File: /mnt/LDATA/s30/rdata/S30m021.root at byte:829309, branch:t2si2e, entry:-1, badread=-1 Error in <TBranch::GetBasket>: File: /mnt/LDATA/s30/rdata/S30m022.root at byte:824060, branch:t2si2e, entry:-1, badread=-1 Error in <TBranch::GetBasket>: File: /mnt/LDATA/s30/rdata/S30m026.root at byte:1312400, branch:t2si2e, entry:-1, badread=-1 Error in <TBranch::GetBasket>: File: /mnt/LDATA/s30/rdata/S30m027.root at byte:827436, branch:t2si2e, entry:-1, badread=-1 Error in <TBranch::GetBasket>: File: /mnt/LDATA/s30/rdata/S30m044.root at byte:842567, branch:t2si2e, entry:-1, badread=-1

Could you post the SHORTEST but RUNNING script using the MINIMUM number of files
to reproduce your problem. I cannot reproduce the problem with the script that I posted and using the 2 data files that you posted.

Rene