ATLAS Offline Software
Loading...
Searching...
No Matches
TRT_HitCnv_p2.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
6#include "Identifier/Identifier.h"
8
11
12
13void
15 MsgStream &log)
16{
17 HepMcParticleLinkCnv_p2 HepMcPLCnv;
19 HepMcPLCnv.persToTrans(&(persObj->m_partLink),&link, log);
20
21 *transObj = TRTUncompressedHit (persObj-> hitID,
22 link,
23 persObj->particleEncoding,
24 persObj->kineticEnergy,
25 persObj->energyDeposit,
26 persObj->preStepX,
27 persObj->preStepY,
28 persObj->preStepZ,
29 persObj->postStepX,
30 persObj->postStepY,
31 persObj->postStepZ,
32 persObj->globalTime);
33}
34
35
36void
38 MsgStream &log)
39{
40 // if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "TRT_HitCnv_p2::transToPers called " << endmsg;
41 HepMcParticleLinkCnv_p2 HepMcPLCnv;
42 persObj->hitID = transObj-> GetHitID();
43 HepMcPLCnv.transToPers(&(transObj->particleLink()),&(persObj->m_partLink), log);
44 persObj->particleEncoding = transObj->GetParticleEncoding();
45 persObj->kineticEnergy = transObj->GetKineticEnergy();
46 persObj->energyDeposit = transObj->GetEnergyDeposit();
47
48 persObj->preStepX = transObj->GetPreStepX();
49 persObj->preStepY = transObj->GetPreStepY();
50 persObj->preStepZ = transObj->GetPreStepZ();
51
52 persObj->postStepX = transObj->GetPostStepX();
53 persObj->postStepY = transObj->GetPostStepY();
54 persObj->postStepZ = transObj->GetPostStepZ();
55 persObj->globalTime = transObj->GetGlobalTime();
56}
virtual void persToTrans(const HepMcParticleLink_p2 *persObj, HepMcParticleLink *transObj, MsgStream &msg) const override
Method creating the transient representation of HepMcParticleLink from its persistent representation ...
virtual void transToPers(const HepMcParticleLink *transObj, HepMcParticleLink_p2 *persObj, MsgStream &msg) const override
Method creating the persistent representation HepMcParticleLink_p2 from its transient representation ...
float GetPostStepY() const
const HepMcParticleLink & particleLink() const
float GetPostStepZ() const
float GetPreStepZ() const
float GetGlobalTime() const
int GetParticleEncoding() const
float GetPreStepY() const
float GetEnergyDeposit() const
float GetPreStepX() const
float GetPostStepX() const
float GetKineticEnergy() const
virtual void persToTrans(const TRT_Hit_p2 *persObj, TRTUncompressedHit *transObj, MsgStream &log)
virtual void transToPers(const TRTUncompressedHit *transObj, TRT_Hit_p2 *persObj, MsgStream &log)
float kineticEnergy
Definition TRT_Hit_p2.h:15
float postStepY
Definition TRT_Hit_p2.h:21
float preStepX
Definition TRT_Hit_p2.h:17
int particleEncoding
Definition TRT_Hit_p2.h:14
float energyDeposit
Definition TRT_Hit_p2.h:16
float postStepX
Definition TRT_Hit_p2.h:20
float globalTime
Definition TRT_Hit_p2.h:23
HepMcParticleLink_p2 m_partLink
Definition TRT_Hit_p2.h:13
float preStepZ
Definition TRT_Hit_p2.h:19
float preStepY
Definition TRT_Hit_p2.h:18
float postStepZ
Definition TRT_Hit_p2.h:22