ATLAS Offline Software
LArNoiseSC.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 
8 //const float LArNoiseSC::errorcode=ILArNoise::ERRORCODE;
9 
11  : LArCondSuperCellBase ("LArNoiseSC")
12 {}
13 
15 
16 
18  : LArCondSuperCellBase ("LArNoiseSC")
19 {
20  if (initializeBase().isFailure()) return;
21 
22  readBlob(attrList,"Noise",msg());
23 
24  return;
25 }
26 
27 
28 const float& LArNoiseSC::noise(const HWIdentifier& hwid, int /*gain*/) const {
30  return this->getDataByHash(hash, 0);
31 }
32 
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
LArNoiseSC::LArNoiseSC
LArNoiseSC()
Definition: LArNoiseSC.cxx:10
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
LArNoiseSC.h
LArNoiseSC::~LArNoiseSC
virtual ~LArNoiseSC()
Definition: LArNoiseSC.cxx:14
LArCondSuperCellBase::initializeBase
StatusCode initializeBase()
Definition: LArCondSuperCellBase.cxx:30
LArNoiseSC::noise
virtual const float & noise(const HWIdentifier &chid, int gain) const
Definition: LArNoiseSC.cxx:28
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
LArCondSuperCellBase
Definition: LArCondSuperCellBase.h:19
CaloCondBlobAlgs_fillNoiseFromASCII.hash
dictionary hash
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:109
IdentifierHash
Definition: IdentifierHash.h:38