Setting a gate on a cube

Please read tips for efficient and successful posting and posting code

ROOT Version: 6.18
Platform: Not Provided
Compiler: Not Provided

Good day

May you please help. I want to set a gate on a cube that is in a root file.
I used the terminal and typed the following:

However I cant see the gated spectrum.
Please help.

What kind of object is ggdt_cube ?


Thanks for the response. I managed to get this right by doing TH2D* matrix = static_cast<TH2D*>(ggdt_cube->Project3D(“xy”)).

Kind regards