ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthenaExamples
AthExThinning
src
AthExDecayCnv_p1.cxx
Go to the documentation of this file.
1
2
3
/*
4
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
// AthExDecayCnv_p1.cxx
8
// Implementation file for class AthExDecayCnv_p1
9
// Author: S.Binet<binet@cern.ch>
11
12
13
// STL includes
14
15
// Framework includes
16
#include "GaudiKernel/MsgStream.h"
17
#include "
AthenaKernel/getThinningCache.h
"
18
19
// AthExThinning includes
20
#include "
AthExThinning/AthExDecay.h
"
21
22
// AthExThinning includes
23
#include "
AthExDecayCnv_p1.h
"
24
26
// Public methods:
28
29
// Constructors
31
32
// Destructor
34
36
// Const methods:
38
39
void
40
AthExDecayCnv_p1::persToTrans
(
const
AthExDecay_p1
* persObj,
41
AthExDecay
* transObj,
42
MsgStream &
msg
)
43
{
44
msg
<< MSG::DEBUG
45
<<
"Loading Decay from persistent state..."
46
<<
endmsg
;
47
48
// convert the ElementLink<Particles>
49
m_partLinkCnv
.persToTrans( &persObj->
m_p1
,
50
&transObj->
m_p1
,
51
msg
);
52
m_partLinkCnv
.persToTrans( &persObj->
m_p2
,
53
&transObj->
m_p2
,
54
msg
);
55
56
// convert the ElementLink<Particles> (known to be thinned away)
57
m_partLinkCnv
.persToTrans( &persObj->
m_l1
,
58
&transObj->
m_l1
,
59
msg
);
60
m_partLinkCnv
.persToTrans( &persObj->
m_l2
,
61
&transObj->
m_l2
,
62
msg
);
63
64
msg
<< MSG::DEBUG
65
<<
"Loaded Decay from persistent state [OK]"
66
<<
endmsg
;
67
return
;
68
}
69
70
void
71
AthExDecayCnv_p1::transToPers
(
const
AthExDecay
* transObj,
72
AthExDecay_p1
* persObj,
73
MsgStream &
msg
)
74
{
75
msg
<< MSG::DEBUG
76
<<
"Creating persistent state of Decay..."
77
<<
endmsg
;
78
79
const
SG::ThinningCache
* thinningCache =
80
SG::getThinningCache
();
81
82
// convert the ElementLink<Particles>
83
m_partLinkCnv
.transToPers( transObj->
m_p1
,
84
persObj->
m_p1
,
85
thinningCache,
86
msg
);
87
m_partLinkCnv
.transToPers( transObj->
m_p2
,
88
persObj->
m_p2
,
89
thinningCache,
90
msg
);
91
92
// convert the ElementLink<Particles> (known to be thinned away)
93
m_partLinkCnv
.transToPers( transObj->
m_l1
,
94
persObj->
m_l1
,
95
thinningCache,
96
msg
);
97
m_partLinkCnv
.transToPers( transObj->
m_l2
,
98
persObj->
m_l2
,
99
thinningCache,
100
msg
);
101
msg
<< MSG::DEBUG
102
<<
"Created persistent state of Decay [OK]"
103
<<
endmsg
;
104
return
;
105
}
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
AthExDecayCnv_p1.h
AthExDecay.h
AthExDecayCnv_p1::transToPers
virtual void transToPers(const AthExDecay *transObj, AthExDecay_p1 *persObj, MsgStream &msg)
Method creating the persistent representation Decay_p1 from its transient representation Decay.
Definition
AthExDecayCnv_p1.cxx:71
AthExDecayCnv_p1::persToTrans
virtual void persToTrans(const AthExDecay_p1 *persObj, AthExDecay *transObj, MsgStream &msg)
Method creating the transient representation of Decay from its persistent representation Decay_p1.
Definition
AthExDecayCnv_p1.cxx:40
AthExDecayCnv_p1::m_partLinkCnv
ElementLinkCnv_p1< ElementLink< AthExParticles > > m_partLinkCnv
Definition
AthExDecayCnv_p1.h:77
AthExDecay_p1
Definition
AthExDecay_p1.h:24
AthExDecay_p1::m_l2
ElementLinkInt_p1 m_l2
Definition
AthExDecay_p1.h:50
AthExDecay_p1::m_l1
ElementLinkInt_p1 m_l1
Definition
AthExDecay_p1.h:49
AthExDecay_p1::m_p2
ElementLinkInt_p1 m_p2
Definition
AthExDecay_p1.h:48
AthExDecay_p1::m_p1
ElementLinkInt_p1 m_p1
Definition
AthExDecay_p1.h:47
AthExDecay
Definition
AthExDecay.h:28
AthExDecay::m_p1
ElementLink< AthExParticles > m_p1
Definition
AthExDecay.h:78
AthExDecay::m_l1
ElementLink< AthExParticles > m_l1
Definition
AthExDecay.h:80
AthExDecay::m_l2
ElementLink< AthExParticles > m_l2
Definition
AthExDecay.h:81
AthExDecay::m_p2
ElementLink< AthExParticles > m_p2
Definition
AthExDecay.h:79
SG::ThinningCache
Cache thinning decisions for converters.
Definition
ThinningCache.h:48
getThinningCache.h
Helpers to retrieve the current thinning cache from the event context.
SG::getThinningCache
const SG::ThinningCache * getThinningCache()
Retrieve the current thinning cache from the current event context.
Definition
getThinningCache.cxx:41
msg
MsgStream & msg
Definition
testRead.cxx:32
Generated on
for ATLAS Offline Software by
1.17.0