ATLAS Offline Software
Loading...
Searching...
No Matches
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
8
9// Athena includes
12
13//
14//____________________________________________________________________
15static const InterfaceID IID_TileCondToolPulseShape("TileCondToolPulseShape", 1, 0);
16
20
21//
22//____________________________________________________________________
23TileCondToolPulseShape::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//____________________________________________________________________
34
35//
36//____________________________________________________________________
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//____________________________________________________________________
49 ATH_MSG_DEBUG( "finalize called" );
50 return StatusCode::SUCCESS;
51}
52
53//
54//____________________________________________________________________
55bool TileCondToolPulseShape::getPulseShapeYDY(unsigned int drawerIdx, unsigned int channel, unsigned int adc,
56 float time, float &y, float &dy,
57 const EventContext &ctx) const {
58
60 return pulseShape->getPulseShapeYDY(drawerIdx, channel, adc, time, y, dy);
61}
62
63//
64//____________________________________________________________________
65
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x)
Helpers for checking error return status codes and reporting errors.
static const InterfaceID IID_TileCondToolPulseShape("TileCondToolPulseShape", 1, 0)
#define y
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
virtual StatusCode finalize() override
bool getPulseShapeYDY(unsigned int drawerIdx, unsigned int channel, unsigned int adc, float time, float &y, float &dy, const EventContext &ctx) const
virtual StatusCode initialize() override
SG::ReadCondHandleKey< TilePulse > m_pulseShapeKey
Name of TilePulse in condition store.
static const InterfaceID & interfaceID()
TileCondToolPulseShape(const std::string &type, const std::string &name, const IInterface *parent)