ATLAS Offline Software
TrigTauContainerCnv.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include "TrigTauContainerCnv.h"
6 
7 //createPersistent
9 {
10  MsgStream mlog(msgSvc(), "TrigTauContainerConverter" );
11 
12  mlog << MSG::DEBUG << "TrigTauContainerCnv::createPersistent called" << endmsg;
13 
14  TrigTauContainer_PERS * p_TauCont = m_converter.createPersistent( transObj, mlog );
15 
16  return p_TauCont;
17 
18 }//end of create persistent method
19 
20 //createTransient
22 {
23  MsgStream mlog(msgSvc(), "TrigTauContainerConverter" );
24 
25  mlog << MSG::DEBUG << "TrigTauContainerCnv::createTransient called" << endmsg;
26 
27  static const pool::Guid p3_guid( "32FE95F3-F85E-481E-9DD6-7BBA08ABDBD7" );
28  static const pool::Guid tlp1_guid( "1551CECC-52C7-4B5B-876C-27005A8DCCC8" );
29 
30  if( compareClassGuid( p3_guid ) ){
31  std::unique_ptr< TrigTauContainer_p3 > col_vect( poolReadObject< TrigTauContainer_p3 >() );
32  // std::cout << "Reading IMFC p3" << std::endl;
33  return m_converter.createTransient( col_vect.get(), mlog ) ;
34  } else if( compareClassGuid( tlp1_guid ) ) {
35  std::unique_ptr< TrigTauContainer_tlp1 > col_vect( poolReadObject< TrigTauContainer_tlp1 >() );
36  return m_converter_tlp1.createTransient( col_vect.get(), mlog );
37  } else { throw std::runtime_error( "Unsupported persistent version of TrigTauContainer" ); }
38 
39 }//end of create transient method
40 
TrigTauContainerCnv::createTransient
virtual TrigTauContainer * createTransient()
Definition: TrigTauContainerCnv.cxx:21
TPPolyCnvBase::createTransient
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)
Create transient representation of a persistent object.
TrigTauContainer
File: TrigTauContainer.h.
Definition: TrigTauContainer.h:32
TPAbstractPolyCnvBase::createPersistent
virtual PERS * createPersistent(const TRANS *transObj, MsgStream &log)
Create persistent representation of a transient object.
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
TrigTauContainerCnv::m_converter_tlp1
TrigTauContainerCnv_tlp1 m_converter_tlp1
Definition: TrigTauContainerCnv.h:37
TrigTauContainerCnv.h
TrigTauContainer_p3
Definition: TrigTauContainer_p3.h:18
TrigTauContainerCnv::m_converter
TrigTauContainerCnv_p3 m_converter
Definition: TrigTauContainerCnv.h:38
DEBUG
#define DEBUG
Definition: page_access.h:11
TrigTauContainerCnv::createPersistent
virtual TrigTauContainer_PERS * createPersistent(TrigTauContainer *transObj)
Definition: TrigTauContainerCnv.cxx:8
T_AthenaPoolCustCnv::compareClassGuid
virtual bool compareClassGuid(const Guid &clid) const
Compare POOL class GUID with the one of the object being read.