ATLAS Offline Software
SCTSiLorentzAngleTestAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
9 #ifndef SCTSiLorentzAngleTestAlg_h
10 #define SCTSiLorentzAngleTestAlg_h
11 
12 // Athena includes
15 
16 // Gaudi includes
17 #include "GaudiKernel/ToolHandle.h"
18 
19 // forward declarations
20 class SCT_ID;
21 
28 {
29  public:
30  SCTSiLorentzAngleTestAlg(const std::string& name, ISvcLocator* pSvcLocator);
31  virtual ~SCTSiLorentzAngleTestAlg() = default;
32  virtual StatusCode initialize() override;
33  virtual StatusCode execute(const EventContext& ctx) const override;
34  virtual StatusCode finalize() override;
36  virtual bool isClonable() const override { return true; };
37 
38  private:
39  ToolHandle<ISiLorentzAngleTool> m_tool{this, "SCTLorentzAngleTool", "SCTLorentzAngleTool", "Tool to retrieve SCT Lorentz Angle Tool"};
40  const SCT_ID* m_id;
41 };
42 
43 #endif // SCTSiLorentzAngleTestAlg_h
SCTSiLorentzAngleTestAlg::SCTSiLorentzAngleTestAlg
SCTSiLorentzAngleTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: SCTSiLorentzAngleTestAlg.cxx:20
ISiLorentzAngleTool.h
SCTSiLorentzAngleTestAlg::initialize
virtual StatusCode initialize() override
Definition: SCTSiLorentzAngleTestAlg.cxx:26
SCTSiLorentzAngleTestAlg::~SCTSiLorentzAngleTestAlg
virtual ~SCTSiLorentzAngleTestAlg()=default
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
SCTSiLorentzAngleTestAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: SCTSiLorentzAngleTestAlg.cxx:34
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
SCTSiLorentzAngleTestAlg::finalize
virtual StatusCode finalize() override
Definition: SCTSiLorentzAngleTestAlg.cxx:59
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
SCTSiLorentzAngleTestAlg
Definition: SCTSiLorentzAngleTestAlg.h:28
SCTSiLorentzAngleTestAlg::isClonable
virtual bool isClonable() const override
Make this algorithm clonable.
Definition: SCTSiLorentzAngleTestAlg.h:36
SCTSiLorentzAngleTestAlg::m_id
const SCT_ID * m_id
Definition: SCTSiLorentzAngleTestAlg.h:40
SCT_ID
Definition: SCT_ID.h:68
SCTSiLorentzAngleTestAlg::m_tool
ToolHandle< ISiLorentzAngleTool > m_tool
Definition: SCTSiLorentzAngleTestAlg.h:39