ATLAS Offline Software
SCT_SensorsTestAlg.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 
3 /*
4  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
5 */
6 
11 // Multiple inclusion protection
12 #ifndef SCT_SensorsTestAlg_H
13 #define SCT_SensorsTestAlg_H
14 
15 // Include Athena stuff
17 
19 
20 // Include Gaudi stuff
21 #include "GaudiKernel/ToolHandle.h"
22 
23 // Include STL stuff
24 #include <string>
25 
29  public:
30  // Structors
31  SCT_SensorsTestAlg (const std::string& name, ISvcLocator* pSvcLocator);
32  virtual ~SCT_SensorsTestAlg() = default;
33 
34  // Standard Gaudi functions
35  virtual StatusCode initialize() override;
36  virtual StatusCode execute(const EventContext& ctx) const override;
37  virtual StatusCode finalize() override;
38 
39  virtual bool isClonable() const override { return true; };
40 
41  private:
42  ToolHandle<ISCT_SensorsTool> m_SensorsTool{this, "SCT_SensorsTool", "SCT_SensorsTool", "Tool to retrieve SCT sensor information"};
43 };
44 
45 #endif // SCT_SensorsTestAlg_H
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
SCT_SensorsTestAlg::isClonable
virtual bool isClonable() const override
Make this algorithm clonable.
Definition: SCT_SensorsTestAlg.h:39
SCT_SensorsTestAlg::m_SensorsTool
ToolHandle< ISCT_SensorsTool > m_SensorsTool
Definition: SCT_SensorsTestAlg.h:42
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
SCT_SensorsTestAlg::~SCT_SensorsTestAlg
virtual ~SCT_SensorsTestAlg()=default
ISCT_SensorsTool.h
AthReentrantAlgorithm.h
SCT_SensorsTestAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Gaudi executer.
Definition: SCT_SensorsTestAlg.cxx:36
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
SCT_SensorsTestAlg::finalize
virtual StatusCode finalize() override
Gaudi finaliser.
Definition: SCT_SensorsTestAlg.cxx:50
SCT_SensorsTestAlg::SCT_SensorsTestAlg
SCT_SensorsTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: SCT_SensorsTestAlg.cxx:22
SCT_SensorsTestAlg
This class acts as a test/sample client the ConditionsParameter class.
Definition: SCT_SensorsTestAlg.h:28
SCT_SensorsTestAlg::initialize
virtual StatusCode initialize() override
Gaudi initialiser.
Definition: SCT_SensorsTestAlg.cxx:29