ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArCOOLConditions
src
LArShapeFlat.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
LArCOOLConditions/LArShapeFlat.h
"
6
#include "
LArIdentifier/LArOnlineID.h
"
7
#include "
AthenaPoolUtilities/CondAttrListCollection.h
"
8
#include "CoralBase/Blob.h"
9
10
LArShapeFlat::LArShapeFlat
()
11
:
LArCondFlatBase
(
"LArShapeFlat"
)
12
{}
13
14
LArShapeFlat::~LArShapeFlat
() {}
15
16
17
LArShapeFlat::LArShapeFlat
(
const
CondAttrListCollection
* attrList)
18
:
LArCondFlatBase
(
"LAruA2MeVFlat"
)
19
{
20
if
(
initializeBase
().isFailure())
return
;
21
22
readBlob
(attrList,
msg
());
23
}
24
25
26
LArShapeFlat::ShapeRef_t
LArShapeFlat::Shape
(
const
HWIdentifier
& onId,
int
gain,
int
tbin,
int
/* mode*/
)
const
{
27
if
(tbin!=0)
return
ShapeRef_t
(
nullptr
,
nullptr
);
28
return
this->
ShapeByHash
(
m_onlineHelper
->channel_Hash(onId),gain);
29
}
30
31
LArShapeFlat::ShapeRef_t
LArShapeFlat::ShapeDer
(
const
HWIdentifier
& onId,
int
gain,
int
tbin,
int
/*mode*/
)
const
{
32
if
(tbin!=0)
return
ShapeRef_t
(
nullptr
,
nullptr
);
33
return
this->
ShapeDerByHash
(
m_onlineHelper
->channel_Hash(onId),gain);
34
}
35
36
float
LArShapeFlat::timeOffset
(
const
HWIdentifier
& CellID,
int
gain)
const
{
37
const
IdentifierHash
hs=
m_onlineHelper
->channel_Hash(CellID);
38
return
m_pTimeOffset
[gain][hs];
39
}
40
41
42
43
unsigned
LArShapeFlat::nTimeBins
(
const
HWIdentifier
&,
int
)
const
{
44
return
1;
45
}
46
47
48
float
LArShapeFlat::timeBinWidth
(
const
HWIdentifier
&,
int
)
const
{
49
return
(25./24.);
50
}
51
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
LArOnlineID.h
LArShapeFlat.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
LArCondFlatBase::LArCondFlatBase
LArCondFlatBase(const std::string &name)
Definition
LArCondFlatBase.cxx:19
LArCondFlatBase::m_onlineHelper
const LArOnlineID * m_onlineHelper
Definition
LArCondFlatBase.h:25
LArCondFlatBase::initializeBase
StatusCode initializeBase()
Definition
LArCondFlatBase.cxx:26
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
LArShapeFlat::timeBinWidth
virtual float timeBinWidth(const HWIdentifier &CellID, int gain) const
Definition
LArShapeFlat.cxx:48
LArShapeFlat::timeOffset
virtual float timeOffset(const HWIdentifier &CellID, int gain) const
Definition
LArShapeFlat.cxx:36
LArShapeFlat::LArShapeFlat
LArShapeFlat()
Definition
LArShapeFlat.cxx:10
LArShapeFlat::nTimeBins
virtual unsigned nTimeBins(const HWIdentifier &CellID, int gain) const
Definition
LArShapeFlat.cxx:43
LArShapeFlat::~LArShapeFlat
virtual ~LArShapeFlat()
Definition
LArShapeFlat.cxx:14
LArShapeFlat::Shape
virtual ShapeRef_t Shape(const HWIdentifier &CellID, int gain, int tbin=0, int mode=0) const
Definition
LArShapeFlat.cxx:26
LArShapeFlat::ShapeDer
virtual ShapeRef_t ShapeDer(const HWIdentifier &CellID, int gain, int tbin=0, int mode=0) const
Definition
LArShapeFlat.cxx:31
Generated on
for ATLAS Offline Software by
1.17.0