ATLAS Offline Software
Loading...
Searching...
No Matches
P4EEtaPhiMCnv_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// P4EEtaPhiMCnv_p2.cxx
8// Implementation file for class P4EEtaPhiMCnv_p2
9// Author: I. Vukotic <ivukotic@cern.ch>
11
12
13// STL includes
14
15// Framework includes
16#include "GaudiKernel/MsgStream.h"
17
18// NavFourMom includes
19#include "FourMom/P4EEtaPhiM.h"
20
21// EventCommonTPCnv includes
23
24
25void
27 P4EEtaPhiM* transObj,
28 MsgStream &/*log*/ ) const
29{
30 transObj->setE ((double) persObj->m_e);
31 transObj->setEta ((double) persObj->m_eta);
32 transObj->setPhi ((double) persObj->m_phi);
33 transObj->setM ((double) persObj->m_m);
34 return;
35}
36
37void
39 P4EEtaPhiMFloat_p2* persObj,
40 MsgStream &/*log*/ ) const
41{
42 persObj->m_e = (float) transObj->e();
43 persObj->m_eta = (float) transObj->eta();
44 persObj->m_phi = (float) transObj->phi();
45 persObj->m_m = (float) transObj->m();
46 return;
47}
48
virtual void transToPers(const P4EEtaPhiM *transObj, P4EEtaPhiMFloat_p2 *persObj, MsgStream &log) const override
Method creating the persistent representation P4EEtaPhiMFloat_p2 from its transient representation P4...
virtual void persToTrans(const P4EEtaPhiMFloat_p2 *persObj, P4EEtaPhiM *transObj, MsgStream &log) const override
Method creating the transient representation of P4EEtaPhiM from its persistent representation P4EEtaP...
virtual void setM(double theM)
set mass data member
Definition P4EEtaPhiM.h:123
virtual double e() const
get energy data member
Definition P4EEtaPhiM.h:102
virtual double phi() const
get phi data member
Definition P4EEtaPhiM.h:108
virtual void setEta(double theEta)
set eta data member
Definition P4EEtaPhiM.h:117
virtual void setE(double theE)
set energy data member
Definition P4EEtaPhiM.h:114
virtual double eta() const
get eta data member
Definition P4EEtaPhiM.h:105
virtual void setPhi(double thePhi)
set phi data member
Definition P4EEtaPhiM.h:120
virtual double m() const
get mass data member
Definition P4EEtaPhiM.h:111