StRoot
1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
Sti
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
15
StiPlanarShape
():
StiShape
(),
_halfWidth
(0.){}
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
StiShape
Definition:
StiShape.h:15
StiPlanarShape::_halfWidth
float _halfWidth
Half extent in local y, always >= 0.
Definition:
StiPlanarShape.h:30
StiPlanarShape
Definition:
StiPlanarShape.h:10
Generated by
1.8.5