ATLAS Offline Software
Loading...
Searching...
No Matches
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
34const float& LArfSamplSC::FSAMPL(const HWIdentifier& hwid) const {
35 const IdentifierHash hash=m_scOnlineID->channel_Hash(hwid);
36 return this->getDataByHash(hash,0);
37}
38
39// retrieving LArfSampl using offline ID
40const float& LArfSamplSC::FSAMPL(const Identifier& /*id*/) const {
41 ATH_MSG_WARNING( "LArfSamplSC::FSAMPL not implemented for CellId !!!" );
42 return m_null;
43}
#define ATH_MSG_ERROR(x)
#define ATH_MSG_WARNING(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 & getDataByHash(const IdentifierHash &hs, const unsigned gain) const
void readBlob(const CondAttrListCollection *attrList, const char *attrName, MsgStream &msg)
std::vector< const float * > m_pValues
virtual const float & FSAMPL(const HWIdentifier &chid) const
const float m_null
Definition LArfSamplSC.h:36
virtual ~LArfSamplSC()