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:
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.