Hi all,
I would like to draw a set slices of a TH3D in a 3D view. In other words: I would like to have a 3D coordinate systems and at several z positions, I would like to add planes in which TH2s with option “colz” are drawn. The TH2s should show only the content of the TH3 with the given z of the plane.
I know how to get the corresponding TH2. For example, to get the plane at bin z=50, I could do:
int i_zbin=50;
TH3D* my3dhist->GetZaxis()->SetRange(i_zbin,i_zbin);
TH2D* my2dslice50=(TH2D*)my3dhist->Project3D(“yx”);
But I have no idea how to draw this TH2D in a plane with z=50 in a 3D coordinate system.
Do you have an idea how to do this?
Thanks!