TBRIK size

From: Alexander Zvyagin (zvyagin@mx.ihep.su)
Date: Mon Feb 16 1998 - 07:38:22 MET


                                           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?

Thanks,
Alexander Zvyagin.



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