ATLAS Offline Software
Loading...
Searching...
No Matches
AthExElephantinoCnv_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// AthExElephantinoCnv_p1.cxx
8// Implementation file for class AthExElephantinoCnv_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 AthExElephantino* trans,
41 MsgStream& msg )
42{
43 msg << MSG::DEBUG
44 << "Loading Elephantino from persistent state..."
45 << endmsg;
46
47 m_cnv.persToTrans( &pers->m_legs, &trans->m_legs, msg );
48 // known to be thinned away...
49 m_cnv.persToTrans( &pers->m_ears, &trans->m_ears, msg );
50
51 msg << MSG::DEBUG
52 << "Loaded Elephantino from persistent state [OK]"
53 << endmsg;
54 return;
55}
56
57void
60 MsgStream& msg )
61{
62 msg << MSG::DEBUG
63 << "Creating persistent state of Elephantino..."
64 << endmsg;
65
66 m_cnv.transToPers( &trans->m_legs, &pers->m_legs, msg );
67 // known to be thinned away...
68 m_cnv.transToPers( &trans->m_ears, &pers->m_ears, msg );
69
70 msg << MSG::DEBUG
71 << "Created persistent state of Elephantino [OK]"
72 << endmsg;
73 return;
74}
#define endmsg
ElementLinkVectorCnv_p1< ElementLinkVector< AthExIParticles > > m_cnv
virtual void persToTrans(const AthExElephantino_p1 *persObj, AthExElephantino *transObj, MsgStream &msg)
Method creating the transient representation of Elephantino from its persistent representation Elepha...
virtual void transToPers(const AthExElephantino *transObj, AthExElephantino_p1 *persObj, MsgStream &msg)
Method creating the persistent representation Elephantino_p1 from its transient representation Elepha...
ElementLinkIntVector_p1 m_ears
ElementLinkIntVector_p1 m_legs
object with 4 legs, so it is best modeled with a vector of ElementLink.
ElementLinkVector< AthExIParticles > m_legs
ElementLinkVector< AthExIParticles > m_ears
MsgStream & msg
Definition testRead.cxx:32