On Thu, 12 May 2005, Dmitry Naumov wrote:
> And finally, just a very trivial example. In root session I do:
> root[].x g3libs.C
> root[] MCApplication* appl = new MCApplication("nuclon", "The NUCLON MC
> application");
> root[] TGeant3* t = new TGeant3TGeo("test")
> root[] t->IsRootGeometrySupported()
> 0
This problem has been fixed recently in geant3; with my CVS head version, it return correctly true value; but I think, the fix is included already in version 1.1.
In your case, put in void Ex01MCApplication::ConstructGeometry()
only:
TGeoManager::Import("nuclon_geometry.root");
gMC->SetRootGeometry();
You have also to comment out the code in Ex01MCApplication::InitGeometry(),
which is specific the the geometry in Ex01.
I have tested your file with CVS head version of geant3,
and it passed ok:
### Geometry loaded from file...
Top volume is TOP. Master volume is TOP
### Voxelization retrieved from file
--- node ID tracking disabled
### 2122 nodes/ 2123 volume UID's in nuclon
I hope it helps.
Best regards,
Ivana
This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:55:21 MET