Hi,
I am generating a root file after reading data from a text file. The data in the text file (“gs_out.txt”) in each row is organized in the order as given below:
EventNbr,dE_a1,E_a1,totE_a1,Th_a1,dE_a2,E_a2,totE_a2,Th_a2,dE_p,E_p,totE_p,Th_p
The root file (“gs_data.root”) that I am generating has branches of the same names as above. However the problem is that the following branches are showing same data although the data file contains different values for those variables!
-
dE_a2 and dE_p
-
E_a2 and E_p
-
Th_a2 and Th_p
I am attaching the data file, the root file and the macro (“gs_data.C”) that I am using to generate the root file. Any help will be much appreciated.
Thank you in advance.
gs_data.C (1.3 KB)
gs_data.root (20.0 KB)
gs_out.txt (32.4 KB)