ATLAS Offline Software
Loading...
Searching...
No Matches
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
12
14
15
17 : LArCondSuperCellBase ("LArShapeSC")
18{
19 if (initializeBase().isFailure()) return;
20
21 readBlob(attrList,msg());
22}
23
24
25
26
27LArShapeSC::ShapeRef_t LArShapeSC::Shape(const HWIdentifier& hwid, int /*gain*/, int, int) const {
28 const IdentifierHash hash=m_scOnlineID->channel_Hash(hwid);
29 return this->ShapeByHash(hash,0);
30}
31
32LArShapeSC::ShapeRef_t LArShapeSC::ShapeDer(const HWIdentifier& hwid, int /*gain*/, int, int) const {
33 const IdentifierHash hash=m_scOnlineID->channel_Hash(hwid);
34 return this->ShapeDerByHash(hash,0);
35}
36
37float LArShapeSC::timeOffset(const HWIdentifier& hwid , int) const {
38 const IdentifierHash hash=m_scOnlineID->channel_Hash(hwid);
39 return m_pTimeOffset[0][hash];
40}
41
42
43unsigned LArShapeSC::nTimeBins(const HWIdentifier&, int) const {
44 return 1;
45}
46
47
48float LArShapeSC::timeBinWidth(const HWIdentifier&, int ) const {
49 return (25./24.);
50}
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.
const LArOnline_SuperCellID * m_scOnlineID
LArCondSuperCellBase(const std::string &name)
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 ~LArShapeSC()
virtual unsigned nTimeBins(const HWIdentifier &CellID, int gain) const
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
virtual float timeOffset(const HWIdentifier &CellID, int gain) const
virtual float timeBinWidth(const HWIdentifier &CellID, int gain) const