ATLAS Offline Software
Loading...
Searching...
No Matches
LArMphysOverMcalSC.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 LArMphysOverMcalSC::m_errorcode=ILArMphysOverMcal::ERRORCODE;
9
13
15
16
18 : LArCondSuperCellBase ("LArMphysOverMcalSC")
19{
20 if (initializeBase().isFailure()) return;
21 readBlob(attrList,"MphysOverMcal",msg());
22
23 return;
24}
25
26
27const float& LArMphysOverMcalSC::MphysOverMcal(const HWIdentifier& hwid, int /*gain*/) const {
28 const IdentifierHash hash=m_scOnlineID->channel_Hash(hwid);
29 return this->getDataByHash(hash,0);
30}
31
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)
virtual const float & MphysOverMcal(const HWIdentifier &chid, int gain) const
const float & getDataByHash(const IdentifierHash &hs, const unsigned gain) const
void readBlob(const CondAttrListCollection *attrList, const char *attrName, MsgStream &msg)