ATLAS Offline Software
SCT_SiliconConditionsTestAlg.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 
16 #ifndef SCT_SiliconConditionsTestAlg_H
17 #define SCT_SiliconConditionsTestAlg_H
18 
20 
22 
23 //Gaudi
24 #include "GaudiKernel/ToolHandle.h"
25 
28  public:
29  SCT_SiliconConditionsTestAlg(const std::string& name,ISvcLocator* pSvcLocator);
30  virtual ~SCT_SiliconConditionsTestAlg() = default;
31 
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<ISiliconConditionsTool> m_siliconTool{this, "SCT_SiliconConditionsTool", "SCT_SiliconConditionsTool", "Tool to retrieve SCT silicon information"};
40 }; //end of class
41 
42 #endif // SCT_SiliconConditionsTestAlg_H
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
SCT_SiliconConditionsTestAlg
Example class to show calling the SCT_SiliconConditionsTool.
Definition: SCT_SiliconConditionsTestAlg.h:27
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
SCT_SiliconConditionsTestAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: SCT_SiliconConditionsTestAlg.cxx:34
SCT_SiliconConditionsTestAlg::~SCT_SiliconConditionsTestAlg
virtual ~SCT_SiliconConditionsTestAlg()=default
AthReentrantAlgorithm.h
SCT_SiliconConditionsTestAlg::isClonable
virtual bool isClonable() const override
Make this algorithm clonable.
Definition: SCT_SiliconConditionsTestAlg.h:36
SCT_SiliconConditionsTestAlg::initialize
virtual StatusCode initialize() override
Definition: SCT_SiliconConditionsTestAlg.cxx:27
SCT_SiliconConditionsTestAlg::finalize
virtual StatusCode finalize() override
Definition: SCT_SiliconConditionsTestAlg.cxx:47
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
SCT_SiliconConditionsTestAlg::SCT_SiliconConditionsTestAlg
SCT_SiliconConditionsTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: SCT_SiliconConditionsTestAlg.cxx:20
ISiliconConditionsTool.h
SCT_SiliconConditionsTestAlg::m_siliconTool
ToolHandle< ISiliconConditionsTool > m_siliconTool
Definition: SCT_SiliconConditionsTestAlg.h:39