ATLAS Offline Software
SCT_LinkMaskingTestAlg.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_LinkMaskingTestAlg_H
17 #define SCT_LinkMaskingTestAlg_H
18 
19 //Athena
22 
23 //Gaudi
24 #include "GaudiKernel/ToolHandle.h"
25 
26 //STL
27 #include <string>
28 
31  public:
32  SCT_LinkMaskingTestAlg(const std::string& name, ISvcLocator* pSvcLocator);
33  virtual ~SCT_LinkMaskingTestAlg() = default;
34 
35  virtual StatusCode initialize() override;
36  virtual StatusCode execute(const EventContext& ctx) const override;
37  virtual StatusCode finalize() override;
39  virtual bool isClonable() const override { return true; };
40 
41  private:
42  ToolHandle<ISCT_ConditionsTool> m_linkMaskingTool{this, "LinkMaskingTool", "SCT_LinkMaskingTool", "Tool to retrieve masked links"};
43 };
44 
45 #endif // SCT_LinkMaskingTestAlg_H
ISCT_ConditionsTool.h
SCT_LinkMaskingTestAlg::finalize
virtual StatusCode finalize() override
Definition: SCT_LinkMaskingTestAlg.cxx:48
SCT_LinkMaskingTestAlg::isClonable
virtual bool isClonable() const override
Make this algorithm clonable.
Definition: SCT_LinkMaskingTestAlg.h:39
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
SCT_LinkMaskingTestAlg
Example class to show calling the SCT_LinkMaskingTool.
Definition: SCT_LinkMaskingTestAlg.h:30
SCT_LinkMaskingTestAlg::~SCT_LinkMaskingTestAlg
virtual ~SCT_LinkMaskingTestAlg()=default
SCT_LinkMaskingTestAlg::initialize
virtual StatusCode initialize() override
Definition: SCT_LinkMaskingTestAlg.cxx:24
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
SCT_LinkMaskingTestAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: SCT_LinkMaskingTestAlg.cxx:37
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
SCT_LinkMaskingTestAlg::m_linkMaskingTool
ToolHandle< ISCT_ConditionsTool > m_linkMaskingTool
Definition: SCT_LinkMaskingTestAlg.h:42
SCT_LinkMaskingTestAlg::SCT_LinkMaskingTestAlg
SCT_LinkMaskingTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: SCT_LinkMaskingTestAlg.cxx:19