00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef StRpsRomanPot_hh
00018 #define StRpsRomanPot_hh
00019
00020 #include "StObject.h"
00021 #include "StContainers.h"
00022 #include "StRpsPlane.h"
00023
00024 class StRpsCollection;
00025
00026 class StRpsRomanPot : public StObject {
00027 public:
00028 StRpsRomanPot();
00029 ~StRpsRomanPot();
00030
00031 unsigned int romanPotId() const;
00032 unsigned int numberOfPlanes() const;
00033 unsigned int numberOfPlanesWithClusters() const;
00034 unsigned int adc(unsigned int) const;
00035 unsigned int tac(unsigned int) const;
00036 unsigned char status() const;
00037
00038 const StRpsPlane* plane(unsigned int) const;
00039 StRpsPlane* plane(unsigned int);
00040
00041 void setStatus(unsigned char);
00042 void setAdc(unsigned int, unsigned int);
00043 void setTac(unsigned int, unsigned int);
00044
00045 protected:
00046 void setRomanPotId(unsigned char);
00047 friend class StRpsCollection;
00048
00049 protected:
00050 enum {mNumberOfPlanes = 4};
00051 StRpsPlane mPlanes[mNumberOfPlanes];
00052 UChar_t mRomanPotId;
00053 UChar_t mStatus;
00054 UInt_t mAdc[2];
00055 UInt_t mTac[2];
00056
00057 ClassDef(StRpsRomanPot,1)
00058 };
00059
00060 #endif