CMS 3D CMS Logo

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