ATLAS Offline Software
Simulation
ISF
ISF_Core
ISF_Event
src
ParticleUserInformation.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 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
, m_matInfo(nullptr)
17
{
18
}
19
20
bool
ISF::ParticleUserInformation::operator==
(
const
ISF::ParticleUserInformation
& rhs)
const
21
{
22
bool
pass =
true
;
23
pass &= m_process == rhs.
process
();
24
pass &= m_generation == rhs.
generation
();
25
26
{
27
const
auto
rhsMatPtr = rhs.
materialLimit
();
28
if
(m_matInfo && rhsMatPtr) {
29
pass &= *m_matInfo == *rhsMatPtr;
30
}
else
{
31
pass &= m_matInfo == rhsMatPtr;
// must be both nullptr to pass
32
}
33
}
34
return
pass;
35
}
ISF::ParticleUserInformation::operator==
bool operator==(const ParticleUserInformation &rhs) const
Comparison.
Definition:
ParticleUserInformation.cxx:20
ISF::ParticleUserInformation
Definition:
ParticleUserInformation.h:52
ParticleUserInformation.h
ISF::ParticleUserInformation::materialLimit
const MaterialPathInfo * materialLimit() const
Definition:
ParticleUserInformation.h:88
ISF::ParticleUserInformation::ParticleUserInformation
ParticleUserInformation()
empty constructor
Definition:
ParticleUserInformation.cxx:13
ISF::ParticleUserInformation::process
int process() const
Definition:
ParticleUserInformation.h:84
ISF::ParticleUserInformation::generation
int generation() const
Definition:
ParticleUserInformation.h:86
Generated on Thu Nov 7 2024 21:23:20 for ATLAS Offline Software by
1.8.18