15#include "GaudiKernel/MsgStream.h"
36 MsgStream log(msgSvc(),
"MuonContainerCnv");
38 if (!
sc.isSuccess()) {
39 log << MSG::ERROR <<
"Can not initialize Converter base class." <<
endmsg;
46 <<
"Unable to retrieve pointer to StoreGateSvc"
48 return StatusCode::FAILURE;
56 return StatusCode::SUCCESS;
62 MsgStream
msg( msgSvc(),
"MuonContainerCnv" );
67 msg << MSG::DEBUG <<
"::createPersistent [Success]" <<
endmsg;
73 MsgStream
msg( msgSvc(),
"MuonContainerConverter" );
77 static const pool::Guid tr_guid(
"E5B86159-2270-4770-A412-078D09F12215");
78 static const pool::Guid p1_guid(
"2B37C58D-4FBF-46F3-AB5C-B1408DBB99BE");
79 static const pool::Guid p2_guid(
"AB37C580-4FBF-51F3-F85D-014F8DBBE9BC");
80 static const pool::Guid p3_guid(
"FB88C580-EFBF-5CDE-EEED-AABF8DBCE9EE");
81 static const pool::Guid p4_guid(
"01887544-EFBF-E099-1116-0051F2678B09");
82 static const pool::Guid p5_guid(
"45887564-EABA-EBC9-DE1A-2459F21780CC");
83 static const pool::Guid p6_guid(
"56E6FC8D-E6B3-4FFB-83A2-A9AEF6E35FF3");
88 transObj =
m_cnv_p6.createTransient( persObj.get(),
msg );
93 transObj =
m_cnv_p5.createTransient( persObj.get(),
msg );
98 transObj =
m_cnv_p4.createTransient( persObj.get(),
msg );
103 transObj =
m_cnv_p3.createTransient( persObj.get(),
msg );
110 msg << MSG::WARNING <<
"Not able to recod MuonCaloEnergyContainer in StoreGate " <<
endmsg;
115 transObj =
m_cnv_p2.createTransient( persObj.get(),
msg );
122 msg << MSG::WARNING <<
"Not able to recod MuonCaloEnergyContainer in StoreGate " <<
endmsg;
128 transObj =
m_cnv_p1.createTransient( persObj.get(),
msg );
136 throw std::runtime_error(
"Unsupported persistent version of MuonContainer");
MuonContainer_p6 MuonContainer_PERS
T_AthenaPoolTPCnvVectorConst< Analysis::MuonContainer, MuonContainer_p6, MuonCnv_p6 > MuonContainerCnv_p6
Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Current MuonCaloEnergyContainer
definition of StoreGate container holding a vector of Analysis::Muon
virtual StatusCode initialize() override
Gaudi Service Interface method implementations:
Data object for a StoreGate container holding a vector of CaloEnergy, the detailed energy loss descri...
virtual MuonContainer_PERS * createPersistent(Analysis::MuonContainer *transCont)
Build the persistent representation from the transient one.
virtual StatusCode initialize()
initialize() - need to access Storegate
StoreGateSvc_t m_storeGate
MuonContainerCnv_p4 m_cnv_p4
MuonContainerCnv_p2 m_cnv_p2
MuonContainerCnv_p6 m_cnv_p6
MuonContainerCnv_p3 m_cnv_p3
MuonContainerCnv_p1 m_cnv_p1
std::string m_muonCaloEnergyContainerName
MuonContainerCnv_p5 m_cnv_p5
virtual Analysis::MuonContainer * createTransient()
Build the transient representation from a persistent one.
virtual PERS * createPersistent(const TRANS *transObj, MsgStream &log)
Create persistent representation of a transient object.
virtual bool compareClassGuid(const Guid &clid) const