Re: Modifying TMaterial
Rene Brun (Rene.Brun@cern.ch)
Tue, 27 Jul 1999 15:39:28 +0000
gora@solar2.ucr.edu wrote:
>
> Hello everybody,
> I am considering modifying the TMaterial class in ROOT in order to add
> quantities of interest to gamma-ray astronomers, e.g., refractive index,
> optical absorption coefficients, etc. At the same time I would like to
> propagate these changes upwards, i.e., TGeometry should be aware of these
> changes to TMaterial. Is there any easy way of telling ROOT to use my TMaterial
> class rather than the built-in one or do I also have to extend TGeometry and
> TROOT (for the global list of geometries). It seems not too difficult to go
> ahead and extend all the classes, but I think there should be an easier way.
> Any suggestions? Thanks in advance.
>
> Regards,
> Gora
Hi Gora,
Simply derived a new class from TMaterial with your new attributes.
You do not have to modify TGeometry.
Rene Brun