CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_7/src/CondFormats/CastorObjects/interface/CastorGain.h

Go to the documentation of this file.
00001 #ifndef CastorGain_h
00002 #define CastorGain_h
00003 
00010 #include <boost/cstdint.hpp>
00011 
00012 class CastorGain {
00013  public:
00015   const float* getValues () const {return &mValue0;}
00017   float getValue (int fCapId) const {return *(getValues () + fCapId);}
00018 
00019   // functions below are not supposed to be used by consumer applications
00020 
00021   CastorGain () : mId (0), mValue0 (0), mValue1 (0), mValue2 (0), mValue3 (0) {}
00022   
00023   CastorGain (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 
00032  private:
00033   uint32_t mId;
00034   float mValue0;
00035   float mValue1;
00036   float mValue2;
00037   float mValue3;
00038 };
00039 
00040 #endif