![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
12 #include "GaudiKernel/Bootstrap.h"
13 #include "GaudiKernel/StatusCode.h"
14 #include "GaudiKernel/Service.h"
15 #include "GaudiKernel/MsgStream.h"
20 m_isInitialized(false){
30 ISvcLocator* svcLocator = Gaudi::svcLocator();
35 return StatusCode::FAILURE;
43 return StatusCode::FAILURE;
59 unsigned int collIndex;
64 for (collIndex = 0; it_Coll != it_CollEnd; ++collIndex, ++it_Coll) {
76 for (
unsigned int icoll = 0; icoll < persCont->
m_pads.size(); ++icoll) {
83 log << MSG::WARNING<<
"Collection with hash="<<coll->
identifyHash()<<
" already exists in container (with "<<ptr->size()<<
" elements). "
84 <<
"Will therefore DISCARD this collection which has "<<coll->
size()<<
" elements)!"<<
endmsg;
89 log << MSG::WARNING<<
"Could not add collection with hash="<<coll->
identifyHash()
105 if (this->
initialize(log) != StatusCode::SUCCESS) {
113 return(trans.release());
Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Current Athena::TPCnvVers::Current Athena::TPCnvVers::Current RpcPadContainer
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,...
StatusCode initialize(MsgStream &log)
Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Current Athena::TPCnvVers::Current RpcPad
size_t size() const
Duplicate of fullSize for backwards compatability.
virtual void transToPers(const TRANS *transCont, PERS *persCont, MsgStream &log)
virtual void persToTrans(const PERS *persCont, TRANS *transCont, MsgStream &log)
const RpcIdHelper * m_rpcIdHelper
The Athena Transient Store API.
virtual size_t numberOfCollections() const override final
return number of collections
::StatusCode StatusCode
StatusCode definition for legacy code.
const_iterator end() const
return const_iterator for end of container
const_iterator begin() const
return const_iterator for first entry
std::string to_string(const DetectorType &type)
IdentifierHash identifyHash() const
Returns the OFFLINE identifier hash for this collection.
size_type module_hash_max() const
the maximum hash value
virtual void transToPers(const RpcPad *transColl, RpcPad_p1 *persColl, MsgStream &log)
virtual RpcPadContainer * createTransient(const RpcPadContainer_p2 *persObj, MsgStream &log)
virtual const T * indexFindPtr(IdentifierHash hashId) const override final
return pointer on the found entry or null if out of range using hashed index - fast version,...
size_type size() const noexcept
Returns the number of elements in the collection.
std::vector< RpcPad_p1 > m_pads
virtual void persToTrans(const RpcPad_p1 *persColl, RpcPad *transColl, MsgStream &log)
Use IdentifiableContainer with RpcPad.