ATLAS Offline Software
NeutrinoCnv_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 // NeutrinoCnv_p1.cxx
8 // Implementation file for class NeutrinoCnv_p1
9 // Author: S.Binet<binet@cern.ch>
11 
12 
13 // STL includes
14 
15 // ParticleEvent includes
16 #include "ParticleEvent/Neutrino.h"
17 
18 // EventCommonTPCnv includes
20 
21 // ParticleEventTPCnv includes
23 
24 // ParticleEventTPCnv includes
26 
27 // converters
28 static const P4ImplPxPyPzECnv_p1 s_momCnv;
29 static const ParticleBaseCnv_p1 s_partBaseCnv;
30 
31 
32 void
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 
53 void
55  Neutrino_p1* 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 }
NeutrinoCnv_p1::transToPers
virtual void transToPers(const Neutrino *trans, Neutrino_p1 *pers, MsgStream &msg) const override
Method creating the persistent representation Neutrino_p1 from its transient representation Neutrino.
Definition: NeutrinoCnv_p1.cxx:54
P4ImplPxPyPzECnv_p1.h
NeutrinoCnv_p1.h
ParticleBaseCnv_p1::persToTrans
virtual void persToTrans(const ParticleBase_p1 *persObj, ParticleBase *transObj, MsgStream &msg) const final
Method creating the transient representation of ParticleBase from its persistent representation Parti...
Definition: ParticleBaseCnv_p1.cxx:49
Neutrino_p1::m_momentum
P4PxPyPzE_p1 m_momentum
the 4-mom part
Definition: Neutrino_p1.h:53
ParticleBaseCnv_p1.h
ParticleImpl::momentumBase
const momentum_type & momentumBase() const
access to underlying base type (I4Momentum-like)
Definition: ParticleImpl.h:393
P4ImplPxPyPzECnv_p1
Definition: P4ImplPxPyPzECnv_p1.h:38
ParticleImpl::particleBase
const particle_type & particleBase() const
access to underlying base type (IParticle-like)
Definition: ParticleImpl.h:403
NeutrinoCnv_p1::persToTrans
virtual void persToTrans(const Neutrino_p1 *pers, Neutrino *trans, MsgStream &msg) const override
Method creating the transient representation of Neutrino from its persistent representation Neutrino_...
Definition: NeutrinoCnv_p1.cxx:33
Neutrino_p1
Definition: Neutrino_p1.h:26
ParticleBaseCnv_p1
Definition: ParticleBaseCnv_p1.h:30
Neutrino_p1::m_particleBase
ParticleBase_p1 m_particleBase
the ParticleBase part
Definition: Neutrino_p1.h:56
ParticleBaseCnv_p1::transToPers
virtual void transToPers(const ParticleBase *transObj, ParticleBase_p1 *persObj, MsgStream &msg) const final
Method creating the persistent representation ParticleBase_p1 from its transient representation Parti...
Definition: ParticleBaseCnv_p1.cxx:80
P4ImplPxPyPzECnv_p1::persToTrans
virtual void persToTrans(const P4ImplPxPyPzE_p1 *persObj, P4ImplPxPyPzE *transObj, MsgStream &msg) const override
Method creating the transient representation of P4ImplPxPyPzE from its persistent representation P4Im...
Definition: P4ImplPxPyPzECnv_p1.cxx:26
Neutrino
Definition: Neutrino.h:33
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7
Neutrino.h
P4ImplPxPyPzECnv_p1::transToPers
virtual void transToPers(const P4ImplPxPyPzE *transObj, P4ImplPxPyPzE_p1 *persObj, MsgStream &msg) const override
Method creating the persistent representation P4ImplPxPyPzE_p1 from its transient representation P4Px...
Definition: P4ImplPxPyPzECnv_p1.cxx:38