ATLAS Offline Software
UnitTestAlg6.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef EVENT_LOOP_UNIT_TEST_ALG6_H
6 #define EVENT_LOOP_UNIT_TEST_ALG6_H
7 
8 #include <EventLoopTest/Global.h>
9 
12 #include <AsgTools/ToolHandle.h>
13 
14 namespace EL
15 {
16  class UnitTestAlg6 final : public AnaReentrantAlgorithm
17  {
18  public:
19  UnitTestAlg6 (const std::string& name, ISvcLocator* pSvcLocator);
20 
21  public:
22  virtual ::StatusCode initialize () override;
23 
24  public:
25  virtual ::StatusCode execute (const EventContext& ctx) const override;
26 
27  public:
28  virtual ::StatusCode finalize () override;
29 
30 
32  public:
33  float m_property = 0;
34 
36  public:
37  std::string m_string_property;
38 
40  public:
41  ToolHandle<IUnitTestTool> m_toolHandle {"", this};
42 
44  public:
45  bool m_wasInitialized = false;
46  };
47 }
48 
49 #endif
EL::UnitTestAlg6::m_toolHandle
ToolHandle< IUnitTestTool > m_toolHandle
the tool handle property our owner sets
Definition: UnitTestAlg6.h:41
EL::UnitTestAlg6::m_wasInitialized
bool m_wasInitialized
whether initialize has been called
Definition: UnitTestAlg6.h:45
EL::UnitTestAlg6::m_property
float m_property
the float property our owner sets
Definition: UnitTestAlg6.h:33
EL::UnitTestAlg6::initialize
virtual ::StatusCode initialize() override
Definition: UnitTestAlg6.cxx:29
IUnitTestTool.h
EL::UnitTestAlg6
Definition: UnitTestAlg6.h:17
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
EL
This module defines the arguments passed from the BATCH driver to the BATCH worker.
Definition: AlgorithmWorkerData.h:24
EL::UnitTestAlg6::finalize
virtual ::StatusCode finalize() override
Definition: UnitTestAlg6.cxx:60
EL::UnitTestAlg6::execute
virtual ::StatusCode execute(const EventContext &ctx) const override
Definition: UnitTestAlg6.cxx:47
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
EL::AnaReentrantAlgorithm
the base class for EventLoop reentrant algorithms
Definition: AnaReentrantAlgorithm.h:51
EL::UnitTestAlg6::UnitTestAlg6
UnitTestAlg6(const std::string &name, ISvcLocator *pSvcLocator)
Definition: UnitTestAlg6.cxx:18
AnaReentrantAlgorithm.h
EL::UnitTestAlg6::m_string_property
std::string m_string_property
the string property our owner sets
Definition: UnitTestAlg6.h:37
ToolHandle.h
Global.h