CMS 3D CMS Logo

HcalRawGain.h
Go to the documentation of this file.
1 #ifndef HcalRawGain_h
2 #define HcalRawGain_h
3 
12 #include <boost/cstdint.hpp>
13 #include <string>
14 
15 class HcalRawGain {
16  public:
17  enum Status {GOOD = 0, BAD = 1};
18  float getValue () const {return mValue;}
19  float getError () const {return mError;}
20  float getVoltage () const {return mVoltage;}
21  Status getStatus () const {return Status (mStatus);}
22  std::string strStatus () const {return getStatus () == GOOD ? "GOOD" : "BAD";}
23 
24 
25  HcalRawGain (unsigned long fId = 0) : mId (fId), mValue (0), mError (0), mVoltage (0), mStatus (int (BAD)) {}
26 
27  HcalRawGain (unsigned long fId, float fValue, float fError, float fVoltage, Status fStatus) :
28  mId (fId),
29  mValue (fValue),
30  mError (fError),
31  mVoltage (fVoltage),
32  mStatus (int (fStatus)) {}
33 
34  uint32_t rawId () const {return mId;}
35 
36  private:
37  uint32_t mId;
38  float mValue;
39  float mError;
40  float mVoltage;
41  int mStatus;
42 };
43 
44 #endif
std::string strStatus() const
Definition: HcalRawGain.h:22
float getValue() const
Definition: HcalRawGain.h:18
HcalRawGain(unsigned long fId, float fValue, float fError, float fVoltage, Status fStatus)
Definition: HcalRawGain.h:27
HcalRawGain(unsigned long fId=0)
Definition: HcalRawGain.h:25
float getError() const
Definition: HcalRawGain.h:19
uint32_t mId
Definition: HcalRawGain.h:37
float getVoltage() const
Definition: HcalRawGain.h:20
float mError
Definition: HcalRawGain.h:39
float mValue
Definition: HcalRawGain.h:38
uint32_t rawId() const
Definition: HcalRawGain.h:34
float mVoltage
Definition: HcalRawGain.h:40
Status getStatus() const
Definition: HcalRawGain.h:21