ATLAS Offline Software
Loading...
Searching...
No Matches
InnerDetector
InDetSimEvent
src
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
5
#include "
InDetSimEvent/TRTUncompressedHit.h
"
6
7
8
// Called by TRTSensitiveDetector::ProcessHits
9
10
TRTUncompressedHit::TRTUncompressedHit
(
int
hit,
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
27
TRTUncompressedHit::TRTUncompressedHit
(
int
hit,
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
//
46
TRTUncompressedHit::TRTUncompressedHit
( ) :
47
m_hitID
(0xffff),
48
m_particleEncoding
(0),
49
m_kineticEnergy
(0.0),
50
m_energyDeposit
(0.0),
51
m_preStepX
(0.0),
m_preStepY
(0.0),
m_preStepZ
(0.0),
52
m_postStepX
(0.0),
m_postStepY
(0.0),
m_postStepZ
(0.0),
53
m_globalTime
(0.0)
54
{
55
}
56
57
// truth barcode of the track which released this energy:
58
int
TRTUncompressedHit::truthBarcode
()
const
59
{
60
return
m_partLink
.barcode();
61
}
62
63
// GenParticle::id of the track which released this energy:
64
int
TRTUncompressedHit::truthID
()
const
65
{
66
return
m_partLink
.id();
67
}
TRTUncompressedHit.h
HepMcParticleLink
a link optimized in size for a GenParticle in a McEventCollection
Definition
HepMcParticleLink.h:72
TRTUncompressedHit::m_globalTime
float m_globalTime
Definition
TRTUncompressedHit.h:101
TRTUncompressedHit::m_hitID
int m_hitID
Definition
TRTUncompressedHit.h:89
TRTUncompressedHit::m_postStepY
float m_postStepY
Definition
TRTUncompressedHit.h:99
TRTUncompressedHit::m_partLink
HepMcParticleLink m_partLink
Definition
TRTUncompressedHit.h:91
TRTUncompressedHit::m_postStepX
float m_postStepX
Definition
TRTUncompressedHit.h:98
TRTUncompressedHit::m_preStepY
float m_preStepY
Definition
TRTUncompressedHit.h:96
TRTUncompressedHit::truthID
int truthID() const
Definition
TRTUncompressedHit.cxx:64
TRTUncompressedHit::m_particleEncoding
int m_particleEncoding
Definition
TRTUncompressedHit.h:92
TRTUncompressedHit::m_energyDeposit
float m_energyDeposit
Definition
TRTUncompressedHit.h:94
TRTUncompressedHit::m_preStepZ
float m_preStepZ
Definition
TRTUncompressedHit.h:97
TRTUncompressedHit::m_postStepZ
float m_postStepZ
Definition
TRTUncompressedHit.h:100
TRTUncompressedHit::TRTUncompressedHit
TRTUncompressedHit()
Definition
TRTUncompressedHit.cxx:46
TRTUncompressedHit::truthBarcode
int truthBarcode() const
Definition
TRTUncompressedHit.cxx:58
TRTUncompressedHit::m_preStepX
float m_preStepX
Definition
TRTUncompressedHit.h:95
TRTUncompressedHit::m_kineticEnergy
float m_kineticEnergy
Definition
TRTUncompressedHit.h:93
Generated on
for ATLAS Offline Software by
1.14.0