ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArCOOLConditions
src
LArDAC2uAFlat.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
LArCOOLConditions/LArDAC2uAFlat.h
"
6
#include "
LArIdentifier/LArOnlineID.h
"
7
8
LArDAC2uAFlat::LArDAC2uAFlat
()
9
:
LArCondFlatBase
(
"LArDAC2uAFlat"
)
10
{}
11
12
LArDAC2uAFlat::~LArDAC2uAFlat
() {}
13
14
15
LArDAC2uAFlat::LArDAC2uAFlat
(
const
CondAttrListCollection
* attrList)
16
:
LArCondFlatBase
(
"LArDAC2uAFlat"
)
17
{
18
if
(
initializeBase
().isFailure())
return
;
19
20
readBlob
(attrList,
"DAC2uA"
,
msg
());
21
22
if
(
m_pValues
.size()!=1) {
23
ATH_MSG_ERROR
(
"Found unexpected number of gains ("
<<
m_pValues
.size() <<
"). Expected exactly one gain."
);
24
}
25
26
return
;
27
}
28
29
30
const
float
&
LArDAC2uAFlat::DAC2UA
(
const
HWIdentifier
& chid)
const
{
31
return
getDataByHash
(
m_onlineHelper
->channel_Hash(chid),0);
32
}
33
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition
AthMsgStreamMacros.h:33
LArDAC2uAFlat.h
LArOnlineID.h
AthMessaging::msg
MsgStream & msg() const
The standard message stream.
Definition
AthMessaging.h:167
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number.
Definition
CondAttrListCollection.h:51
HWIdentifier
Definition
HWIdentifier.h:13
LArCondFlatBase::LArCondFlatBase
LArCondFlatBase(const std::string &name)
Definition
LArCondFlatBase.cxx:19
LArCondFlatBase::m_onlineHelper
const LArOnlineID * m_onlineHelper
Definition
LArCondFlatBase.h:25
LArCondFlatBase::initializeBase
StatusCode initializeBase()
Definition
LArCondFlatBase.cxx:26
LArDAC2uAFlat::LArDAC2uAFlat
LArDAC2uAFlat()
Definition
LArDAC2uAFlat.cxx:8
LArDAC2uAFlat::~LArDAC2uAFlat
virtual ~LArDAC2uAFlat()
Definition
LArDAC2uAFlat.cxx:12
LArDAC2uAFlat::DAC2UA
virtual const float & DAC2UA(const HWIdentifier &chid) const
access to DAC2UA conversion factor index by Identifier, and gain setting
Definition
LArDAC2uAFlat.cxx:30
LArSingleFloatBlob::getDataByHash
const float & getDataByHash(const IdentifierHash &hs, const unsigned gain) const
Definition
LArSingleFloatBlob.h:25
LArSingleFloatBlob::readBlob
void readBlob(const CondAttrListCollection *attrList, const char *attrName, MsgStream &msg)
Definition
LArSingleFloatBlob.cxx:15
LArSingleFloatBlob::m_pValues
std::vector< const float * > m_pValues
Definition
LArSingleFloatBlob.h:29
Generated on
for ATLAS Offline Software by
1.17.0