8#include "GaudiKernel/StatusCode.h"
9#include "GaudiKernel/MsgStream.h"
30 return StatusCode::FAILURE;
35 MsgStream log(msgSvc(),
"CscPrepDataContainerCnv");
36 if (log.level() <= MSG::INFO) log << MSG::INFO <<
"CscPrepDataContainerCnv::initialize()" <<
endmsg;
38 return StatusCode::SUCCESS;
42 MsgStream log(msgSvc(),
"CscPrepDataContainerCnv" );
43 if (log.level() <= MSG::DEBUG) log<<MSG::DEBUG<<
"createPersistent(): main converter"<<
endmsg;
50 MsgStream log(msgSvc(),
"CscPrepDataContainerCnv" );
51 static const pool::Guid p0_guid(
"C48250B1-7575-DFA1-1313-01AAAF759AEA");
52 static const pool::Guid p1_guid(
"B941657D-1ABF-4A88-B23C-6C4212CD04B3");
53 static const pool::Guid p2_guid(
"BF5DA875-6D5B-4DCA-9CD8-E0ABC4FD92F5");
54 if (log.level() <= MSG::DEBUG) log<<MSG::DEBUG<<
"createTransient(): main converter"<<
endmsg;
57 if (log.level() <= MSG::DEBUG) log<<MSG::DEBUG<<
"createTransient(): T/P version 2 detected"<<
endmsg;
59 p_collection =
m_converter_p2.createTransient( p_coll.get(), log );
63 p_collection =
m_TPConverter.createTransient( col_vect.get(), log );
64 if (log.level() <= MSG::DEBUG) log<<MSG::DEBUG<<
"createTransient(): T/P version 1 detected"<<
endmsg;
68 if (log.level() <= MSG::DEBUG) log<<MSG::DEBUG<<
"createTransient(): Old input file"<<std::endl;
69 throw std::runtime_error(
"Not currently supporting reading non TP-split PRDs");
74 throw std::runtime_error(
"Unsupported persistent version of CscPrepDataContainer");
Muon::CscPrepDataContainer_tlp1 CscPrepDataContainer_PERS
T_AthenaPoolCustomCnv< Muon::CscPrepDataContainer, CscPrepDataContainer_PERS > CscPrepDataContainerCnvBase
Muon::CscPrepDataContainerCnv_p2 m_converter_p2
virtual CscPrepDataContainer_PERS * createPersistent(Muon::CscPrepDataContainer *transCont)
virtual Muon::CscPrepDataContainer * createTransient()
virtual ~CscPrepDataContainerCnv()
virtual StatusCode initialize()
Gaudi Service Interface method implementations:
CscPrepDataContainerCnv_tlp1 m_TPConverter
CscPrepDataContainerCnv(ISvcLocator *svcloc)
virtual bool compareClassGuid(const Guid &clid) const
virtual StatusCode initialize()
MuonPrepDataContainerT< CscPrepData > CscPrepDataContainer