ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthenaExamples
AthAsgExUnittest
src
AthAsgExUnittestAlg.h
Go to the documentation of this file.
1
// -*- mode: c++ -*-
2
//
3
// Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
4
//
5
6
#ifndef ATHASGEXUNITTEST_ATHASGEXUNITTESTALG_H
7
#define ATHASGEXUNITTEST_ATHASGEXUNITTESTALG_H 1
8
9
#include "
AthAnalysisBaseComps/AthAnalysisAlgorithm.h
"
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
15
#include "
AthAsgExUnittest/IAthAsgExUnittestTool.h
"
16
17
18
class
AthAsgExUnittestAlg
:
public
::AthAnalysisAlgorithm
{
19
public
:
20
21
AthAsgExUnittestAlg
(
const
std::string& name, ISvcLocator* pSvcLocator );
22
virtual
~AthAsgExUnittestAlg
();
23
24
virtual
StatusCode
initialize
()
override
;
25
virtual
StatusCode
execute
(
const
EventContext& ctx)
override
;
26
virtual
StatusCode
finalize
()
override
;
27
28
private
:
29
30
Gaudi::Property<int>
m_property
{
this
,
"MyProperty"
, 1};
31
ToolHandle<IAthAsgExUnittestTool>
m_tool
{
this
,
"MyTool"
,
"AthAsgExUnittestTool/MyTool"
};
32
33
};
34
35
#endif
//> !ATHASGEXUNITTEST_ATHASGEXUNITTESTALG_H
AnaToolHandle.h
AthAnalysisAlgorithm.h
IAthAsgExUnittestTool.h
AthAnalysisAlgorithm::AthAnalysisAlgorithm
AthAnalysisAlgorithm(const std::string &name)
Constructor taking just a name.
Definition
AthAnalysisAlgorithm.cxx:19
AthAsgExUnittestAlg::m_tool
ToolHandle< IAthAsgExUnittestTool > m_tool
Definition
AthAsgExUnittestAlg.h:31
AthAsgExUnittestAlg::AthAsgExUnittestAlg
AthAsgExUnittestAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
AthAsgExUnittestAlg.cxx:9
AthAsgExUnittestAlg::m_property
Gaudi::Property< int > m_property
Definition
AthAsgExUnittestAlg.h:30
AthAsgExUnittestAlg::initialize
virtual StatusCode initialize() override
Definition
AthAsgExUnittestAlg.cxx:19
AthAsgExUnittestAlg::~AthAsgExUnittestAlg
virtual ~AthAsgExUnittestAlg()
Definition
AthAsgExUnittestAlg.cxx:16
AthAsgExUnittestAlg::execute
virtual StatusCode execute(const EventContext &ctx) override
Execute method.
Definition
AthAsgExUnittestAlg.cxx:31
AthAsgExUnittestAlg::finalize
virtual StatusCode finalize() override
Definition
AthAsgExUnittestAlg.cxx:26
Generated on
for ATLAS Offline Software by
1.17.0