ATLAS Offline Software
TrigMissingETContainerCnv.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
8 
9 //createPersistent
11 {
12  MsgStream mlog(msgSvc(), "TrigMissingETContainerConverter" );
13 
14  mlog << MSG::DEBUG << "TrigMissingETContainerCnv::createPersistent" << endmsg;
15 
17 
18  return persObj;
19 
20 }//end of create persistent method
21 
22 
23 //createTransient
25 {
26  MsgStream mlog(msgSvc(), "TrigMissingETContainerConverter" );
27 
28  mlog << MSG::DEBUG << "TrigMissingETContainerCnv::createTransient" << endmsg;
29 
30  static const pool::Guid p3_guid( "F5C98A61-4F40-4FE6-A1A9-D5EF00FFFBF0" );
31  static const pool::Guid tlp1_guid( "23EC84A7-8614-42D6-B82D-B0861D3CE08D" );
32 
33  if( compareClassGuid( p3_guid ) ){
34  std::unique_ptr< TrigMissingETContainer_p3 > col_vect( poolReadObject< TrigMissingETContainer_p3 >() );
35  // std::cout << "Reading IMFC p3" << std::endl;
36  return m_converter.createTransient( col_vect.get(), mlog ) ;
37 
38  } else if( compareClassGuid( tlp1_guid ) ) {
39  std::unique_ptr< TrigMissingETContainer_tlp1 > col_vect( poolReadObject< TrigMissingETContainer_tlp1 >() );
40  // std::cout << "Reading IMFC tlp1" << std::endl;
41  return m_converter_tlp1.createTransient( col_vect.get(), mlog );
42 
43  } else throw std::runtime_error( "Unsupported persistent version of TrigMissingETContainer" );
44 
45 }//end of create transient method
46 
TrigMissingETContainerCnv::createTransient
virtual TrigMissingETContainer * createTransient()
Definition: TrigMissingETContainerCnv.cxx:24
TPPolyCnvBase::createTransient
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)
Create transient representation of a persistent object.
TrigMissingETContainer
Definition: Trigger/TrigEvent/TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingETContainer.h:12
TrigMissingETContainerCnv::m_converter_tlp1
TrigMissingETContainerCnv_tlp1 m_converter_tlp1
Definition: TrigMissingETContainerCnv.h:34
TPAbstractPolyCnvBase::createPersistent
virtual PERS * createPersistent(const TRANS *transObj, MsgStream &log)
Create persistent representation of a transient object.
TrigMissingETContainerCnv::m_converter
TrigMissingETContainerCnv_p3 m_converter
Definition: TrigMissingETContainerCnv.h:35
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
TrigMissingETContainerCnv.h
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
TrigMissingETContainer_p3
Definition: TrigMissingETContainer_p3.h:10
TrigMissingETContainerCnv::createPersistent
virtual TrigMissingETContainer_PERS * createPersistent(TrigMissingETContainer *transObj)
Definition: TrigMissingETContainerCnv.cxx:10
TrigMissingETContainer_p1.h
DEBUG
#define DEBUG
Definition: page_access.h:11
TrigMissingETContainer_p3.h
T_AthenaPoolCustCnv::compareClassGuid
virtual bool compareClassGuid(const Guid &clid) const
Compare POOL class GUID with the one of the object being read.