ATLAS Offline Software
Loading...
Searching...
No Matches
LArMinBiasSC.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 LArMinBiasSC::errorcode=ILArMinBias::ERRORCODE;
9
13
15
16
18 : LArCondSuperCellBase ("LArMinBiasSC")
19{
20 if (initializeBase().isFailure()) return;
21
22 readBlob(attrList,"MinBias",msg());
23
24 if (m_pValues.size()!=1) {
25 ATH_MSG_ERROR( "Found unexpected number of gains (" << m_pValues.size() <<"). Expected exactly one gain." );
26 }
27
28 return;
29}
30
31
32const float& LArMinBiasSC::minBiasRMS(const HWIdentifier& hwid) const {
33 const IdentifierHash hash=m_scOnlineID->channel_Hash(hwid);
34 return this->getDataByHash(hash, 0);
35}
36
#define ATH_MSG_ERROR(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)
virtual const float & minBiasRMS(const HWIdentifier &chid) const
access to RMS of E in minimum bias events index by Identifier
virtual ~LArMinBiasSC()
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