ATLAS Offline Software
Loading...
Searching...
No Matches
NeutrinoCnv_p2.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// NeutrinoCnv_p2.cxx
8// Implementation file for class NeutrinoCnv_p2
9// Author: S.Binet<binet@cern.ch>
11
12
13// STL includes
14
15// ParticleEvent includes
17
18// EventCommonTPCnv includes
20
21// ParticleEventTPCnv includes
23
24// ParticleEventTPCnv includes
26
27// converters
30
31
32void
34 Neutrino* trans,
35 MsgStream& msg ) const
36{
37// msg << MSG::DEBUG << "Loading Neutrino from persistent state..."
38// << endmsg;
39
40 // base classes
41 s_momCnv.persToTrans( &pers->m_momentum,
42 &trans->momentumBase(),
43 msg );
44 s_partBaseCnv.persToTrans( &pers->m_particleBase,
45 &trans->particleBase(),
46 msg );
47
48// msg << MSG::DEBUG << "Loaded Neutrino from persistent state [OK]"
49// << endmsg;
50 return;
51}
52
53void
55 Neutrino_p2* pers,
56 MsgStream& msg ) const
57{
58// msg << MSG::DEBUG << "Creating persistent state of Neutrino..."
59// << endmsg;
60
61 // base classes
62 s_momCnv.transToPers( &trans->momentumBase(),
63 &pers->m_momentum,
64 msg );
65 s_partBaseCnv.transToPers( &trans->particleBase(),
66 &pers->m_particleBase,
67 msg );
68
69// msg << MSG::DEBUG << "Created persistent state of Neutrino [OK]"
70// << endmsg;
71 return;
72}
static const P4ImplPxPyPzECnv_p1 s_momCnv
static const ParticleBaseCnv_p1 s_partBaseCnv
virtual void persToTrans(const Neutrino_p2 *pers, Neutrino *trans, MsgStream &msg) const override
Method creating the transient representation of Neutrino from its persistent representation Neutrino_...
virtual void transToPers(const Neutrino *trans, Neutrino_p2 *pers, MsgStream &msg) const override
Method creating the persistent representation Neutrino_p2 from its transient representation Neutrino.
ParticleBase_p2 m_particleBase
the ParticleBase part
Definition Neutrino_p2.h:58
P4PxPyPzE_p1 m_momentum
the 4-mom part
Definition Neutrino_p2.h:55
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