|
ATLAS Offline Software
|
Go to the documentation of this file.
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" );
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");
87 std::unique_ptr<MuonContainer_p6> persObj(poolReadObject<MuonContainer_p6>());
92 std::unique_ptr<MuonContainer_p5> persObj(poolReadObject<MuonContainer_p5>());
97 std::unique_ptr<MuonContainer_p4> persObj(poolReadObject<MuonContainer_p4>());
102 std::unique_ptr<MuonContainer_p3> persObj(poolReadObject<MuonContainer_p3>());
110 msg << MSG::WARNING <<
"Not able to recod MuonCaloEnergyContainer in StoreGate " <<
endmsg;
114 std::unique_ptr<MuonContainer_p2> persObj( poolReadObject<MuonContainer_p2>() );
122 msg << MSG::WARNING <<
"Not able to recod MuonCaloEnergyContainer in StoreGate " <<
endmsg;
127 std::unique_ptr<MuonContainer_p1> persObj( poolReadObject<MuonContainer_p1>() );
133 return poolReadObject<Analysis::MuonContainer>();
136 throw std::runtime_error(
"Unsupported persistent version of MuonContainer");
virtual Analysis::MuonContainer * createTransient()
Build the transient representation from a persistent one.
void setEventStore(const StoreGateSvc_t storeGate)
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
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)
Create transient representation of a persistent object.
void setKey(const std::string &key)
MuonContainerCnv_p4 m_cnv_p4
virtual PERS * createPersistent(const TRANS *transObj, MsgStream &log)
Create persistent representation of a transient object.
MuonContainerCnv_p2 m_cnv_p2
msgSvc
Provide convenience handles for various services.
std::string m_muonCaloEnergyContainerName
virtual MuonContainer_PERS * createPersistent(Analysis::MuonContainer *transCont)
Build the persistent representation from the transient one.
::StatusCode StatusCode
StatusCode definition for legacy code.
Data object for a StoreGate container holding a vector of CaloEnergy, the detailed energy loss descri...
definition of StoreGate container holding a vector of Analysis::Muon
MsgStream & msg() const
The standard message stream.
MuonContainerCnv_p5 m_cnv_p5
MuonContainerCnv_p1 m_cnv_p1
virtual StatusCode initialize()
initialize() - need to access Storegate
StoreGateSvc_t m_storeGate
virtual bool compareClassGuid(const Guid &clid) const
Compare POOL class GUID with the one of the object being read.
virtual StatusCode initialize()
Gaudi Service Interface method implementations:
void setEventStore(const StoreGateSvc_t storeGate)
MuonContainerCnv_p3 m_cnv_p3
void setKey(const std::string &key)
MuonContainerCnv_p6 m_cnv_p6