ATLAS Offline Software
Loading...
Searching...
No Matches
P4PtEtaPhiMCnv_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// P4PtEtaPhiMCnv_p2.cxx
8// Implementation file for class P4PtEtaPhiMCnv_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/P4PtEtaPhiM.h"
20
21// EventCommonTPCnv includes
23
24
25void
27 P4PtEtaPhiM* transObj,
28 MsgStream &/*log*/ ) const
29{
30 transObj->setPt ((double) persObj->m_pt);
31 transObj->setEta ((double) persObj->m_eta);
32 transObj->setPhi ((double) persObj->m_phi);
33 transObj->setM ((double) persObj->m_mass);
34 return;
35}
36
37void
39 P4PtEtaPhiMFloat_p2* persObj,
40 MsgStream &/*log*/ ) const
41{
42 persObj->m_pt = (float) transObj->pt();
43 persObj->m_eta = (float) transObj->eta();
44 persObj->m_phi = (float) transObj->phi();
45 persObj->m_mass = (float) transObj->m();
46 return;
47}
virtual void persToTrans(const P4PtEtaPhiMFloat_p2 *persObj, P4PtEtaPhiM *transObj, MsgStream &log) const override
Method creating the transient representation of P4PtEtaPhiM from its persistent representation P4PtEt...
virtual void transToPers(const P4PtEtaPhiM *transObj, P4PtEtaPhiMFloat_p2 *persObj, MsgStream &log) const override
Method creating the persistent representation P4PtEtaPhiMFloat_p2 from its transient representation P...
P4PtEtaPhiM is a class with 4-momentum behavior, for which Pt, Eta, Phi and M are data members.
Definition P4PtEtaPhiM.h:25
virtual double pt() const
get pt data member
virtual void setEta(double theEta)
set eta data member
virtual void setPt(double thePt)
set pt data member
virtual void setPhi(double thePhi)
set phi data member
virtual void setM(double theM)
set mass data member
virtual double eta() const
get eta data member
virtual double m() const
get mass data member
virtual double phi() const
get phi data member