Type-erased track object This class provides a type-erased interface to track proxies without requiring heap allocation per instance.
More...
|
|
using | ConstCovarianceMap = detail_anytrack::ConstCovarianceMap |
| | Const covariance map type.
|
|
using | ConstParametersMap = detail_anytrack::ConstParametersMap |
| | Const parameters map type.
|
|
using | ConstProxyType = AnyTrackProxy<true> |
| | Alias for the const proxy type.
|
|
using | ConstTrackHandle = AnyTrackProxy<true> |
| | Alias for the const version.
|
|
using | ContainerPointer = std::conditional_t<ReadOnly, const void*, void*> |
| | Container pointer type.
|
|
using | CovarianceMap = detail_anytrack::CovarianceMap |
| | Mutable covariance map type.
|
| using | HandlerPointer |
| | Handler pointer type.
|
|
using | MutableTrackHandle = AnyTrackProxy<false> |
| | Alias for the mutable version.
|
|
using | ParametersMap = detail_anytrack::ParametersMap |
| | Mutable parameters map type.
|
|
using | IndexType |
| | Index type used for referencing track states.
|
|
| | AnyTrackProxy (const AnyTrackProxy &other)=default |
| | Copy constructor: const to const or mutable to mutable.
|
template<TrackProxyConcept track_proxy_t>
requires (ReadOnly || !track_proxy_t::ReadOnly) |
| | AnyTrackProxy (track_proxy_t track) |
| | Construct from a concrete track proxy.
|
| double | absoluteMomentum () const |
| | Get the absolute momentum.
|
| double | charge () const |
| | Get the charge.
|
template<typename T, HashedString key>
requires (!ReadOnly) |
| T & | component () |
| | Get a mutable reference to a dynamic column component.
|
| template<typename T, HashedString key> |
| const T & | component () const |
| | Get a const reference to a dynamic column component.
|
template<typename T>
requires (!ReadOnly) |
| T & | component (HashedString key) |
| | Get a mutable reference to a dynamic column component.
|
| template<typename T> |
| const T & | component (HashedString key) const |
| | Get a const reference to a dynamic column component.
|
| CovarianceMap | covariance () |
| | Get the mutable covariance map.
|
| ConstCovarianceMap | covariance () const |
| | Get the covariance map.
|
| double & | covariance (std::size_t i, std::size_t j) |
| | Get a mutable reference to a covariance element.
|
| double | covariance (std::size_t i, std::size_t j) const |
| | Get a covariance matrix element.
|
| Vector4 | fourMomentum () const |
| | Get the four-momentum vector: (px, py, pz, e).
|
| bool | hasColumn (HashedString key) const |
| | Check if the track has a specific dynamic column.
|
| bool | hasReferenceSurface () const |
| | Check if track has a reference surface.
|
| TrackIndexType | index () const |
| | Get the index of this track.
|
| double | loc0 () const |
| | Access the loc0 parameter of the track at the reference surface.
|
| double | loc1 () const |
| | Access the loc1 parameter of the track at the reference surface.
|
| unsigned int | nTrackStates () const |
| | Get the number of track states.
|
| AnyTrackProxy & | operator= (const AnyTrackProxy &other)=default |
| | Copy assignment operator: const to const or mutable to mutable.
|
| double & | parameter (std::size_t i) |
| | Get a mutable reference to a parameter component.
|
| double | parameter (std::size_t i) const |
| | Get a parameter value by index.
|
| ParametersMap | parameters () |
| | Get the mutable bound parameters map.
|
| ConstParametersMap | parameters () const |
| | Get the bound parameters map.
|
| ParticleHypothesis | particleHypothesis () const |
| | Get the particle hypothesis.
|
| double | phi () const |
| | Access the phi parameter of the track at the reference surface.
|
| double | qOverP () const |
| | Access the q/p (curvature) parameter of the track at the reference surface.
|
| const Surface & | referenceSurface () const |
| | Get the reference surface.
|
| double | theta () const |
| | Access the theta parameter of the track at the reference surface.
|
| double | time () const |
| | Access the time parameter of the track at the reference surface.
|
| double | transverseMomentum () const |
| | Get the transverse momentum.
|
| double | absoluteMomentum () const |
| | Get the absolute momentum.
|
| double | charge () const |
| | Get the charge.
|
| float | chi2 () const |
| | Return the local chi-squared contribution.
|
| Vector3 | direction () const |
| | Get a unit vector along the track direction at the reference surface.
|
| Vector4 | fourMomentum () const |
| | Get the four-momentum vector: (px, py, pz, e).
|
| bool | isForwardLinked () const |
| | Return whether the track is forward-linked, i.e.
|
| double | loc0 () const |
| | Access the loc0 parameter of the track at the reference surface.
|
| double | loc1 () const |
| | Access the loc1 parameter of the track at the reference surface.
|
| Vector3 | momentum () const |
| | Get the global momentum vector.
|
| unsigned int | nDoF () const |
| | Return the number of degrees of freedom.
|
| unsigned int | nHoles () const |
| | Return the number of holes on this track.
|
| unsigned int | nMeasurements () const |
| | Return the number of measurements assigned to this track.
|
| unsigned int | nOutliers () const |
| | Return the number of outliers for this track.
|
| unsigned int | nSharedHits () const |
| | Return the number of shared hits for this track.
|
| double | phi () const |
| | Access the phi parameter of the track at the reference surface.
|
| double | qOverP () const |
| | Access the q/p (curvature) parameter of the track at the reference surface.
|
| IndexType | stemIndex () const |
| | Get the stem index, i.e.
|
| double | theta () const |
| | Access the theta parameter of the track at the reference surface.
|
| double | time () const |
| | Access the time parameter of the track at the reference surface.
|
| IndexType | tipIndex () const |
| | Get the tip index, i.e.
|
| double | transverseMomentum () const |
| | Get the transverse momentum.
|
template<bool read_only = true>
class Acts::AnyTrackProxy< read_only >
Type-erased track object This class provides a type-erased interface to track proxies without requiring heap allocation per instance.
It stores a pointer to the track container and the track index, similar to how TrackProxy works internally.
The object does not take ownership of the container - the container must outlive the object.
- Template Parameters
-
| read_only | If true, provides read-only access to the track |
Usage:
AnyMutableTrack AnyTrackProxy(track);
AnyConstTrack constTrack(track);
std::cout << "Chi2: " << AnyTrackProxy.chi2() << std::endl;
Track container interface class.
Definition TrackContainer.hpp:41
ConstTrackProxy getTrack(IndexType itrack) const
Get a const track proxy for a track index.
Definition TrackContainer.hpp:159