#include <HiveTool.h>
Definition at line 16 of file HiveTool.h.
◆ HiveTool()
| HiveTool::HiveTool |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
Definition at line 14 of file HiveTool.cxx.
16 : base_class( type, name, parent )
17{}
◆ ~HiveTool()
◆ doSomething()
| StatusCode HiveTool::doSomething |
( |
| ) |
const |
|
virtual |
Definition at line 52 of file HiveTool.cxx.
52 {
54
56
59 } else {
60 SG::ReadHandle<HiveDataObj> rh(
m_rdh1 );
61 ATH_MSG_INFO(
" read: " << rh.key() <<
" = " << rh->val() );
63 }
64
67 } else {
68 SG::WriteHandle<HiveDataObj> wrh1(
m_wrh1 );
69 ATH_CHECK(wrh1.record(std::make_unique< HiveDataObj >(val + 666)));
70
71 ATH_MSG_INFO(
" write: " << wrh1.key() <<
" = " << wrh1->val() );
72 }
73
74 return StatusCode::SUCCESS;
75}
#define ATH_CHECK
Evaluate an expression and check for errors.
◆ finalize()
| StatusCode HiveTool::finalize |
( |
| ) |
|
|
virtual |
Definition at line 46 of file HiveTool.cxx.
46 {
48
49 return StatusCode::SUCCESS;
50}
◆ initialize()
| StatusCode HiveTool::initialize |
( |
| ) |
|
|
virtual |
Definition at line 25 of file HiveTool.cxx.
25 {
27
31 } else {
33 }
34
38 } else {
40 }
41
42 return StatusCode::SUCCESS;
43}
◆ m_rdh1
Definition at line 28 of file HiveTool.h.
28{this, "Key_R1", "x1", "tool read key"};
◆ m_wrh1
Definition at line 29 of file HiveTool.h.
29{this, "Key_W1", "X1", "tool write key"};
The documentation for this class was generated from the following files: