ATLAS Offline Software
Loading...
Searching...
No Matches
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"
18
19// AthExThinning includes
21
22// AthExThinning includes
23#include "AthExDecayCnv_p1.h"
24
26// Public methods:
28
29// Constructors
31
32// Destructor
34
36// Const methods:
38
39void
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
70void
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 =
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}
#define endmsg
virtual void transToPers(const AthExDecay *transObj, AthExDecay_p1 *persObj, MsgStream &msg)
Method creating the persistent representation Decay_p1 from its transient representation Decay.
virtual void persToTrans(const AthExDecay_p1 *persObj, AthExDecay *transObj, MsgStream &msg)
Method creating the transient representation of Decay from its persistent representation Decay_p1.
ElementLinkCnv_p1< ElementLink< AthExParticles > > m_partLinkCnv
ElementLinkInt_p1 m_l2
ElementLinkInt_p1 m_l1
ElementLinkInt_p1 m_p2
ElementLinkInt_p1 m_p1
ElementLink< AthExParticles > m_p1
Definition AthExDecay.h:78
ElementLink< AthExParticles > m_l1
Definition AthExDecay.h:80
ElementLink< AthExParticles > m_l2
Definition AthExDecay.h:81
ElementLink< AthExParticles > m_p2
Definition AthExDecay.h:79
Cache thinning decisions for converters.
Helpers to retrieve the current thinning cache from the event context.
const SG::ThinningCache * getThinningCache()
Retrieve the current thinning cache from the current event context.
MsgStream & msg
Definition testRead.cxx:32