LDMX Software
|
A source link that stores just an index. More...
#include <IndexSourceLink.h>
Public Member Functions | |
constexpr | IndexSourceLink (Acts::GeometryIdentifier gid, Index idx) |
Construct from geometry identifier and index. | |
IndexSourceLink ()=default | |
satisfy SourceLinkConcept. | |
IndexSourceLink (const IndexSourceLink &)=default | |
IndexSourceLink (IndexSourceLink &&)=default | |
IndexSourceLink & | operator= (const IndexSourceLink &)=default |
IndexSourceLink & | operator= (IndexSourceLink &&)=default |
constexpr Index | index () const |
Access the index. | |
Acts::GeometryIdentifier | geometryId () const |
Private Attributes | |
Acts::GeometryIdentifier | m_geometryId |
Index | m_index = 0 |
Friends | |
bool | operator== (const IndexSourceLink &lhs, const IndexSourceLink &rhs) |
bool | operator!= (const IndexSourceLink &lhs, const IndexSourceLink &rhs) |
A source link that stores just an index.
This is intentionally kept as barebones as possible. The source link is just a reference and will be copied, moved around, etc. often. Keeping it small and separate from the actual, potentially large, measurement data should result in better overall performance. Using an index instead of e.g. a pointer, means source link and measurement are decoupled and the measurement represenation can be easily changed without having to also change the source link.
Definition at line 29 of file IndexSourceLink.h.
|
inlineconstexpr |
Construct from geometry identifier and index.
Definition at line 32 of file IndexSourceLink.h.
|
inline |
Definition at line 46 of file IndexSourceLink.h.
|
inlineconstexpr |
Access the index.
Definition at line 44 of file IndexSourceLink.h.
Referenced by tracking::reco::CKFProcessor::produce().
|
friend |
Definition at line 57 of file IndexSourceLink.h.
|
friend |
Definition at line 52 of file IndexSourceLink.h.
|
private |
Definition at line 49 of file IndexSourceLink.h.
|
private |
Definition at line 50 of file IndexSourceLink.h.