Hi,
I’m implementing calorimeter clusters as TPolyMarker3D-derived objects and added a simple struct to record the info of individual hits that are grouped into the cluster. When I draw the clusters on a 3D drawing, I can get which clusters the mouse cursor is pointing to simply by using
TCanvas::ProcessEvents(Int_t x, Int_t y, Int_t z, TObject*)
but I don’t know which and what kind of hit the mouse cursor is pointing to.
My question is, would it be possible to convert the hit positions (double hx, double hy, double hz) into the pixel values (int px, int py, int pz)?
The ROOT manual seems to cover only 2D conversions. I also notice that px is constant in 3D, in my case, always 52. Or is there a better way to implement the drawing of clusters and their hits.
Thanks in advance,
Allister