18 #include "StRpsPlane.h"
19 #include "StRpsCluster.h"
21 static const char rcsid[] =
"$Id: StRpsPlane.cxx,v 2.1 2009/11/23 22:18:25 ullrich Exp $";
27 mOffset = mZ = mAngle = 0;
30 mRomanPotId = mPlaneId = 0;
33 StRpsPlane::~StRpsPlane() { }
36 StRpsPlane::planeId()
const {
return mPlaneId; }
39 StRpsPlane::offset()
const {
return mOffset; }
42 StRpsPlane::z()
const {
return mZ; }
45 StRpsPlane::angle()
const {
return mAngle; }
48 StRpsPlane::orientation()
const {
return mOrientation; }
51 StRpsPlane::status()
const {
return mStatus; }
54 StRpsPlane::numberOfClusters()
const {
return mClusters.size(); }
57 StRpsPlane::cluster(
unsigned int i)
const
59 if (i < mClusters.size())
66 StRpsPlane::cluster(
unsigned int i)
68 if (i < mClusters.size())
75 StRpsPlane::romanPotId()
const {
return mRomanPotId; }
77 const StSPtrVecRpsCluster&
78 StRpsPlane::clusters()
const {
return mClusters; }
81 StRpsPlane::clusters() {
return mClusters; }
87 mClusters.push_back(cluster);
88 cluster->setPlaneId(mPlaneId);
89 cluster->setRomanPotId(mRomanPotId);
94 StRpsPlane::setOffset(
double val) { mOffset = val; }
97 StRpsPlane::setZ(
double val) { mZ = val; }
100 StRpsPlane::setAngle(
double val) { mAngle = val; }
103 StRpsPlane::setOrientation(
short val) { mOrientation = val; }
106 StRpsPlane::setStatus(
unsigned char val) { mStatus = val; }
109 StRpsPlane::setPlaneId(
unsigned char i) { mPlaneId = i; }
112 StRpsPlane::setRomanPotId(
unsigned char i) { mRomanPotId = i; }