ATLAS Offline Software
Loading...
Searching...
No Matches
TRT_HitCnv_p1.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_p1 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_p1::transToPers called " << endmsg;
41 HepMcParticleLinkCnv_p1 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
57}
virtual void persToTrans(const HepMcParticleLink_p1 *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_p1 *persObj, MsgStream &msg) const override
Method creating the persistent representation HepMcParticleLink_p1 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_p1 *persObj, TRTUncompressedHit *transObj, MsgStream &log)
virtual void transToPers(const TRTUncompressedHit *transObj, TRT_Hit_p1 *persObj, MsgStream &log)
float energyDeposit
Definition TRT_Hit_p1.h:16
HepMcParticleLink_p1 m_partLink
Definition TRT_Hit_p1.h:13
float postStepX
Definition TRT_Hit_p1.h:20
float preStepY
Definition TRT_Hit_p1.h:18
float postStepY
Definition TRT_Hit_p1.h:21
float preStepZ
Definition TRT_Hit_p1.h:19
int particleEncoding
Definition TRT_Hit_p1.h:14
float globalTime
Definition TRT_Hit_p1.h:23
float kineticEnergy
Definition TRT_Hit_p1.h:15
float postStepZ
Definition TRT_Hit_p1.h:22
float preStepX
Definition TRT_Hit_p1.h:17