5 #include "GeoModelKernel/GeoCons.h" 6 #include "GeoModelKernel/GeoShapeAction.h" 8 const std::string GeoCons::s_classType =
"Cons";
9 const ShapeType GeoCons::s_classTypeID = 0x11;
11 GeoCons::GeoCons (
double RMin1,
double RMin2,
double RMax1,
double RMax2,
double DZ,
double SPhi,
double DPhi)
26 double GeoCons::volume ()
const 28 return (m_dPhi * (1./3)) * m_dZ * (m_rMax1 * m_rMax1 + m_rMax2 * m_rMax2 + m_rMax1 * m_rMax2
29 - m_rMin1 * m_rMin1 - m_rMin2 * m_rMin2 -
33 const std::string & GeoCons::type ()
const 38 ShapeType GeoCons::typeID ()
const 45 action->handleCons(
this);
This class is a visitor for shapes. It allows a navigation of the boolean expression tree for shapes...