ATLAS Offline Software
TrigTauClusterDetailsContainerCnv.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
7 
8 //createPersistent
10 {
11  MsgStream mlog(msgSvc(), "TrigTauClusterDetailsContainerConverter" );
12 
13  mlog << MSG::DEBUG << "TrigTauClusterDetailsContainerCnv::createPersistent called" << endmsg;
14 
15  TrigTauClusterDetailsContainer_PERS * p_TauClusterCont = m_converter.createPersistent( transObj, mlog );
16 
17  return p_TauClusterCont;
18 
19 }//end of create persistent method
20 
21 //createTransient
23 {
24  MsgStream mlog(msgSvc(), "TrigTauClusterDetailsContainerConverter" );
25 
26  mlog << MSG::DEBUG << "TrigTauClusterDetailsContainerCnv::createTransient called" << endmsg;
27 
28  static const pool::Guid p2_guid( "AAEE63E0-BA47-45AD-AC28-E07EC68812C4" );
29  static const pool::Guid tlp1_guid( "D7DA2036-9F38-4060-A5C9-75C72AF104C4" );
30 
31  if( compareClassGuid( p2_guid ) ){
32  std::unique_ptr< TrigTauClusterDetailsContainer_p2 > col_vect( poolReadObject< TrigTauClusterDetailsContainer_p2 >() );
33  //std::cout << "Reading TTCD p2" << std::endl;
34  return m_converter.createTransient( col_vect.get(), mlog ) ;
35 
36  }else if( compareClassGuid( tlp1_guid ) )
37  {
38  std::unique_ptr< TrigTauClusterDetailsContainer_tlp1 > col_vect( poolReadObject< TrigTauClusterDetailsContainer_tlp1 >() );
39  //std::cout << "Reading TTCD tlp1" << std::endl;
40  return m_converter1.createTransient( col_vect.get(), mlog );
41 
42  }
43  else throw std::runtime_error( "Unsupported persistent version of TrigTauClusterDetailsContainer" );
44 
45 }//end of create transient method
TrigTauClusterDetailsContainerCnv::m_converter1
TrigTauClusterDetailsContainerCnv_tlp1 m_converter1
Definition: TrigTauClusterDetailsContainerCnv.h:36
TPPolyCnvBase::createTransient
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)
Create transient representation of a persistent object.
TPAbstractPolyCnvBase::createPersistent
virtual PERS * createPersistent(const TRANS *transObj, MsgStream &log)
Create persistent representation of a transient object.
TrigTauClusterDetailsContainer
Container from TrigTauClusterDetails type objects.
Definition: TrigTauClusterDetailsContainer.h:28
TrigTauClusterDetailsContainerCnv::createPersistent
virtual TrigTauClusterDetailsContainer_PERS * createPersistent(TrigTauClusterDetailsContainer *transObj)
Definition: TrigTauClusterDetailsContainerCnv.cxx:9
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
TrigTauClusterDetailsContainerCnv::createTransient
virtual TrigTauClusterDetailsContainer * createTransient()
Definition: TrigTauClusterDetailsContainerCnv.cxx:22
TrigTauClusterDetailsContainerCnv::m_converter
TrigTauClusterDetailsContainerCnv_p2 m_converter
Definition: TrigTauClusterDetailsContainerCnv.h:37
TrigTauClusterDetailsContainer_p2.h
TrigTauClusterDetailsContainerCnv.h
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.
TrigTauClusterDetailsContainer_p2
Definition: TrigTauClusterDetailsContainer_p2.h:10