I suggest two solutions;
-via TPolyMarker3D (see example in tutorial tornado.C
-via TNtuple. make a Tree with your variables x,y,z, possibly more
to visualize one event (one Tree), do
ntuple.Draw("x:y:z","may be a cut (or cuts)")
This will produce a 3-d scatter plot that you can rotate interactively or via
the OpenGL viewer (in 4.01/02)
Rene Brun
Balint Radics wrote:
>
> Hello,
>
> I would like to rotate set of points (x,y,z) in 3D. Which class should I
> use to do that?I didn't find any rotational functions in the TMatrix class.
> I found general transformational functions only in the TGeoMatrix classes
> but that belongs to the detector geometry classes,don't they?
> Or maybe I am wrong.
> And do you have little example scripts for matrix transformation?
> I mean general rotation or translation functions.Like:
>
> m = new TMatrix(3,1,elements);
> m->Rotate(phi,theta);
>
> etc....
>
> I am trying to MC-simulate ellipsoid showers of hadrons in a detector...
>
> Thanx in advance,
>
> radbal
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:09 MET