Counts in a TCut

How can I check the number of entries in a Graphic Cut in a 2D histogram.

_ROOT Version:6.04
_Platform:Ubuntu 18.04 LTS
Compiler: Not Provided


In general, you can get the number of entries by calling <histogram>->GetEntries(), e.g. h2->GetEntries(), either in the ROOT prompt or in your macro. But perhaps you mean something else? Do you have a code snippet for illustration?

Actually I am asking for getting number of counts in a Graphic cut that I can apply through the editor option of TBrowser. I had a Neutron time of flight vs PSD plot and I want to know the number of counts in neutron lobe.

May be this can help:
https://root.cern/doc/master/classTCutG.html#a06bcd20bcfdded1d14e791fe7847de03

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