ATLAS Offline Software
Loading...
Searching...
No Matches
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
11
18
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}
Each ISFParticle carries a pointer to this class.
bool operator==(const ParticleUserInformation &rhs) const
Comparison.
const MaterialPathInfo * materialLimit() const
std::unique_ptr< MaterialPathInfo > m_matInfo