CondFormats
HcalObjects
interface
HcalPedestalWidths.h
Go to the documentation of this file.
1
#ifndef HcalPedestalWidths_h
2
#define HcalPedestalWidths_h
3
10
#include "
CondFormats/Serialization/interface/Serializable.h
"
11
12
#include "
CondFormats/HcalObjects/interface/HcalCondObjectContainer.h
"
13
#include "
CondFormats/HcalObjects/interface/HcalPedestalWidth.h
"
14
15
//typedef HcalCondObjectContainer<HcalPedestalWidth> HcalPedestalWidths;
16
17
class
HcalPedestalWidths
:
public
HcalCondObjectContainer
<HcalPedestalWidth> {
18
public
:
19
//constructor definition: has to contain
20
#ifndef HCAL_COND_SUPPRESS_DEFAULT
21
HcalPedestalWidths
() :
HcalCondObjectContainer
<
HcalPedestalWidth
>(nullptr),
unitIsADC
(
false
) {}
22
#endif
23
HcalPedestalWidths
(
const
HcalTopology
*
topo
) :
HcalCondObjectContainer
<
HcalPedestalWidth
>(
topo
),
unitIsADC
(
false
) {}
24
HcalPedestalWidths
(
const
HcalTopology
*
topo
,
bool
isADC
)
25
:
HcalCondObjectContainer
<
HcalPedestalWidth
>(
topo
),
unitIsADC
(
isADC
) {}
26
27
// are the units ADC ? (true=ADC, false=fC)
28
bool
isADC
()
const
{
return
unitIsADC
; }
29
// set unit boolean
30
void
setUnitADC
(
bool
isADC
) {
unitIsADC
=
isADC
; }
31
32
std::string
myname
()
const override
{
return
(
std::string
)
"HcalPedestalWidths"
; }
33
34
private
:
35
bool
unitIsADC
;
36
37
COND_SERIALIZABLE
;
38
};
39
40
#endif
funct::false
false
Definition:
Factorize.h:29
HcalPedestalWidths::myname
std::string myname() const override
Definition:
HcalPedestalWidths.h:32
HcalTopology
Definition:
HcalTopology.h:26
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition:
Serializable.h:39
HcalPedestalWidths::setUnitADC
void setUnitADC(bool isADC)
Definition:
HcalPedestalWidths.h:30
HcalCondObjectContainer
Definition:
HcalCondObjectContainer.h:55
HcalPedestalWidths::unitIsADC
bool unitIsADC
Definition:
HcalPedestalWidths.h:35
HcalPedestalWidths
Definition:
HcalPedestalWidths.h:17
HcalPedestalWidths::HcalPedestalWidths
HcalPedestalWidths()
Definition:
HcalPedestalWidths.h:21
HcalPedestalWidths::HcalPedestalWidths
HcalPedestalWidths(const HcalTopology *topo, bool isADC)
Definition:
HcalPedestalWidths.h:24
HcalPedestalWidths::isADC
bool isADC() const
Definition:
HcalPedestalWidths.h:28
HcalCondObjectContainerBase::topo
const HcalTopology * topo() const
Definition:
HcalCondObjectContainer.h:22
Serializable.h
HcalCondObjectContainer.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
HcalPedestalWidths::HcalPedestalWidths
HcalPedestalWidths(const HcalTopology *topo)
Definition:
HcalPedestalWidths.h:23
HcalPedestalWidth.h
HcalPedestalWidth
Definition:
HcalPedestalWidth.h:15
Generated for CMSSW Reference Manual by
1.8.16