ATLAS Offline Software
Loading...
Searching...
No Matches
P4ImplEEtaPhiMCnv_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// P4ImplEEtaPhiMCnv_p2.cxx
8// Implementation file for class P4ImplEEtaPhiMCnv_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 P4ImplEEtaPhiM* 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}
virtual void transToPers(const P4ImplEEtaPhiM *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, P4ImplEEtaPhiM *transObj, MsgStream &log) const override
Method creating the transient representation of P4ImplEEtaPhiM from its persistent representation P4E...
P4ImplEEtaPhiM is a base class for classes with 4-momentum behavior, for which E, eta,...
double m() const
{@ a la I4Momentum -like interface
double eta() const
double phi() const
void setEta(const double theEta)
set eta data member
void setE(const double theE)
set energy data member
void setM(const double theM)
set mass data member
void setPhi(const double thePhi)
set phi data member
double e() const