Getting entries from branch and plotting entry# as a bin in a histogram

What I am trying to do is take the entries from an existing branch and make a new 1D histogram where the entries from my branch are plotted as bins. So for example, my x axis would be the entry number and the y axis would be the value of that entry. From there I want to integrate the histogram to get the total summation of all the entries.

If someone could explain how to do this it would be much appreciated!!

Thanks!

Hi,
please take a look here for an overview of the different methods available to read values of a branch and fill a histogram.

Once you have the histogram filled, if I understand correctly you would just need to call ComputeIntegral on it (see the docs).

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.