ATLAS Offline Software
TrigMuonClusterFeatureContainerCnv.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
7 
10  m_msgSvc( msgSvc() ),
11  m_log( m_msgSvc, "TrigMuonClusterFeatureContainerCnv" ),
13 {}
14 
16 {
17  delete m_TPConverter;
18 }
19 
20 
21 //createPersistent
23 {
24  MsgStream mlog(msgSvc(), "TrigMuonClusterFeatureContainerConverter" );
25 
26  mlog << MSG::DEBUG << "TrigMuonClusterFeatureContainerCnv::createPersistent called" << endmsg;
27 
29 
30  return p_cont;
31 
32 }//end of create persistent method
33 
34 
35 //createTransient
37 {
38  MsgStream mlog(msgSvc(), "TrigMuonClusterFeatureContainerConverter" );
39 
40  mlog << MSG::DEBUG << "TrigMuonClusterFeatureContainerCnv::createTransient called" << endmsg;
41 
42  static const pool::Guid tlp1_guid( "036D8CC1-5FBD-4676-9D84-F233567F52D2" );
43  static const pool::Guid p0_guid( "5B09201A-D1CD-43BA-A1B5-786189444579" );
44 
45  TrigMuonClusterFeatureContainer *p_collection = 0;
46  if( compareClassGuid( tlp1_guid ) )
47  {
48  poolReadObject< TrigMuonClusterFeatureContainer_PERS >(*m_TPConverter);
49  p_collection = m_TPConverter->createTransient( m_log );
50 
51  }else if( compareClassGuid( p0_guid ) ){
52 
53  p_collection = poolReadObject< TrigMuonClusterFeatureContainer >();
54 
55  }else throw std::runtime_error( "Unsupported persistent version of TrigMuonClusterFeatureContainer" );
56 
57  return p_collection;
58 
59 }//end of create transient method
60 
TrigMuonClusterFeatureContainerCnv::TrigMuonClusterFeatureContainerCnv
TrigMuonClusterFeatureContainerCnv(ISvcLocator *svcloc)
Definition: TrigMuonClusterFeatureContainerCnv.cxx:8
TrigMuonClusterFeatureContainer
Definition: TrigMuonClusterFeatureContainer.h:14
TrigMuonClusterFeatureContainerCnv::createTransient
virtual TrigMuonClusterFeatureContainer * createTransient()
Definition: TrigMuonClusterFeatureContainerCnv.cxx:36
TrigMuonClusterFeatureContainerCnv.h
CSV_InDetExporter.new
new
Definition: CSV_InDetExporter.py:145
TrigMuonClusterFeatureContainerCnv_tlp1
Definition: TrigMuonClusterFeatureContainerCnv_tlp1.h:28
TrigMuonClusterFeatureContainerCnv::m_log
MsgStream m_log
Definition: TrigMuonClusterFeatureContainerCnv.h:58
TrigMuonClusterFeatureContainer_tlp1
Definition: TrigMuonClusterFeatureContainer_tlp1.h:27
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
T_AthenaPoolCustomCnv
Compatibility for old converter classes that don't get passed the key.
Definition: T_AthenaPoolCustomCnv.h:132
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
TrigMuonClusterFeatureContainerCnv::createPersistent
virtual TrigMuonClusterFeatureContainer_PERS * createPersistent(TrigMuonClusterFeatureContainer *transObj)
Definition: TrigMuonClusterFeatureContainerCnv.cxx:22
TrigMuonClusterFeatureContainerCnv::~TrigMuonClusterFeatureContainerCnv
~TrigMuonClusterFeatureContainerCnv()
Definition: TrigMuonClusterFeatureContainerCnv.cxx:15
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.
TrigMuonClusterFeatureContainerCnv_tlp1.h
TrigMuonClusterFeatureContainerCnv::m_TPConverter
TrigMuonClusterFeatureContainerCnv_tlp1 * m_TPConverter
Definition: TrigMuonClusterFeatureContainerCnv.h:60