1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
// -*- C++ -*-
#ifndef HcalDcsValue_h
#define HcalDcsValue_h
#include "CondFormats/Serialization/interface/Serializable.h"
#include <cstdint>
#include "DataFormats/HcalDetId/interface/HcalSubdetector.h"
class HcalDcsValue {
public:
HcalDcsValue();
HcalDcsValue(uint32_t fid, int ls, float val, float upper, float lower);
HcalDcsValue(HcalDcsValue const& other);
virtual ~HcalDcsValue();
uint32_t DcsId() const { return mId; }
int LS() const { return mLS; }
float getValue() const { return mValue; }
float getUpperLimit() const { return mUpperLimit; }
float getLowerLimit() const { return mLowerLimit; }
bool isValueGood() const { return ((mValue <= mUpperLimit) && (mValue >= mLowerLimit)); }
HcalOtherSubdetector getSubdetector() const;
bool operator<(HcalDcsValue const& rhs) const {
if (mId == rhs.mId)
return (mLS < rhs.mLS);
return (mId < rhs.mId);
}
private:
uint32_t mId;
int mLS;
float mValue;
float mUpperLimit;
float mLowerLimit;
COND_SERIALIZABLE;
};
#endif
|