ATLAS Offline Software
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 
21 {}
22 
24 {
25  delete m_impl;
26 }
27 
28 //createPersistent
30 {
31  MsgStream mlog(msgSvc(), "TrigEFBphysContainerConverter" );
32 
33  mlog << MSG::DEBUG << "TrigEFBphysContainerCnv::createPersistent called" << endmsg;
34 
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 
57  poolReadObject< TrigEFBphysContainer_PERS >(m_impl->m_TPConverter);
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;
63  poolReadObject< TrigEFBphysContainer_tlp1 >(tlp1_Converter);
64  p_collection = tlp1_Converter.createTransient( m_impl->m_log );
65 
66  }else if( compareClassGuid( p0_guid ) || compareClassGuid( p0_guid2 ) ){
67 
68  p_collection = poolReadObject< TrigEFBphysContainer >();
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 
TrigEFBphysContainerCnv::m_impl
TrigEFBphysContainerCnv_impl * m_impl
Definition: TrigEFBphysContainerCnv.h:57
TrigEFBphysContainerCnv_tlp1
Definition: TrigEFBphysContainerCnv_tlp1.h:32
TrigEFBphysContainerCnv::createTransient
virtual TrigEFBphysContainer * createTransient()
Definition: TrigEFBphysContainerCnv.cxx:43
TrigEFBphysContainerCnv_impl::m_log
MsgStream m_log
Definition: TrigEFBphysContainerCnv.cxx:14
CSV_InDetExporter.new
new
Definition: CSV_InDetExporter.py:145
TrigEFBphysContainer_tlp2
Definition: TrigEFBphysContainer_tlp2.h:25
TrigEFBphysContainerCnv::~TrigEFBphysContainerCnv
~TrigEFBphysContainerCnv()
Definition: TrigEFBphysContainerCnv.cxx:23
TrigEFBphysContainerCnv::TrigEFBphysContainerCnv
TrigEFBphysContainerCnv(ISvcLocator *svcloc)
Definition: TrigEFBphysContainerCnv.cxx:18
python.SystemOfUnits.ms
int ms
Definition: SystemOfUnits.py:132
TrigEFBphysContainerCnv_tlp1.h
pool::Guid
::Guid Guid
Definition: T_AthenaPoolCustCnv.h:19
TrigEFBphysContainerCnv.h
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
T_AthenaPoolCustomCnv
Compatibility for old converter classes that don't get passed the key.
Definition: T_AthenaPoolCustomCnv.h:132
TrigEFBphysContainerCnv_tlp2.h
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
TrigEFBphysContainerCnv_impl::TrigEFBphysContainerCnv_impl
TrigEFBphysContainerCnv_impl(IMessageSvc *ms)
Definition: TrigEFBphysContainerCnv.cxx:11
TrigEFBphysContainerCnv::createPersistent
virtual TrigEFBphysContainer_PERS * createPersistent(TrigEFBphysContainer *transObj)
Definition: TrigEFBphysContainerCnv.cxx:29
DEBUG
#define DEBUG
Definition: page_access.h:11
TopLevelTPConverter::createPersistent
virtual TL_PERS * createPersistent(const TRANS *transObj, MsgStream &log)
Create persistent representation of transObj.
Definition: TopLevelTPConverter.h:110
T_AthenaPoolCustCnv::compareClassGuid
virtual bool compareClassGuid(const Guid &clid) const
Compare POOL class GUID with the one of the object being read.
TrigEFBphysContainerCnv_impl
Definition: TrigEFBphysContainerCnv.cxx:10
TrigEFBphysContainer
Definition: TrigEFBphysContainer.h:34
TrigEFBphysContainerCnv_tlp2
Definition: TrigEFBphysContainerCnv_tlp2.h:30
TrigEFBphysContainerCnv_impl::m_TPConverter
TrigEFBphysContainerCnv_tlp2 m_TPConverter
Definition: TrigEFBphysContainerCnv.cxx:15