CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/src/CondFormats/CastorObjects/interface/CastorGainWidth.h

Go to the documentation of this file.
00001 #ifndef CastorGainWidth_h
00002 #define CastorGainWidth_h
00003 
00009 #include <boost/cstdint.hpp>
00010 
00011 class CastorGainWidth {
00012  public:
00014   const float* getValues () const {return &mValue0;}
00016   float getValue (int fCapId) const {return *(getValues () + fCapId);}
00017 
00018   // functions below are not supposed to be used by consumer applications
00019 
00020   CastorGainWidth () : mId (0), mValue0 (0), mValue1 (0), mValue2 (0), mValue3 (0) {}
00021   
00022   CastorGainWidth (unsigned long fId, float fCap0, float fCap1, float fCap2, float fCap3) :
00023     mId (fId),
00024     mValue0 (fCap0),
00025     mValue1 (fCap1),
00026     mValue2 (fCap2),
00027     mValue3 (fCap3) {}
00028 
00029   uint32_t rawId () const {return mId;}
00030 
00031  private:
00032   uint32_t mId;
00033   float mValue0;
00034   float mValue1;
00035   float mValue2;
00036   float mValue3;
00037 };
00038 
00039 #endif