CMS 3D CMS Logo

HcalRawGain.h

Go to the documentation of this file.
00001 #ifndef HcalRawGain_h
00002 #define HcalRawGain_h
00003 
00012 #include <boost/cstdint.hpp>
00013 
00014 class HcalRawGain {
00015  public:
00016   enum Status {GOOD = 0, BAD = 1};
00017   float getValue () const {return mValue;}
00018   float getError  () const {return mError;}
00019   float getVoltage () const {return mVoltage;}
00020   Status getStatus () const {return Status (mStatus);}
00021   std::string strStatus () const {return getStatus () == GOOD ? "GOOD" : "BAD";}
00022   
00023 
00024   HcalRawGain (unsigned long fId = 0) : mId (fId), mValue (0), mError (0), mVoltage (0), mStatus (int (BAD)) {}
00025   
00026   HcalRawGain (unsigned long fId, float fValue, float fError, float fVoltage, Status fStatus) :
00027     mId (fId),
00028     mValue (fValue),
00029     mError (fError),
00030     mVoltage (fVoltage),
00031     mStatus (int (fStatus)) {}
00032 
00033   uint32_t rawId () const {return mId;}
00034 
00035  private:
00036   uint32_t mId;
00037   float mValue;
00038   float mError;
00039   float mVoltage;
00040   int mStatus;
00041 };
00042 
00043 #endif

Generated on Tue Jun 9 17:26:34 2009 for CMSSW by  doxygen 1.5.4