ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArCOOLConditions
src
LAruA2MeVSC.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
LArCOOLConditions/LAruA2MeVSC.h
"
6
7
8
LAruA2MeVSC::LAruA2MeVSC
()
9
:
LArCondSuperCellBase
(
"LAruA2MeVSC"
)
10
{}
11
12
LAruA2MeVSC::~LAruA2MeVSC
() {}
13
14
//const float LAruA2MeVSC::errorcode=ILAruA2MeV::ERRORCODE;
15
16
LAruA2MeVSC::LAruA2MeVSC
(
const
CondAttrListCollection
* attrList)
17
:
LArCondSuperCellBase
(
"LAruA2MeVSC"
)
18
{
19
if
(
initializeBase
().isFailure())
return
;
20
21
readBlob
(attrList,
"uA2MeV"
,
msg
());
22
23
if
(
m_pValues
.size()!=1) {
24
ATH_MSG_ERROR
(
"Found unexpected number of gains ("
<<
m_pValues
.size() <<
"). Expected exactly one gain."
);
25
}
26
27
return
;
28
}
29
30
31
const
float
&
LAruA2MeVSC::UA2MEV
(
const
HWIdentifier
& hwid)
const
{
32
const
IdentifierHash
hash=
m_scOnlineID
->channel_Hash(hwid);
33
return
this->
getDataByHash
(hash, 0);
34
}
35
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition
AthMsgStreamMacros.h:33
LAruA2MeVSC.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
IdentifierHash
This is a "hash" representation of an Identifier.
Definition
IdentifierHash.h:25
LArCondSuperCellBase::initializeBase
StatusCode initializeBase()
Definition
LArCondSuperCellBase.cxx:21
LArCondSuperCellBase::m_scOnlineID
const LArOnline_SuperCellID * m_scOnlineID
Definition
LArCondSuperCellBase.h:23
LArCondSuperCellBase::LArCondSuperCellBase
LArCondSuperCellBase(const std::string &name)
Definition
LArCondSuperCellBase.cxx:14
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
LAruA2MeVSC::LAruA2MeVSC
LAruA2MeVSC()
Definition
LAruA2MeVSC.cxx:8
LAruA2MeVSC::UA2MEV
virtual const float & UA2MEV(const HWIdentifier &chid) const
Definition
LAruA2MeVSC.cxx:31
LAruA2MeVSC::~LAruA2MeVSC
virtual ~LAruA2MeVSC()
Definition
LAruA2MeVSC.cxx:12
Generated on
for ATLAS Offline Software by
1.17.0