ATLAS Offline Software
TileTrackMuFeatureContainerCnv.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(), "TileTrackMuFeatureContainerConverter" );
14 
15  mlog << MSG::DEBUG << "TileTrackMuFeatureContainerCnv::createPersistent called" << endmsg;
16 
18 
19  return p_cont;
20 
21 }//end of create persistent method
22 
23 
24 //createTransient
26 {
27  MsgStream mlog(msgSvc(), "TileTrackMuFeatureContainerConverter" );
28 
29  mlog << MSG::DEBUG << "TileTrackMuFeatureContainerCnv::createTransient called" << endmsg;
30 
31  static const pool::Guid p3_guid( "25018D00-1D18-4B4C-9C07-37993260EADB");
32  static const pool::Guid tlp1_guid( "983ED5FE-D0A2-43AE-90A9-268C8B61E8B3");
33  static const pool::Guid p0_guid( "1AFABC18-EB97-412D-B27C-C744ABA6E1DC");
34 
35  if( compareClassGuid( p3_guid ) ){
36  std::unique_ptr< TileTrackMuFeatureContainer_p3 > col_vect( poolReadObject< TileTrackMuFeatureContainer_p3 >() );
37  return m_converter.createTransient( col_vect.get(), mlog ) ;
38 
39  }else if( compareClassGuid( tlp1_guid ) ) {
40  std::unique_ptr< TileTrackMuFeatureContainer_tlp1 > col_vect( poolReadObject< TileTrackMuFeatureContainer_tlp1 >() );
41  return m_converter1.createTransient( col_vect.get(), mlog );
42 
43  }else if( compareClassGuid( p0_guid ) ){
44 
45  return poolReadObject< TileTrackMuFeatureContainer >();
46 
47  }else throw std::runtime_error( "Unsupported persistent version of TileTrackMuFeatureContainer" );
48 
49 }//end of create transient method
50 
TileTrackMuFeatureContainerCnv::m_converter1
TileTrackMuFeatureContainerCnv_tlp1 m_converter1
Definition: TileTrackMuFeatureContainerCnv.h:52
TileTrackMuFeatureContainerCnv::m_converter
TileTrackMuFeatureContainerCnv_p3 m_converter
Definition: TileTrackMuFeatureContainerCnv.h:53
TPPolyCnvBase::createTransient
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)
Create transient representation of a persistent object.
TileTrackMuFeatureContainer
Definition: TileTrackMuFeatureContainer.h:14
TileTrackMuFeatureContainerCnv::createTransient
virtual TileTrackMuFeatureContainer * createTransient()
Definition: TileTrackMuFeatureContainerCnv.cxx:25
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
python.InDetPriVxFinderConfig.mlog
mlog
Definition: InDetPriVxFinderConfig.py:134
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition: StdJOSetup.py:36
TileTrackMuFeatureContainer_p3
Definition: TileTrackMuFeatureContainer_p3.h:10
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
TileTrackMuFeatureContainer_p3.h
TileTrackMuFeatureContainerCnv.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.
TileTrackMuFeatureContainerCnv::createPersistent
virtual TileTrackMuFeatureContainer_PERS * createPersistent(TileTrackMuFeatureContainer *transObj)
Definition: TileTrackMuFeatureContainerCnv.cxx:11