ATLAS Offline Software
Loading...
Searching...
No Matches
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
23
24
25void
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
34void
35HepLorentzVectorCnv_p1::transToPers( const CLHEP::HepLorentzVector* trans,
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}
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...
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...