ATLAS Offline Software
Loading...
Searching...
No Matches
TrigVertexCollectionCnv.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
11
14 m_msgSvc( msgSvc() ),
15 m_log( m_msgSvc, "TrigVertexCollectionCnv" ),
17{}
18
23
24//createPersistent
26{
27 MsgStream mlog(msgSvc(), "TrigVertexCollectionConverter" );
28
29 mlog << MSG::DEBUG << "TrigVertexCollectionCnv::createPersistent called" << endmsg;
30
31 TrigVertexCollection_PERS * p_VtxColl = m_TPConverter->createPersistent( transObj, m_log );
32
33 return p_VtxColl;
34
35}//end of create persistent method
36
37
38//createTransient
40{
41 MsgStream mlog(msgSvc(), "TrigVertexCollectionConverter" );
42
43 mlog << MSG::DEBUG << "TrigVertexCollectionCnv::createTransient called" << endmsg;
44
45 static const pool::Guid tlp2_guid( "438C9232-0F3E-4A8B-A16E-6F6275388DE4" );
46 static const pool::Guid tlp1_guid( "10E18C4E-9BCA-4F25-993C-EBDF0642C119" );
47 static const pool::Guid p0_guid( "0974DF97-5B51-4416-8FBE-42BAE0C54010" );
48 static const pool::Guid p0_guid2( "E2C600D6-CD4B-4B7B-9C09-93CE9FF435A1" );
49
50 TrigVertexCollection *p_collection = 0;
51 if( compareClassGuid( tlp2_guid ) )
52 {
53 mlog << MSG::DEBUG << "TrigVertexCollectionCnv::createPersistent tlp2 called" << endmsg;
55 p_collection = m_TPConverter->createTransient( m_log );
56
57 } else if( compareClassGuid( tlp1_guid ) ) {
58
59 mlog << MSG::DEBUG << "TrigVertexCollectionCnv::createPersistent tlp1 called" << endmsg;
60 TrigVertexCollectionCnv_tlp1 tlp1_Converter;
62 p_collection = tlp1_Converter.createTransient( m_log );
63
64 } else if( compareClassGuid( p0_guid ) || compareClassGuid( p0_guid2 ) ){
65 mlog << MSG::DEBUG << "TrigVertexCollectionCnv::createPersistent p0 called" << endmsg;
67
68 }else throw std::runtime_error( "Unsupported persistent version of TrigVertexCollection" );
69
70 return p_collection;
71
72}//end of create transient method
73
#define endmsg
TrigVertexCollection_tlp2 TrigVertexCollection_PERS
T_AthenaPoolCustomCnv< TrigVertexCollection, TrigVertexCollection_PERS > TrigVertexCollectionCnvBase
TRANS * createTransient(MsgStream &log)
Create transient representation of the persistent object known to this converter.
virtual TrigVertexCollection_PERS * createPersistent(TrigVertexCollection *transObj)
TrigVertexCollectionCnv_tlp2 * m_TPConverter
virtual TrigVertexCollection * createTransient()
TrigVertexCollectionCnv(ISvcLocator *svcloc)