ATLAS Offline Software
P4PtEtaPhiMCnv_p1.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 // P4PtEtaPhiMCnv_p1.cxx
8 // Implementation file for class P4PtEtaPhiMCnv_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/P4PtEtaPhiM.h"
20 
21 // EventCommonTPCnv includes
23 
24 
25 void
27  P4PtEtaPhiM* transObj,
28  MsgStream &/*log*/ ) const
29 {
30  transObj->setPt (persObj->m_pt);
31  transObj->setEta (persObj->m_eta);
32  transObj->setPhi (persObj->m_phi);
33  transObj->setM (persObj->m_mass);
34  return;
35 }
36 
37 void
39  P4PtEtaPhiM_p1* persObj,
40  MsgStream &/*log*/ ) const
41 {
42  persObj->m_pt = transObj->pt();
43  persObj->m_eta = transObj->eta();
44  persObj->m_phi = transObj->phi();
45  persObj->m_mass = transObj->m();
46  return;
47 }
P4PtEtaPhiM_p1::m_eta
float m_eta
Definition: P4PtEtaPhiM_p1.h:40
P4PtEtaPhiMCnv_p1.h
P4PtEtaPhiM_p1::m_pt
float m_pt
Definition: P4PtEtaPhiM_p1.h:39
P4PtEtaPhiM_p1::m_mass
float m_mass
Definition: P4PtEtaPhiM_p1.h:42
P4PtEtaPhiM::setM
virtual void setM(double theM)
set mass data member
Definition: P4PtEtaPhiM.h:124
P4PtEtaPhiM::phi
virtual double phi() const
get phi data member
Definition: P4PtEtaPhiM.h:109
P4PtEtaPhiM::setPt
virtual void setPt(double thePt)
set pt data member
Definition: P4PtEtaPhiM.h:115
P4PtEtaPhiM::setPhi
virtual void setPhi(double thePhi)
set phi data member
Definition: P4PtEtaPhiM.h:121
P4PtEtaPhiM::m
virtual double m() const
get mass data member
Definition: P4PtEtaPhiM.h:112
P4PtEtaPhiM::setEta
virtual void setEta(double theEta)
set eta data member
Definition: P4PtEtaPhiM.h:118
P4PtEtaPhiM::pt
virtual double pt() const
get pt data member
Definition: P4PtEtaPhiM.h:103
P4PtEtaPhiM_p1::m_phi
float m_phi
Definition: P4PtEtaPhiM_p1.h:41
P4PtEtaPhiM::eta
virtual double eta() const
get eta data member
Definition: P4PtEtaPhiM.h:106
P4PtEtaPhiMCnv_p1::persToTrans
virtual void persToTrans(const P4PtEtaPhiM_p1 *persObj, P4PtEtaPhiM *transObj, MsgStream &log) const override
Method creating the transient representation of P4PtEtaPhiM from its persistent representation P4PtEt...
Definition: P4PtEtaPhiMCnv_p1.cxx:26
P4PtEtaPhiM_p1
Definition: P4PtEtaPhiM_p1.h:23
P4PtEtaPhiMCnv_p1::transToPers
virtual void transToPers(const P4PtEtaPhiM *transObj, P4PtEtaPhiM_p1 *persObj, MsgStream &log) const override
Method creating the persistent representation P4PtEtaPhiM_p1 from its transient representation P4PtEt...
Definition: P4PtEtaPhiMCnv_p1.cxx:38
P4PtEtaPhiM.h
P4PtEtaPhiM
Definition: P4PtEtaPhiM.h:25