ATLAS Offline Software
NeutrinoCnv_p2.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_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
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_p2 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_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 }
ParticleBaseCnv_p2::persToTrans
virtual void persToTrans(const ParticleBase_p2 *persObj, ParticleBase *transObj, MsgStream &msg) const final
Method creating the transient representation of ParticleBase from its persistent representation Parti...
Definition: ParticleBaseCnv_p2.cxx:42
Neutrino_p2::m_momentum
P4PxPyPzE_p1 m_momentum
the 4-mom part
Definition: Neutrino_p2.h:55
NeutrinoCnv_p2.h
P4ImplPxPyPzECnv_p1.h
ParticleBaseCnv_p2::transToPers
virtual void transToPers(const ParticleBase *transObj, ParticleBase_p2 *persObj, MsgStream &msg) const final
Method creating the persistent representation ParticleBase_p2 from its transient representation Parti...
Definition: ParticleBaseCnv_p2.cxx:73
ParticleBaseCnv_p2.h
Neutrino_p2
Definition: Neutrino_p2.h:28
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_p2::transToPers
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.
Definition: NeutrinoCnv_p2.cxx:54
Neutrino_p2::m_particleBase
ParticleBase_p2 m_particleBase
the ParticleBase part
Definition: Neutrino_p2.h:58
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
NeutrinoCnv_p2::persToTrans
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_...
Definition: NeutrinoCnv_p2.cxx:33
Neutrino
Definition: Neutrino.h:33
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7
ParticleBaseCnv_p2
Definition: ParticleBaseCnv_p2.h:30
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