ATLAS Offline Software
TileMuFeatureContainerCnv.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 
8 
9 
10 //createPersistent
12 {
13  MsgStream mlog(msgSvc(), "TileMuFeatureContainerConverter" );
14 
15  mlog << MSG::DEBUG << "TileMuFeatureContainerCnv::createPersistent called" << endmsg;
16 
18 
19  return p_cont;
20 
21 }//end of create persistent method
22 
23 //createTransient
25 {
26  MsgStream mlog(msgSvc(), "TileMuFeatureContainerConverter" );
27 
28  mlog << MSG::DEBUG << "TileMuFeatureContainerCnv::createTransient called" << endmsg;
29 
30  static const pool::Guid p2_guid( "D7B3C086-B471-47EE-B8EC-E58DC4CD2AD9" );
31  static const pool::Guid tlp1_guid( "4684172D-3590-4464-BCA6-477725ADD755" );
32  static const pool::Guid p0_guid( "8B428EC4-339C-4517-A047-C0F5F98B820B" );
33 
34  if( compareClassGuid( p2_guid ) ){
35  std::unique_ptr< TileMuFeatureContainer_p2 > col_vect( poolReadObject< TileMuFeatureContainer_p2 >() );
36  return m_converter.createTransient( col_vect.get(), mlog ) ;
37 
38  }else if( compareClassGuid( tlp1_guid ) ) {
39  std::unique_ptr< TileMuFeatureContainer_tlp1 > col_vect( poolReadObject< TileMuFeatureContainer_tlp1 >() );
40  return m_converter1.createTransient( col_vect.get(), mlog );
41 
42  }else if( compareClassGuid( p0_guid ) ){
43 
44  return poolReadObject< TileMuFeatureContainer >();
45 
46  }else throw std::runtime_error( "Unsupported persistent version of TileMuFeatureContainer" );
47 
48 }//end of create transient method
49 
TPPolyCnvBase::createTransient
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)
Create transient representation of a persistent object.
TileMuFeatureContainer_p2.h
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
TopLevelTPConverter::createTransient
TRANS * createTransient(MsgStream &log)
Create transient representation of the persistent object known to this converter.
Definition: TopLevelTPConverter.h:62
TileMuFeatureContainerCnv::m_converter
TileMuFeatureContainerCnv_p2 m_converter
Definition: TileMuFeatureContainerCnv.h:33
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
TileMuFeatureContainerCnv::m_converter1
TileMuFeatureContainerCnv_tlp1 m_converter1
Definition: TileMuFeatureContainerCnv.h:32
TileMuFeatureContainer
Definition: TileMuFeatureContainer.h:13
TileMuFeatureContainerCnv::createPersistent
virtual TileMuFeatureContainer_PERS * createPersistent(TileMuFeatureContainer *transObj)
Definition: TileMuFeatureContainerCnv.cxx:11
TileMuFeatureContainerCnv.h
DEBUG
#define DEBUG
Definition: page_access.h:11
TileMuFeatureContainer_p2
Definition: TileMuFeatureContainer_p2.h:10
T_AthenaPoolCustCnv::compareClassGuid
virtual bool compareClassGuid(const Guid &clid) const
Compare POOL class GUID with the one of the object being read.
TileMuFeatureContainerCnv::createTransient
virtual TileMuFeatureContainer * createTransient()
Definition: TileMuFeatureContainerCnv.cxx:24