ATLAS Offline Software
Loading...
Searching...
No Matches
TrigL2BphysContainerCnv.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{
11public:
13 : m_log (ms, "TrigL2BphysContainerCnv")
14 {}
15 MsgStream m_log;
17};
18
19
25
30
31
32//createPersistent
34{
35 m_impl->m_log << MSG::DEBUG
36 << "TrigL2BphysContainerCnv::createPersistent called"
37 << endmsg;
38
39 TrigL2BphysContainer_PERS * p_L2BphysCont =
40 m_impl->m_TPConverter.createPersistent( transObj, m_impl->m_log );
41
42 return p_L2BphysCont;
43
44}//end of create persistent method
45
46
47//createTransient
49{
50 m_impl->m_log << MSG::DEBUG
51 << "TrigL2BphysContainerCnv::createTransient called" << endmsg;
52
53 static const pool::Guid tlp2_guid( "2E35788D-BE17-4FE1-9DB5-709E05880CEC" );
54 static const pool::Guid tlp1_guid( "E8AA6B0A-B057-4058-B5A9-AC0B719626AF" );
55 static const pool::Guid p0_guid( "23296C53-6811-4D19-BD32-816B5DD0508F" );
56 static const pool::Guid p0_guid2( "390F41C1-CCFA-4A1D-B046-F9F462FD64D0" );
57
58 TrigL2BphysContainer *p_collection = 0;
59 if( compareClassGuid( tlp2_guid ) ) {
60
62 p_collection = m_impl->m_TPConverter.createTransient( m_impl->m_log );
63 m_impl->m_log << MSG::DEBUG<< "TrigL2BphysContainerCnv_tlp2" << endmsg;
64 } else if( compareClassGuid( tlp1_guid ) ) {
65 TrigL2BphysContainerCnv_tlp1 tlp1_Converter;
67 p_collection = tlp1_Converter.createTransient( m_impl->m_log );
68
69 } else if( compareClassGuid( p0_guid ) || compareClassGuid( p0_guid2 ) ){
70
72
73 }else throw std::runtime_error( "Unsupported persistent version of TrigL2BphysContainer" );
74
75 return p_collection;
76
77}//end of create transient method
78
#define endmsg
TrigL2BphysContainer_tlp2 TrigL2BphysContainer_PERS
T_AthenaPoolCustomCnv< TrigL2BphysContainer, TrigL2BphysContainer_PERS > TrigL2BphysContainerCnvBase
TRANS * createTransient(MsgStream &log)
Create transient representation of the persistent object known to this converter.
TrigL2BphysContainerCnv_tlp2 m_TPConverter
TrigL2BphysContainerCnv(ISvcLocator *svcloc)
virtual TrigL2BphysContainer * createTransient()
TrigL2BphysContainerCnv_impl * m_impl
virtual TrigL2BphysContainer_PERS * createPersistent(TrigL2BphysContainer *transObj)