ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
TileCalorimeter
TileConditions
src
TileCondToolPulseShape.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// Tile includes
6
#include "
TileConditions/TileCondToolPulseShape.h
"
7
#include "
TileCalibBlobObjs/TileCalibDrawerFlt.h
"
8
9
// Athena includes
10
#include "
AthenaKernel/errorcheck.h
"
11
#include "
StoreGate/ReadCondHandle.h
"
12
13
//
14
//____________________________________________________________________
15
static
const
InterfaceID
IID_TileCondToolPulseShape
(
"TileCondToolPulseShape"
, 1, 0);
16
17
const
InterfaceID&
TileCondToolPulseShape::interfaceID
() {
18
return
IID_TileCondToolPulseShape
;
19
}
20
21
//
22
//____________________________________________________________________
23
TileCondToolPulseShape::TileCondToolPulseShape
(
const
std::string&
type
,
const
std::string& name,
24
const
IInterface* parent)
25
:
AthAlgTool
(
type
, name, parent)
26
{
27
declareInterface<TileCondToolPulseShape>(
this
);
28
}
29
30
//
31
//____________________________________________________________________
32
TileCondToolPulseShape::~TileCondToolPulseShape
() {
33
}
34
35
//
36
//____________________________________________________________________
37
StatusCode
TileCondToolPulseShape::initialize
() {
38
ATH_MSG_DEBUG
(
"In initialize()"
);
39
40
//=== Initialize conditions data key with pulse shape
41
ATH_CHECK
(
m_pulseShapeKey
.initialize() );
42
43
return
StatusCode::SUCCESS;
44
}
45
46
//
47
//____________________________________________________________________
48
StatusCode
TileCondToolPulseShape::finalize
() {
49
ATH_MSG_DEBUG
(
"finalize called"
);
50
return
StatusCode::SUCCESS;
51
}
52
53
//
54
//____________________________________________________________________
55
bool
TileCondToolPulseShape::getPulseShapeYDY
(
unsigned
int
drawerIdx,
unsigned
int
channel,
unsigned
int
adc,
56
float
time,
float
&
y
,
float
&dy,
57
const
EventContext &ctx)
const
{
58
59
SG::ReadCondHandle<TilePulse>
pulseShape(
m_pulseShapeKey
, ctx);
60
return
pulseShape->getPulseShapeYDY(drawerIdx, channel, adc, time,
y
, dy);
61
}
62
63
//
64
//____________________________________________________________________
65
ATH_CHECK
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition
AthCheckMacros.h:40
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition
AthMsgStreamMacros.h:29
errorcheck.h
Helpers for checking error return status codes and reporting errors.
ReadCondHandle.h
TileCalibDrawerFlt.h
IID_TileCondToolPulseShape
static const InterfaceID IID_TileCondToolPulseShape("TileCondToolPulseShape", 1, 0)
TileCondToolPulseShape.h
y
#define y
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
SG::ReadCondHandle
Definition
ReadCondHandle.h:40
TileCondToolPulseShape::finalize
virtual StatusCode finalize() override
Definition
TileCondToolPulseShape.cxx:48
TileCondToolPulseShape::getPulseShapeYDY
bool getPulseShapeYDY(unsigned int drawerIdx, unsigned int channel, unsigned int adc, float time, float &y, float &dy, const EventContext &ctx) const
Definition
TileCondToolPulseShape.cxx:55
TileCondToolPulseShape::initialize
virtual StatusCode initialize() override
Definition
TileCondToolPulseShape.cxx:37
TileCondToolPulseShape::m_pulseShapeKey
SG::ReadCondHandleKey< TilePulse > m_pulseShapeKey
Name of TilePulse in condition store.
Definition
TileCondToolPulseShape.h:37
TileCondToolPulseShape::interfaceID
static const InterfaceID & interfaceID()
Definition
TileCondToolPulseShape.cxx:17
TileCondToolPulseShape::~TileCondToolPulseShape
virtual ~TileCondToolPulseShape()
Definition
TileCondToolPulseShape.cxx:32
TileCondToolPulseShape::TileCondToolPulseShape
TileCondToolPulseShape(const std::string &type, const std::string &name, const IInterface *parent)
Definition
TileCondToolPulseShape.cxx:23
type
Generated on
for ATLAS Offline Software by
1.17.0