ATLAS Offline Software
SCT_ConditionsParameterTestAlg.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_ConditionsParameterTestAlg_H
13 #define SCT_ConditionsParameterTestAlg_H
14 
15 // Include Athena stuff
18 
19 // Include Gaudi stuff
20 #include "GaudiKernel/ToolHandle.h"
21 
25  public:
26  // Structors
27  SCT_ConditionsParameterTestAlg(const std::string& name, ISvcLocator* pSvcLocator);
28  virtual ~SCT_ConditionsParameterTestAlg() = default;
29 
30  // Standard Gaudi functions
31  virtual StatusCode initialize() override;
32  virtual StatusCode execute(const EventContext& ctx) const override;
33  virtual StatusCode finalize() override;
34 
35  virtual bool isClonable() const override { return true; };
36 
37  private:
38  ToolHandle<ISCT_ConditionsParameterTool> m_conditionsParameterTool{this, "SCT_ConditionsParameterTool", "SCT_ConditionsParameterTool", "Tool to retrieve SCT conditions parameters"};
39 };
40 
41 #endif // SCT_ConditionsParameterTestAlg_H
SCT_ConditionsParameterTestAlg::finalize
virtual StatusCode finalize() override
Gaudi finaliser.
Definition: SCT_ConditionsParameterTestAlg.cxx:103
SCT_ConditionsParameterTestAlg::~SCT_ConditionsParameterTestAlg
virtual ~SCT_ConditionsParameterTestAlg()=default
SCT_ConditionsParameterTestAlg::SCT_ConditionsParameterTestAlg
SCT_ConditionsParameterTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: SCT_ConditionsParameterTestAlg.cxx:28
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
ISCT_ConditionsParameterTool.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
SCT_ConditionsParameterTestAlg
This class acts as a test/sample client the ConditionsParameter class.
Definition: SCT_ConditionsParameterTestAlg.h:24
AthReentrantAlgorithm.h
SCT_ConditionsParameterTestAlg::initialize
virtual StatusCode initialize() override
Gaudi initialiser.
Definition: SCT_ConditionsParameterTestAlg.cxx:34
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
SCT_ConditionsParameterTestAlg::m_conditionsParameterTool
ToolHandle< ISCT_ConditionsParameterTool > m_conditionsParameterTool
Definition: SCT_ConditionsParameterTestAlg.h:38
SCT_ConditionsParameterTestAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Gaudi executer.
Definition: SCT_ConditionsParameterTestAlg.cxx:44
SCT_ConditionsParameterTestAlg::isClonable
virtual bool isClonable() const override
Make this algorithm clonable.
Definition: SCT_ConditionsParameterTestAlg.h:35