ATLAS Offline Software
TrigTauTracksInfoCollectionCnv.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 
7 //createPersistent
9 {
10  MsgStream mlog(msgSvc(), "TrigTauTracksInfoCollectionConverter" );
11 
12  mlog << MSG::DEBUG << "TrigTauTracksInfoCollectionCnv::createPersistent called" << endmsg;
13 
15 
16  return p_cont;
17 
18 }//end of create persistent method
19 
20 
21 //createTransient
23 {
24  MsgStream mlog(msgSvc(), "TrigTauTracksInfoCollectionConverter" );
25 
26  mlog << MSG::DEBUG << "TrigTauTracksInfoCollectionCnv::createTransient called" << endmsg;
27 
28  static const pool::Guid p2_guid( "1AF8C4E5-4862-4625-B9B6-D9B53E716B17" );
29  static const pool::Guid p1_guid( "8A208FA7-C52F-4CD3-AE20-EF1C99FC92A6" );
30  static const pool::Guid p0_guid( "27E95E77-0D99-417D-83C7-7F1B8E6DE511" );
31 
32  if( compareClassGuid( p2_guid ) ){
33  std::unique_ptr< TrigTauTracksInfoCollection_p2 > col_vect( poolReadObject< TrigTauTracksInfoCollection_p2 >() );
34  return m_converter.createTransient( col_vect.get(), mlog ) ;
35  } else if( compareClassGuid( p1_guid ) ) {
36  std::unique_ptr< TrigTauTracksInfoCollection_tlp1 > col_vect( poolReadObject< TrigTauTracksInfoCollection_tlp1 >() );
37  return m_converter_tlp1.createTransient( col_vect.get(), mlog );
38  } else if( compareClassGuid( p0_guid ) ){
39  return poolReadObject< TrigTauTracksInfoCollection >();
40  } else throw std::runtime_error( "Unsupported persistent version of TrigTauTracksInfoCollection" );
41 
42 }//end of create transient method
43 
TrigTauTracksInfoCollectionCnv::m_converter
TrigTauTracksInfoCollectionCnv_p2 m_converter
Definition: TrigTauTracksInfoCollectionCnv.h:35
TPPolyCnvBase::createTransient
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)
Create transient representation of a persistent object.
TrigTauTracksInfoCollectionCnv::m_converter_tlp1
TrigTauTracksInfoCollectionCnv_tlp1 m_converter_tlp1
Definition: TrigTauTracksInfoCollectionCnv.h:34
TPAbstractPolyCnvBase::createPersistent
virtual PERS * createPersistent(const TRANS *transObj, MsgStream &log)
Create persistent representation of a transient object.
TrigTauTracksInfoCollection
Definition: TrigTauTracksInfoCollection.h:13
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
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
TrigTauTracksInfoCollectionCnv::createTransient
virtual TrigTauTracksInfoCollection * createTransient()
Definition: TrigTauTracksInfoCollectionCnv.cxx:22
TrigTauTracksInfoCollectionCnv::createPersistent
virtual TrigTauTracksInfoCollection_PERS * createPersistent(TrigTauTracksInfoCollection *transObj)
Definition: TrigTauTracksInfoCollectionCnv.cxx:8
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.
TrigTauTracksInfoCollection_p2
Definition: TrigTauTracksInfoCollection_p2.h:10
TrigTauTracksInfoCollectionCnv.h