ATLAS Offline Software
Loading...
Searching...
No Matches
TrigVertexCountsCollectionCnv.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
7
12
17
18
19//createPersistent
21{
22 MsgStream mlog(msgSvc(), "TrigVertexCountsCollectionConverter" );
23
24 mlog << MSG::DEBUG << "TrigVertexCountsCollectionCnv::createPersistent" << endmsg;
25
26 TrigVertexCountsCollection_PERS* persObj = m_TPConverter->createPersistent( transObj, mlog );
27
28 return persObj;
29
30}//end of create persistent method
31
32
33//createTransient
35{
36 MsgStream mlog(msgSvc(), "TrigVertexCountsCollectionConverter" );
37
38 mlog << MSG::DEBUG << "TrigVertexCountsCollectionCnv::createTransient" << endmsg;
39
40 static const pool::Guid tlp1_guid( "2A1D4A4E-D566-4C71-B051-D5D79A856753" );
41 static const pool::Guid p1_guid( "232B47D0-65CA-4883-AC51-0D76EAEA3194" );
42 static const pool::Guid trans_guid( "7A4412AD-C11D-4EFD-AE15-D343D2CB28BC" );
43
44
45 TrigVertexCountsCollection *p_container = 0;
46
47 if(compareClassGuid(tlp1_guid)) {
49 p_container = m_TPConverter->createTransient(mlog);
50 }
51 else if(compareClassGuid(p1_guid)) {
52 std::unique_ptr< TrigVertexCountsCollection_p1 > col_vect( poolReadObject< TrigVertexCountsCollection_p1 >() );
54 p_container = converter.createTransient( col_vect.get(), mlog );
55 }
56 else if(compareClassGuid(trans_guid)) {
58 }
59 else {
60 throw std::runtime_error( "Unsupported persistent version of TrigVertexCountsCollection" );
61 }
62
63 return p_container;
64
65}//end of create transient method
66
#define endmsg
T_AthenaPoolCustomCnv< TrigVertexCountsCollection, TrigVertexCountsCollection_PERS > TrigVertexCountsCollectionCnvBase
TrigVertexCountsCollection_tlp1 TrigVertexCountsCollection_PERS
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)
Create transient representation of a persistent object.
virtual TrigVertexCountsCollection_PERS * createPersistent(TrigVertexCountsCollection *transObj)
virtual TrigVertexCountsCollection * createTransient()
TrigVertexCountsCollectionCnv_tlp1 * m_TPConverter