8#include "GaudiKernel/StatusCode.h"
9#include "GaudiKernel/MsgStream.h"
29 return StatusCode::FAILURE;
34 MsgStream log(msgSvc(),
"TgcPrepDataContainerCnv");
35 if (log.level() <= MSG::INFO) log << MSG::INFO <<
"TgcPrepDataContainerCnv::initialize()" <<
endmsg;
37 return StatusCode::SUCCESS;
41 MsgStream log(msgSvc(),
"TgcPrepDataContainerCnv" );
42 if (log.level() <= MSG::DEBUG) log<<MSG::DEBUG<<
"createPersistent(): main converter"<<
endmsg;
48 MsgStream log(msgSvc(),
"TgcPrepDataContainerCnv" );
49 static const pool::Guid p0_guid(
"04E7158E-416B-8E31-D370-616631B8617E");
50 static const pool::Guid p1_guid(
"8C563637-620B-43A0-9A5D-E0BC09496745");
51 static const pool::Guid p2_guid(
"EBB4DCEC-CE23-4A30-BEF7-F3150E4060CB");
52 static const pool::Guid p3_guid(
"215726D6-15F4-41D2-B808-1B9E9FD84166");
55 if (log.level() <= MSG::DEBUG) log<<MSG::DEBUG<<
"createTransient(const Token* token): main converter"<<
endmsg;
58 if (log.level() <= MSG::DEBUG) log<<MSG::DEBUG<<
"createTransient(const Token* token): T/P version 3 detected"<<
endmsg;
60 p_collection =
m_converter_p3.createTransient( p_coll.get(), log );
62 if (log.level() <= MSG::DEBUG) log<<MSG::DEBUG<<
"createTransient(const Token* token): T/P version 2 detected"<<
endmsg;
64 p_collection =
m_converter_p2.createTransient( p_coll.get(), log );
68 p_collection =
m_TPConverter.createTransient( col_vect.get(), log );
69 if (log.level() <= MSG::DEBUG) log<<MSG::DEBUG<<
"createTransient(const Token* token): T/P version 1 detected"<<
endmsg;
73 if (log.level() <= MSG::DEBUG) log<<MSG::DEBUG<<
"createTransient(const Token* token): Old input file"<<std::endl;
74 throw std::runtime_error(
"Not currently supporting reading non TP-split PRDs");
79 throw std::runtime_error(
"Unsupported persistent version of TgcPrepDataContainer");
Muon::TgcPrepDataContainer_p3 TgcPrepDataContainer_PERS
T_AthenaPoolCustomCnv< Muon::TgcPrepDataContainer, TgcPrepDataContainer_PERS > TgcPrepDataContainerCnvBase
virtual bool compareClassGuid(const Token *token, const Guid &clid) const
virtual StatusCode initialize()
P * poolReadObject(const Token *token)
TgcPrepDataContainerCnv_tlp1 m_TPConverter
TgcPrepDataContainerCnv(ISvcLocator *svcloc)
virtual TgcPrepDataContainer_PERS * createPersistent(Muon::TgcPrepDataContainer *transCont)
virtual StatusCode initialize()
Gaudi Service Interface method implementations:
Muon::TgcPrepDataContainerCnv_p2 m_converter_p2
virtual Muon::TgcPrepDataContainer * createTransient(const Token *token)
Muon::TgcPrepDataContainerCnv_p3 m_converter_p3
virtual ~TgcPrepDataContainerCnv()
This class provides a token that identifies in a unique way objects on the persistent storage.
MuonPrepDataContainerT< TgcPrepData > TgcPrepDataContainer