 |
ATLAS Offline Software
|
Go to the documentation of this file.
12 #include "GaudiKernel/StatusCode.h"
13 #include "GaudiKernel/MsgStream.h"
19 m_isInitialized(false){
29 SmartIF<StoreGateSvc>
detStore{Gaudi::svcLocator()->service(
"DetectorStore")};
33 return StatusCode::SUCCESS;
44 unsigned int collIndex;
49 for (collIndex = 0; it_Coll != it_CollEnd; ++collIndex, ++it_Coll) {
61 for (
unsigned int icoll = 0; icoll < persCont->
m_pads.size(); ++icoll) {
68 log << MSG::WARNING<<
"Collection with hash="<<coll->
identifyHash()<<
" already exists in container (with "<<
ptr->size()<<
" elements). "
69 <<
"Will therefore DISCARD this collection which has "<<coll->
size()<<
" elements)!"<<
endmsg;
74 log << MSG::WARNING<<
"Could not add collection with hash="<<coll->
identifyHash()
90 if (this->
initialize(log) != StatusCode::SUCCESS) {
98 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
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
#define CHECK(...)
Evaluate an expression and check for errors.
const_iterator begin() const
return const_iterator for first entry
std::string to_string(const DetectorType &type)
Helpers for checking error return status codes and reporting errors.
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.