ATLAS Offline Software
LArfSamplSC.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 LArfSamplSC::errorcode=ILArfSampl::ERRORCODE;
9 
11  : LArCondSuperCellBase ("LArfSamplSC"),
12  m_null(0.)
13 {}
14 
16 
17 
19  : LArCondSuperCellBase ("LArfSamplSC"),
20  m_null(0.)
21 {
22  if (initializeBase().isFailure()) return;
23 
24  readBlob(attrList,"fSampl",msg());
25 
26  if (m_pValues.size()!=1) {
27  ATH_MSG_ERROR( "Found unexpected number of gains (" << m_pValues.size() <<"). Expected exactly one gain." );
28  }
29 
30  return;
31 }
32 
33 
34 const float& LArfSamplSC::FSAMPL(const HWIdentifier& hwid) const {
36  return this->getDataByHash(hash,0);
37 }
38 
39 // retrieving LArfSampl using offline ID
40 const float& LArfSamplSC::FSAMPL(const Identifier& /*id*/) const {
41  ATH_MSG_WARNING( "LArfSamplSC::FSAMPL not implemented for CellId !!!" );
42  return m_null;
43 }
LArfSamplSC::m_null
const float m_null
Definition: LArfSamplSC.h:36
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
LArfSamplSC::~LArfSamplSC
virtual ~LArfSamplSC()
Definition: LArfSamplSC.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
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
LArCondSuperCellBase::initializeBase
StatusCode initializeBase()
Definition: LArCondSuperCellBase.cxx:30
LArfSamplSC::LArfSamplSC
LArfSamplSC()
Definition: LArfSamplSC.cxx:10
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
LArfSamplSC.h
CaloCondBlobAlgs_fillNoiseFromASCII.hash
dictionary hash
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:109
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
LArfSamplSC::FSAMPL
virtual const float & FSAMPL(const HWIdentifier &chid) const
Definition: LArfSamplSC.cxx:34
IdentifierHash
Definition: IdentifierHash.h:38