i am sorry for my bad English, I hope you will forgive me.
i have some little issues with creating a histogram: I already tried to look for something useful in the previous questions and answers, but I was a little confused.
I need to do a histogram which contains the x-values (first column of the txt file I will share here) and how many times a software has seen the y-values (second column).
how can I make a decent histogram with these data…
is it possibile with TH1F? I need then to do some fit on this histogram…
second ps: I already succeeded in doing a graph considering the first column as a x-value and the second one as a y- value (I used them as points, but I’d like to have an histogram, since in the graph I needed to introduce the errors of the measures…)
I hope you can help me…
thanks for spending your time on answering for this question
hi! thank you for the answer!
i am sorry, but I will bother you just a bit more
I already did this (and this does give me no issues), but this treats the x and y data as points, doesn’t it?
To be honest, I am pretty satisfied with this type of graph, since I can finish my data analysis, but I may need to do a histogram with (the y values are supposed to represent how many times the x-value appeared to the software which was used for the measure) just to satisfy my teacher’s desire…
is it possibile? if it is, could you tell me?
ps: I can, eventually, split the columns of the txt file and make two different txt files, but I don’t know how to make root generate a histogram with the frequency of events;