Will be possible create a for loop inside the first if loop attributing for each file one color to place in the new histogram? Or its necessary generated new histograms for each file and add them to a new histogram?
It possible show me an example of these 2 possibilities that you talk to me for my better understanding? In this case, two question appears to me:
How could I encode “encode” the file number as one additional histogram axis?
How may I, after creating the histograms, place in another histogram in the same file?
I am new in programming and root too it’s that why these questions.
See the figure bellow (ener2.jpg). This figure is based on the code provide above. ener2|690x468
See the figure bellow (ener2a.jpg). I expected that the histogram was something like a plot of ELost/Ekin x counts (what seems to see in figures ener2.jpg and ener2a.jpg) but with the curve like figure modelo.jpg. Where each curve represents one energy.
How I do for adding a legend to I see what color correspond to what energy and plot a FIT to see the line across each point of the energy. For each energy one FIT. The figure of that code is
If I want to see the curve so that I can’t see what’s happens with the histogram tails and see the legend of each color its possible? And if I want to mainted the Event_EventID in the Y axis its possible too?