ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
AnalysisCommon
ParticleEventTPCnv
src
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
16
#include "
ParticleEvent/Neutrino.h
"
17
18
// EventCommonTPCnv includes
19
#include "
EventCommonTPCnv/P4ImplPxPyPzECnv_p1.h
"
20
21
// ParticleEventTPCnv includes
22
#include "
ParticleEventTPCnv/ParticleBaseCnv_p2.h
"
23
24
// ParticleEventTPCnv includes
25
#include "
ParticleEventTPCnv/NeutrinoCnv_p2.h
"
26
27
// converters
28
static
const
P4ImplPxPyPzECnv_p1
s_momCnv
;
29
static
const
ParticleBaseCnv_p2
s_partBaseCnv
;
30
31
32
void
33
NeutrinoCnv_p2::persToTrans
(
const
Neutrino_p2
* pers,
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
54
NeutrinoCnv_p2::transToPers
(
const
Neutrino
* trans,
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
}
s_momCnv
static const P4ImplPxPyPzECnv_p1 s_momCnv
Definition
CompositeParticleCnv_p1.cxx:33
s_partBaseCnv
static const ParticleBaseCnv_p1 s_partBaseCnv
Definition
NeutrinoCnv_p1.cxx:29
NeutrinoCnv_p2.h
Neutrino.h
P4ImplPxPyPzECnv_p1.h
ParticleBaseCnv_p2.h
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
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
Definition
Neutrino_p2.h:28
Neutrino_p2::m_particleBase
ParticleBase_p2 m_particleBase
the ParticleBase part
Definition
Neutrino_p2.h:58
Neutrino_p2::m_momentum
P4PxPyPzE_p1 m_momentum
the 4-mom part
Definition
Neutrino_p2.h:55
Neutrino
Definition
Neutrino.h:33
P4ImplPxPyPzECnv_p1
Definition
P4ImplPxPyPzECnv_p1.h:38
ParticleBaseCnv_p2
Definition
ParticleBaseCnv_p2.h:30
ParticleImpl::momentumBase
const momentum_type & momentumBase() const
access to underlying base type (I4Momentum-like)
Definition
ParticleImpl.h:393
ParticleImpl::particleBase
const particle_type & particleBase() const
access to underlying base type (IParticle-like)
Definition
ParticleImpl.h:403
msg
MsgStream & msg
Definition
testRead.cxx:32
Generated on
for ATLAS Offline Software by
1.17.0