ATLAS Offline Software
AthAsgExUnittestAlg.h
Go to the documentation of this file.
1 // -*- mode: c++ -*-
2 //
3 // Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
4 //
5 
6 #ifndef ATHASGEXUNITTEST_ATHASGEXUNITTESTALG_H
7 #define ATHASGEXUNITTEST_ATHASGEXUNITTESTALG_H 1
8 
10 
11 #ifdef XAOD_ANALYSIS
12 #include "AsgTools/AnaToolHandle.h" //use asg::AnaToolHandle instead of regular ToolHandles for full dual-use experience!
13 #endif
14 
16 
17 
19 public:
20 
21  AthAsgExUnittestAlg( const std::string& name, ISvcLocator* pSvcLocator );
22  virtual ~AthAsgExUnittestAlg();
23 
24  virtual StatusCode initialize() override;
25  virtual StatusCode execute() override;
26  virtual StatusCode finalize() override;
27 
28 private:
29 
31  ToolHandle<IAthAsgExUnittestTool> m_tool;
32 
33 };
34 
35 #endif //> !ATHASGEXUNITTEST_ATHASGEXUNITTESTALG_H
AthAnalysisAlgorithm
Definition: AthAnalysisAlgorithm.h:34
IAthAsgExUnittestTool.h
AthAsgExUnittestAlg::m_tool
ToolHandle< IAthAsgExUnittestTool > m_tool
Definition: AthAsgExUnittestAlg.h:31
AthAsgExUnittestAlg::AthAsgExUnittestAlg
AthAsgExUnittestAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: AthAsgExUnittestAlg.cxx:9
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAnalysisAlgorithm.h
AthAsgExUnittestAlg::finalize
virtual StatusCode finalize() override
Definition: AthAsgExUnittestAlg.cxx:31
AnaToolHandle.h
AthAsgExUnittestAlg::initialize
virtual StatusCode initialize() override
Definition: AthAsgExUnittestAlg.cxx:24
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
AthAsgExUnittestAlg::m_property
int m_property
Definition: AthAsgExUnittestAlg.h:30
AthAsgExUnittestAlg::execute
virtual StatusCode execute() override
Definition: AthAsgExUnittestAlg.cxx:36
AthAsgExUnittestAlg::~AthAsgExUnittestAlg
virtual ~AthAsgExUnittestAlg()
Definition: AthAsgExUnittestAlg.cxx:21
AthAsgExUnittestAlg
Definition: AthAsgExUnittestAlg.h:18