ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
EventCommonTPCnv
src
P4PxPyPzECnv_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
// P4PxPyPzECnv_p1.cxx
8
// Implementation file for class P4PxPyPzECnv_p1
9
// Author: S.Binet<binet@cern.ch>
11
12
13
// STL includes
14
15
// Framework includes
16
#include "GaudiKernel/MsgStream.h"
17
18
// NavFourMom includes
19
#include "
FourMom/P4PxPyPzE.h
"
20
21
// EventCommonTPCnv includes
22
#include "
EventCommonTPCnv/P4PxPyPzECnv_p1.h
"
23
24
25
void
26
P4PxPyPzECnv_p1::persToTrans
(
const
P4PxPyPzE_p1
* persObj,
27
P4PxPyPzE
* transObj,
28
MsgStream &
/*log*/
)
const
29
{
30
transObj->
setPx
((
double
)persObj->
m_px
);
31
transObj->
setPy
((
double
)persObj->
m_py
);
32
transObj->
setPz
((
double
)persObj->
m_pz
);
33
transObj->
setE
((
double
)persObj->
m_ene
);
34
return
;
35
}
36
37
void
38
P4PxPyPzECnv_p1::transToPers
(
const
P4PxPyPzE
* transObj,
39
P4PxPyPzE_p1
* persObj,
40
MsgStream &
/*log*/
)
const
41
{
42
persObj->
m_px
= (float)transObj->
px
();
43
persObj->
m_py
= (float)transObj->
py
();
44
persObj->
m_pz
= (float)transObj->
pz
();
45
persObj->
m_ene
= (float)transObj->
e
();
46
return
;
47
}
P4PxPyPzECnv_p1.h
P4PxPyPzE.h
P4PxPyPzECnv_p1::transToPers
virtual void transToPers(const P4PxPyPzE *transObj, P4PxPyPzE_p1 *persObj, MsgStream &log) const override
Method creating the persistent representation P4PxPyPzE_p1 from its transient representation P4PxPyPz...
Definition
P4PxPyPzECnv_p1.cxx:38
P4PxPyPzECnv_p1::persToTrans
virtual void persToTrans(const P4PxPyPzE_p1 *persObj, P4PxPyPzE *transObj, MsgStream &log) const override
Method creating the transient representation of P4PxPyPzE from its persistent representation P4PxPyPz...
Definition
P4PxPyPzECnv_p1.cxx:26
P4PxPyPzE_p1
Definition
P4PxPyPzE_p1.h:23
P4PxPyPzE_p1::m_ene
float m_ene
Definition
P4PxPyPzE_p1.h:42
P4PxPyPzE_p1::m_px
float m_px
Definition
P4PxPyPzE_p1.h:39
P4PxPyPzE_p1::m_py
float m_py
Definition
P4PxPyPzE_p1.h:40
P4PxPyPzE_p1::m_pz
float m_pz
Definition
P4PxPyPzE_p1.h:41
P4PxPyPzE
P4PxPyPzE is a class with 4-momentum behavior, for which Px, Py, Pz and M are data members.
Definition
P4PxPyPzE.h:29
P4PxPyPzE::e
virtual double e() const
get energy data member
Definition
P4PxPyPzE.h:132
P4PxPyPzE::setE
virtual void setE(double theE)
set energy data member
Definition
P4PxPyPzE.h:144
P4PxPyPzE::setPz
virtual void setPz(double thePz)
set Pz data member
Definition
P4PxPyPzE.h:141
P4PxPyPzE::setPx
virtual void setPx(double thePx)
set Px data member
Definition
P4PxPyPzE.h:135
P4PxPyPzE::setPy
virtual void setPy(double thePy)
set Py data member
Definition
P4PxPyPzE.h:138
P4PxPyPzE::px
virtual double px() const
get px data member
Definition
P4PxPyPzE.h:122
P4PxPyPzE::py
virtual double py() const
get py data member
Definition
P4PxPyPzE.h:126
P4PxPyPzE::pz
virtual double pz() const
get pz data member
Definition
P4PxPyPzE.h:129
Generated on
for ATLAS Offline Software by
1.17.0