Histogram bin contents

How do I find the number of entries in a bin from command line? When I use GetBinContent, I get an error which states “no mmeber named ‘GetBinContent’ in ‘TTree.’”

TTree is not a histogram.

Okay, but is there any way to get the bin contents of the histograms that the data analysis program I’m using draws from the command line?

Double_t binContent = pointer_to_some_histo->GetBinContent(bin_number);

But I can’t use GetBinContent(). The error I described occurs.

Go to my first reply above. :mrgreen:

First generate an histogram from your TTree (many ways to do that) and then use GetBinContent() on it.