ATLAS Offline Software
AthExElephantinoCnv_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 // 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
22 #include "AthExElephantinoCnv_p1.h"
23 
25 // Public methods:
27 
28 // Constructors
30 
31 // Destructor
33 
35 // Const methods:
37 
38 void
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 
57 void
59  AthExElephantino_p1* pers,
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 }
AthExElephantino_p1::m_legs
ElementLinkIntVector_p1 m_legs
Definition: AthExElephantino_p1.h:45
AthExElephantino_p1::m_ears
ElementLinkIntVector_p1 m_ears
Definition: AthExElephantino_p1.h:46
AthExElephantinoCnv_p1::transToPers
virtual void transToPers(const AthExElephantino *transObj, AthExElephantino_p1 *persObj, MsgStream &msg)
Method creating the persistent representation Elephantino_p1 from its transient representation Elepha...
Definition: AthExElephantinoCnv_p1.cxx:58
ElementLinkVectorCnv_p1::persToTrans
void persToTrans(const PersLinkVect_t &pers, LinkVect_t &trans, MsgStream &log) const
AthExElephantino_p1
Definition: AthExElephantino_p1.h:22
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
AthExElephantino::m_ears
ElementLinkVector< AthExIParticles > m_ears
Definition: AthExElephantino.h:92
AthExElephantino
Definition: AthExElephantino.h:33
AthExElephantinoCnv_p1.h
AthExElephantinoCnv_p1::m_cnv
ElementLinkVectorCnv_p1< ElementLinkVector< AthExIParticles > > m_cnv
Definition: AthExElephantinoCnv_p1.h:78
AthExElephantinoCnv_p1::persToTrans
virtual void persToTrans(const AthExElephantino_p1 *persObj, AthExElephantino *transObj, MsgStream &msg)
Method creating the transient representation of Elephantino from its persistent representation Elepha...
Definition: AthExElephantinoCnv_p1.cxx:39
AthExElephantino.h
DEBUG
#define DEBUG
Definition: page_access.h:11
ElementLinkVectorCnv_p1::transToPers
void transToPers(const LinkVect_t &trans, PersLinkVect_t &pers, const SG::ThinningCache *cache, MsgStream &log) const
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7
AthExElephantino::m_legs
ElementLinkVector< AthExIParticles > m_legs
Definition: AthExElephantino.h:91