StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StiShape.cxx
1 #include "StiCylindricalShape.h"
2 
3 
4 ostream& operator<<(ostream& os, const StiShape& m)
5 {
6  os << "StiShape: " << endl
7  << "Name: "<< m.getName()
8  << " ShapeCode: "<< m.getShapeCode()
9  << " HalfDepth (dZ): " << m.getHalfDepth()
10  << " HalfWidth (dY): " << m.getHalfWidth();
11 
12  if (m.getShapeCode() == kCylindrical) {
14  os << " OuterRadius: "<< cyl->getOuterRadius()
15  << " OpeningAngle: "<< cyl->getOpeningAngle();
16  }
17 
18  os << " Thickness (2*dX): " << m.getThickness()
19  << " EdgeWidth: " << m.getEdgeWidth()
20  << endl;
21 
22  return os;
23 }
const string & getName() const
Get the name of the object.
Definition: Named.cxx:22