ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArCOOLConditions
src
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
5
#include "
LArCOOLConditions/LArShapeSC.h
"
6
#include "
AthenaPoolUtilities/CondAttrListCollection.h
"
7
#include "CoralBase/Blob.h"
8
9
LArShapeSC::LArShapeSC
()
10
:
LArCondSuperCellBase
(
"LArShapeSC"
)
11
{}
12
13
LArShapeSC::~LArShapeSC
() {}
14
15
16
LArShapeSC::LArShapeSC
(
const
CondAttrListCollection
* attrList)
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
{
28
const
IdentifierHash
hash=
m_scOnlineID
->channel_Hash(hwid);
29
return
this->
ShapeByHash
(hash,0);
30
}
31
32
LArShapeSC::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
37
float
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
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
}
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
LArShapeSC.h
AthMessaging::msg
MsgStream & msg() const
The standard message stream.
Definition
AthMessaging.h:167
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number.
Definition
CondAttrListCollection.h:51
HWIdentifier
Definition
HWIdentifier.h:13
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
IdentifierHash
This is a "hash" representation of an Identifier.
Definition
IdentifierHash.h:25
LArCondSuperCellBase::initializeBase
StatusCode initializeBase()
Definition
LArCondSuperCellBase.cxx:21
LArCondSuperCellBase::m_scOnlineID
const LArOnline_SuperCellID * m_scOnlineID
Definition
LArCondSuperCellBase.h:23
LArCondSuperCellBase::LArCondSuperCellBase
LArCondSuperCellBase(const std::string &name)
Definition
LArCondSuperCellBase.cxx:14
LArShapeBlob::m_pTimeOffset
std::vector< const float * > m_pTimeOffset
Definition
LArShapeBlob.h:50
LArShapeBlob::ShapeByHash
ILArShape::ShapeRef_t ShapeByHash(const IdentifierHash &hs, int gain) const
Definition
LArShapeBlob.h:30
LArShapeBlob::readBlob
void readBlob(const CondAttrListCollection *attrList, MsgStream &msg)
Definition
LArShapeBlob.cxx:17
LArShapeBlob::ShapeDerByHash
ILArShape::ShapeRef_t ShapeDerByHash(const IdentifierHash &hs, int gain) const
Definition
LArShapeBlob.h:38
LArShapeSC::~LArShapeSC
virtual ~LArShapeSC()
Definition
LArShapeSC.cxx:13
LArShapeSC::nTimeBins
virtual unsigned nTimeBins(const HWIdentifier &CellID, int gain) const
Definition
LArShapeSC.cxx:43
LArShapeSC::Shape
virtual ShapeRef_t Shape(const HWIdentifier &CellID, int gain, int tbin=0, int mode=0) const
Definition
LArShapeSC.cxx:27
LArShapeSC::ShapeDer
virtual ShapeRef_t ShapeDer(const HWIdentifier &CellID, int gain, int tbin=0, int mode=0) const
Definition
LArShapeSC.cxx:32
LArShapeSC::timeOffset
virtual float timeOffset(const HWIdentifier &CellID, int gain) const
Definition
LArShapeSC.cxx:37
LArShapeSC::timeBinWidth
virtual float timeBinWidth(const HWIdentifier &CellID, int gain) const
Definition
LArShapeSC.cxx:48
LArShapeSC::LArShapeSC
LArShapeSC()
Definition
LArShapeSC.cxx:9
Generated on
for ATLAS Offline Software by
1.17.0