EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <acts/blob/sPHENIX/Examples/Framework/include/ActsExamples/EventData/SimIdentifier.hpp>
Public Types | |
using | Value = uint64_t |
using | Difference = int64_t |
Public Member Functions | |
SimIdentifier (Value value) | |
SimIdentifier (Value value, std::vector< std::size_t > indices) | |
SimIdentifier ()=default | |
SimIdentifier (const SimIdentifier &)=default | |
SimIdentifier (SimIdentifier &&)=default | |
SimIdentifier & | operator= (const SimIdentifier &)=default |
SimIdentifier & | operator= (SimIdentifier &&)=default |
SimIdentifier & | operator= (Value value) |
Assign from an identifier value. | |
operator Value () const | |
Cast to an identifier value. | |
Value | value () const |
Explicit access the underlying identifier value. | |
const std::vector< std::size_t > & | indices () const |
Access all associated truth indices. | |
void | addIndex (std::size_t index) |
Attach a truth index to the identifier. | |
Public Member Functions inherited from Acts::MinimalSourceLink | |
bool | operator== (const MinimalSourceLink &rhs) const |
const Surface & | referenceSurface () const |
const FittableMeasurement < MinimalSourceLink > & | operator* () const |
Private Attributes | |
Value | m_value = 0u |
The stored identifier value. | |
std::vector< std::size_t > | m_indices |
Associated truth indices. | |
Friends | |
constexpr bool | operator< (const SimIdentifier &lhs, const SimIdentifier &rhs) |
bool | operator== (const SimIdentifier &lhs, const SimIdentifier &rhs) |
Additional Inherited Members | |
Public Attributes inherited from Acts::MinimalSourceLink | |
const FittableMeasurement < MinimalSourceLink > * | meas {nullptr} |
A hit identifier with additional truth information.
In an addition to a unique identifier, an list of additional indices is stored. These can refer e.g. to particle indices or truth hit indices. Using indices instead of pointers allows more flexibility, i.e. we are not fixed to a specific object type when using e.g. pointers, and is more robust since no requirements on stable memory locations of the pointed-to objects are necessary (as would be the case for pointers).
Definition at line 26 of file SimIdentifier.hpp.
View newest version in sPHENIX GitHub at line 26 of file SimIdentifier.hpp
using ActsExamples::SimIdentifier::Difference = int64_t |
Definition at line 29 of file SimIdentifier.hpp.
View newest version in sPHENIX GitHub at line 29 of file SimIdentifier.hpp
using ActsExamples::SimIdentifier::Value = uint64_t |
Definition at line 28 of file SimIdentifier.hpp.
View newest version in sPHENIX GitHub at line 28 of file SimIdentifier.hpp
|
inlineexplicit |
Constructor from encoded identifier value.
value | is the identifier value |
Definition at line 34 of file SimIdentifier.hpp.
View newest version in sPHENIX GitHub at line 34 of file SimIdentifier.hpp
|
inline |
Constructor from encoded identifier value and truth information.
value | is the identifier value |
indices |
Definition at line 39 of file SimIdentifier.hpp.
View newest version in sPHENIX GitHub at line 39 of file SimIdentifier.hpp
|
default |
|
default |
|
default |
|
inline |
Attach a truth index to the identifier.
Definition at line 60 of file SimIdentifier.hpp.
View newest version in sPHENIX GitHub at line 60 of file SimIdentifier.hpp
References m_indices.
|
inline |
Access all associated truth indices.
Definition at line 57 of file SimIdentifier.hpp.
View newest version in sPHENIX GitHub at line 57 of file SimIdentifier.hpp
References m_indices.
|
inline |
Cast to an identifier value.
Definition at line 52 of file SimIdentifier.hpp.
View newest version in sPHENIX GitHub at line 52 of file SimIdentifier.hpp
References m_value.
|
default |
|
default |
SimIdentifier& ActsExamples::SimIdentifier::operator= | ( | Value | value | ) |
Assign from an identifier value.
|
inline |
Explicit access the underlying identifier value.
Definition at line 55 of file SimIdentifier.hpp.
View newest version in sPHENIX GitHub at line 55 of file SimIdentifier.hpp
References m_value.
|
friend |
Definition at line 68 of file SimIdentifier.hpp.
View newest version in sPHENIX GitHub at line 68 of file SimIdentifier.hpp
|
friend |
Definition at line 72 of file SimIdentifier.hpp.
View newest version in sPHENIX GitHub at line 72 of file SimIdentifier.hpp
|
private |
Associated truth indices.
Definition at line 66 of file SimIdentifier.hpp.
View newest version in sPHENIX GitHub at line 66 of file SimIdentifier.hpp
Referenced by addIndex(), and indices().
|
private |
The stored identifier value.
Definition at line 64 of file SimIdentifier.hpp.
View newest version in sPHENIX GitHub at line 64 of file SimIdentifier.hpp
Referenced by operator Value(), and value().