ATLAS Offline Software
Loading...
Searching...
No Matches
LArHVScaleCorrFlat.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
7
8
9
13
16
17
19 : LArCondFlatBase("LArHVScaleCorrFlat")
20{
21 if (initializeBase().isFailure()) return;
22
23 this->readBlob(attrList,"HVScaleCorr",msg());
24
25 if (m_pValues.size()!=1) {
26 ATH_MSG_ERROR( "Found unexpected number of gains (" << m_pValues.size() <<"). Expected exactly one gain." );
27 }
28
29 return;
30}
31
32
33const float& LArHVScaleCorrFlat::HVScaleCorr(const HWIdentifier& chid) const {
34 return getDataByHash(m_onlineHelper->channel_Hash(chid),0);
35
36}
37
#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 const float & HVScaleCorr(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