|
ATLAS Offline Software
|
Go to the documentation of this file.
8 #include "GaudiKernel/MsgStream.h"
11 MsgStream
mlog(
msgSvc(),
"TileHitContainerConverter" );
18 MsgStream
mlog(
msgSvc(),
"TileHitContainerConverter" );
23 static const pool::Guid p1_guid(
"E347580F-BBF0-441E-A799-9AC0256F69DF");
24 static const pool::Guid p0_guid(
"704A373C-EA65-4721-A9B8-F577B683699E");
27 std::unique_ptr< TileHitContainer_p1 > cont( this->poolReadObject< TileHitContainer_p1 >() );
45 for (;
it != last; ++
it) {
54 mlog << MSG::ERROR <<
"Can't add collection " << id_coll <<
" to container " <<
endmsg;
59 throw std::runtime_error(
"Unsupported persistent version of Data container");
virtual StatusCode addCollection(const T *coll, IdentifierHash hashId) override final
insert collection into container with id hash if IDC should not take ownership of collection,...
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)
Create transient representation of a persistent object.
virtual PERS * createPersistent(const TRANS *transObj, MsgStream &log)
Create persistent representation of a transient object.
msgSvc
Provide convenience handles for various services.
(Non-const) Iterator class for DataVector/DataList.
@ OWN_ELEMENTS
this data object owns its elements
::StatusCode StatusCode
StatusCode definition for legacy code.
void setOwnership(SG::OwnershipPolicy ownPolicy)
const TileFragHash & hashFunc() const
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
TileHitContainer * createTransient()
virtual bool compareClassGuid(const Guid &clid) const
Compare POOL class GUID with the one of the object being read.
TileHitContainer_PERS * createPersistent(TileHitContainer *transCont)
size_type size() const noexcept
Returns the number of elements in the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.