Hi Paolo, I have no idea why you get a segv, but the way to import the geometry is: root[0] gSystem->Load("libGeom"); root[1] TGeoManager::Import("geomfile.root"); ... Try it this way. If you still get a crash, send me your geometry file. It is possible that TGeo have some backward incompatibility related to I/O. Otherwise, regenerate (if you still can) the geomfile.root with a more recent version. Regards, Andrei paolo maestro wrote: > Hi rooters, > I created a detector geometry in a world wolume called EXPH using the > TGeo classes and exported it > to a file geomfile.root. > Using Root version 3.10.01 with the following code , I can draw the > geometry > previously saved in the file > > TGeoManager *geo=new TGeoManager(); > geo->Import("geomfile.root") > TGeoVolume* EXPH=geo->GetVolume("EXPH"); > EXPH->Draw(); > > I noticed that with version 3.10.02 and 4.xx , this simple code does not > work anymore > and gives seg. violation at the third line (of course for all the Root > version, I created a related geomfile.root ) > when I'm trying to get the world volume. > What I'm doing wrong ? Which changes do I have to apply? > Thanks > > Paolo > > > -- > Paolo Maestro > Universita' di Siena-INFN > Phone ++39-050-2214349 > ++39-050-2214356 > Fax ++39-050-2214317 > >
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:07 MET