ATLAS Offline Software
Loading...
Searching...
No Matches
TrigEFBphysContainerCnv.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
8
10{
12 : m_log (ms, "TrigEFBphysContainerCnv")
13 {}
14 MsgStream m_log;
16};
17
22
27
28//createPersistent
30{
31 MsgStream mlog(msgSvc(), "TrigEFBphysContainerConverter" );
32
33 mlog << MSG::DEBUG << "TrigEFBphysContainerCnv::createPersistent called" << endmsg;
34
35 TrigEFBphysContainer_PERS * p_EFBphysCont = m_impl->m_TPConverter.createPersistent( transObj, m_impl->m_log );
36
37 return p_EFBphysCont;
38
39}//end of create persistent method
40
41
42//createTransient
44{
45 MsgStream mlog(msgSvc(), "TrigEFBphysContainerConverter" );
46
47 mlog << MSG::DEBUG << "TrigEFBphysContainerCnv::createTransient called" << endmsg;
48
49 static const pool::Guid tlp2_guid( "D93906C2-4F81-44A7-98BE-71302891FE44" );
50 static const pool::Guid tlp1_guid( "5F5B068F-32DB-4CC9-BA9E-C74C076AAAA1" );
51 static const pool::Guid p0_guid( "033EAD89-6721-46F2-9D32-2670BA63B901" );
52 static const pool::Guid p0_guid2( "760BB4E7-61C1-4365-BE20-C8251E808BA4" );
53
54 TrigEFBphysContainer *p_collection = 0;
55 if( compareClassGuid( tlp2_guid ) ) {
56
58 p_collection = m_impl->m_TPConverter.createTransient( m_impl->m_log );
59
60 } else if( compareClassGuid( tlp1_guid ) ) {
61
62 TrigEFBphysContainerCnv_tlp1 tlp1_Converter;
64 p_collection = tlp1_Converter.createTransient( m_impl->m_log );
65
66 }else if( compareClassGuid( p0_guid ) || compareClassGuid( p0_guid2 ) ){
67
69
70 }else throw std::runtime_error( "Unsupported persistent version of TrigEFBphysContainer" );
71
72 return p_collection;
73
74}//end of create transient method
75
#define endmsg
T_AthenaPoolCustomCnv< TrigEFBphysContainer, TrigEFBphysContainer_PERS > TrigEFBphysContainerCnvBase
TrigEFBphysContainer_tlp2 TrigEFBphysContainer_PERS
TRANS * createTransient(MsgStream &log)
Create transient representation of the persistent object known to this converter.
virtual TrigEFBphysContainer * createTransient()
TrigEFBphysContainerCnv_impl * m_impl
virtual TrigEFBphysContainer_PERS * createPersistent(TrigEFBphysContainer *transObj)
TrigEFBphysContainerCnv(ISvcLocator *svcloc)
TrigEFBphysContainerCnv_tlp2 m_TPConverter