StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StiPlanarShape.h
1 // Class to represent a shape within the STAR geometry
2 // Ben Norman, Kent State
3 // 25 July 01
4 
5 #ifndef STI_PLANAR_SHAPE_H
6 #define STI_PLANAR_SHAPE_H
7 
8 #include "StiShape.h"
9 
10 class StiPlanarShape: public StiShape
11 {
12  public:
13 
14  // constructor
16  StiPlanarShape(const string &name, float halfDepth, float thickness, float halfWidth);
17 
18  // accessors
19 virtual float getHalfWidth() const { return _halfWidth;} //deltaY
20 virtual float getOpeningAngle()const { return 999 ;}
21  StiShapeCode getShapeCode() const { return kPlanar ;}
22 double getVolume() const;
23 
24 
25  // mutators
26  void setHalfWidth(float val);
27 
28  protected:
30  float _halfWidth;
31 };
32 
33 #endif
float _halfWidth
Half extent in local y, always >= 0.