ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
ISF
ISF_Core
ISF_Event
src
ParticleUserInformation.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// ParticleClipboard.cxx, (c) ATLAS Detector software
8
9
// class header
10
#include "
ISF_Event/ParticleUserInformation.h
"
11
13
ISF::ParticleUserInformation::ParticleUserInformation
()
14
:
m_process
(0)
15
,
m_generation
(0)
16
{
17
}
18
19
bool
ISF::ParticleUserInformation::operator==
(
const
ISF::ParticleUserInformation
& rhs)
const
20
{
21
bool
pass =
true
;
22
pass &=
m_process
== rhs.
process
();
23
pass &=
m_generation
== rhs.
generation
();
24
25
{
26
const
auto
rhsMatPtr = rhs.
materialLimit
();
27
if
(
m_matInfo
&& rhsMatPtr) {
28
pass &= *
m_matInfo
== *rhsMatPtr;
29
}
else
{
30
pass &=
m_matInfo
.get() == rhsMatPtr;
// must be both nullptr to pass
31
}
32
}
33
return
pass;
34
}
ParticleUserInformation.h
ISF::ParticleUserInformation
Each ISFParticle carries a pointer to this class.
Definition
ParticleUserInformation.h:53
ISF::ParticleUserInformation::operator==
bool operator==(const ParticleUserInformation &rhs) const
Comparison.
Definition
ParticleUserInformation.cxx:19
ISF::ParticleUserInformation::materialLimit
const MaterialPathInfo * materialLimit() const
Definition
ParticleUserInformation.h:89
ISF::ParticleUserInformation::m_generation
int m_generation
Definition
ParticleUserInformation.h:78
ISF::ParticleUserInformation::process
int process() const
Definition
ParticleUserInformation.h:85
ISF::ParticleUserInformation::m_matInfo
std::unique_ptr< MaterialPathInfo > m_matInfo
Definition
ParticleUserInformation.h:80
ISF::ParticleUserInformation::m_process
int m_process
Definition
ParticleUserInformation.h:77
ISF::ParticleUserInformation::ParticleUserInformation
ParticleUserInformation()
empty constructor
Definition
ParticleUserInformation.cxx:13
ISF::ParticleUserInformation::generation
int generation() const
Definition
ParticleUserInformation.h:87
Generated on
for ATLAS Offline Software by
1.17.0