ATLAS Offline Software
P4ImplPtEtaPhiMCnv_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 // 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 
25 void
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 
37 void
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 }
P4ImplPtEtaPhiMCnv_p2::transToPers
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...
Definition: P4ImplPtEtaPhiMCnv_p2.cxx:38
P4ImplPtEtaPhiMCnv_p2.h
P4ImplPtEtaPhiM::eta
double eta() const
Definition: P4ImplPtEtaPhiM.h:197
P4ImplPtEtaPhiM::pt
double pt() const
Definition: P4ImplPtEtaPhiM.h:207
P4PtEtaPhiMFloat_p2::m_phi
float m_phi
Definition: P4PtEtaPhiMFloat_p2.h:41
P4ImplPtEtaPhiM.h
P4ImplPtEtaPhiM::setEta
void setEta(const double theEta)
set eta data member
Definition: P4ImplPtEtaPhiM.h:225
P4PtEtaPhiMFloat_p2::m_eta
float m_eta
Definition: P4PtEtaPhiMFloat_p2.h:40
P4ImplPtEtaPhiM
Definition: P4ImplPtEtaPhiM.h:41
P4ImplPtEtaPhiM::setPhi
void setPhi(const double thePhi)
set phi data member
Definition: P4ImplPtEtaPhiM.h:230
P4PtEtaPhiMFloat_p2::m_pt
float m_pt
Definition: P4PtEtaPhiMFloat_p2.h:39
P4ImplPtEtaPhiM::setPt
void setPt(const double thePt)
set pt data member
Definition: P4ImplPtEtaPhiM.h:220
P4ImplPtEtaPhiMCnv_p2::persToTrans
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...
Definition: P4ImplPtEtaPhiMCnv_p2.cxx:26
P4ImplPtEtaPhiM::m
double m() const
{@ a la I4Momentum -like interface
Definition: P4ImplPtEtaPhiM.h:192
P4ImplPtEtaPhiM::phi
double phi() const
Definition: P4ImplPtEtaPhiM.h:202
P4ImplPtEtaPhiM::setM
void setM(const double theM)
set mass data member
Definition: P4ImplPtEtaPhiM.h:235
P4PtEtaPhiMFloat_p2::m_mass
float m_mass
Definition: P4PtEtaPhiMFloat_p2.h:42
P4PtEtaPhiMFloat_p2
Definition: P4PtEtaPhiMFloat_p2.h:23
readCCLHist.float
float
Definition: readCCLHist.py:83