ATLAS Offline Software
TrigCompositeCnv.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include "TrigCompositeCnv.h"
7 
8 
10 {
12 };
13 
14 TrigCompositeCnv::TrigCompositeCnv(ISvcLocator* svcloc) :
16  m_impl (new TrigCompositeCnv_impl)
17 {}
18 
20 {
21  delete m_impl;
22 }
23 
25 {
26  MsgStream mlog(msgSvc(), "TrigCompositeConverter" );
27  mlog << MSG::DEBUG << "TrigCompositeCnv::createPersistent" << endmsg;
28 
30 
31  return persObj;
32 }
33 
34 
36 {
37  MsgStream mlog(msgSvc(), "TrigCompositeConverter" );
38  mlog << MSG::DEBUG << "TrigCompositeCnv::createTransient " << endmsg;
39 
40  static const pool::Guid p1_guid("53F70884-38EE-4D08-9F03-FA8BED725B63");
41 
42  TrigComposite *trans_cont(0);
43 
44  if( compareClassGuid(p1_guid) ) {
45 
46  mlog << MSG::DEBUG << "TrigCompositeCnv::reading p1 persistent object" << endmsg;
47  std::unique_ptr< TrigComposite_p1 > col_vect( this->poolReadObject< TrigComposite_p1 >() );
48  trans_cont = m_impl->m_TPConverter.createTransient( col_vect.get(), mlog );
49 
50  } else {
51 
52  throw std::runtime_error("Unsupported persistent version of Data container TrigComposite");
53 
54  }
55  return trans_cont;
56 
57 }
TrigCompositeCnv::createPersistent
TrigComposite_PERS * createPersistent(TrigComposite *transCont)
Definition: TrigCompositeCnv.cxx:24
TPPolyCnvBase::createTransient
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)
Create transient representation of a persistent object.
TrigCompositeCnv::~TrigCompositeCnv
~TrigCompositeCnv()
Definition: TrigCompositeCnv.cxx:19
CSV_InDetExporter.new
new
Definition: CSV_InDetExporter.py:145
TrigCompositeCnv::m_impl
TrigCompositeCnv_impl * m_impl
Definition: TrigCompositeCnv.h:42
TrigCompositeCnv_impl::m_TPConverter
TrigCompositeCnv_p1 m_TPConverter
Definition: TrigCompositeCnv.cxx:11
TrigCompositeCnv::TrigCompositeCnv
TrigCompositeCnv(ISvcLocator *svcloc)
Definition: TrigCompositeCnv.cxx:14
TPAbstractPolyCnvBase::createPersistent
virtual PERS * createPersistent(const TRANS *transObj, MsgStream &log)
Create persistent representation of a transient object.
TrigComposite
Definition: Trigger/TrigEvent/TrigCombinedEvent/TrigCombinedEvent/TrigComposite.h:26
pool::Guid
::Guid Guid
Definition: T_AthenaPoolCustCnv.h:19
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
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
TrigCompositeCnv_p1.h
TrigComposite_p1
Definition: TrigComposite_p1.h:27
TrigCompositeCnv_p1
Definition: TrigCompositeCnv_p1.h:25
DEBUG
#define DEBUG
Definition: page_access.h:11
TrigCompositeCnv.h
T_AthenaPoolCustCnv< TrigComposite, TrigComposite_PERS >::compareClassGuid
virtual bool compareClassGuid(const Guid &clid) const
Compare POOL class GUID with the one of the object being read.
TrigCompositeCnv::createTransient
TrigComposite * createTransient()
Definition: TrigCompositeCnv.cxx:35
TrigCompositeCnv_impl
Definition: TrigCompositeCnv.cxx:10