ATLAS Offline Software
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 //
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:
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 }
Trk::ParticleSwitcher::particle
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
Definition: ParticleHypothesis.h:76
TRTUncompressedHit::truthID
int truthID() const
Definition: TRTUncompressedHit.cxx:64
TRTUncompressedHit::m_partLink
HepMcParticleLink m_partLink
Definition: TRTUncompressedHit.h:91
TRTUncompressedHit::truthBarcode
int truthBarcode() const
Definition: TRTUncompressedHit.cxx:58
TRTUncompressedHit::TRTUncompressedHit
TRTUncompressedHit()
Definition: TRTUncompressedHit.cxx:46
TRTUncompressedHit.h
CaloSwCorrections.time
def time(flags, cells_name, *args, **kw)
Definition: CaloSwCorrections.py:242
xAOD::track
@ track
Definition: TrackingPrimitives.h:512