16 if (
DEBUG) log<<MSG::VERBOSE<<
"STGC_RawDataContainerCnv_p2::transToPers with STGC_RawDataContainer with this many collections: "<<numColl<<std::endl;
18 persCont->resize(numColl);
20 for (
const auto *collection : *transCont){
22 persColl.resize(collection->size());
23 persColl.
m_idHash = collection->m_idHash;
24 for (
unsigned int j=0 ; j < collection->size() ; ++j ){
27 m_chanCnv.transToPers( transObj, persObj, log );
29 log<<MSG::VERBOSE<<
"Trans:"<<*transObj<<
" Pers: "<<std::hex<<persObj->
m_id<<std::dec<<std::endl;
32 log<<MSG::VERBOSE<<
"trancoll "<<collection->size()<<
" perscoll "<<persColl.size()<<std::endl;
38 size_t numColl = persCont->size();
39 if (
DEBUG) log<<MSG::VERBOSE<<
"STGC_RawDataContainerCnv_p2::persToTrans with STGC_RawDataContainer_p2 with this many collections "<<numColl<<std::endl;
45 log << MSG::WARNING <<
"Could not add the sTGC collection during persistent->transient conversion" << std::endl;
48 if (
DEBUG) log<<MSG::VERBOSE<<
"Have created empty transient collection, now looping over persistent coll with this many entries: "<<collection.size() <<std::endl;
50 for (
unsigned int j=0 ; j < collection.size() ; ++j ){
54 if (
DEBUG) log<<MSG::VERBOSE<<*transObj<<std::endl;
57 if (
DEBUG) log<<MSG::VERBOSE<<
"STGC_RawDataContainerCnv_p2::persToTrans with STGC_RawDataCollection with this many collections "<<transCont->
numberOfCollections()<<std::endl;
66 if (
DEBUG) log<<MSG::VERBOSE<<
"STGC_RawDataContainerCnv_p2::createTransient() Created new STGC_RawDataContainer with this many collections "<<trans->numberOfCollections()<<std::endl;
69 if (
DEBUG) log<<MSG::VERBOSE<<
"STGC_RawDataContainerCnv_p2::createTransient() After persToTrans this many collections "<<trans->numberOfCollections()<<std::endl;
71 return(trans.release());
value_type push_back(value_type pElem)
Add an element to the end of the collection.
virtual size_t numberOfCollections() const override final
return number of collections
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,...
IdentifierHash m_idHash
Offline IdentifierHash for this collection.
const sTgcIdHelper * m_idHelper
void initialize(const sTgcIdHelper *idHelper)
STGC_RawDataCnv_p2 m_chanCnv
virtual Muon::STGC_RawDataContainer * createTransient(const Muon::STGC_RawDataContainer_p2 *persObj, MsgStream &log) override final
virtual void transToPers(const Muon::STGC_RawDataContainer *transCont, Muon::STGC_RawDataContainer_p2 *persCont, MsgStream &log) override
virtual void persToTrans(const Muon::STGC_RawDataContainer_p2 *persCont, Muon::STGC_RawDataContainer *transCont, MsgStream &log) override