8#include "GaudiKernel/StatusCode.h"
9#include "GaudiKernel/MsgStream.h"
30 return StatusCode::FAILURE;
35 MsgStream log(msgSvc(),
"RpcPrepDataContainerCnv");
36 log << MSG::INFO <<
"RpcPrepDataContainerCnv::initialize()" <<
endmsg;
38 return StatusCode::SUCCESS;
42 MsgStream log(msgSvc(),
"RpcPrepDataContainerCnv" );
43 if (log.level() <= MSG::DEBUG) log<<MSG::DEBUG<<
"createPersistent(): main converter"<<
endmsg;
49 MsgStream log(msgSvc(),
"RpcPrepDataContainerCnv" );
50 static const pool::Guid p0_guid(
"CCD4055C-2A39-CAFF-3F82-5A9116ADAFCB");
51 static const pool::Guid p1_guid(
"F29233F8-F488-4D6D-97F9-4BCA1976BD9F");
53 static const pool::Guid p3_guid(
"65496D1F-E660-42A9-84C9-2002D39B87CB");
55 if (log.level() <= MSG::DEBUG) log<<MSG::DEBUG<<
"createTransient(): main converter"<<
endmsg;
58 if (log.level() <= MSG::DEBUG) log<<MSG::DEBUG<<
"createTransient(): T/P version 3 detected"<<
endmsg;
60 p_collection =
m_converter_p3.createTransient( p_coll.get(), log );
64 p_collection =
m_TPConverter.createTransient( col_vect.get(), log );
65 if (log.level() <= MSG::DEBUG) log<<MSG::DEBUG<<
"createTransient(): T/P version 1 detected"<<
endmsg;
69 if (log.level() <= MSG::DEBUG) log<<MSG::DEBUG<<
"createTransient(): Old input file"<<std::endl;
70 throw std::runtime_error(
"Not supporting reading non TP-split PRDs");
73 throw std::runtime_error(
"Unsupported persistent version of RpcPrepDataContainer");
T_AthenaPoolCustomCnv< Muon::RpcPrepDataContainer, RpcPrepDataContainer_PERS > RpcPrepDataContainerCnvBase
Muon::RpcPrepDataContainer_p3 RpcPrepDataContainer_PERS
virtual StatusCode initialize()
Gaudi Service Interface method implementations:
RpcPrepDataContainerCnv_tlp1 m_TPConverter
Muon::RpcPrepDataContainerCnv_p3 m_converter_p3
virtual ~RpcPrepDataContainerCnv()
virtual Muon::RpcPrepDataContainer * createTransient()
virtual RpcPrepDataContainer_PERS * createPersistent(Muon::RpcPrepDataContainer *transCont)
RpcPrepDataContainerCnv(ISvcLocator *svcloc)
virtual bool compareClassGuid(const Guid &clid) const
virtual StatusCode initialize()
MuonPrepDataContainerT< RpcPrepData > RpcPrepDataContainer