ATLAS Offline Software
AthExDecayCnv_p1.cxx
Go to the documentation of this file.
1 
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 
39 void
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
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 }
AthExDecay_p1::m_l1
ElementLinkInt_p1 m_l1
Definition: AthExDecay_p1.h:49
AthExDecay.h
AthExDecay_p1::m_p2
ElementLinkInt_p1 m_p2
Definition: AthExDecay_p1.h:48
ElementLinkCnv_p1::transToPers
void transToPers(const Link_t &trans, PersLink_t &pers, const SG::ThinningCache *cache, MsgStream &log) const
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
AthExDecay::m_l2
ElementLink< AthExParticles > m_l2
Definition: AthExDecay.h:81
getThinningCache.h
Helpers to retrieve the current thinning cache from the event context.
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
SG::getThinningCache
const SG::ThinningCache * getThinningCache(const EventContext &ctx)
Retrieve the current thinning cache from the event context.
Definition: getThinningCache.cxx:28
AthExDecay
Definition: AthExDecay.h:28
ElementLinkCnv_p1::persToTrans
void persToTrans(const PersLink_t &pers, Link_t &trans, MsgStream &log) const
AthExDecay::m_l1
ElementLink< AthExParticles > m_l1
Definition: AthExDecay.h:80
AthExDecayCnv_p1::m_partLinkCnv
ElementLinkCnv_p1< ElementLink< AthExParticles > > m_partLinkCnv
Definition: AthExDecayCnv_p1.h:77
AthExDecay_p1::m_l2
ElementLinkInt_p1 m_l2
Definition: AthExDecay_p1.h:50
DEBUG
#define DEBUG
Definition: page_access.h:11
AthExDecay::m_p1
ElementLink< AthExParticles > m_p1
Definition: AthExDecay.h:78
SG::ThinningCache
Cache thinning decisions for converters.
Definition: ThinningCache.h:48
AthExDecay::m_p2
ElementLink< AthExParticles > m_p2
Definition: AthExDecay.h:79
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7
AthExDecay_p1
Definition: AthExDecay_p1.h:24
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
AthExDecay_p1::m_p1
ElementLinkInt_p1 m_p1
Definition: AthExDecay_p1.h:47
AthExDecayCnv_p1.h