7#include "GaudiKernel/StatusCode.h"
8#include "GaudiKernel/MsgStream.h"
22 return StatusCode::FAILURE;
25 MsgStream log(msgSvc(),
"MMPrepDataContainerCnv");
26 if (log.level() <= MSG::INFO) log << MSG::INFO <<
"MMPrepDataContainerCnv::initialize()" <<
endmsg;
28 return StatusCode::SUCCESS;
32 MsgStream log(msgSvc(),
"MMPrepDataContainerCnv" );
33 if (log.level() <= MSG::DEBUG) log<<MSG::DEBUG<<
"createPersistent(): main converter"<<
endmsg;
40 MsgStream log(msgSvc(),
"MMPrepDataContainerCnv" );
41 static const pool::Guid p1_guid(
"5E5C97E2-8D7C-11E2-9FCB-001517648C14");
42 static const pool::Guid p2_guid(
"86B42223-304D-4AFA-8E94-A49B23AC8865");
43 if (log.level() <= MSG::DEBUG) log<<MSG::DEBUG<<
"createTransient(): main converter"<<
endmsg;
46 if (log.level() <= MSG::DEBUG) log<<MSG::DEBUG<<
"createTransient(): T/P version 1 detected"<<
endmsg;
48 p_collection =
m_converter_p1.createTransient( p_coll.get(), log );
50 if (log.level() <= MSG::DEBUG) log<<MSG::DEBUG<<
"createTransient(): T/P version 2 detected"<<
endmsg;
52 p_collection =
m_converter_p2.createTransient( p_coll.get(), log );
55 throw std::runtime_error(
"Unsupported persistent version of MMPrepDataContainer.");
Muon::MMPrepDataContainer_p2 MMPrepDataContainer_PERS
T_AthenaPoolCustomCnv< Muon::MMPrepDataContainer, MMPrepDataContainer_PERS > MMPrepDataContainerCnvBase
Muon::MMPrepDataContainerCnv_p1 m_converter_p1
MMPrepDataContainerCnv(ISvcLocator *svcloc)
virtual ~MMPrepDataContainerCnv()
virtual MMPrepDataContainer_PERS * createPersistent(Muon::MMPrepDataContainer *transCont)
virtual Muon::MMPrepDataContainer * createTransient()
virtual StatusCode initialize()
Gaudi Service Interface method implementations:
Muon::MMPrepDataContainerCnv_p2 m_converter_p2
virtual bool compareClassGuid(const Guid &clid) const
virtual StatusCode initialize()
MuonPrepDataContainerT< MMPrepData > MMPrepDataContainer