ATLAS Offline Software
Loading...
Searching...
No Matches
AthExFatObjectCnv_p1.cxx
Go to the documentation of this file.
1
2
3/*
4 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5*/
6
7// AthExFatObjectCnv_p1.cxx
8// Implementation file for class AthExFatObjectCnv_p1
9// Author: S.Binet<binet@cern.ch>
11
12
13// STL includes
14
15// Framework includes
16#include "GaudiKernel/MsgStream.h"
17
18// AthExThinning includes
20
21// AthExThinning includes
23
25// Public methods:
27
28// Constructors
30
31// Destructor
33
35// Const methods:
37
38void
40 AthExFatObject* trans,
41 MsgStream& msg)
42{
43 msg << MSG::DEBUG
44 << "Loading FatObject from persistent state..."
45 << endmsg;
46
47 m_cnv.persToTrans( &pers->m_particleLink, &trans->m_particleLink, msg );
48 // restore the raw-pointer too
49 if (trans->m_particleLink.isValid()) {
50 trans->m_particle = *trans->m_particleLink;
51 } else {
52 trans->m_particle = 0;
53 }
54
55 msg << MSG::DEBUG
56 << "Loaded FatObject from persistent state [OK]"
57 << endmsg;
58 return;
59}
60
61void
63 AthExFatObject_p1* pers,
64 MsgStream& msg )
65{
66 msg << MSG::DEBUG
67 << "Creating persistent state of FatObject..."
68 << endmsg;
69
70 m_cnv.transToPers( &trans->m_particleLink, &pers->m_particleLink, msg );
71
72 msg << MSG::DEBUG
73 << "Created persistent state of FatObject [OK]"
74 << endmsg;
75 return;
76}
#define endmsg
virtual void persToTrans(const AthExFatObject_p1 *persObj, AthExFatObject *transObj, MsgStream &msg)
Method creating the transient representation of FatObject from its persistent representation FatObjec...
ElementLinkCnv_p1< ElementLink< AthExParticles > > m_cnv
virtual void transToPers(const AthExFatObject *transObj, AthExFatObject_p1 *persObj, MsgStream &msg)
Method creating the persistent representation FatObject_p1 from its transient representation FatObjec...
ElementLinkInt_p1 m_particleLink
AthExParticleLink_t m_particleLink
a persistable pointer to an AthExParticle
const AthExParticle * m_particle
a raw pointer to an AthExParticle
MsgStream & msg
Definition testRead.cxx:32