![]() |
trout
Phlex-based reconstruction framework for the SHiP experiment.
|
A source link that stores just an index. More...
#include <IndexSourceLink.hpp>
Public Types | |
| using | SurfaceAccessor = IndexSourceLinkSurfaceAccessor |
Public Member Functions | |
| constexpr | IndexSourceLink (Acts::GeometryIdentifier gid, ActsExamples::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 ActsExamples::Index | index () const |
| Access the index. | |
| Acts::GeometryIdentifier | geometryId () const |
Friends | |
| 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 representation can be easily changed without having to also change the source link.
|
inlineconstexpr |
Construct from geometry identifier and index.
|
default |
satisfy SourceLinkConcept.
|
default |
|
default |
|
inline |
|
inlineconstexpr |
Access the index.
|
default |
|
default |
|
friend |