Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
v
w
x
z
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
GitLab
LXR
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Simulation
G4Sim
MCTruth
src
TrackInformation.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 "
MCTruth/TrackInformation.h
"
6
#include "
AtlasHepMC/GenEvent.h
"
7
#include "
AtlasHepMC/GenParticle.h
"
8
#include "
AtlasHepMC/GenVertex.h
"
9
10
TrackInformation::TrackInformation
()
11
: m_regenerationNr(0)
12
, m_currentGenParticle(nullptr)
13
, m_theBaseISFParticle(nullptr)
14
, m_returnedToISF(false)
15
{
16
}
17
18
TrackInformation::TrackInformation
(
HepMC::GenParticlePtr
p
,
ISF::ISFParticle
* baseIsp)
19
: m_regenerationNr(0)
20
, m_currentGenParticle(
p
)
21
, m_theBaseISFParticle(baseIsp)
22
, m_returnedToISF(false)
23
{
24
}
25
26
int
TrackInformation::GetParticleBarcode
()
const
27
{
28
if
(m_barcode !=
HepMC::INVALID_PARTICLE_BARCODE
)
return
m_barcode;
29
if
(
m_currentGenParticle
) {
30
m_barcode =
HepMC::barcode
(
m_currentGenParticle
);
31
return
m_barcode;
32
}
33
return
HepMC::UNDEFINED_ID
;
34
}
35
36
int
TrackInformation::GetParticleUniqueID
()
const
37
{
38
if
(m_uniqueID !=
HepMC::INVALID_PARTICLE_BARCODE
)
return
m_uniqueID;
39
if
(
m_currentGenParticle
) {
40
HepMC::ConstGenParticlePtr
particle
=
m_currentGenParticle
;
41
m_uniqueID =
HepMC::uniqueID
(
particle
);
42
return
m_uniqueID;
43
}
44
return
HepMC::UNDEFINED_ID
;
45
}
46
47
int
TrackInformation::GetParticleStatus
()
const
48
{
49
if
(
m_currentGenParticle
) {
50
return
m_currentGenParticle
->status();
51
}
52
return
0;
53
}
54
55
void
TrackInformation::SetCurrentGenParticle
(
HepMC::GenParticlePtr
p
)
56
{
57
m_currentGenParticle
=
p
;
58
m_barcode =
HepMC::INVALID_PARTICLE_BARCODE
;
59
m_uniqueID =
HepMC::INVALID_PARTICLE_BARCODE
;
60
}
61
62
void
TrackInformation::SetBaseISFParticle
(
ISF::ISFParticle
*
p
)
63
{
64
m_theBaseISFParticle
=
p
;
65
}
Trk::ParticleSwitcher::particle
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
Definition:
ParticleHypothesis.h:76
GenEvent.h
TrackInformation::m_currentGenParticle
HepMC::GenParticlePtr m_currentGenParticle
Definition:
TrackInformation.h:103
TrackInformation::SetCurrentGenParticle
virtual void SetCurrentGenParticle(HepMC::GenParticlePtr) override
set m_currentGenParticle, the pointer to the GenParticle corresponding to the current G4Track.
Definition:
TrackInformation.cxx:55
TrackInformation::SetBaseISFParticle
virtual void SetBaseISFParticle(ISF::ISFParticle *) override
set the pointer to the ISFParticle corresponding to the current G4Track.
Definition:
TrackInformation.cxx:62
GenVertex.h
HepMC::GenParticlePtr
GenParticle * GenParticlePtr
Definition:
GenParticle.h:37
ISF::ISFParticle
Definition:
ISFParticle.h:42
TrackInformation::GetParticleUniqueID
virtual int GetParticleUniqueID() const override
Definition:
TrackInformation.cxx:36
HepMC::INVALID_PARTICLE_BARCODE
constexpr int INVALID_PARTICLE_BARCODE
Definition:
MagicNumbers.h:54
GenParticle.h
python.utils.AtlRunQueryDQUtils.p
p
Definition:
AtlRunQueryDQUtils.py:210
HepMC::barcode
int barcode(const T *p)
Definition:
Barcode.h:16
TrackInformation::TrackInformation
TrackInformation()
Definition:
TrackInformation.cxx:10
HepMC::uniqueID
int uniqueID(const T &p)
Definition:
MagicNumbers.h:116
HepMC::UNDEFINED_ID
constexpr int UNDEFINED_ID
Definition:
MagicNumbers.h:56
HepMC::ConstGenParticlePtr
const GenParticle * ConstGenParticlePtr
Definition:
GenParticle.h:38
TrackInformation.h
TrackInformation::GetParticleBarcode
virtual int GetParticleBarcode() const override
Definition:
TrackInformation.cxx:26
TrackInformation::GetParticleStatus
virtual int GetParticleStatus() const override
Definition:
TrackInformation.cxx:47
TrackInformation::m_theBaseISFParticle
ISF::ISFParticle * m_theBaseISFParticle
Definition:
TrackInformation.h:106
Generated on Mon Mar 31 2025 21:20:53 for ATLAS Offline Software by
1.8.18