ATLAS Offline Software
Loading...
Searching...
No Matches
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
25LArShapeFlat::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
30LArShapeFlat::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
35float LArShapeFlat::timeOffset(const HWIdentifier& CellID, int gain) const {
36 const IdentifierHash hs=m_onlineHelper->channel_Hash(CellID);
37 return m_pTimeOffset[gain][hs];
38}
39
40
41
42unsigned LArShapeFlat::nTimeBins(const HWIdentifier&, int) const {
43 return 1;
44}
45
46
47float LArShapeFlat::timeBinWidth(const HWIdentifier&, int ) const {
48 return (25./24.);
49}
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.
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