ATLAS Offline Software
Loading...
Searching...
No Matches
LArDAC2uAFlat.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7
9 : LArCondFlatBase("LArDAC2uAFlat")
10{}
11
13
14
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
30const float& LArDAC2uAFlat::DAC2UA(const HWIdentifier& chid) const {
31 return getDataByHash(m_onlineHelper->channel_Hash(chid),0);
32}
33
#define ATH_MSG_ERROR(x)
MsgStream & msg() const
The standard message stream.
This class is a collection of AttributeLists where each one is associated with a channel number.
LArCondFlatBase(const std::string &name)
const LArOnlineID * m_onlineHelper
StatusCode initializeBase()
virtual ~LArDAC2uAFlat()
virtual const float & DAC2UA(const HWIdentifier &chid) const
access to DAC2UA conversion factor index by Identifier, and gain setting
const float & getDataByHash(const IdentifierHash &hs, const unsigned gain) const
void readBlob(const CondAttrListCollection *attrList, const char *attrName, MsgStream &msg)
std::vector< const float * > m_pValues