ATLAS Offline Software
LArShapeSC.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 
10  : LArCondSuperCellBase ("LArShapeSC")
11 {}
12 
14 
15 
17  : LArCondSuperCellBase ("LArShapeSC")
18 {
19  if (initializeBase().isFailure()) return;
20 
21  readBlob(attrList,msg());
22 }
23 
24 
25 
26 
27 LArShapeSC::ShapeRef_t LArShapeSC::Shape(const HWIdentifier& hwid, int /*gain*/, int, int) const {
29  return this->ShapeByHash(hash,0);
30 }
31 
32 LArShapeSC::ShapeRef_t LArShapeSC::ShapeDer(const HWIdentifier& hwid, int /*gain*/, int, int) const {
34  return this->ShapeDerByHash(hash,0);
35 }
36 
37 float LArShapeSC::timeOffset(const HWIdentifier& hwid , int) const {
39  return m_pTimeOffset[0][hash];
40 }
41 
42 
43 unsigned LArShapeSC::nTimeBins(const HWIdentifier&, int) const {
44  return 1;
45 }
46 
47 
48 float LArShapeSC::timeBinWidth(const HWIdentifier&, int ) const {
49  return (25./24.);
50 }
LArOnlineID_Base::channel_Hash
IdentifierHash channel_Hash(HWIdentifier channelId) const
Create channel_hash from channel_Id.
Definition: LArOnlineID_Base.cxx:1636
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
LArCondSuperCellBase::m_scOnlineID
const LArOnline_SuperCellID * m_scOnlineID
Definition: LArCondSuperCellBase.h:27
LArShapeBlob::readBlob
void readBlob(const CondAttrListCollection *attrList, MsgStream &msg)
Definition: LArShapeBlob.cxx:17
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
LArShapeSC::timeOffset
virtual float timeOffset(const HWIdentifier &CellID, int gain) const
Definition: LArShapeSC.cxx:37
LArCondSuperCellBase::initializeBase
StatusCode initializeBase()
Definition: LArCondSuperCellBase.cxx:30
LArShapeBlob::ShapeByHash
ILArShape::ShapeRef_t ShapeByHash(const IdentifierHash &hs, int gain) const
Definition: LArShapeBlob.h:30
AthMessaging::msg
MsgStream & msg() const
The standard message stream.
Definition: AthMessaging.h:164
LArShapeSC::timeBinWidth
virtual float timeBinWidth(const HWIdentifier &CellID, int gain) const
Definition: LArShapeSC.cxx:48
LArCondSuperCellBase
Definition: LArCondSuperCellBase.h:19
LArShapeSC::Shape
virtual ShapeRef_t Shape(const HWIdentifier &CellID, int gain, int tbin=0, int mode=0) const
Definition: LArShapeSC.cxx:27
LArShapeSC.h
LArShapeBlob::ShapeDerByHash
ILArShape::ShapeRef_t ShapeDerByHash(const IdentifierHash &hs, int gain) const
Definition: LArShapeBlob.h:38
LArShapeSC::ShapeDer
virtual ShapeRef_t ShapeDer(const HWIdentifier &CellID, int gain, int tbin=0, int mode=0) const
Definition: LArShapeSC.cxx:32
CaloCondBlobAlgs_fillNoiseFromASCII.hash
dictionary hash
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:109
LArShapeSC::~LArShapeSC
virtual ~LArShapeSC()
Definition: LArShapeSC.cxx:13
LArShapeSC::LArShapeSC
LArShapeSC()
Definition: LArShapeSC.cxx:9
LArShapeBlob::m_pTimeOffset
std::vector< const float * > m_pTimeOffset
Definition: LArShapeBlob.h:50
IdentifierHash
Definition: IdentifierHash.h:38
LArVectorProxy
Proxy for accessing a range of float values like a vector.
Definition: LArVectorProxy.h:38
LArShapeSC::nTimeBins
virtual unsigned nTimeBins(const HWIdentifier &CellID, int gain) const
Definition: LArShapeSC.cxx:43