test
CMS 3D CMS Logo

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