ATLAS Offline Software
Simulation
G4Utilities
G4Ancillary
G4AncillarySimEvent
src
ScintillatorHit.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
// ScintillatorHit.h
7
// Implementation file for class ScintillatorHit
8
//
9
// Author Thomas Kittelmann <kittel@nbi.dk>
11
#include "
G4AncillarySimEvent/ScintillatorHit.h
"
12
13
// Default constructor needed by athenaroot
14
ScintillatorHit::ScintillatorHit
() :
15
m_volNumber(-999),
16
m_particleEncoding(0),
17
m_kineticEnergy(0),
18
m_energyDeposit(0),
19
m_preStepX(0),
20
m_preStepY(0),
21
m_preStepZ(0),
22
m_postStepX(0),
23
m_postStepY(0),
24
m_postStepZ(0),
25
m_globalPreStepX(0),
26
m_globalPreStepY(0),
27
m_globalPreStepZ(0),
28
m_globalPostStepX(0),
29
m_globalPostStepY(0),
30
m_globalPostStepZ(0),
31
m_globalTime(0),
32
m_partLink() {}
33
34
ScintillatorHit::~ScintillatorHit
() {}
35
36
// Constructor
37
ScintillatorHit::ScintillatorHit
(
const
int
volNumber,
38
const
int
particleEncoding,
39
const
float
kineticEnergy,
40
const
float
energyDeposit
,
41
const
float
preStepX,
42
const
float
preStepY,
43
const
float
preStepZ,
44
const
float
postStepX,
45
const
float
postStepY,
46
const
float
postStepZ,
47
const
float
globalPreStepX,
48
const
float
globalPreStepY,
49
const
float
globalPreStepZ,
50
const
float
globalPostStepX,
51
const
float
globalPostStepY,
52
const
float
globalPostStepZ,
53
const
float
globalTime,
54
const
int
track
) :
55
m_volNumber(volNumber),
56
m_particleEncoding(particleEncoding),
57
m_kineticEnergy(kineticEnergy),
58
m_energyDeposit(
energyDeposit
),
59
m_preStepX(preStepX),
60
m_preStepY(preStepY),
61
m_preStepZ(preStepZ),
62
m_postStepX(postStepX),
63
m_postStepY(postStepY),
64
m_postStepZ(postStepZ),
65
m_globalPreStepX(globalPreStepX),
66
m_globalPreStepY(globalPreStepY),
67
m_globalPreStepZ(globalPreStepZ),
68
m_globalPostStepX(globalPostStepX),
69
m_globalPostStepY(globalPostStepY),
70
m_globalPostStepZ(globalPostStepZ),
71
m_globalTime(globalTime),
72
m_partLink(
track
, 0,
HepMcParticleLink
::IS_POSITION,
HepMcParticleLink
::IS_BARCODE)
// FIXME barcode-based syntax
73
{}
74
75
int
ScintillatorHit::truthBarcode
()
const
{
76
return
HepMC::barcode
(
m_partLink
);
// FIXME barcode-based
77
}
78
79
int
ScintillatorHit::truthID
()
const
80
{
81
return
m_partLink
.
id
();
82
}
ScintillatorHit::truthID
int truthID() const
Definition:
ScintillatorHit.cxx:79
ScintillatorHit::ScintillatorHit
ScintillatorHit()
Definition:
ScintillatorHit.cxx:14
ScintillatorHit::~ScintillatorHit
virtual ~ScintillatorHit()
Definition:
ScintillatorHit.cxx:34
ScintillatorHit.h
HepMcParticleLink::id
int id() const
Return the id of the target particle.
Definition:
HepMcParticleLink.cxx:291
Trk::energyDeposit
@ energyDeposit
Definition:
MeasurementType.h:32
HepMcParticleLink
a link optimized in size for a GenParticle in a McEventCollection
Definition:
HepMcParticleLink.h:72
HepMC::barcode
int barcode(const T *p)
Definition:
Barcode.h:16
ScintillatorHit::truthBarcode
int truthBarcode() const
Definition:
ScintillatorHit.cxx:75
ScintillatorHit::m_partLink
HepMcParticleLink m_partLink
Definition:
ScintillatorHit.h:91
xAOD::track
@ track
Definition:
TrackingPrimitives.h:512
Generated on Mon Dec 23 2024 21:17:43 for ATLAS Offline Software by
1.8.18