ATLAS Offline Software
Loading...
Searching...
No Matches
TrigSpacePointCountsCollectionCnv.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
6
8
9//createPersistent
11{
12 MsgStream mlog(msgSvc(), "TrigSpacePointCountsCollectionConverter" );
13
14 mlog << MSG::DEBUG << "TrigSpacePointCountsCollectionCnv::createPersistent called" << endmsg;
15
16 TrigSpacePointCountsCollection_PERS * p_cont = m_converter.createPersistent( transObj, mlog );
17
18 return p_cont;
19
20}//end of create persistent method
21
22
23//createTransient
25{
26 MsgStream mlog(msgSvc(), "TrigSpacePointCountsCollectionConverter" );
27
28 mlog << MSG::DEBUG << "TrigSpacePointCountsCollectionCnv::createTransient called" << endmsg;
29
30 static const pool::Guid p4_guid( "ACEDF654-09D7-49F6-9054-8E2CEE767367" );
31 static const pool::Guid tlp1_guid( "55733D7E-0054-4785-ADA8-3EA70D7477F2" );
32 static const pool::Guid p0_guid( "633C9739-C3D1-4F5D-9678-887445DA42B6" );
33
34 if( compareClassGuid( p4_guid ) ) {
35 std::unique_ptr< TrigSpacePointCountsCollection_p4 > col_vect( poolReadObject< TrigSpacePointCountsCollection_p4 >() );
36 // std::cout << "Reading IMFC p4" << std::endl;
37 return m_converter.createTransient( col_vect.get(), mlog ) ;
38
39 } else if( compareClassGuid( tlp1_guid ) ) {
40 std::unique_ptr< TrigSpacePointCountsCollection_tlp1 > col_vect( poolReadObject< TrigSpacePointCountsCollection_tlp1 >() );
41 // std::cout << "Reading IMFC tlp1" << std::endl;
42 return m_converter_tlp1.createTransient( col_vect.get(), mlog );
43
44 } else if( compareClassGuid( p0_guid ) ) {
46
47 } else throw std::runtime_error( "Unsupported persistent version of TrigSpacePointCountsCollection" );
48
49}//end of create transient method
50
#define endmsg
TrigSpacePointCountsCollection_p4 TrigSpacePointCountsCollection_PERS
TrigSpacePointCountsCollectionCnv_tlp1 m_converter_tlp1
TrigSpacePointCountsCollectionCnv_p4 m_converter
virtual TrigSpacePointCountsCollection_PERS * createPersistent(TrigSpacePointCountsCollection *transObj)
virtual TrigSpacePointCountsCollection * createTransient()