Re: ROOT & GEANT
Rene Brun (Rene.Brun@cern.ch)
Mon, 16 Feb 1998 15:22:32 +0100
Alexander Zvyagin wrote:
>
> Dear ROOT users!
>
> I have TGeometry object. Now I'd like to create GEANT application with
> this geometry:
>
> // This is example of GEANT UGEOM function on C++
> void UGEOM(void)
> {
> TGeometry g("g","g");
> // ....
> CreateGeometryGEANT(g);
> }
>
> Any recommendation how I should write the function CreateGeometryGEANT() ?
>
> May be I need create classes
>
> class TGeometry_GEANT : public TGeometry
> { public: CreateGeometryGEANT(void); };
> class TShape_GEANT : public TShape
> { public: CreateShapeGeometry(void); };
> ... and so on
> where CreateShapeGeometry is simple call to GSVOLU?
>
> Then my code will be
> void UGEOM(void)
> {
> TGeometry_GEANT g("g","g");
> // ....
> g.CreateGeometryGEANT();
> }
>
> Comments?
I understand from your message that you want to call
the Geant3 geometry routines from Root and use the Geant
tracking system.
I was recently at FNAL and found that Pasha Murat from CDF
has such an interface already working.
May be Pasha will comment on his work on this list.
Rene Brun