00001 #ifndef CastorPedestal_h
00002 #define CastorPedestal_h
00003
00010 #include <boost/cstdint.hpp>
00011
00012 class CastorPedestal {
00013 public:
00015 const float* getValues () const {return &mValue0;}
00017 float getValue (int fCapId) const {return *(getValues () + fCapId);}
00018
00019
00020
00021 CastorPedestal () : mId (0), mValue0 (0), mValue1 (0), mValue2 (0), mValue3 (0) {}
00022
00023 CastorPedestal (unsigned long fId, float fCap0, float fCap1, float fCap2, float fCap3) :
00024 mId (fId),
00025 mValue0 (fCap0),
00026 mValue1 (fCap1),
00027 mValue2 (fCap2),
00028 mValue3 (fCap3) {}
00029
00030 uint32_t rawId () const {return mId;}
00031 private:
00032 uint32_t mId;
00033 float mValue0;
00034 float mValue1;
00035 float mValue2;
00036 float mValue3;
00037 };
00038
00039 #endif