ATLAS Offline Software
Loading...
Searching...
No Matches
LArOFCweightSC.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
6
10
12 : LArCondSuperCellBase ("LArOFCweightSC")
13{
14 if (initializeBase().isFailure()) return;
15
16 readBlob(attrList,"OFCbWeights",msg());
17
18 if (m_pValues.size()!=1) {
19 ATH_MSG_ERROR( "Found unexpected number of gains (" << m_pValues.size() <<"). Expected exactly one gain." );
20 }
21}
22
23
24const float& LArOFCweightSC::getW(const HWIdentifier& hwid) const {
25 const IdentifierHash hash=m_scOnlineID->channel_Hash(hwid);
26 return this->getDataByHash(hash,0);
27}
#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)
const float & getW(const HWIdentifier &chid) const
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