StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StiPlanarShape.cxx
1 #include "StiPlanarShape.h"
2 
3 StiPlanarShape::StiPlanarShape(const string &name,
4  float halfDepth,
5  float thickness, float halfWidth)
6  : StiShape(name,halfDepth, thickness),
7  _halfWidth(halfWidth)
8 {}// StiPlanarShape()
9 
10 void StiPlanarShape::setHalfWidth(float val){
11  if(val >= 0.){ _halfWidth = val; }
12 }// setHalfWidth()
13 
14 
15 double StiPlanarShape::getVolume() const
16 { return getHalfWidth()*getHalfDepth()*getThickness()*4;}
17 
float _halfWidth
Half extent in local y, always >= 0.