TH3 projections

My only question is: Is there a member function to give a slice of the TH3?

There are two similar functions:
[ul]
ProjectionX (and the corresponding one for Y) will do that for TH2 if I set firstxbin = lastxbin
Project3D is the equivalent for TH3 but doesn’t allow me to specify the first and last bin
[/ul]
Since TH3 doesn’t inherit from TH2 it seems I have to do it myself. Am I right?

Javier :frowning:

See the documentation of TH3 at:http://root.cern.ch/root/htmldoc/TH3.html#TH3:Project3D

The projection is made for the selected bins only.
To select a bin range along an axis, use TAxis::SetRange, eg
h3.GetYaxis()->SetRange(23,56);

Rene