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
PrimaryParticleInformation.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/PrimaryParticleInformation.h
"
6
#include "
AtlasHepMC/GenParticle.h
"
7
8
PrimaryParticleInformation::PrimaryParticleInformation
()
9
{
10
}
11
12
PrimaryParticleInformation::PrimaryParticleInformation
(
HepMC::GenParticlePtr
p
,
ISF::ISFParticle
* isp)
13
: m_theParticle(
p
)
14
, m_theISFParticle(isp)
15
{
16
}
17
18
int
PrimaryParticleInformation::GetParticleBarcode
()
const
19
{
20
if
(m_barcode !=
HepMC::INVALID_PARTICLE_BARCODE
)
return
m_barcode;
21
if
(
m_theParticle
) {
22
m_barcode =
HepMC::barcode
(
m_theParticle
);
23
return
m_barcode;
24
}
25
return
0;
26
}
27
28
int
PrimaryParticleInformation::GetParticleUniqueID
()
const
29
{
30
if
(m_uniqueID !=
HepMC::INVALID_PARTICLE_BARCODE
)
return
m_uniqueID;
31
if
(
m_theParticle
) {
32
HepMC::ConstGenParticlePtr
particle
=
m_theParticle
;
33
m_uniqueID =
HepMC::uniqueID
(
particle
);
34
return
m_uniqueID;
35
}
36
return
0;
37
}
38
39
void
PrimaryParticleInformation::SetISFParticle
(
ISF::ISFParticle
*
p
)
40
{
41
m_theISFParticle
=
p
;
42
}
Trk::ParticleSwitcher::particle
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
Definition:
ParticleHypothesis.h:76
PrimaryParticleInformation::m_theParticle
HepMC::GenParticlePtr m_theParticle
Definition:
PrimaryParticleInformation.h:74
PrimaryParticleInformation::SetISFParticle
void SetISFParticle(ISF::ISFParticle *isp)
Definition:
PrimaryParticleInformation.cxx:39
PrimaryParticleInformation::m_theISFParticle
ISF::ISFParticle * m_theISFParticle
Definition:
PrimaryParticleInformation.h:75
HepMC::GenParticlePtr
GenParticle * GenParticlePtr
Definition:
GenParticle.h:37
ISF::ISFParticle
Definition:
ISFParticle.h:42
HepMC::INVALID_PARTICLE_BARCODE
constexpr int INVALID_PARTICLE_BARCODE
Definition:
MagicNumbers.h:54
GenParticle.h
PrimaryParticleInformation::GetParticleBarcode
int GetParticleBarcode() const
Definition:
PrimaryParticleInformation.cxx:18
PrimaryParticleInformation::PrimaryParticleInformation
PrimaryParticleInformation()
Definition:
PrimaryParticleInformation.cxx:8
python.utils.AtlRunQueryDQUtils.p
p
Definition:
AtlRunQueryDQUtils.py:210
HepMC::barcode
int barcode(const T *p)
Definition:
Barcode.h:16
HepMC::uniqueID
int uniqueID(const T &p)
Definition:
MagicNumbers.h:116
HepMC::ConstGenParticlePtr
const GenParticle * ConstGenParticlePtr
Definition:
GenParticle.h:38
PrimaryParticleInformation.h
PrimaryParticleInformation::GetParticleUniqueID
int GetParticleUniqueID() const
Definition:
PrimaryParticleInformation.cxx:28
Generated on Thu Apr 24 2025 21:17:09 for ATLAS Offline Software by
1.8.18