ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthenaExamples
AthExThinning
src
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
19
#include "
AthExThinning/AthExElephantino.h
"
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
39
AthExElephantinoCnv_p1::persToTrans
(
const
AthExElephantino_p1
* pers,
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
58
AthExElephantinoCnv_p1::transToPers
(
const
AthExElephantino
* trans,
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
}
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
AthExElephantinoCnv_p1.h
AthExElephantino.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
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
AthExElephantino_p1
Definition
AthExElephantino_p1.h:22
AthExElephantino_p1::m_ears
ElementLinkIntVector_p1 m_ears
Definition
AthExElephantino_p1.h:46
AthExElephantino_p1::m_legs
ElementLinkIntVector_p1 m_legs
Definition
AthExElephantino_p1.h:45
AthExElephantino
object with 4 legs, so it is best modeled with a vector of ElementLink.
Definition
AthExElephantino.h:33
AthExElephantino::m_legs
ElementLinkVector< AthExIParticles > m_legs
Definition
AthExElephantino.h:91
AthExElephantino::m_ears
ElementLinkVector< AthExIParticles > m_ears
Definition
AthExElephantino.h:92
msg
MsgStream & msg
Definition
testRead.cxx:32
Generated on
for ATLAS Offline Software by
1.17.0