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