ATLAS Offline Software
SCTSiPropertiesTestAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef SCTSIPROPERTIESTESTALG
6 #define SCTSIPROPERTIESTESTALG
7 
9 
11 
12 #include "GaudiKernel/ToolHandle.h"
13 
14 class SCT_ID;
15 
17 {
18  public:
19  SCTSiPropertiesTestAlg(const std::string& name, ISvcLocator* pSvcLocator);
20  virtual ~SCTSiPropertiesTestAlg() = default;
21  virtual StatusCode initialize() override;
22  virtual StatusCode execute(const EventContext& ctx) const override;
23  virtual StatusCode finalize() override;
25  virtual bool isClonable() const override { return true; };
26 
27  private:
28  ToolHandle<ISiPropertiesTool> m_tool{this, "SCTPropertiesTool", "SCTPropertiesTool", "Tool to retrieve SCT Properties"};
29  const SCT_ID* m_id;
30 };
31 
32 #endif // SCTSIPROPERTIESTESTALG
SCTSiPropertiesTestAlg
Definition: SCTSiPropertiesTestAlg.h:17
SCTSiPropertiesTestAlg::initialize
virtual StatusCode initialize() override
Definition: SCTSiPropertiesTestAlg.cxx:15
SCTSiPropertiesTestAlg::finalize
virtual StatusCode finalize() override
Definition: SCTSiPropertiesTestAlg.cxx:54
ISiPropertiesTool.h
SCTSiPropertiesTestAlg::m_id
const SCT_ID * m_id
Definition: SCTSiPropertiesTestAlg.h:29
SCTSiPropertiesTestAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: SCTSiPropertiesTestAlg.cxx:25
SCTSiPropertiesTestAlg::SCTSiPropertiesTestAlg
SCTSiPropertiesTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: SCTSiPropertiesTestAlg.cxx:9
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
SCTSiPropertiesTestAlg::~SCTSiPropertiesTestAlg
virtual ~SCTSiPropertiesTestAlg()=default
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthReentrantAlgorithm.h
SCTSiPropertiesTestAlg::m_tool
ToolHandle< ISiPropertiesTool > m_tool
Definition: SCTSiPropertiesTestAlg.h:28
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
SCT_ID
Definition: SCT_ID.h:68
SCTSiPropertiesTestAlg::isClonable
virtual bool isClonable() const override
Make this algorithm clonable.
Definition: SCTSiPropertiesTestAlg.h:25