|
ACTS
Experiment-independent tracking
|
Type-erased track object This class provides a type-erased interface to track proxies without requiring heap allocation per instance. More...
#include <Acts/EventData/AnyTrackProxy.hpp>
Public Types | |
| using | ConstCovarianceMap = detail_anytrack::ConstCovarianceMap |
| using | ConstParametersMap = detail_anytrack::ConstParametersMap |
| using | ConstProxyType = AnyTrackProxy<true> |
| using | ConstTrackHandle = AnyTrackProxy<true> |
| Alias for the const version. | |
| using | ContainerPointer = std::conditional_t<ReadOnly, const void*, void*> |
| using | CovarianceMap = detail_anytrack::CovarianceMap |
| using | HandlerPointer |
| using | MutableTrackHandle = AnyTrackProxy<false> |
| Alias for the mutable version. | |
| using | ParametersMap = detail_anytrack::ParametersMap |
| Public Types inherited from Acts::TrackProxyCommon< AnyTrackProxy< true >, TrackIndexType, true > | |
| using | IndexType |
| Index type used for referencing track states. | |
Public Member Functions | |
| 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. | |
| Public Member Functions inherited from Acts::TrackProxyCommon< AnyTrackProxy< true >, TrackIndexType, true > | |
| 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). | |
| 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. the innermost track state in the track. | |
| 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. the entry point into the track state container. | |
| double | transverseMomentum () const |
| Get the transverse momentum. | |
Static Public Attributes | |
| static constexpr bool | ReadOnly = read_only |
| Indicates whether this track is read-only. | |
Additional Inherited Members | |
| Protected Member Functions inherited from Acts::TrackProxyCommon< AnyTrackProxy< true >, TrackIndexType, true > | |
| constexpr AnyTrackProxy< true > & | derived () |
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.
| read_only | If true, provides read-only access to the track |
Usage:
| using Acts::AnyTrackProxy< read_only >::ConstCovarianceMap = detail_anytrack::ConstCovarianceMap |
| using Acts::AnyTrackProxy< read_only >::ConstParametersMap = detail_anytrack::ConstParametersMap |
| using Acts::AnyTrackProxy< read_only >::ConstProxyType = AnyTrackProxy<true> |
| using Acts::AnyTrackProxy< read_only >::ConstTrackHandle = AnyTrackProxy<true> |
Alias for the const version.
| using Acts::AnyTrackProxy< read_only >::ContainerPointer = std::conditional_t<ReadOnly, const void*, void*> |
| using Acts::AnyTrackProxy< read_only >::CovarianceMap = detail_anytrack::CovarianceMap |
| using Acts::AnyTrackProxy< read_only >::HandlerPointer |
| using Acts::AnyTrackProxy< read_only >::MutableTrackHandle = AnyTrackProxy<false> |
Alias for the mutable version.
| using Acts::AnyTrackProxy< read_only >::ParametersMap = detail_anytrack::ParametersMap |
|
default |
Copy constructor: const to const or mutable to mutable.
| other | the other track |
|
explicit |
Construct from a concrete track proxy.
| track_proxy_t | The concrete track proxy type |
| track | The track proxy to wrap |
| double Acts::TrackProxyCommon< AnyTrackProxy< read_only >, TrackIndexType, read_only >::absoluteMomentum | ( | ) | const |
Get the absolute momentum.
| double Acts::TrackProxyCommon< AnyTrackProxy< read_only >, TrackIndexType, read_only >::charge | ( | ) | const |
Get the charge.
| T & Acts::AnyTrackProxy< read_only >::component | ( | ) |
Get a mutable reference to a dynamic column component.
| T | The type of the component |
| key | String key for the component to access |
| const T & Acts::AnyTrackProxy< read_only >::component | ( | ) | const |
Get a const reference to a dynamic column component.
| T | The type of the component |
| key | String key for the component to access |
| T & Acts::AnyTrackProxy< read_only >::component | ( | HashedString | key | ) |
Get a mutable reference to a dynamic column component.
| T | The type of the component |
| key | String key for the component to access |
| const T & Acts::AnyTrackProxy< read_only >::component | ( | HashedString | key | ) | const |
Get a const reference to a dynamic column component.
| T | The type of the component |
| key | String key for the component to access |
| CovarianceMap Acts::AnyTrackProxy< read_only >::covariance | ( | ) |
Get the mutable covariance map.
| ConstCovarianceMap Acts::AnyTrackProxy< read_only >::covariance | ( | ) | const |
Get the covariance map.
| double & Acts::AnyTrackProxy< read_only >::covariance | ( | std::size_t | i, |
| std::size_t | j ) |
Get a mutable reference to a covariance element.
| i | Row index |
| j | Column index |
| double Acts::AnyTrackProxy< read_only >::covariance | ( | std::size_t | i, |
| std::size_t | j ) const |
Get a covariance matrix element.
| i | Row index |
| j | Column index |
| Vector4 Acts::TrackProxyCommon< AnyTrackProxy< read_only >, TrackIndexType, read_only >::fourMomentum | ( | ) | const |
Get the four-momentum vector: (px, py, pz, e).
| bool Acts::AnyTrackProxy< read_only >::hasColumn | ( | HashedString | key | ) | const |
Check if the track has a specific dynamic column.
| key | The hashed column key |
| bool Acts::AnyTrackProxy< read_only >::hasReferenceSurface | ( | ) | const |
Check if track has a reference surface.
| TrackIndexType Acts::AnyTrackProxy< read_only >::index | ( | ) | const |
Get the index of this track.
| double Acts::TrackProxyCommon< AnyTrackProxy< read_only >, TrackIndexType, read_only >::loc0 | ( | ) | const |
Access the loc0 parameter of the track at the reference surface.
| double Acts::TrackProxyCommon< AnyTrackProxy< read_only >, TrackIndexType, read_only >::loc1 | ( | ) | const |
Access the loc1 parameter of the track at the reference surface.
| unsigned int Acts::AnyTrackProxy< read_only >::nTrackStates | ( | ) | const |
Get the number of track states.
|
default |
Copy assignment operator: const to const or mutable to mutable.
| other | the other track |
| double & Acts::AnyTrackProxy< read_only >::parameter | ( | std::size_t | i | ) |
Get a mutable reference to a parameter component.
| i | The parameter index |
| double Acts::AnyTrackProxy< read_only >::parameter | ( | std::size_t | i | ) | const |
Get a parameter value by index.
| i | The parameter index |
| ParametersMap Acts::AnyTrackProxy< read_only >::parameters | ( | ) |
Get the mutable bound parameters map.
| ConstParametersMap Acts::AnyTrackProxy< read_only >::parameters | ( | ) | const |
Get the bound parameters map.
| ParticleHypothesis Acts::AnyTrackProxy< read_only >::particleHypothesis | ( | ) | const |
Get the particle hypothesis.
| double Acts::TrackProxyCommon< AnyTrackProxy< read_only >, TrackIndexType, read_only >::phi | ( | ) | const |
Access the phi parameter of the track at the reference surface.
| double Acts::TrackProxyCommon< AnyTrackProxy< read_only >, TrackIndexType, read_only >::qOverP | ( | ) | const |
Access the q/p (curvature) parameter of the track at the reference surface.
| const Surface & Acts::AnyTrackProxy< read_only >::referenceSurface | ( | ) | const |
Get the reference surface.
| double Acts::TrackProxyCommon< AnyTrackProxy< read_only >, TrackIndexType, read_only >::theta | ( | ) | const |
Access the theta parameter of the track at the reference surface.
| double Acts::TrackProxyCommon< AnyTrackProxy< read_only >, TrackIndexType, read_only >::time | ( | ) | const |
Access the time parameter of the track at the reference surface.
| double Acts::TrackProxyCommon< AnyTrackProxy< read_only >, TrackIndexType, read_only >::transverseMomentum | ( | ) | const |
Get the transverse momentum.
|
staticconstexpr |
Indicates whether this track is read-only.