ATLAS Offline Software
Loading...
Searching...
No Matches
AthAsgExUnittestAlg.cxx
Go to the documentation of this file.
1
2//
3// Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
4//
5
6// AthAsgExUnittest includes
8
10 ISvcLocator* pSvcLocator ) :
11 AthAnalysisAlgorithm( name, pSvcLocator ) {
12 addRef(); // workaround until fix in Gaudi
13}
14
15
17
18
20 ATH_MSG_INFO( "Initializing " << name() << "..." );
21 ATH_MSG_INFO( "MyProperty = " << m_property );
22 CHECK(m_tool.retrieve());
23 return StatusCode::SUCCESS;
24}
25
27 ATH_MSG_INFO( "Finalizing " << name() << "..." );
28 return StatusCode::SUCCESS;
29}
30
32 ATH_MSG_DEBUG( "Executing " << name() << "..." );
33 setFilterPassed(false); //optional: start with algorithm not passed
34
35 // Real algorithm here
36
37 setFilterPassed(true); //if got here, assume that means algorithm passed
38 return StatusCode::SUCCESS;
39}
40
#define ATH_MSG_INFO(x)
#define ATH_MSG_DEBUG(x)
#define CHECK(...)
Evaluate an expression and check for errors.
AthAnalysisAlgorithm(const std::string &name)
Constructor taking just a name.
virtual StatusCode execute() override
ToolHandle< IAthAsgExUnittestTool > m_tool
AthAsgExUnittestAlg(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Property< int > m_property
virtual StatusCode initialize() override
virtual StatusCode finalize() override