ATLAS Offline Software
Loading...
Searching...
No Matches
LArPedestalFlat.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
7#include "CoralBase/Blob.h"
8#include "CoralBase/Attribute.h"
9#include "CoralBase/AttributeList.h"
10#include "CoralBase/AttributeListSpecification.h"
11
15
16
18 : LArCondFlatBase("LArPedestalFlat")
19{
20 if (initializeBase().isFailure()) return;
21
22 readBlob(attrList,msg());
23 return;
24}
25
26
27float LArPedestalFlat::pedestal(const HWIdentifier& CellID, int gain) const {
28 return this->pedestalByHash(m_onlineHelper->channel_Hash(CellID),gain);
29}
30
31float LArPedestalFlat::pedestalRMS(const HWIdentifier& CellID, int gain) const {
32 return this->pedestalRMSByHash(m_onlineHelper->channel_Hash(CellID),gain);
33}
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
MsgStream & msg() const
The standard message stream.
This class is a collection of AttributeLists where each one is associated with a channel number.
LArCondFlatBase(const std::string &name)
const LArOnlineID * m_onlineHelper
StatusCode initializeBase()
float pedestalByHash(const IdentifierHash &hs, const unsigned gain) const
float pedestalRMSByHash(const IdentifierHash &hs, const unsigned gain) const
void readBlob(const CondAttrListCollection *attrList, MsgStream &msg)
virtual float pedestalRMS(const HWIdentifier &CellID, int gain) const
access to RMS of Pedestal index by Identifier, and gain setting
virtual float pedestal(const HWIdentifier &CellID, int gain) const