Making an ellipsoid with TGeo classes

From: Corey Reed <cjreed_at_nikhef.nl>
Date: Wed, 17 Feb 2010 18:44:43 +0100


Hi,

I am using Root 5.24.00 on linux.x86_64.

I am trying to convert some Geant4 code to use the Root classes. Unfortunately, some of the detector objects are defined by the G4Ellipsoid class.

As far as I can see, there is no TGeoEllipsoid corresponding to G4Ellipsoid.

I have tried making a sphere and setting the bounding box dimensions, but this does not seem to work:

root [0] TGeoSphere* sph = new TGeoSphere("sph",0.,1.)
root [1] sph->SetBoxDimensions(0.125,0.125,0.06)
root [2] sph->Draw()

(A simple sphere is still drawn; the box dimensions seem to be ignored.)

Is it possible to stretch a sphere? Is there any other trick which would allow an ellipsoid to be made within TGeo?

Thanks!

Received on Wed Feb 17 2010 - 18:44:47 CET

This archive was generated by hypermail 2.2.0 : Thu Feb 18 2010 - 11:50:02 CET