Re: TBRIK size

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Feb 16 1998 - 15:37:14 MET


Alexander Zvyagin wrote:
> 
>                                            IHEP, Protvino, Russia, 16-FEB-1998
> 
>     Dear all!
> 
> Is it possible to obtain volume size (dx,dy,dz) of TBRIK object?
> 
> Example:
> 
> some_function()
> {
>   Float_t dx=1, dy=2, dz=3;
>   TGeometry("g","g");
>   TBRIK box("box","This is box","void",dx,dy,dz);
> }
> 
> another_function(TGeometry &g)
> {
>   TIter next(g.GetListOfShapes());
>   while( TShape *shape = (TShape*) next() )
>     if( !strcmp(shape->ClassName(),"TBRIK") )
>       cout << form("TBRIK size:  dx=%g  dy=%g  dz=%g\n",???,???,???);
> }
> 
> If I understand TBRIK source file correctly, there isn't such possibility.
> 
> May be it will be good to add this feature (for TBRIK, TPCON, TTUBE, ...)
> to ROOT system?
> 

Yes, you are right. The current geometry shapes do not have Getter
functions. I will add these functions in the next version.

Rene Brun



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:30 MET