ATLAS Offline Software
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 //____________________________________________________________________
15 static const InterfaceID IID_TileCondToolPulseShape("TileCondToolPulseShape", 1, 0);
16 
18  return IID_TileCondToolPulseShape;
19 }
20 
21 //
22 //____________________________________________________________________
23 TileCondToolPulseShape::TileCondToolPulseShape(const std::string& type, const std::string& name,
24  const IInterface* parent)
26 {
27  declareInterface<TileCondToolPulseShape>(this);
28 }
29 
30 //
31 //____________________________________________________________________
33 }
34 
35 //
36 //____________________________________________________________________
38  ATH_MSG_DEBUG( "In initialize()" );
39 
40  //=== Initialize conditions data key with pulse shape
42 
43  return StatusCode::SUCCESS;
44 }
45 
46 //
47 //____________________________________________________________________
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 
60  return pulseShape->getPulseShapeYDY(drawerIdx, channel, adc, time, y, dy);
61 }
62 
63 //
64 //____________________________________________________________________
65 
TileCondToolPulseShape::interfaceID
static const InterfaceID & interfaceID()
Definition: TileCondToolPulseShape.cxx:17
TileCalibDrawerFlt.h
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:28
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
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::finalize
virtual StatusCode finalize() override
Definition: TileCondToolPulseShape.cxx:48
ReadCondHandle.h
TileCondToolPulseShape::TileCondToolPulseShape
TileCondToolPulseShape(const std::string &type, const std::string &name, const IInterface *parent)
Definition: TileCondToolPulseShape.cxx:23
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
test_pyathena.parent
parent
Definition: test_pyathena.py:15
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
TileCondToolPulseShape.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
errorcheck.h
Helpers for checking error return status codes and reporting errors.
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
makeTRTBarrelCans.dy
tuple dy
Definition: makeTRTBarrelCans.py:21
y
#define y
CaloSwCorrections.time
def time(flags, cells_name, *args, **kw)
Definition: CaloSwCorrections.py:242
ReadFloatFromCool.adc
adc
Definition: ReadFloatFromCool.py:48
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TilePulse::getPulseShapeYDY
bool getPulseShapeYDY(unsigned int drawerIdx, unsigned int channel, unsigned int adc, float time, float &y, float &dy) const
Definition: TilePulse.h:35
AthAlgTool
Definition: AthAlgTool.h:26
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::~TileCondToolPulseShape
virtual ~TileCondToolPulseShape()
Definition: TileCondToolPulseShape.cxx:32