ATLAS Offline Software
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 
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 ) ) {
45  return poolReadObject< TrigSpacePointCountsCollection >();
46 
47  } else throw std::runtime_error( "Unsupported persistent version of TrigSpacePointCountsCollection" );
48 
49 }//end of create transient method
50 
TrigSpacePointCountsCollectionCnv::createPersistent
virtual TrigSpacePointCountsCollection_PERS * createPersistent(TrigSpacePointCountsCollection *transObj)
Definition: TrigSpacePointCountsCollectionCnv.cxx:10
TPPolyCnvBase::createTransient
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)
Create transient representation of a persistent object.
TrigSpacePointCountsCollectionCnv::m_converter
TrigSpacePointCountsCollectionCnv_p4 m_converter
Definition: TrigSpacePointCountsCollectionCnv.h:39
TrigSpacePointCountsCollectionCnv::m_converter_tlp1
TrigSpacePointCountsCollectionCnv_tlp1 m_converter_tlp1
Definition: TrigSpacePointCountsCollectionCnv.h:38
TPAbstractPolyCnvBase::createPersistent
virtual PERS * createPersistent(const TRANS *transObj, MsgStream &log)
Create persistent representation of a transient object.
TrigSpacePointCountsCollectionCnv::createTransient
virtual TrigSpacePointCountsCollection * createTransient()
Definition: TrigSpacePointCountsCollectionCnv.cxx:24
pool::Guid
::Guid Guid
Definition: T_AthenaPoolCustCnv.h:19
TrigSpacePointCountsCollection_p4.h
TopLevelTPConverter::createTransient
TRANS * createTransient(MsgStream &log)
Create transient representation of the persistent object known to this converter.
Definition: TopLevelTPConverter.h:62
TrigSpacePointCountsCollectionCnv.h
TrigSpacePointCountsCollection
Definition: TrigSpacePointCountsCollection.h:20
python.InDetPriVxFinderConfig.mlog
mlog
Definition: InDetPriVxFinderConfig.py:134
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition: StdJOSetup.py:36
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
DEBUG
#define DEBUG
Definition: page_access.h:11
T_AthenaPoolCustCnv::compareClassGuid
virtual bool compareClassGuid(const Guid &clid) const
Compare POOL class GUID with the one of the object being read.
TrigSpacePointCountsCollection_p4
Definition: TrigSpacePointCountsCollection_p4.h:24