#include <xAODTestReadSymlinkTool.h>
|
| | xAODTestReadSymlinkTool (const std::string &type, const std::string &name, const IInterface *parent) |
| | Constructor.
|
| virtual StatusCode | initialize () override |
| | Tool initialization; called at the beginning of the job.
|
| virtual StatusCode | doit (const EventContext &ctx) const override |
| | Tool event processing.
|
Definition at line 31 of file xAODTestReadSymlinkTool.h.
◆ xAODTestReadSymlinkTool()
| DMTest::xAODTestReadSymlinkTool::xAODTestReadSymlinkTool |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
Constructor.
- Parameters
-
| type | The tool type. |
| name | The tool name. |
| parent | The tool's parent. |
Definition at line 21 of file xAODTestReadSymlinkTool.cxx.
24 : base_class (type, name, parent)
25{
27 declareProperty (
"S1Key",
m_s1Key =
"S2");
28 declareProperty (
"S2Key",
m_s2Key =
"S2");
29 declareProperty (
"AliasKey",
m_aliasKey =
"S2alias");
30}
◆ doit()
| StatusCode DMTest::xAODTestReadSymlinkTool::doit |
( |
const EventContext & | ctx | ) |
const |
|
overridevirtual |
Tool event processing.
Definition at line 43 of file xAODTestReadSymlinkTool.cxx.
44{
45 SG::ReadHandle<SG::AuxElement>
c (
m_objKey, ctx);
46 SG::ReadHandle<DMTest::S1>
s1 (
m_s1Key, ctx);
47 SG::ReadHandle<DMTest::S2>
s2 (
m_s2Key, ctx);
49
51 ATH_MSG_INFO(
"From tool: C (as AuxElement): " << anInt (*c)
52 <<
"; S " <<
s2->m_x );
53 if (
s2.cptr() !=
s1.cptr() ||
s2.cptr() !=
alias.cptr())
55 return StatusCode::SUCCESS;
56}
SG::Accessor< T, ALLOC > Accessor
◆ initialize()
| StatusCode DMTest::xAODTestReadSymlinkTool::initialize |
( |
| ) |
|
|
overridevirtual |
Tool initialization; called at the beginning of the job.
Definition at line 33 of file xAODTestReadSymlinkTool.cxx.
34{
39 return StatusCode::SUCCESS;
40}
#define ATH_CHECK
Evaluate an expression and check for errors.
◆ m_aliasKey
◆ m_objKey
◆ m_s1Key
◆ m_s2Key
The documentation for this class was generated from the following files: