ATLAS Offline Software
MuCTPIL1TopoCnv.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
6 // Local include(s):
7 #include "MuCTPIL1TopoCnv.h"
8 
14 
15  return m_converter.createPersistent( transObj, msg() );
16 
17 }
18 
24 
25  static const pool::Guid p1_guid( "BC2BAC47-504A-4A8A-89D9-2086B9038E18" );
26 
27  if( this->compareClassGuid( p1_guid ) ) {
28  std::unique_ptr< MuCTPIL1Topo_p1 > pers_ref( this->poolReadObject< MuCTPIL1Topo_p1 >() );
29  return m_converter.createTransient( pers_ref.get(), msg() );
30 
31  } else {
32  throw std::runtime_error( "Unsupported persistent version of MuCTPIL1Topo" );
33  return 0;
34  }
35 }
TPPolyCnvBase::createTransient
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)
Create transient representation of a persistent object.
MuCTPIL1TopoCnv::m_converter
MuCTPIL1TopoCnv_p1 m_converter
Definition: MuCTPIL1TopoCnv.h:43
MuCTPIL1TopoCnv.h
LVL1::MuCTPIL1Topo
MuCTPI input class to the L1Topo simulation.
Definition: MuCTPIL1Topo.h:24
TPAbstractPolyCnvBase::createPersistent
virtual PERS * createPersistent(const TRANS *transObj, MsgStream &log)
Create persistent representation of a transient object.
pool::Guid
::Guid Guid
Definition: T_AthenaPoolCustCnv.h:19
MuCTPIL1TopoCnv::createTransient
virtual LVL1::MuCTPIL1Topo * createTransient() override
Function reading a version of MuCTPIL1Topo from POOL and converting it to a transient MuCTPIL1Topo ob...
Definition: MuCTPIL1TopoCnv.cxx:23
AthMessaging::msg
MsgStream & msg() const
The standard message stream.
Definition: AthMessaging.h:164
MuCTPIL1TopoCnv::createPersistent
virtual MuCTPIL1Topo_PERS * createPersistent(LVL1::MuCTPIL1Topo *transObj) override
Function creating a persistent MuCTPIL1Topo_PERS object from a transient MuCTPIL1Topo one.
Definition: MuCTPIL1TopoCnv.cxx:13
MuCTPIL1Topo_p1
Persistent representation of MuCTPIL1Topo.
Definition: MuCTPIL1Topo_p1.h:23
T_AthenaPoolCustCnv::compareClassGuid
virtual bool compareClassGuid(const Guid &clid) const
Compare POOL class GUID with the one of the object being read.