ATLAS Offline Software
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 
13  : LArCondFlatBase("LArPedestalFlat")
14 {}
15 
16 
18  : LArCondFlatBase("LArPedestalFlat")
19 {
20  if (initializeBase().isFailure()) return;
21 
22  readBlob(attrList,msg());
23  return;
24 }
25 
26 
27 float LArPedestalFlat::pedestal(const HWIdentifier& CellID, int gain) const {
28  return this->pedestalByHash(m_onlineHelper->channel_Hash(CellID),gain);
29 }
30 
31 float LArPedestalFlat::pedestalRMS(const HWIdentifier& CellID, int gain) const {
32  return this->pedestalRMSByHash(m_onlineHelper->channel_Hash(CellID),gain);
33 }
LArPedestalFlat::pedestal
virtual float pedestal(const HWIdentifier &CellID, int gain) const
Definition: LArPedestalFlat.cxx:27
LArOnlineID_Base::channel_Hash
IdentifierHash channel_Hash(HWIdentifier channelId) const
Create channel_hash from channel_Id.
Definition: LArOnlineID_Base.cxx:1636
LArPedestalBlob::pedestalRMSByHash
float pedestalRMSByHash(const IdentifierHash &hs, const unsigned gain) const
Definition: LArPedestalBlob.h:31
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
LArPedestalBlob::readBlob
void readBlob(const CondAttrListCollection *attrList, MsgStream &msg)
Definition: LArPedestalBlob.cxx:18
LArCondFlatBase
Definition: LArCondFlatBase.h:20
CaloCondBlobAlgs_fillNoiseFromASCII.gain
gain
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:110
LArPedestalBlob::pedestalByHash
float pedestalByHash(const IdentifierHash &hs, const unsigned gain) const
Definition: LArPedestalBlob.h:26
LArCondFlatBase::m_onlineHelper
const LArOnlineID * m_onlineHelper
Definition: LArCondFlatBase.h:29
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
LArPedestalFlat.h
LArPedestalFlat::LArPedestalFlat
LArPedestalFlat()
Definition: LArPedestalFlat.cxx:12
LArPedestalFlat::pedestalRMS
virtual float pedestalRMS(const HWIdentifier &CellID, int gain) const
access to RMS of Pedestal index by Identifier, and gain setting
Definition: LArPedestalFlat.cxx:31
AthMessaging::msg
MsgStream & msg() const
The standard message stream.
Definition: AthMessaging.h:164
LArCondFlatBase::initializeBase
StatusCode initializeBase()
Definition: LArCondFlatBase.cxx:29