Hi Niels,
In the released version 3.03/09 (September) the geometry classes
were not yet persistable. We did this work in October.
In the current version in CVS, you will see functions like
TGeoManager::Export and Import. To save your geometry, do:
gGeoManager->Export("geomfile.root");
To read it back, do
TGeoManager::Import("geomfile.root");
About attributes:
Both TGeoVolume and TGeoNode have line and fill attributes.
However, in the current implementation, only the volume attributes
are taken into account.
I am ccing this mail to Andrei Gheata who is doing the hard work.
Andrei, I assume that you will implemented support for TGeoNode
attributes in a coming version.
Rene
On Fri, 22 Nov 2002, Niels van Eldik wrote:
> Hi,
>
> I'm working on muon reconstruction for ATLAS and am trying to use the
> TVirtualMC for the track propagation and the TGeo-classes to define my
> geometry and as an event display.
> I'm having problems saving my geometry, it is not clear to me how this
> should be done. Just saving the top volume should not be enough and when I
> try to do this. I get an segmentation fault when I try to draw the volume.
> Could you tell me how geometries can be saved on disk?
>
> Further more I would like to change the color of the sensitive detectors
> that are hit in my setup. The problem that occures is that if I change the
> color of a "tube" placed in the mother volume "chamber", the color is
> changed in all "chambers".
> This is a logical consequence of the way the geometry is build, but
> is there a way around this problem. A solution is to create a new volume
> for every chamber that is placed, but this is not a premanent solution.
> Is there a way to avoid this problem?
>
>
> I using ROOT v3.03.09 on Red Hat 6.2
>
> Thanks Niels van Eldik
>
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:20 MET