ATLAS Offline Software
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 
8  : LArCondSuperCellBase ("LArOFCweightSC")
9 {}
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 
24 const float& LArOFCweightSC::getW(const HWIdentifier& hwid) const {
26  return this->getDataByHash(hash,0);
27 }
LArOFCweightSC.h
LArOnlineID_Base::channel_Hash
IdentifierHash channel_Hash(HWIdentifier channelId) const
Create channel_hash from channel_Id.
Definition: LArOnlineID_Base.cxx:1636
LArSingleFloatBlob::readBlob
void readBlob(const CondAttrListCollection *attrList, const char *attrName, MsgStream &msg)
Definition: LArSingleFloatBlob.cxx:15
LArCondSuperCellBase::m_scOnlineID
const LArOnline_SuperCellID * m_scOnlineID
Definition: LArCondSuperCellBase.h:27
HWIdentifier
Definition: HWIdentifier.h:13
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number....
Definition: CondAttrListCollection.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
LArCondSuperCellBase::initializeBase
StatusCode initializeBase()
Definition: LArCondSuperCellBase.cxx:30
AthMessaging::msg
MsgStream & msg() const
The standard message stream.
Definition: AthMessaging.h:164
LArSingleFloatBlob::getDataByHash
const float & getDataByHash(const IdentifierHash &hs, const unsigned gain) const
Definition: LArSingleFloatBlob.h:25
LArSingleFloatBlob::m_pValues
std::vector< const float * > m_pValues
Definition: LArSingleFloatBlob.h:29
LArCondSuperCellBase
Definition: LArCondSuperCellBase.h:19
LArOFCweightSC::LArOFCweightSC
LArOFCweightSC()
Definition: LArOFCweightSC.cxx:7
CaloCondBlobAlgs_fillNoiseFromASCII.hash
dictionary hash
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:109
LArOFCweightSC::getW
const float & getW(const HWIdentifier &chid) const
Definition: LArOFCweightSC.cxx:24
IdentifierHash
Definition: IdentifierHash.h:38