CondFormats
HcalObjects
interface
HcalDcsValue.h
Go to the documentation of this file.
1
// -*- C++ -*-
2
#ifndef HcalDcsValue_h
3
#define HcalDcsValue_h
4
5
#include "
CondFormats/Serialization/interface/Serializable.h
"
6
7
#include <cstdint>
8
#include "
DataFormats/HcalDetId/interface/HcalSubdetector.h
"
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
25
HcalOtherSubdetector
getSubdetector
()
const
;
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
40
COND_SERIALIZABLE
;
41
};
42
43
#endif
eostools.ls
def ls(path, rec=False)
Definition:
eostools.py:349
HcalDcsValue
Definition:
HcalDcsValue.h:10
HcalDcsValue::isValueGood
bool isValueGood() const
Definition:
HcalDcsValue.h:23
HcalDcsValue::getUpperLimit
float getUpperLimit() const
Definition:
HcalDcsValue.h:21
HcalDcsValue::mId
uint32_t mId
Definition:
HcalDcsValue.h:34
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition:
Serializable.h:39
HcalDcsValue::getValue
float getValue() const
Definition:
HcalDcsValue.h:20
HcalDcsValue::operator<
bool operator<(HcalDcsValue const &rhs) const
Definition:
HcalDcsValue.h:27
HcalDcsValue::LS
int LS() const
Definition:
HcalDcsValue.h:19
HcalDcsValue::mLowerLimit
float mLowerLimit
Definition:
HcalDcsValue.h:38
HcalDcsValue::HcalDcsValue
HcalDcsValue()
Definition:
HcalDcsValue.cc:4
trackingPlots.other
other
Definition:
trackingPlots.py:1464
HcalDcsValue::~HcalDcsValue
virtual ~HcalDcsValue()
Definition:
HcalDcsValue.cc:16
HcalOtherSubdetector
HcalOtherSubdetector
Definition:
HcalAssistant.h:40
HcalDcsValue::getSubdetector
HcalOtherSubdetector getSubdetector() const
Definition:
HcalDcsValue.cc:18
HcalDcsValue::mUpperLimit
float mUpperLimit
Definition:
HcalDcsValue.h:37
Serializable.h
HcalDcsValue::getLowerLimit
float getLowerLimit() const
Definition:
HcalDcsValue.h:22
HcalSubdetector.h
heppy_batch.val
val
Definition:
heppy_batch.py:351
pileupCalc.upper
upper
Definition:
pileupCalc.py:213
HcalDcsValue::mValue
float mValue
Definition:
HcalDcsValue.h:36
HcalDcsValue::mLS
int mLS
Definition:
HcalDcsValue.h:35
HcalDcsValue::DcsId
uint32_t DcsId() const
Definition:
HcalDcsValue.h:18
Generated for CMSSW Reference Manual by
1.8.16