ATLAS Offline Software
Loading...
Searching...
No Matches
LArDAC2uASC.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//const float LArDAC2uASC::errorcode=ILArDAC2uA::ERRORCODE;
8
12
14
15
17 : LArCondSuperCellBase ("LArDAC2uASC")
18{
19 if (initializeBase().isFailure()) return;
20
21 readBlob(attrList,"DAC2uA",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
31const float& LArDAC2uASC::DAC2UA(const HWIdentifier& hwid) const {
32 const IdentifierHash hash=m_scOnlineID->channel_Hash(hwid);
33 return this->getDataByHash(hash, 0);
34}
35
#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.
This is a "hash" representation of an Identifier.
const LArOnline_SuperCellID * m_scOnlineID
LArCondSuperCellBase(const std::string &name)
virtual ~LArDAC2uASC()
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