ATLAS Offline Software
Loading...
Searching...
No Matches
LArShapeFlat.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
8#include "CoralBase/Blob.h"
9
11 : LArCondFlatBase("LArShapeFlat")
12{}
13
15
16
18 : LArCondFlatBase("LAruA2MeVFlat")
19{
20 if (initializeBase().isFailure()) return;
21
22 readBlob(attrList,msg());
23}
24
25
26LArShapeFlat::ShapeRef_t LArShapeFlat::Shape(const HWIdentifier& onId, int gain, int tbin, int/* mode*/) const {
27 if (tbin!=0) return ShapeRef_t(nullptr,nullptr);
28 return this->ShapeByHash(m_onlineHelper->channel_Hash(onId),gain);
29}
30
31LArShapeFlat::ShapeRef_t LArShapeFlat::ShapeDer(const HWIdentifier& onId, int gain, int tbin, int /*mode*/) const {
32 if (tbin!=0) return ShapeRef_t(nullptr,nullptr);
33 return this->ShapeDerByHash(m_onlineHelper->channel_Hash(onId),gain);
34}
35
36float LArShapeFlat::timeOffset(const HWIdentifier& CellID, int gain) const {
37 const IdentifierHash hs=m_onlineHelper->channel_Hash(CellID);
38 return m_pTimeOffset[gain][hs];
39}
40
41
42
43unsigned LArShapeFlat::nTimeBins(const HWIdentifier&, int) const {
44 return 1;
45}
46
47
48float LArShapeFlat::timeBinWidth(const HWIdentifier&, int ) const {
49 return (25./24.);
50}
51
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.
LArVectorProxy ShapeRef_t
This class defines the interface for accessing Shape (Nsample variable, Dt = 25 ns fixed) @stereotype...
Definition ILArShape.h:26
This is a "hash" representation of an Identifier.
LArCondFlatBase(const std::string &name)
const LArOnlineID * m_onlineHelper
StatusCode initializeBase()
std::vector< const float * > m_pTimeOffset
ILArShape::ShapeRef_t ShapeByHash(const IdentifierHash &hs, int gain) const
void readBlob(const CondAttrListCollection *attrList, MsgStream &msg)
ILArShape::ShapeRef_t ShapeDerByHash(const IdentifierHash &hs, int gain) const
virtual float timeBinWidth(const HWIdentifier &CellID, int gain) const
virtual float timeOffset(const HWIdentifier &CellID, int gain) const
virtual unsigned nTimeBins(const HWIdentifier &CellID, int gain) const
virtual ~LArShapeFlat()
virtual ShapeRef_t Shape(const HWIdentifier &CellID, int gain, int tbin=0, int mode=0) const
virtual ShapeRef_t ShapeDer(const HWIdentifier &CellID, int gain, int tbin=0, int mode=0) const