ATLAS Offline Software
TrigCompositeContainerCnv.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(), "TrigCompositeContainerConverter" );
11 
12  mlog << MSG::DEBUG << "TrigCompositeContainerCnv::createPersistent called" << endmsg;
13 
14  TrigCompositeContainer_PERS * p_CompositeCont = m_converter.createPersistent( transObj, mlog );
15 
16  return p_CompositeCont;
17 
18 }//end of create persistent method
19 
20 //createTransient
22 {
23  MsgStream mlog(msgSvc(), "TrigCompositeContainerConverter" );
24 
25  mlog << MSG::DEBUG << "TrigCompositeContainerCnv::createTransient called" << endmsg;
26 
27  static const pool::Guid p1_guid( "6D16EA6B-968C-41F0-B5E8-9CC6D5BD7F9A" );
28 
29 
30  if( compareClassGuid( p1_guid ) ){
31  std::unique_ptr< TrigCompositeContainer_p1 > col_vect( poolReadObject< TrigCompositeContainer_p1 >() );
32  // std::cout << "Reading IMFC p1" << std::endl;
33  return m_converter.createTransient( col_vect.get(), mlog ) ;
34  } else { throw std::runtime_error( "Unsupported persistent version of TrigCompositeContainer" ); }
35 
36 }//end of create transient method
37 
TPPolyCnvBase::createTransient
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)
Create transient representation of a persistent object.
TrigCompositeContainerCnv.h
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
TrigCompositeContainerCnv::m_converter
TrigCompositeContainerCnv_p1 m_converter
Definition: TrigCompositeContainerCnv.h:35
TrigCompositeContainer
Container from TrigComposite type objects.
Definition: Trigger/TrigEvent/TrigCombinedEvent/TrigCombinedEvent/TrigCompositeContainer.h:25
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
TrigCompositeContainer_p1
Definition: TrigCompositeContainer_p1.h:20
TrigCompositeContainerCnv::createTransient
virtual TrigCompositeContainer * createTransient()
Definition: TrigCompositeContainerCnv.cxx:21
TrigCompositeContainerCnv::createPersistent
virtual TrigCompositeContainer_PERS * createPersistent(TrigCompositeContainer *transObj)
Definition: TrigCompositeContainerCnv.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.