ATLAS Offline Software
MuonFeatureDetailsContainerCnv.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
8 
9 
11  MsgStream mlog(msgSvc(), "MuonFeatureDetailsContainerConverter" );
12  mlog << MSG::DEBUG << "MuonFeatureDetailsContainerCnv::createPersistent called" << endmsg;
13 
15 
16  return p_cont;
17 }
18 
19 
21 
22  MsgStream mlog(msgSvc(), "MuonFeatureDetailsContainerConverter" );
23  // mlog << MSG::DEBUG << "MuonFeatureDetailsContainerCnv::createTransient called" << endmsg;
24 
25  static const pool::Guid tlp1_guid( "CF2FFCB2-3936-4800-9146-52B203A47478" );
26  static const pool::Guid p2_guid( "95327E52-C8B2-45E4-9EAF-C65A17AB27F5" );
27 
28  if( compareClassGuid( p2_guid ) ){
29  std::unique_ptr< MuonFeatureDetailsContainer_p2 > col_vect( poolReadObject< MuonFeatureDetailsContainer_p2 >() );
30  // std::cout << "Reading MFDC p2" << std::endl;
31  return m_converter.createTransient( col_vect.get(), mlog ) ;
32  }
33  else if( compareClassGuid( tlp1_guid ) ){
34  std::unique_ptr< MuonFeatureDetailsContainer_tlp1 > col_vect( poolReadObject< MuonFeatureDetailsContainer_tlp1 >() );
35  // std::cout << "Reading MFDC tlp1" << std::endl;
36  return m_converter1.createTransient( col_vect.get(), mlog );
37 
38  }
39  else throw std::runtime_error( "Unsupported persistent version of MuonFeatureDetailsContainer" );
40 
41 }
42 
43 
TPPolyCnvBase::createTransient
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)
Create transient representation of a persistent object.
MuonFeatureDetailsContainerCnv::createTransient
virtual MuonFeatureDetailsContainer * createTransient()
Definition: MuonFeatureDetailsContainerCnv.cxx:20
TPAbstractPolyCnvBase::createPersistent
virtual PERS * createPersistent(const TRANS *transObj, MsgStream &log)
Create persistent representation of a transient object.
MuonFeatureDetailsContainer_tlp1.h
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
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
MuonFeatureDetailsContainerCnv::m_converter
MuonFeatureDetailsContainerCnv_p2 m_converter
Definition: MuonFeatureDetailsContainerCnv.h:33
MuonFeatureDetailsContainer_p2.h
MuonFeatureDetailsContainerCnv::createPersistent
virtual MuonFeatureDetailsContainer_PERS * createPersistent(MuonFeatureDetailsContainer *transObj)
Definition: MuonFeatureDetailsContainerCnv.cxx:10
MuonFeatureDetailsContainerCnv::m_converter1
MuonFeatureDetailsContainerCnv_tlp1 m_converter1
Definition: MuonFeatureDetailsContainerCnv.h:32
MuonFeatureDetailsContainer_p2
Definition: MuonFeatureDetailsContainer_p2.h:12
DEBUG
#define DEBUG
Definition: page_access.h:11
MuonFeatureDetailsContainerCnv.h
T_AthenaPoolCustCnv::compareClassGuid
virtual bool compareClassGuid(const Guid &clid) const
Compare POOL class GUID with the one of the object being read.
MuonFeatureDetailsContainer
Definition: MuonFeatureDetailsContainer.h:12