ATLAS Offline Software
SCT_RadDamageSummaryTool.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
8 
9 // -- constructor
10 SCT_RadDamageSummaryTool::SCT_RadDamageSummaryTool(const std::string& type, const std::string& name, const IInterface* parent) :
11  base_class(type, name, parent)
12 {
13 }
14 
15 //-- initialize
17  ATH_MSG_INFO("Initializing SCT_RadDamageSummaryTool");
18 
19  ATH_CHECK(m_chargeTrappingTool.retrieve());
20  ATH_MSG_INFO("SCT_ChargeTrappingTool retrieved");
21 
22  return StatusCode::SUCCESS;
23 }
24 
25 // -- finalize
27  ATH_MSG_INFO("Finalizing SCT_RadDamageSummaryTool");
28 
29  return StatusCode::SUCCESS;
30 }
31 
32 SCT_ChargeTrappingCondData SCT_RadDamageSummaryTool::getCondData(const IdentifierHash& elementHash, const double& zpos, const EventContext& ctx) const {
33  return m_chargeTrappingTool->getCondData(elementHash, zpos, ctx);
34 }
35 
37  const EventContext& ctx{Gaudi::Hive::currentContext()};
38  return getCondData(elementHash, zpos, ctx);
39 }
40 
41 void SCT_RadDamageSummaryTool::holeTransport(double& x0, double& y0, double& xfin, double& yfin, double& Q_m2, double& Q_m1, double& Q_00, double& Q_p1, double& Q_p2, const EventContext& ctx) const {
42  m_chargeTrappingTool->getHoleTransport(x0, y0, xfin, yfin, Q_m2, Q_m1, Q_00, Q_p1, Q_p2, ctx);
43 }
44 
45 void SCT_RadDamageSummaryTool::holeTransport(double& x0, double& y0, double& xfin, double& yfin, double& Q_m2, double& Q_m1, double& Q_00, double& Q_p1, double& Q_p2) const {
46  const EventContext& ctx{Gaudi::Hive::currentContext()};
47  holeTransport(x0, y0, xfin, yfin, Q_m2, Q_m1, Q_00, Q_p1, Q_p2, ctx);
48 }
SCT_RadDamageSummaryTool::SCT_RadDamageSummaryTool
SCT_RadDamageSummaryTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: SCT_RadDamageSummaryTool.cxx:10
SCT_RadDamageSummaryTool.h
SCT_ChargeTrappingCondData
Data object for SCT_ChargeTrappingTool, SCT_RadDamageSummaryTool, SCT_SurfaceChargesGenerator.
Definition: SCT_ChargeTrappingCondData.h:22
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
SCT_RadDamageSummaryTool::finalize
virtual StatusCode finalize() override
Definition: SCT_RadDamageSummaryTool.cxx:26
SCT_RadDamageSummaryTool::holeTransport
virtual void holeTransport(double &x0, double &y0, double &xfin, double &yfin, double &Q_m2, double &Q_m1, double &Q_00, double &Q_p1, double &Q_p2, const EventContext &ctx) const override
Definition: SCT_RadDamageSummaryTool.cxx:41
SCT_RadDamageSummaryTool::m_chargeTrappingTool
ToolHandle< ISCT_ChargeTrappingTool > m_chargeTrappingTool
Definition: SCT_RadDamageSummaryTool.h:43
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
test_pyathena.parent
parent
Definition: test_pyathena.py:15
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
SCT_RadDamageSummaryTool::initialize
virtual StatusCode initialize() override
Definition: SCT_RadDamageSummaryTool.cxx:16
SCT_RadDamageSummaryTool::getCondData
virtual SCT_ChargeTrappingCondData getCondData(const IdentifierHash &elementHash, const double &zpos, const EventContext &ctx) const override
Definition: SCT_RadDamageSummaryTool.cxx:32
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
IdentifierHash.h
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25