|
ATLAS Offline Software
|
Go to the documentation of this file.
8 #include "GaudiKernel/StatusCode.h"
9 #include "GaudiKernel/MsgStream.h"
30 MsgStream
log(
msgSvc(),
"sTGCSimHitCollectionCnv" );
37 MsgStream
log(
msgSvc(),
"sTGCSimHitCollectionCnv" );
38 static const pool::Guid p1_guid(
"f8b975d2-8130-11e8-abf4-4b4a6a2b6ee5");
39 static const pool::Guid p2_guid(
"b9521cc6-6e3b-11e8-adbb-02163e01bddd");
40 static const pool::Guid p3_guid(
"8f3ffd1c-c9a0-4da7-b99e-a3828b6ac789");
41 static const pool::Guid p4_guid(
"018E2DAC-18EB-79C4-B562-FD7C035C92C1");
47 std::unique_ptr< Muon::sTGCSimHitCollection_p4 > col_vect( this->poolReadObject< Muon::sTGCSimHitCollection_p4 >() );
51 std::unique_ptr< Muon::sTGCSimHitCollection_p3 > col_vect( this->poolReadObject< Muon::sTGCSimHitCollection_p3 >() );
55 std::unique_ptr< Muon::sTGCSimHitCollection_p2 > col_vect( this->poolReadObject< Muon::sTGCSimHitCollection_p2 >() );
59 std::unique_ptr< Muon::sTGCSimHitCollection_p1 > col_vect( this->poolReadObject< Muon::sTGCSimHitCollection_p1 >() );
64 throw std::runtime_error(
"Unsupported persistent version of sTGCSimHitCollection");
virtual sTGCSimHitCollection * createTransient()
virtual ~sTGCSimHitCollectionCnv()
sTGCSimHitCollectionCnv_p4 m_TPConverter_p4
sTGCSimHitCollectionCnv_p3 m_TPConverter_p3
virtual PERS * createPersistent(const TRANS *transObj, MsgStream &log)
Create persistent representation of a transient object.
virtual sTGCSimHitCollection_PERS * createPersistent(sTGCSimHitCollection *transCont)
virtual sTGCSimHitCollection * createTransient(const Muon::sTGCSimHitCollection_p4 *persObj, MsgStream &log)
msgSvc
Provide convenience handles for various services.
Compatibility for old converter classes that don't get passed the key.
sTGCSimHitCollectionCnv_p2 m_TPConverter_p2
sTGCSimHitCollectionCnv_p1 m_TPConverter_p1
virtual sTGCSimHitCollection * createTransient(const Muon::sTGCSimHitCollection_p1 *persObj, MsgStream &log)
virtual sTGCSimHitCollection * createTransient(const Muon::sTGCSimHitCollection_p2 *persObj, MsgStream &log)
sTGCSimHitCollectionCnv(ISvcLocator *svcloc)
virtual bool compareClassGuid(const Guid &clid) const
Compare POOL class GUID with the one of the object being read.
virtual sTGCSimHitCollection * createTransient(const Muon::sTGCSimHitCollection_p3 *persObj, MsgStream &log)