Is it possible to extract peak gamma photon count and show it on the terminal?

Is it possible for this peak photon count to show on the terminal?

You’re doing that in ROOT, right? You’re probably better off asking this in the ROOT discussion forums.

I asked, but no one was responding. This root file was generated in gean4. That’s why I am asking here.

There are functions in the ROOT TH1 class to let you extract the event counts in a bin, or even in a range of bins. See the ROOT documentation.

1 Like