ATLAS Offline Software
TrigMuonEFInfoContainerCnv.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
10 
13  m_msgSvc( msgSvc() ),
14  m_log( m_msgSvc, "TrigMuonEFInfoContainerCnv" ),
15  m_TPConverter1 (new TrigMuonEFInfoContainerCnv_tlp1),
16  m_TPConverter2 (new TrigMuonEFInfoContainerCnv_tlp2)
17 {}
18 
20  delete m_TPConverter1;
21  delete m_TPConverter2;
22 }
23 
24 //createPersistent
26  MsgStream mlog(msgSvc(), "TrigMuonEFInfoContainerConverter" );
27  mlog << MSG::DEBUG << "TrigMuonEFInfoContainerCnv::createPersistent called" << endmsg;
28 
30 
31  return p_muEFcont;
32 }
33 
34 
36 
37  MsgStream mlog(msgSvc(), "TrigMuonEFInfoContainerConverter" );
38 
39  mlog << MSG::DEBUG << "TrigMuonEFInfoContainerCnv::createTransient called" << endmsg;
40 
41  static const pool::Guid p1_guid( "B768E99D-9CC3-4368-ADD5-36816D2A0298" );
42  static const pool::Guid p2_guid( "AF8CBEC0-4BBF-438A-82DE-873F133F4821" );
43 
44  TrigMuonEFInfoContainer *p_collection = 0;
45 
46  if( compareClassGuid( p2_guid ) ) {
47  poolReadObject< TrigMuonEFInfoContainer_PERS >(*m_TPConverter2);
48  p_collection = m_TPConverter2->createTransient( m_log );
49  }
50  else if( compareClassGuid( p1_guid ) ) {
51  poolReadObject< TrigMuonEFInfoContainer_tlp1 >(*m_TPConverter1);
52  p_collection = m_TPConverter1->createTransient( m_log );
53  }
54  else throw std::runtime_error( "Unsupported persistent version of TrigMuonEFInfoContainer" );
55 
56  return p_collection;
57 }
TrigMuonEFInfoContainerCnv.h
TrigMuonEFInfoContainerCnv::~TrigMuonEFInfoContainerCnv
~TrigMuonEFInfoContainerCnv()
Definition: TrigMuonEFInfoContainerCnv.cxx:19
CSV_InDetExporter.new
new
Definition: CSV_InDetExporter.py:145
TrigMuonEFInfoContainerCnv_tlp1
Definition: TrigMuonEFInfoContainerCnv_tlp1.h:43
TrigMuonEFInfoContainerCnv::m_TPConverter1
TrigMuonEFInfoContainerCnv_tlp1 * m_TPConverter1
Definition: TrigMuonEFInfoContainerCnv.h:52
TrigMuonEFInfoContainer
Definition: TrigMuonEFInfoContainer.h:27
TrigMuonEFInfoContainer_tlp2
Definition: TrigMuonEFInfoContainer_tlp2.h:31
pool::Guid
::Guid Guid
Definition: T_AthenaPoolCustCnv.h:19
TrigMuonEFInfoContainerCnv_tlp2.h
TopLevelTPConverter::createTransient
TRANS * createTransient(MsgStream &log)
Create transient representation of the persistent object known to this converter.
Definition: TopLevelTPConverter.h:62
TrigMuonEFInfoContainerCnv_tlp2
Definition: TrigMuonEFInfoContainerCnv_tlp2.h:39
python.InDetPriVxFinderConfig.mlog
mlog
Definition: InDetPriVxFinderConfig.py:134
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition: StdJOSetup.py:36
TrigMuonEFInfoContainerCnv::TrigMuonEFInfoContainerCnv
TrigMuonEFInfoContainerCnv(ISvcLocator *svcloc)
Definition: TrigMuonEFInfoContainerCnv.cxx:11
T_AthenaPoolCustomCnv
Compatibility for old converter classes that don't get passed the key.
Definition: T_AthenaPoolCustomCnv.h:132
TrigMuonEFInfoContainerCnv::m_TPConverter2
TrigMuonEFInfoContainerCnv_tlp2 * m_TPConverter2
Definition: TrigMuonEFInfoContainerCnv.h:53
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
TrigMuonEFInfoContainerCnv_tlp1.h
TrigMuonEFInfoContainer_tlp2.h
TrigMuonEFInfoContainerCnv::createTransient
virtual TrigMuonEFInfoContainer * createTransient()
Definition: TrigMuonEFInfoContainerCnv.cxx:35
TrigMuonEFInfoContainer_tlp1.h
TrigMuonEFInfoContainerCnv::createPersistent
virtual TrigMuonEFInfoContainer_PERS * createPersistent(TrigMuonEFInfoContainer *transObj)
Definition: TrigMuonEFInfoContainerCnv.cxx:25
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.
TrigMuonEFInfoContainerCnv::m_log
MsgStream m_log
Definition: TrigMuonEFInfoContainerCnv.h:50