ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
EventCommonTPCnv
src
HepLorentzVectorCnv_p1.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
// HepLorentzVectorCnv_p1.cxx
8
// Implementation file for class HepLorentzVectorCnv_p1
9
// Author: S.Binet<binet@cern.ch>
11
12
13
// STL includes
14
15
// Framework includes
16
#include "GaudiKernel/MsgStream.h"
17
18
// CLHEP includes
19
#include "CLHEP/Vector/LorentzVector.h"
20
21
// EventCommonTPCnv includes
22
#include "
EventCommonTPCnv/HepLorentzVectorCnv_p1.h
"
23
24
25
void
26
HepLorentzVectorCnv_p1::persToTrans
(
const
HepLorentzVector_p1
* pers,
27
CLHEP::HepLorentzVector* trans,
28
MsgStream &
/*log*/
)
const
29
{
30
trans->set( pers->
m_px
, pers->
m_py
, pers->
m_pz
, pers->
m_ene
);
31
return
;
32
}
33
34
void
35
HepLorentzVectorCnv_p1::transToPers
(
const
CLHEP::HepLorentzVector* trans,
36
HepLorentzVector_p1
* pers,
37
MsgStream &
/*log*/
)
const
38
{
39
pers->
m_px
= trans->px();
40
pers->
m_py
= trans->py();
41
pers->
m_pz
= trans->pz();
42
pers->
m_ene
= trans->e() ;
43
return
;
44
}
HepLorentzVectorCnv_p1.h
HepLorentzVectorCnv_p1::persToTrans
virtual void persToTrans(const HepLorentzVector_p1 *persObj, CLHEP::HepLorentzVector *transObj, MsgStream &log) const override
Method creating the transient representation of HepLorentzVector from its persistent representation H...
Definition
HepLorentzVectorCnv_p1.cxx:26
HepLorentzVectorCnv_p1::transToPers
virtual void transToPers(const CLHEP::HepLorentzVector *transObj, HepLorentzVector_p1 *persObj, MsgStream &log) const override
Method creating the persistent representation HepLorentzVector_p1 from its transient representation H...
Definition
HepLorentzVectorCnv_p1.cxx:35
HepLorentzVector_p1
Definition
HepLorentzVector_p1.h:22
HepLorentzVector_p1::m_px
double m_px
Definition
HepLorentzVector_p1.h:38
HepLorentzVector_p1::m_pz
double m_pz
Definition
HepLorentzVector_p1.h:40
HepLorentzVector_p1::m_ene
double m_ene
Definition
HepLorentzVector_p1.h:41
HepLorentzVector_p1::m_py
double m_py
Definition
HepLorentzVector_p1.h:39
Generated on
for ATLAS Offline Software by
1.17.0