DataObjectHandleBase GaudiKernel/DataObjectHandleBase.h.
More...
#include </builds/gaudi/Gaudi/GaudiKernel/include/GaudiKernel/DataObjectHandleBase.h>
DataObjectHandleBase GaudiKernel/DataObjectHandleBase.h.
Base class for handles to Data Objects in the Event Store, to simplify access via Properties.
- Author
- Charles Leggett
- Date
- 2015-09-01
Definition at line 34 of file DataObjectHandleBase.h.
◆ DataObjectHandleBase() [1/4]
Definition at line 45 of file DataObjectHandleBase.cpp.
46 : Gaudi::DataHandle( std::move( k ), a,
owner ) {
48}
IDataHandleHolder * m_owner
virtual IDataHandleHolder * owner() const
◆ DataObjectHandleBase() [2/4]
Definition at line 52 of file DataObjectHandleBase.cpp.
DataObjectHandleBase(DataObjID k, Gaudi::DataHandle::Mode a, IDataHandleHolder *owner)
◆ ~DataObjectHandleBase()
| DataObjectHandleBase::~DataObjectHandleBase |
( |
| ) |
|
|
override |
◆ DataObjectHandleBase() [3/4]
◆ DataObjectHandleBase() [4/4]
Definition at line 26 of file DataObjectHandleBase.cpp.
27 : Gaudi::DataHandle( other )
32}
SmartIF< IDataProviderSvc > m_EDS
SmartIF< IMessageSvc > m_MS
◆ fetch()
| DataObject * DataObjectHandleBase::fetch |
( |
| ) |
const |
|
protected |
Definition at line 59 of file DataObjectHandleBase.cpp.
59 {
60
61
63 std::cerr << (
owner() ?
owner()->
name() :
"<UNKNOWN>:" ) <<
"DataObjectHandle: uninitialized data handle"
64 << std::endl;
65 }
68 return p;
69}
virtual const std::string & objKey() const
virtual const std::string & name() const =0
Retrieve the name of the instance.
◆ init()
| bool DataObjectHandleBase::init |
( |
| ) |
|
|
overrideprotectedvirtual |
Reimplemented from Gaudi::DataHandle.
Definition at line 73 of file DataObjectHandleBase.cpp.
73 {
75
76 if ( !
owner() )
return false;
77
78 Gaudi::Algorithm* algorithm =
dynamic_cast<Gaudi::Algorithm*
>(
owner() );
79 if ( algorithm ) {
80
83 } else {
84 AlgTool*
tool =
dynamic_cast<AlgTool*
>(
owner() );
85 if ( tool ) {
88 } else {
89 throw GaudiException(
"owner is neither AlgTool nor Gaudi::Algorithm",
"Invalid Cast",
StatusCode::FAILURE );
90 }
91 }
93 return true;
94}
const SmartIF< IMessageSvc > & msgSvc() const
The standard message service.
SmartIF< IDataProviderSvc > & evtSvc() const
shortcut for method eventSvc
constexpr static const auto FAILURE
◆ isValid()
| bool DataObjectHandleBase::isValid |
( |
| ) |
const |
Definition at line 98 of file DataObjectHandleBase.cpp.
const DataObjID INVALID_DATAOBJID
virtual const DataObjID & fullKey() const
◆ operator=()
◆ operator<<
◆ m_EDS
◆ m_init
| bool DataObjectHandleBase::m_init = false |
|
protected |
◆ m_MS
The documentation for this class was generated from the following files: