5 #include "GeoModelKernel/GeoTubs.h" 6 #include "GeoModelKernel/GeoShapeAction.h" 8 const std::string GeoTubs::s_classType =
"Tubs";
9 const ShapeType GeoTubs::s_classTypeID = 0x18;
11 GeoTubs::GeoTubs (
double RMin,
double RMax,
double ZHalfLength,
double SPhi,
double DPhi)
14 , m_zHalfLength (ZHalfLength)
24 double GeoTubs::volume ()
const 26 return m_dPhi * (m_rMax * m_rMax - m_rMin * m_rMin) * m_zHalfLength;
29 const std::string & GeoTubs::type ()
const 34 ShapeType GeoTubs::typeID ()
const 41 action->handleTubs(
this);
This class is a visitor for shapes. It allows a navigation of the boolean expression tree for shapes...