|
ATLAS Offline Software
|
Go to the documentation of this file.
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" );
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");
47 std::unique_ptr< Muon::MMPrepDataContainer_p1 > p_coll( poolReadObject< Muon::MMPrepDataContainer_p1 >() );
51 std::unique_ptr< Muon::MMPrepDataContainer_p2 > p_coll( poolReadObject< Muon::MMPrepDataContainer_p2 >() );
55 throw std::runtime_error(
"Unsupported persistent version of MMPrepDataContainer.");
virtual Muon::MMPrepDataContainer * createTransient(const Muon::MMPrepDataContainer_p2 *persObj, MsgStream &log)
Template for Muon PRD containers (which are basically collections of MuonPrepDataCollections).
virtual Muon::MMPrepDataContainer * createTransient(const Muon::MMPrepDataContainer_p1 *persObj, MsgStream &log)
virtual PERS * createPersistent(const TRANS *transObj, MsgStream &log)
Create persistent representation of a transient object.
msgSvc
Provide convenience handles for various services.
Compatibility for old converter classes that don't get passed the key.
::StatusCode StatusCode
StatusCode definition for legacy code.
Muon::MMPrepDataContainerCnv_p2 m_converter_p2
Muon::MMPrepDataContainerCnv_p1 m_converter_p1
Class to contain the Muon Prep Raw Data.
virtual ~MMPrepDataContainerCnv()
virtual Muon::MMPrepDataContainer * createTransient()
virtual bool compareClassGuid(const Guid &clid) const
Compare POOL class GUID with the one of the object being read.
virtual MMPrepDataContainer_PERS * createPersistent(Muon::MMPrepDataContainer *transCont)
virtual StatusCode initialize()
Gaudi Service Interface method implementations:
MMPrepDataContainerCnv(ISvcLocator *svcloc)
virtual StatusCode initialize()
Gaudi Service Interface method implementations: