ATLAS Offline Software
Loading...
Searching...
No Matches
CompositeParticleCnv_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// CompositeParticleCnv_p1.cxx
8// Implementation file for class CompositeParticleCnv_p1
9// Author: S.Binet<binet@cern.ch>
11
12
13// STL includes
14
15// ParticleEvent includes
16#include "ParticleEvent/CompositeParticle.h"
17
18// DataModelAthenaPool includes
20
21// EventCommonTPCnv includes
23
24// ParticleEventTPCnv includes
27
28typedef NavigableCnv_p1<
31
32// pre-allocate converters
36
37
39 CompositeParticle* trans,
40 MsgStream& msg ) const
41{
42// msg << MSG::DEBUG << "Loading CompositeParticle from persistent state..."
43// << endmsg;
44 s_navCnv.persToTrans( &pers->m_nav,
45 &trans->navigableBase(),
46 msg );
47 s_momCnv.persToTrans( &pers->m_momentum,
48 &trans->momentumBase(),
49 msg );
50 s_pbCnv.persToTrans( &pers->m_particle,
51 &trans->particleBase(),
52 msg );
53
54// msg << MSG::DEBUG << "Loaded CompositeParticle from persistent state [OK]"
55// << endmsg;
56 return;
57}
58
61 MsgStream& msg ) const
62{
63// msg << MSG::DEBUG << "Creating persistent state of CompositeParticle..."
64// << endmsg;
65
66 s_navCnv.transToPers( &trans->navigableBase(),
67 &pers->m_nav,
68 msg );
69 s_momCnv.transToPers( &trans->momentumBase(),
70 &pers->m_momentum,
71 msg );
72 s_pbCnv.transToPers( &trans->particleBase(),
73 &pers->m_particle,
74 msg );
75
76// msg << MSG::DEBUG << "Created persistent state of CompositeParticle [OK]"
77// << endmsg;
78 return;
79}
static const NavigableCnv_t s_navCnv
NavigableCnv_p1< Navigable< INavigable4MomentumCollection, double > > NavigableCnv_t
static const P4ImplPxPyPzECnv_p1 s_momCnv
static const ParticleBaseCnv_p1 s_pbCnv
This file contains the class definition for the NavigableCnv_p1 class.
virtual void transToPers(const CompositeParticle *transObj, CompositeParticle_p1 *persObj, MsgStream &msg) const override
Method creating the persistent representation CompositeParticle_p1 from its transient representation ...
virtual void persToTrans(const CompositeParticle_p1 *persObj, CompositeParticle *transObj, MsgStream &msg) const override
Method creating the transient representation of CompositeParticle from its persistent representation ...
P4PxPyPzE_p1 m_momentum
the 4-mom part
Navigable_p1< uint32_t, double > m_nav
the navigable part
ParticleBase_p1 m_particle
the iparticle-part
class which is made from the composition of other particles.
Navigable template generalization to handle navigation.
Definition Navigable.h:93
const navigable_type & navigableBase() const
access to underlying base type (INavigable-like)
const momentum_type & momentumBase() const
access to underlying base type (I4Momentum-like)
const particle_type & particleBase() const
access to underlying base type (IParticle-like)
MsgStream & msg
Definition testRead.cxx:32