ATLAS Offline Software
ElectronMuonTopoInfoContainerCnv.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 //createPersistent
9 {
10  MsgStream mlog(msgSvc(), "ElectronMuonTopoInfoContainerConverter" );
11 
12  mlog << MSG::DEBUG << "ElectronMuonTopoInfoContainerCnv::createPersistent called" << endmsg;
13 
15 
16  return p_emTopoCont;
17 
18 }//end of create persistent method
19 
20 //createTransient
22 {
23  MsgStream mlog(msgSvc(), "ElectronMuonTopoInfoContainerConverter" );
24 
25  mlog << MSG::DEBUG << "ElectronMuonTopoInfoContainerCnv::createTransient called" << endmsg;
26 
27  static const pool::Guid p1_guid( "0A775717-3FC9-4FF4-A18B-3F520B2D4DAC" );
28 
29  if( compareClassGuid( p1_guid ) ){
30  std::unique_ptr< ElectronMuonTopoInfoContainer_p1 > col_vect( poolReadObject< ElectronMuonTopoInfoContainer_p1 >() );
31  return m_converter.createTransient( col_vect.get(), mlog ) ;
32  } else { throw std::runtime_error( "Unsupported persistent version of ElectronMuonTopoInfoContainer" ); }
33 
34 }//end of create transient method
35 
ElectronMuonTopoInfoContainer_p1
Definition: ElectronMuonTopoInfoContainer_p1.h:18
ElectronMuonTopoInfoContainer
Definition: ElectronMuonTopoInfoContainer.h:30
TPPolyCnvBase::createTransient
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)
Create transient representation of a persistent object.
ElectronMuonTopoInfoContainerCnv::m_converter
ElectronMuonTopoInfoContainerCnv_p1 m_converter
Definition: ElectronMuonTopoInfoContainerCnv.h:35
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
python.InDetPriVxFinderConfig.mlog
mlog
Definition: InDetPriVxFinderConfig.py:134
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition: StdJOSetup.py:36
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
ElectronMuonTopoInfoContainerCnv::createPersistent
virtual ElectronMuonTopoInfoContainer_PERS * createPersistent(ElectronMuonTopoInfoContainer *transObj)
Definition: ElectronMuonTopoInfoContainerCnv.cxx:8
ElectronMuonTopoInfoContainerCnv::createTransient
virtual ElectronMuonTopoInfoContainer * createTransient()
Definition: ElectronMuonTopoInfoContainerCnv.cxx:21
ElectronMuonTopoInfoContainerCnv.h
DEBUG
#define DEBUG
Definition: page_access.h:11
T_AthenaPoolCustCnv::compareClassGuid
virtual bool compareClassGuid(const Guid &clid) const
Compare POOL class GUID with the one of the object being read.