ATLAS Offline Software
P4EEtaPhiMCnv_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 // P4EEtaPhiMCnv_p1.cxx
8 // Implementation file for class P4EEtaPhiMCnv_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/P4EEtaPhiM.h"
20 
21 // EventCommonTPCnv includes
23 
24 
25 void
27  P4EEtaPhiM* 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  P4EEtaPhiM_p1* 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 }
48 
P4EEtaPhiM_p1::m_m
float m_m
Definition: P4EEtaPhiM_p1.h:42
P4EEtaPhiM::setEta
virtual void setEta(double theEta)
set eta data member
Definition: P4EEtaPhiM.h:117
P4EEtaPhiMCnv_p1::transToPers
virtual void transToPers(const P4EEtaPhiM *transObj, P4EEtaPhiM_p1 *persObj, MsgStream &log) const override
Method creating the persistent representation P4EEtaPhiM_p1 from its transient representation P4EEtaP...
Definition: P4EEtaPhiMCnv_p1.cxx:38
P4EEtaPhiM
Definition: P4EEtaPhiM.h:25
P4EEtaPhiM_p1::m_e
float m_e
Definition: P4EEtaPhiM_p1.h:39
P4EEtaPhiM_p1::m_phi
float m_phi
Definition: P4EEtaPhiM_p1.h:41
P4EEtaPhiM::e
virtual double e() const
get energy data member
Definition: P4EEtaPhiM.h:102
P4EEtaPhiMCnv_p1.h
P4EEtaPhiM::eta
virtual double eta() const
get eta data member
Definition: P4EEtaPhiM.h:105
P4EEtaPhiM::m
virtual double m() const
get mass data member
Definition: P4EEtaPhiM.h:111
P4EEtaPhiMCnv_p1::persToTrans
virtual void persToTrans(const P4EEtaPhiM_p1 *persObj, P4EEtaPhiM *transObj, MsgStream &log) const override
Method creating the transient representation of P4EEtaPhiM from its persistent representation P4EEtaP...
Definition: P4EEtaPhiMCnv_p1.cxx:26
P4EEtaPhiM::setPhi
virtual void setPhi(double thePhi)
set phi data member
Definition: P4EEtaPhiM.h:120
P4EEtaPhiM.h
P4EEtaPhiM::phi
virtual double phi() const
get phi data member
Definition: P4EEtaPhiM.h:108
P4EEtaPhiM::setM
virtual void setM(double theM)
set mass data member
Definition: P4EEtaPhiM.h:123
P4EEtaPhiM::setE
virtual void setE(double theE)
set energy data member
Definition: P4EEtaPhiM.h:114
P4EEtaPhiM_p1::m_eta
float m_eta
Definition: P4EEtaPhiM_p1.h:40
readCCLHist.float
float
Definition: readCCLHist.py:83
P4EEtaPhiM_p1
Definition: P4EEtaPhiM_p1.h:23