17 #include "StRpsRomanPot.h"
18 #include "StRpsCollection.h"
19 #include "StRpsCluster.h"
21 static const char rcsid[] =
"$Id: StRpsRomanPot.cxx,v 2.1 2009/11/23 22:18:25 ullrich Exp $";
28 mAdc[0] = mAdc[1] = mTac[0] = mTac[1] = 0;
33 StRpsRomanPot::~StRpsRomanPot() { }
36 StRpsRomanPot::romanPotId()
const
42 StRpsRomanPot::numberOfPlanes()
const
44 return mNumberOfPlanes;
48 StRpsRomanPot::numberOfPlanesWithClusters()
const
50 unsigned int count = 0;
51 for (
int i=0; i<mNumberOfPlanes; i++)
52 count += mPlanes[i].numberOfClusters();
57 StRpsRomanPot::adc(
unsigned int i)
const
59 return (i < 2 ? mAdc[i] : 0);
63 StRpsRomanPot::tac(
unsigned int i)
const
65 return (i < 2 ? mTac[i] : 0);
69 StRpsRomanPot::status()
const
75 StRpsRomanPot::plane(
unsigned int i)
const
77 if (i < mNumberOfPlanes)
83 StRpsPlane* StRpsRomanPot::plane(
unsigned int i)
85 if (i < mNumberOfPlanes)
92 StRpsRomanPot::setStatus(
unsigned char val)
97 void StRpsRomanPot::setRomanPotId(
unsigned char i)
102 void StRpsRomanPot::setAdc(
unsigned int adc0,
unsigned int adc1)
108 void StRpsRomanPot::setTac(
unsigned int tac0,
unsigned int tac1)