8#include "GaudiKernel/MsgStream.h"
11 MsgStream mlog(msgSvc(),
"TileBeamElemContainerConverter" );
18 MsgStream mlog(msgSvc(),
"TileBeamElemContainerConverter" );
23 static const pool::Guid p1_guid(
"CF8DE6AB-8E15-4B5F-881B-39B736EAB4E0");
24 static const pool::Guid p0_guid(
"7FCE8F30-B59E-41E6-9A66-0DCD6134552E");
34 if (mlog.level()<=MSG::DEBUG)
35 mlog << MSG::DEBUG <<
"Read IDC, size " << rdoV->
size() <<
endmsg;
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");
TileBeamElemContainer_p1 TileBeamElemContainer_PERS
T_TilePoolContainerCnv< TileBeamElemContainer, TileBeamElemContainer_p1, TileBeamElemCnv_p1 > TileBeamElemContainerCnv_p1
DataModel_detail::iterator< DataVector > iterator
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
size_type size() const noexcept
Returns the number of elements in the collection.
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 PERS * createPersistent(const TRANS *transObj, MsgStream &log)
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)
virtual bool compareClassGuid(const Guid &clid) const
TileBeamElemContainer * createTransient()
TileBeamElemContainer_PERS * createPersistent(TileBeamElemContainer *transCont)
void setOwnership(SG::OwnershipPolicy ownPolicy)
const TileFragHash & hashFunc() const
@ OWN_ELEMENTS
this data object owns its elements