ATLAS Offline Software
Loading...
Searching...
No Matches
P4ImplPtEtaPhiMCnv_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// P4ImplPtEtaPhiMCnv_p2.cxx
8// Implementation file for class P4ImplPtEtaPhiMCnv_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
20
21// EventCommonTPCnv includes
23
24
25void
27 P4ImplPtEtaPhiM* 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, P4ImplPtEtaPhiM *transObj, MsgStream &log) const override
Method creating the transient representation of P4ImplPtEtaPhiM from its persistent representation P4...
virtual void transToPers(const P4ImplPtEtaPhiM *transObj, P4PtEtaPhiMFloat_p2 *persObj, MsgStream &log) const override
Method creating the persistent representation P4PtEtaPhiMFloat_p2 from its transient representation P...
P4ImplPtEtaPhiM is a base class for classes with 4-momentum behavior, for which pt,...
void setM(const double theM)
set mass data member
double eta() const
void setPhi(const double thePhi)
set phi data member
double phi() const
double pt() const
void setEta(const double theEta)
set eta data member
void setPt(const double thePt)
set pt data member
double m() const
{@ a la I4Momentum -like interface