|
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"
21 m_isInitialized(false),
22 m_rpcCabKey(
"RpcCablingCondData") {
45 unsigned int collIndex;
48 persCont->resize(numColl);
log <<
MSG::DEBUG <<
" Preparing " << persCont->size() <<
"Collections" <<
endmsg;
50 for (collIndex = 0; it_Coll != it_CollEnd; ++collIndex, ++it_Coll) {
52 RpcPad_p1* pcoll = &( (*persCont)[collIndex] );
62 if (!rpcCab.
isValid()||!rpcCabling) {
69 for (
unsigned int icoll = 0; icoll < persCont->size(); ++icoll) {
74 int temp = rpcCabling->operator()(coll->
identify());
77 log<<MSG::WARNING<<
"get_hash failed - nothing else we can try!"<<
endmsg;
85 log << MSG::WARNING<<
"Collection with hash="<<coll->
identifyHash()<<
" already exists in container (with "<<
ptr->size()<<
" elements). "
86 <<
"Will therefore DISCARD this collection which has "<<coll->
size()<<
" elements)!"<<
endmsg;
91 log << MSG::WARNING<<
"Could not add collection with hash="<<coll->
identifyHash()
92 <<
" to IDC which has hash max of "<<transCont->
size()<<
" (PadHashFunction gives "<<rpcCabling->
max()<<
")"<<
endmsg;
107 if (this->
initialize(log) != StatusCode::SUCCESS) {
114 if (!rpcCab.
isValid()||!rpcCabling) {
120 return(trans.release());
Identifier identify() const
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
StatusCode initialize(MsgStream &log)
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,...
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.
SG::ReadCondHandleKey< RpcCablingCondData > m_rpcCabKey
virtual void transToPers(const TRANS *transCont, PERS *persCont, MsgStream &log) override
virtual size_t numberOfCollections() const override final
return number of collections
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual void persToTrans(const PERS *persCont, TRANS *transCont, MsgStream &log) override
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)
StatusCode initialize(bool used=true)
IdentifierHash identifyHash() const
Returns the OFFLINE identifier hash for this collection.
virtual void transToPers(const RpcPad *transColl, RpcPad_p1 *persColl, 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,...
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
size_type size() const noexcept
Returns the number of elements in the collection.
virtual void persToTrans(const RpcPad_p1 *persColl, RpcPad *transColl, MsgStream &log)
virtual RpcPadContainer * createTransient(const RpcPadContainer_p1 *persObj, MsgStream &log) override
Use IdentifiableContainer with RpcPad.