ATLAS Offline Software
HandleTestAlg.h
Go to the documentation of this file.
1 // This file's extension implies that it's C, but it's really -*- C++ -*-.
2 /*
3  * Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration.
4  */
14 #ifndef ATHEXSTOREGATEEXAMPLE_HANDLETESTALG_H
15 #define ATHEXSTOREGATEEXAMPLE_HANDLETESTALG_H
16 
17 
19 #include "GaudiKernel/ToolHandle.h"
20 #include "IHandleTestTool.h"
21 
22 
23 namespace AthEx {
24 
25 
27  : public AthReentrantAlgorithm
28 {
29 public:
31 
32 
33  virtual StatusCode initialize() override;
34  virtual StatusCode execute (const EventContext& ctx) const override;
35 
36 
37 private:
38  ToolHandle<IHandleTestTool> m_tool1
39  { this, "Tool1", "AthEx::HandleTestTool1", "" };
40  ToolHandle<IHandleTestTool> m_tool2
41  { this, "Tool2", "AthEx::HandleTestTool2", "" };
42 };
43 
44 
45 } // namespace AthEx
46 
47 
48 #endif // not ATHEXSTOREGATEEXAMPLE_HANDLETESTALG_H
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
AthEx::HandleTestAlg::m_tool1
ToolHandle< IHandleTestTool > m_tool1
Definition: HandleTestAlg.h:39
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
AthEx::HandleTestAlg::initialize
virtual StatusCode initialize() override
Definition: HandleTestAlg.cxx:19
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthEx
Definition: Hist.h:25
AthEx::HandleTestAlg
Definition: HandleTestAlg.h:28
IHandleTestTool.h
Test for cross-component circular dependency warning suppression of WriteDecorHandleKey.
AthReentrantAlgorithm.h
AthEx::HandleTestAlg::m_tool2
ToolHandle< IHandleTestTool > m_tool2
Definition: HandleTestAlg.h:41
AthEx::HandleTestAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: HandleTestAlg.cxx:27