ATLAS Offline Software
AthExFatObjectCnv_p1.cxx
Go to the documentation of this file.
1 
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
22 #include "AthExFatObjectCnv_p1.h"
23 
25 // Public methods:
27 
28 // Constructors
30 
31 // Destructor
33 
35 // Const methods:
37 
38 void
40  AthExFatObject* trans,
41  MsgStream& msg)
42 {
43  msg << MSG::DEBUG
44  << "Loading FatObject from persistent state..."
45  << endmsg;
46 
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 
61 void
63  AthExFatObject_p1* pers,
64  MsgStream& msg )
65 {
66  msg << MSG::DEBUG
67  << "Creating persistent state of FatObject..."
68  << endmsg;
69 
71 
72  msg << MSG::DEBUG
73  << "Created persistent state of FatObject [OK]"
74  << endmsg;
75  return;
76 }
AthExFatObject_p1::m_particleLink
ElementLinkInt_p1 m_particleLink
Definition: AthExFatObject_p1.h:46
AthExFatObjectCnv_p1.h
AthExFatObjectCnv_p1::m_cnv
ElementLinkCnv_p1< ElementLink< AthExParticles > > m_cnv
Definition: AthExFatObjectCnv_p1.h:78
AthExFatObject.h
AthExFatObjectCnv_p1::persToTrans
virtual void persToTrans(const AthExFatObject_p1 *persObj, AthExFatObject *transObj, MsgStream &msg)
Method creating the transient representation of FatObject from its persistent representation FatObjec...
Definition: AthExFatObjectCnv_p1.cxx:39
ElementLinkCnv_p1::transToPers
void transToPers(const Link_t &trans, PersLink_t &pers, const SG::ThinningCache *cache, MsgStream &log) const
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
AthExFatObject_p1
Definition: AthExFatObject_p1.h:23
AthExFatObject::m_particleLink
AthExParticleLink_t m_particleLink
a persistable pointer to an AthExParticle
Definition: AthExFatObject.h:93
ElementLinkCnv_p1::persToTrans
void persToTrans(const PersLink_t &pers, Link_t &trans, MsgStream &log) const
AthExFatObject
Definition: AthExFatObject.h:29
AthExFatObjectCnv_p1::transToPers
virtual void transToPers(const AthExFatObject *transObj, AthExFatObject_p1 *persObj, MsgStream &msg)
Method creating the persistent representation FatObject_p1 from its transient representation FatObjec...
Definition: AthExFatObjectCnv_p1.cxx:62
DEBUG
#define DEBUG
Definition: page_access.h:11
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7
AthExFatObject::m_particle
const AthExParticle * m_particle
a raw pointer to an AthExParticle
Definition: AthExFatObject.h:89