ATLAS Offline Software
TrigCaloClusterContainerCnv.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(), "TrigCaloClusterContainerConverter" );
11 
12  mlog << MSG::DEBUG << "TrigCaloClusterContainerCnv::createPersistent called" << endmsg;
13 
14  TrigCaloClusterContainer_PERS * p_CaloClusterCont = m_converter.createPersistent( transObj, mlog );
15 
16  return p_CaloClusterCont;
17 
18 }//end of create persistent method
19 
20 //createTransient
22 {
23  MsgStream mlog(msgSvc(), "TrigCaloClusterContainerConverter" );
24 
25  mlog << MSG::DEBUG << "TrigCaloClusterContainerCnv::createTransient called" << endmsg;
26 
27  static const pool::Guid p3_guid( "98A28943-662A-4141-82C3-537447264DA3" );
28 
29  if( compareClassGuid( p3_guid ) ){
30  std::unique_ptr< TrigCaloClusterContainer_p3 > col_vect( poolReadObject< TrigCaloClusterContainer_p3 >() );
31  // std::cout << "Reading IMFC p3" << std::endl;
32  return m_converter.createTransient( col_vect.get(), mlog ) ;
33  } else { throw std::runtime_error( "Unsupported persistent version of TrigCaloClusterContainer" ); }
34 
35 }//end of create transient method
36 
TPPolyCnvBase::createTransient
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)
Create transient representation of a persistent object.
TrigCaloClusterContainerCnv.h
TPAbstractPolyCnvBase::createPersistent
virtual PERS * createPersistent(const TRANS *transObj, MsgStream &log)
Create persistent representation of a transient object.
TrigCaloClusterContainerCnv::createTransient
virtual TrigCaloClusterContainer * createTransient()
Definition: TrigCaloClusterContainerCnv.cxx:21
TrigCaloClusterContainer_p3
Definition: TrigCaloClusterContainer_p3.h:10
pool::Guid
::Guid Guid
Definition: T_AthenaPoolCustCnv.h:19
TrigCaloClusterContainerCnv::createPersistent
virtual TrigCaloClusterContainer_PERS * createPersistent(TrigCaloClusterContainer *transObj)
Definition: TrigCaloClusterContainerCnv.cxx:8
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.
TrigCaloClusterContainerCnv::m_converter
TrigCaloClusterContainerCnv_p3 m_converter
Definition: TrigCaloClusterContainerCnv.h:35
TrigCaloClusterContainer
Container from TrigCaloCluster type objects.
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloClusterContainer.h:29