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 
5 #include <stdint.h>
7 
8 class HcalDcsValue {
9 public:
10 
11  HcalDcsValue ();
12  HcalDcsValue (uint32_t fid, int ls, float val, float upper,
13  float lower);
14  HcalDcsValue (HcalDcsValue const& other);
15 
16  virtual ~HcalDcsValue ();
17 
18  uint32_t DcsId () const { return mId; }
19  int LS () const { return mLS; }
20  float getValue () const { return mValue;}
21  float getUpperLimit () const { return mUpperLimit; }
22  float getLowerLimit () const { return mLowerLimit; }
23  bool isValueGood () const {
24  return ((mValue <= mUpperLimit) && (mValue >= mLowerLimit));
25  }
26 
28 
29  bool operator < (HcalDcsValue const& rhs) const {
30  if (mId == rhs.mId) return (mLS < rhs.mLS);
31  return (mId < rhs.mId);
32  }
33 
34 private:
35  uint32_t mId;
36  int mLS;
37  float mValue;
38  float mUpperLimit;
39  float mLowerLimit;
40 };
41 
42 #endif
float getUpperLimit() const
Definition: HcalDcsValue.h:21
float getLowerLimit() const
Definition: HcalDcsValue.h:22
float mUpperLimit
Definition: HcalDcsValue.h:38
bool isValueGood() const
Definition: HcalDcsValue.h:23
bool operator<(HcalDcsValue const &rhs) const
Definition: HcalDcsValue.h:29
HcalOtherSubdetector getSubdetector() const
Definition: HcalDcsValue.cc:21
uint32_t DcsId() const
Definition: HcalDcsValue.h:18
HcalOtherSubdetector
Definition: HcalAssistant.h:33
int LS() const
Definition: HcalDcsValue.h:19
uint32_t mId
Definition: HcalDcsValue.h:35
virtual ~HcalDcsValue()
Definition: HcalDcsValue.cc:18
list fid
Definition: NewTree.py:51
float getValue() const
Definition: HcalDcsValue.h:20
float mLowerLimit
Definition: HcalDcsValue.h:39