ATLAS Offline Software
LArShapeFlat.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  : LArCondFlatBase("LArShapeFlat")
11 {}
12 
14 
15 
17  : LArCondFlatBase("LAruA2MeVFlat")
18 {
19  if (initializeBase().isFailure()) return;
20 
21  readBlob(attrList,msg());
22 }
23 
24 
25 LArShapeFlat::ShapeRef_t LArShapeFlat::Shape(const HWIdentifier& onId, int gain, int tbin, int/* mode*/) const {
26  if (tbin!=0) return ShapeRef_t(nullptr,nullptr);
27  return this->ShapeByHash(m_onlineHelper->channel_Hash(onId),gain);
28 }
29 
30 LArShapeFlat::ShapeRef_t LArShapeFlat::ShapeDer(const HWIdentifier& onId, int gain, int tbin, int /*mode*/) const {
31  if (tbin!=0) return ShapeRef_t(nullptr,nullptr);
32  return this->ShapeDerByHash(m_onlineHelper->channel_Hash(onId),gain);
33 }
34 
35 float LArShapeFlat::timeOffset(const HWIdentifier& CellID, int gain) const {
37  return m_pTimeOffset[gain][hs];
38 }
39 
40 
41 
42 unsigned LArShapeFlat::nTimeBins(const HWIdentifier&, int) const {
43  return 1;
44 }
45 
46 
47 float LArShapeFlat::timeBinWidth(const HWIdentifier&, int ) const {
48  return (25./24.);
49 }
50 
LArShapeFlat::ShapeDer
virtual ShapeRef_t ShapeDer(const HWIdentifier &CellID, int gain, int tbin=0, int mode=0) const
Definition: LArShapeFlat.cxx:30
LArOnlineID_Base::channel_Hash
IdentifierHash channel_Hash(HWIdentifier channelId) const
Create channel_hash from channel_Id.
Definition: LArOnlineID_Base.cxx:1632
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
LArCondFlatBase
Definition: LArCondFlatBase.h:15
CaloCondBlobAlgs_fillNoiseFromASCII.gain
gain
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:110
LArShapeBlob::readBlob
void readBlob(const CondAttrListCollection *attrList, MsgStream &msg)
Definition: LArShapeBlob.cxx:17
LArCondFlatBase::m_onlineHelper
const LArOnlineID * m_onlineHelper
Definition: LArCondFlatBase.h:24
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
LArShapeFlat::~LArShapeFlat
virtual ~LArShapeFlat()
Definition: LArShapeFlat.cxx:13
LArShapeFlat::timeBinWidth
virtual float timeBinWidth(const HWIdentifier &CellID, int gain) const
Definition: LArShapeFlat.cxx:47
LArShapeFlat::nTimeBins
virtual unsigned nTimeBins(const HWIdentifier &CellID, int gain) const
Definition: LArShapeFlat.cxx:42
LArShapeFlat::Shape
virtual ShapeRef_t Shape(const HWIdentifier &CellID, int gain, int tbin=0, int mode=0) const
Definition: LArShapeFlat.cxx:25
CreatePhysValWebPage.hs
hs
Definition: CreatePhysValWebPage.py:107
LArShapeFlat::LArShapeFlat
LArShapeFlat()
Definition: LArShapeFlat.cxx:9
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
LArShapeBlob::ShapeDerByHash
ILArShape::ShapeRef_t ShapeDerByHash(const IdentifierHash &hs, int gain) const
Definition: LArShapeBlob.h:38
LArShapeFlat.h
LArCondFlatBase::initializeBase
StatusCode initializeBase()
Definition: LArCondFlatBase.cxx:26
LArShapeBlob::m_pTimeOffset
std::vector< const float * > m_pTimeOffset
Definition: LArShapeBlob.h:50
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25
LArShapeFlat::timeOffset
virtual float timeOffset(const HWIdentifier &CellID, int gain) const
Definition: LArShapeFlat.cxx:35
ILArShape::ShapeRef_t
LArVectorProxy ShapeRef_t
This class defines the interface for accessing Shape (Nsample variable, Dt = 25 ns fixed) @stereotype...
Definition: ILArShape.h:26
LArVectorProxy
Proxy for accessing a range of float values like a vector.
Definition: LArVectorProxy.h:38