test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalDcsValue.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 #ifndef HcalDcsValue_h
3 #define HcalDcsValue_h
4 
6 
7 #include <stdint.h>
9 
10 class HcalDcsValue {
11 public:
12 
13  HcalDcsValue ();
14  HcalDcsValue (uint32_t fid, int ls, float val, float upper,
15  float lower);
16  HcalDcsValue (HcalDcsValue const& other);
17 
18  virtual ~HcalDcsValue ();
19 
20  uint32_t DcsId () const { return mId; }
21  int LS () const { return mLS; }
22  float getValue () const { return mValue;}
23  float getUpperLimit () const { return mUpperLimit; }
24  float getLowerLimit () const { return mLowerLimit; }
25  bool isValueGood () const {
26  return ((mValue <= mUpperLimit) && (mValue >= mLowerLimit));
27  }
28 
30 
31  bool operator < (HcalDcsValue const& rhs) const {
32  if (mId == rhs.mId) return (mLS < rhs.mLS);
33  return (mId < rhs.mId);
34  }
35 
36 private:
37  uint32_t mId;
38  int mLS;
39  float mValue;
40  float mUpperLimit;
41  float mLowerLimit;
42 
44 };
45 
46 #endif
float getUpperLimit() const
Definition: HcalDcsValue.h:23
float getLowerLimit() const
Definition: HcalDcsValue.h:24
float mUpperLimit
Definition: HcalDcsValue.h:40
bool isValueGood() const
Definition: HcalDcsValue.h:25
bool operator<(HcalDcsValue const &rhs) const
Definition: HcalDcsValue.h:31
HcalOtherSubdetector getSubdetector() const
Definition: HcalDcsValue.cc:21
uint32_t DcsId() const
Definition: HcalDcsValue.h:20
def ls
Definition: eostools.py:348
HcalOtherSubdetector
Definition: HcalAssistant.h:32
int LS() const
Definition: HcalDcsValue.h:21
uint32_t mId
Definition: HcalDcsValue.h:37
#define COND_SERIALIZABLE
Definition: Serializable.h:37
virtual ~HcalDcsValue()
Definition: HcalDcsValue.cc:18
float getValue() const
Definition: HcalDcsValue.h:22
float mLowerLimit
Definition: HcalDcsValue.h:41