ATLAS Offline Software
UnitTestAlg5.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef EVENT_LOOP_UNIT_TEST_ALG5_H
6 #define EVENT_LOOP_UNIT_TEST_ALG5_H
7 
8 #include <EventLoopTest/Global.h>
9 
12 #include <AsgTools/ToolHandle.h>
13 
14 namespace EL
15 {
16  class UnitTestAlg5 final : public AnaAlgorithm
17  {
18  public:
19  UnitTestAlg5 (const std::string& name, ISvcLocator* pSvcLocator);
20 
21  public:
22  virtual ::StatusCode initialize () override;
23 
24  public:
25  virtual ::StatusCode execute () 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::UnitTestAlg5::initialize
virtual ::StatusCode initialize() override
Definition: UnitTestAlg5.cxx:29
EL::UnitTestAlg5::m_property
float m_property
the float property our owner sets
Definition: UnitTestAlg5.h:33
EL::UnitTestAlg5::m_string_property
std::string m_string_property
the string property our owner sets
Definition: UnitTestAlg5.h:37
EL::UnitTestAlg5
Definition: UnitTestAlg5.h:17
IUnitTestTool.h
AnaAlgorithm.h
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition: AnaAlgorithm.h:73
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
EL::UnitTestAlg5::m_wasInitialized
bool m_wasInitialized
whether initialize has been called
Definition: UnitTestAlg5.h:45
EL
This module defines the arguments passed from the BATCH driver to the BATCH worker.
Definition: AlgorithmWorkerData.h:24
EL::UnitTestAlg5::execute
virtual ::StatusCode execute() override
Definition: UnitTestAlg5.cxx:47
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
EL::UnitTestAlg5::finalize
virtual ::StatusCode finalize() override
Definition: UnitTestAlg5.cxx:60
EL::UnitTestAlg5::m_toolHandle
ToolHandle< IUnitTestTool > m_toolHandle
the tool handle property our owner sets
Definition: UnitTestAlg5.h:41
ToolHandle.h
Global.h
EL::UnitTestAlg5::UnitTestAlg5
UnitTestAlg5(const std::string &name, ISvcLocator *pSvcLocator)
Definition: UnitTestAlg5.cxx:18