ATLAS Offline Software
Loading...
Searching...
No Matches
TRTUncompressedHit.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7
8 // Called by TRTSensitiveDetector::ProcessHits
9
11 int track,
12 int particle,
13 float kinEnergy,
14 float eneDeposit,
15 float preX, float preY, float preZ,
16 float postX, float postY, float postZ,
17 float time):
18 m_hitID(hit),
19 m_partLink(track,0,HepMcParticleLink::IS_POSITION,HepMcParticleLink::IS_BARCODE), // FIXME barcode-based
20 m_particleEncoding(particle),
21 m_kineticEnergy(kinEnergy),
22 m_energyDeposit(eneDeposit),
23 m_preStepX(preX), m_preStepY(preY), m_preStepZ(preZ),
24 m_postStepX(postX), m_postStepY(postY), m_postStepZ(postZ),
25 m_globalTime(time) {}
26
28 const HepMcParticleLink& partlink,
29 int particle,
30 float kinEnergy,
31 float eneDeposit,
32 float preX, float preY, float preZ,
33 float postX, float postY, float postZ,
34 float time):
35 m_hitID(hit),
36 m_partLink(partlink),
37 m_particleEncoding(particle),
38 m_kineticEnergy(kinEnergy),
39 m_energyDeposit(eneDeposit),
40 m_preStepX(preX), m_preStepY(preY), m_preStepZ(preZ),
41 m_postStepX(postX), m_postStepY(postY), m_postStepZ(postZ),
42 m_globalTime(time) {}
43
44// Default constructor needed by athenaroot/athenapool
45//
56
57 // truth barcode of the track which released this energy:
59{
60 return m_partLink.barcode();
61}
62
63// GenParticle::id of the track which released this energy:
65{
66 return m_partLink.id();
67}
HepMcParticleLink m_partLink