CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/CondFormats/HcalObjects/interface/HcalGain.h

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