ATLAS Offline Software
Loading...
Searching...
No Matches
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
23
24
25void
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
37void
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}
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...
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...
P4PxPyPzE is a class with 4-momentum behavior, for which Px, Py, Pz and M are data members.
Definition P4PxPyPzE.h:29
virtual double e() const
get energy data member
Definition P4PxPyPzE.h:132
virtual void setE(double theE)
set energy data member
Definition P4PxPyPzE.h:144
virtual void setPz(double thePz)
set Pz data member
Definition P4PxPyPzE.h:141
virtual void setPx(double thePx)
set Px data member
Definition P4PxPyPzE.h:135
virtual void setPy(double thePy)
set Py data member
Definition P4PxPyPzE.h:138
virtual double px() const
get px data member
Definition P4PxPyPzE.h:122
virtual double py() const
get py data member
Definition P4PxPyPzE.h:126
virtual double pz() const
get pz data member
Definition P4PxPyPzE.h:129