ATLAS Offline Software
CombinedMuonFeatureContainerCnv.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 
10 
11 //createPersistent
13 {
14  MsgStream mlog(msgSvc(), "CombinedMuonFeatureContainerConverter" );
15 
16  mlog << MSG::DEBUG << "CombinedMuonFeatureContainerCnv::createPersistent called" << endmsg;
17 
19 
20  return p_cont;
21 
22 }//end of create persistent method
23 
24 
25 //createTransient
27 {
28  MsgStream mlog(msgSvc(), "CombinedMuonFeatureContainerConverter" );
29 
30  mlog << MSG::DEBUG << "CombinedMuonFeatureContainerCnv::createTransient called" << endmsg;
31 
32  static const pool::Guid p4_guid( "A06B9B51-FFA9-4AC1-9079-8AF49C4A9B87" );
33  static const pool::Guid p3_guid( "02262E5F-7645-4919-9CD9-66D88796DCFA" );
34  static const pool::Guid p2_guid( "E9D9F99E-D64F-4114-90EA-236FAF9063BB" );
35  static const pool::Guid tlp1_guid( "9C558B18-1B1D-4186-AF26-A5F3EACCBE1B" );
36  static const pool::Guid p0_guid( "574BFA1C-ADB8-40DB-B538-0CA20E20CAAD" );
37 
38  //CombinedMuonFeatureContainer *p_collection = 0;
39  if( compareClassGuid( p4_guid ) ){
40  std::unique_ptr< CombinedMuonFeatureContainer_p4 > col_vect( poolReadObject< CombinedMuonFeatureContainer_p4 >() );
41  // std::cout << "Reading CMFC p2" << std::endl;
42  return m_converter.createTransient( col_vect.get(), mlog ) ;
43 
44  }else if( compareClassGuid( p3_guid ) ){
45  std::unique_ptr< CombinedMuonFeatureContainer_p3 > col_vect( poolReadObject< CombinedMuonFeatureContainer_p3 >() );
46  // std::cout << "Reading CMFC p2" << std::endl;
47  return m_converter3.createTransient( col_vect.get(), mlog ) ;
48 
49  }else if( compareClassGuid( p2_guid ) )
50  {
51  std::unique_ptr< CombinedMuonFeatureContainer_p2 > col_vect( poolReadObject< CombinedMuonFeatureContainer_p2 >() );
52  // std::cout << "Reading CMFC p2" << std::endl;
53  return m_converter2.createTransient( col_vect.get(), mlog ) ;
54 
55  }else if( compareClassGuid( tlp1_guid ) )
56  {
57  std::unique_ptr< CombinedMuonFeatureContainer_tlp1 > col_vect( poolReadObject< CombinedMuonFeatureContainer_tlp1 >() );
58  // std::cout << "Reading CMFC tlp1" << std::endl;
59  return m_converter1.createTransient( col_vect.get(), mlog );
60 
61  }else if( compareClassGuid( p0_guid ) ){
62 
63  return poolReadObject< CombinedMuonFeatureContainer >();
64 
65  }else throw std::runtime_error( "Unsupported persistent version of CombinedMuonFeatureContainer" );
66 
67 }//end of create transient method
68 
CombinedMuonFeatureContainerCnv::m_converter1
CombinedMuonFeatureContainerCnv_tlp1 m_converter1
Definition: CombinedMuonFeatureContainerCnv.h:35
CombinedMuonFeatureContainer_p4.h
CombinedMuonFeatureContainerCnv::createPersistent
virtual CombinedMuonFeatureContainer_PERS * createPersistent(CombinedMuonFeatureContainer *transObj)
Definition: CombinedMuonFeatureContainerCnv.cxx:12
TPPolyCnvBase::createTransient
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)
Create transient representation of a persistent object.
CombinedMuonFeatureContainer
Definition: CombinedMuonFeatureContainer.h:14
CombinedMuonFeatureContainer_p4
Definition: CombinedMuonFeatureContainer_p4.h:10
TPAbstractPolyCnvBase::createPersistent
virtual PERS * createPersistent(const TRANS *transObj, MsgStream &log)
Create persistent representation of a transient object.
CombinedMuonFeatureContainerCnv::m_converter
CombinedMuonFeatureContainerCnv_p4 m_converter
Definition: CombinedMuonFeatureContainerCnv.h:38
CombinedMuonFeatureContainerCnv.h
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
CombinedMuonFeatureContainerCnv::m_converter2
CombinedMuonFeatureContainerCnv_p2 m_converter2
Definition: CombinedMuonFeatureContainerCnv.h:36
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
CombinedMuonFeatureContainerCnv::m_converter3
CombinedMuonFeatureContainerCnv_p3 m_converter3
Definition: CombinedMuonFeatureContainerCnv.h:37
CombinedMuonFeatureContainer_p2.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.
CombinedMuonFeatureContainer_p3.h
CombinedMuonFeatureContainerCnv::createTransient
virtual CombinedMuonFeatureContainer * createTransient()
Definition: CombinedMuonFeatureContainerCnv.cxx:26