ATLAS Offline Software
TrigEFBjetContainerCnv.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
8 
10 {
12  : m_log (ms, "TrigEFBjetContainerCnv")
13  {}
14  MsgStream m_log;
17 };
18 
22 {}
23 
25 {
26  delete m_impl;
27 }
28 
29 //* createPersistent *//
31 
32  MsgStream mlog(msgSvc(), "TrigEFBjetContainerConverter" );
33 
34  mlog << MSG::DEBUG << "TrigEFBjetContainerCnv::createPersistent called" << endmsg;
35 
37 
38  return p_EFBjetCont;
39 
40 }
41 
42 //* createTransient *//
44 
45  MsgStream mlog(msgSvc(), "TrigEFBjetContainerConverter" );
46 
47  mlog << MSG::DEBUG << "TrigEFBjetContainerCnv::createTransient called" << endmsg;
48 
49  static const pool::Guid tlp2_guid( "91EA22B6-9273-4206-AEB5-FE23A269C5AA" );
50  static const pool::Guid tlp1_guid( "F933A067-5788-4AD6-B696-C8B0E988EF2D" );
51  static const pool::Guid p0_guid( "EDAFEE8F-968E-44A4-BEED-7E7F5C86F397" );
52  static const pool::Guid p0_guid2( "D08290EE-4CB3-4570-BF7E-0FA008668A24" );
53 
54  TrigEFBjetContainer *p_collection = 0;
55 
56  if ( compareClassGuid( tlp2_guid ) ) {
57 
58  poolReadObject< TrigEFBjetContainer_PERS >(m_impl->m_TPConverter_tlp2);
60 
61  } else if( compareClassGuid( tlp1_guid ) ) {
62 
63  poolReadObject< TrigEFBjetContainer_PERS >(m_impl->m_TPConverter_tlp1);
65 
66  } else if( compareClassGuid( p0_guid ) || compareClassGuid( p0_guid2 ) ) {
67 
68  p_collection = poolReadObject< TrigEFBjetContainer >();
69 
70  } else throw std::runtime_error( "Unsupported persistent version of TrigEFBjetContainer" );
71 
72  return p_collection;
73 
74 }
75 
TrigEFBjetContainerCnv::m_impl
TrigEFBjetContainerCnv_impl * m_impl
Definition: TrigEFBjetContainerCnv.h:57
TrigEFBjetContainerCnv_impl
Definition: TrigEFBjetContainerCnv.cxx:10
TrigEFBjetContainerCnv.h
TrigEFBjetContainerCnv_tlp2
Definition: TrigEFBjetContainerCnv_tlp2.h:27
TrigEFBjetContainerCnv_impl::m_log
MsgStream m_log
Definition: TrigEFBjetContainerCnv.cxx:14
TrigEFBjetContainer_tlp2
Definition: TrigEFBjetContainer_tlp2.h:24
TrigEFBjetContainerCnv::TrigEFBjetContainerCnv
TrigEFBjetContainerCnv(ISvcLocator *svcloc)
Definition: TrigEFBjetContainerCnv.cxx:19
TrigEFBjetContainerCnv::~TrigEFBjetContainerCnv
~TrigEFBjetContainerCnv()
Definition: TrigEFBjetContainerCnv.cxx:24
TrigEFBjetContainerCnv::createPersistent
virtual TrigEFBjetContainer_PERS * createPersistent(TrigEFBjetContainer *transObj)
Definition: TrigEFBjetContainerCnv.cxx:30
CSV_InDetExporter.new
new
Definition: CSV_InDetExporter.py:145
TrigEFBjetContainer
Container of TrigEFBjet objects to be stored in POOL.
Definition: TrigEFBjetContainer.h:31
TrigEFBjetContainerCnv::createTransient
virtual TrigEFBjetContainer * createTransient()
Definition: TrigEFBjetContainerCnv.cxx:43
python.SystemOfUnits.ms
int ms
Definition: SystemOfUnits.py:132
TrigEFBjetContainerCnv_impl::m_TPConverter_tlp1
TrigEFBjetContainerCnv_tlp1 m_TPConverter_tlp1
Definition: TrigEFBjetContainerCnv.cxx:15
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
T_AthenaPoolCustomCnv
Compatibility for old converter classes that don't get passed the key.
Definition: T_AthenaPoolCustomCnv.h:132
TrigEFBjetContainerCnv_impl::m_TPConverter_tlp2
TrigEFBjetContainerCnv_tlp2 m_TPConverter_tlp2
Definition: TrigEFBjetContainerCnv.cxx:16
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
DEBUG
#define DEBUG
Definition: page_access.h:11
TrigEFBjetContainerCnv_tlp1
Definition: TrigEFBjetContainerCnv_tlp1.h:28
TrigEFBjetContainerCnv_tlp1.h
TopLevelTPConverter::createPersistent
virtual TL_PERS * createPersistent(const TRANS *transObj, MsgStream &log)
Create persistent representation of transObj.
Definition: TopLevelTPConverter.h:110
T_AthenaPoolCustCnv::compareClassGuid
virtual bool compareClassGuid(const Guid &clid) const
Compare POOL class GUID with the one of the object being read.
TrigEFBjetContainerCnv_impl::TrigEFBjetContainerCnv_impl
TrigEFBjetContainerCnv_impl(IMessageSvc *ms)
Definition: TrigEFBjetContainerCnv.cxx:11
TrigEFBjetContainerCnv_tlp2.h