ATLAS Offline Software
P4ImplEEtaPhiMCnv_p2.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 // 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 
25 void
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 
37 void
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 }
P4ImplEEtaPhiMCnv_p2.h
P4ImplEEtaPhiM::setM
void setM(const double theM)
set mass data member
Definition: P4ImplEEtaPhiM.h:236
P4ImplEEtaPhiM.h
P4ImplEEtaPhiM::eta
double eta() const
Definition: P4ImplEEtaPhiM.h:201
P4ImplEEtaPhiM::setEta
void setEta(const double theEta)
set eta data member
Definition: P4ImplEEtaPhiM.h:226
P4EEtaPhiMFloat_p2::m_m
float m_m
Definition: P4EEtaPhiMFloat_p2.h:38
P4ImplEEtaPhiM
Definition: P4ImplEEtaPhiM.h:40
P4ImplEEtaPhiM::phi
double phi() const
Definition: P4ImplEEtaPhiM.h:206
P4EEtaPhiMFloat_p2::m_eta
float m_eta
Definition: P4EEtaPhiMFloat_p2.h:36
P4ImplEEtaPhiMCnv_p2::transToPers
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...
Definition: P4ImplEEtaPhiMCnv_p2.cxx:38
P4EEtaPhiMFloat_p2::m_phi
float m_phi
Definition: P4EEtaPhiMFloat_p2.h:37
P4EEtaPhiMFloat_p2::m_e
float m_e
Definition: P4EEtaPhiMFloat_p2.h:35
P4ImplEEtaPhiMCnv_p2::persToTrans
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...
Definition: P4ImplEEtaPhiMCnv_p2.cxx:26
P4ImplEEtaPhiM::m
double m() const
{@ a la I4Momentum -like interface
Definition: P4ImplEEtaPhiM.h:196
P4ImplEEtaPhiM::setE
void setE(const double theE)
set energy data member
Definition: P4ImplEEtaPhiM.h:221
P4ImplEEtaPhiM::setPhi
void setPhi(const double thePhi)
set phi data member
Definition: P4ImplEEtaPhiM.h:231
readCCLHist.float
float
Definition: readCCLHist.py:83
P4EEtaPhiMFloat_p2
Definition: P4EEtaPhiMFloat_p2.h:23
P4ImplEEtaPhiM::e
double e() const
Definition: P4ImplEEtaPhiM.h:211