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