ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
ActsPlugins::ConstPodioTrackStateContainer< holder_t > Class Template Reference

Read-only track state container backend using podio for storage. More...

#include </home/runner/work/acts/acts/Plugins/EDM4hep/include/ActsPlugins/EDM4hep/PodioTrackStateContainer.hpp>

Inheritance diagram for ActsPlugins::ConstPodioTrackStateContainer< holder_t >:
[legend]
Collaboration diagram for ActsPlugins::ConstPodioTrackStateContainer< holder_t >:
[legend]

Public Member Functions

template<template< typename... > class other_holder_t>
requires std::is_constructible_v< holder_t<const ActsPodioEdm::TrackStateCollection>, const ActsPodioEdm::TrackStateCollection&>
 ConstPodioTrackStateContainer (const MutablePodioTrackStateContainer< other_holder_t > &other)
 Construct a const track state container from a mutable (copy).
 ConstPodioTrackStateContainer (const PodioUtil::ConversionHelper &helper, const podio::Frame &frame, const std::string &suffix="")
 Constructor from frame.
 ConstPodioTrackStateContainer (const PodioUtil::ConversionHelper &helper, holder_t< const ActsPodioEdm::TrackStateCollection > trackStates, holder_t< const ActsPodioEdm::BoundParametersCollection > params, holder_t< const ActsPodioEdm::JacobianCollection > jacs)
 Constructor from collections.
template<template< typename... > class other_holder_t>
requires std::is_same_v<holder_t<const ActsPodioEdm::TrackStateCollection>, other_holder_t<ActsPodioEdm::TrackStateCollection>>
 ConstPodioTrackStateContainer (MutablePodioTrackStateContainer< other_holder_t > &&other)
 Construct a const track state container from a mutable (move).
template<std::size_t measdim>
ConstCalibrated< measdim > calibrated_impl (IndexType index) const
 Get calibrated measurement.
template<std::size_t measdim>
ConstCalibratedCovariance< measdim > calibratedCovariance_impl (IndexType index) const
 Get calibrated measurement covariance.
Acts::TrackIndexType calibratedSize_impl (IndexType istate) const
 Get calibrated measurement size.
std::any component_impl (Acts::HashedString key, IndexType istate) const
 Get a component from a track state.
ConstCovariance covariance_impl (IndexType istate) const
 Get covariance for a track state.
Acts::detail::DynamicKeyRange< podio_detail::ConstDynamicColumnBase > dynamicKeys_impl () const
 Get dynamic column keys.
Acts::SourceLink getUncalibratedSourceLink_impl (IndexType istate) const
 Get uncalibrated source link for a track state.
constexpr bool has_impl (Acts::HashedString key, IndexType istate) const
 Check if a component exists for a track state.
constexpr bool hasColumn_impl (Acts::HashedString key) const
 Check if a column exists.
ConstCovariance jacobian_impl (IndexType istate) const
 Get jacobian for a track state.
ConstParameters parameters_impl (IndexType istate) const
 Get parameters for a track state.
const Acts::SurfacereferenceSurface_impl (IndexType istate) const
 Get reference surface for a track state.
IndexType size_impl () const
 Get number of track states.
Public Member Functions inherited from Acts::MultiTrajectory< ConstPodioTrackStateContainer< holder_t > >
void clear ()
 Clear the MultiTrajectory.
IndexType size () const
 Returns the number of track states contained.
ConstTrackStateProxy getTrackState (IndexType istate) const
 Access a read-only point on the trajectory by index.
IndexType addTrackState (TrackStatePropMask mask=TrackStatePropMask::All, IndexType iprevious=kInvalid)
 Add a track state without providing explicit information.
TrackStateProxy makeTrackState (TrackStatePropMask mask=TrackStatePropMask::All, IndexType iprevious=kInvalid)
 Add a track state to the container and return a track state proxy to it This effectively calls addTrackState and getTrackState.
void visitBackwards (IndexType iendpoint, F &&callable) const
 Visit all previous states starting at a given endpoint.
void applyBackwards (IndexType iendpoint, F &&callable)
 Apply a function to all previous states starting at a given endpoint.
auto reverseTrackStateRange (IndexType iendpoint) const
 Range for the track states from iendpoint to the trajectory start.
auto forwardTrackStateRange (IndexType istartpoint) const
 Range for the track states from istartpoint to the trajectory end, i.e from inside out.
void addColumn (std::string_view key)
 Add a column to the MultiTrajectory.
bool hasColumn (HashedString key) const
 Check if a column with a key key exists.

Additional Inherited Members

Public Types inherited from ActsPlugins::PodioTrackStateContainerBase
template<std::size_t M>
using Calibrated
 Calibrated measurement vector type.
template<std::size_t M>
using CalibratedCovariance
 Calibrated measurement covariance matrix type.
template<std::size_t M>
using ConstCalibrated
 Const calibrated measurement vector type.
template<std::size_t M>
using ConstCalibratedCovariance
 Const calibrated measurement covariance matrix type.
using ConstCovariance
 Const covariance map type.
using ConstParameters
 Const parameters map type.
using Covariance
 Mutable covariance map type.
using Parameters
 Mutable parameters map type.
Public Types inherited from Acts::MultiTrajectory< ConstPodioTrackStateContainer< holder_t > >
using ConstTrackStateProxy
 Alias for the const version of a track state proxy, with the same backends as this container.
using Derived
 Type alias for derived multi-trajectory implementation.
using IndexType
 The index type of the track state container.
using TrackStateProxy
 Alias for the mutable version of a track state proxy, with the same backends as this container.
Static Public Attributes inherited from Acts::MultiTrajectory< ConstPodioTrackStateContainer< holder_t > >
static constexpr IndexType kInvalid
 Sentinel value that indicates an invalid index.
static constexpr unsigned int MeasurementSizeMax
 Maximum number of measurement dimensions supported by this trajectory.
static constexpr bool ReadOnly
 Flag indicating whether this multi-trajectory is read-only.
Protected Member Functions inherited from Acts::MultiTrajectory< ConstPodioTrackStateContainer< holder_t > >
void addTrackStateComponents (IndexType istate, TrackStatePropMask mask)
 Add additional components to an existing track state.
void allocateCalibrated (IndexType istate, std::size_t measdim)
 Allocate storage for a calibrated measurement of specified dimension.
TrackStateProxy::template Calibrated< measdim > calibrated (IndexType istate)
 Retrieve a calibrated measurement proxy instance for a measurement at a given index.
TrackStateProxy::template CalibratedCovariance< measdim > calibratedCovariance (IndexType istate)
 Retrieve a calibrated measurement covariance proxy instance for a measurement at a given index.
IndexType calibratedSize (IndexType istate) const
 Get the calibrated measurement size for a track state.
T & component (IndexType istate)
 Retrieve a mutable reference to a component.
TrackStateProxy::Covariance covariance (IndexType covIdx)
 Get covariance for a track state.
TrackStateProxy::EffectiveCalibrated effectiveCalibrated (IndexType istate)
 Retrieve a calibrated measurement covariance proxy instance for a measurement at a given index.
TrackStateProxy::EffectiveCalibratedCovariance effectiveCalibratedCovariance (IndexType istate)
 Retrieve a calibrated measurement covariance proxy instance for a measurement at a given index.
SourceLink getUncalibratedSourceLink (IndexType istate) const
 Get the uncalibrated source link for a track state.
bool has (HashedString key, IndexType istate) const
 Check for component existence of key in track satet istate.
TrackStateProxy::Jacobian jacobian (IndexType istate)
 Retrieve a jacobian proxy instance for a jacobian at a given index.
TrackStateProxy::Parameters parameters (IndexType parIdx)
 Get parameters for a track state.
const SurfacereferenceSurface (IndexType istate) const
 Get the reference surface for a track state.
void setReferenceSurface (IndexType istate, std::shared_ptr< const Surface > surface)
 Set the reference surface for a track state.
void setUncalibratedSourceLink (IndexType istate, SourceLink &&sourceLink)
 Set the uncalibrated source link for a track state.
void shareFrom (IndexType iself, IndexType iother, TrackStatePropMask shareSource, TrackStatePropMask shareTarget)
 Share a shareable component from between track state.
void unset (TrackStatePropMask target, IndexType istate)
 Unset an optional track state component.
Static Protected Member Functions inherited from ActsPlugins::PodioTrackStateContainerBase
template<bool EnsureConst, typename T>
static std::any component_impl (T &instance, Acts::HashedString key, Acts::TrackIndexType istate)
 Get a component from a track state.
template<typename T>
static constexpr bool has_impl (T &instance, Acts::HashedString key, Acts::TrackIndexType istate)
 Check if a component exists for a track state.
template<typename T>
static constexpr bool hasColumn_impl (T &instance, Acts::HashedString key)
 Check if a column exists.
static void populateSurfaceBuffer (const PodioUtil::ConversionHelper &helper, const ActsPodioEdm::TrackStateCollection &collection, std::vector< std::shared_ptr< const Acts::Surface > > &surfaces) noexcept
 Populate surface buffer from track state collection.

Detailed Description

template<template< typename... > class holder_t>
class ActsPlugins::ConstPodioTrackStateContainer< holder_t >

Read-only track state container backend using podio for storage.

Constructor & Destructor Documentation

◆ ConstPodioTrackStateContainer() [1/2]

template<template< typename... > class holder_t>
ActsPlugins::ConstPodioTrackStateContainer< holder_t >::ConstPodioTrackStateContainer ( const PodioUtil::ConversionHelper & helper,
holder_t< const ActsPodioEdm::TrackStateCollection > trackStates,
holder_t< const ActsPodioEdm::BoundParametersCollection > params,
holder_t< const ActsPodioEdm::JacobianCollection > jacs )

Constructor from collections.

Parameters
helperConversion helper
trackStatesTrack state collection
paramsParameters collection
jacsJacobian collection

◆ ConstPodioTrackStateContainer() [2/2]

template<template< typename... > class holder_t>
ActsPlugins::ConstPodioTrackStateContainer< holder_t >::ConstPodioTrackStateContainer ( const PodioUtil::ConversionHelper & helper,
const podio::Frame & frame,
const std::string & suffix = "" )

Constructor from frame.

Parameters
helperConversion helper
frameFrame containing track state data
suffixOptional collection name suffix

Member Function Documentation

◆ calibrated_impl()

template<template< typename... > class holder_t>
template<std::size_t measdim>
ConstCalibrated< measdim > ActsPlugins::ConstPodioTrackStateContainer< holder_t >::calibrated_impl ( IndexType index) const

Get calibrated measurement.

Parameters
indexTrack state index
Returns
Calibrated measurement

◆ calibratedCovariance_impl()

template<template< typename... > class holder_t>
template<std::size_t measdim>
ConstCalibratedCovariance< measdim > ActsPlugins::ConstPodioTrackStateContainer< holder_t >::calibratedCovariance_impl ( IndexType index) const

Get calibrated measurement covariance.

Parameters
indexTrack state index
Returns
Calibrated measurement covariance

◆ calibratedSize_impl()

template<template< typename... > class holder_t>
Acts::TrackIndexType ActsPlugins::ConstPodioTrackStateContainer< holder_t >::calibratedSize_impl ( IndexType istate) const

Get calibrated measurement size.

Parameters
istateTrack state index
Returns
Measurement size

◆ component_impl()

template<template< typename... > class holder_t>
std::any ActsPlugins::ConstPodioTrackStateContainer< holder_t >::component_impl ( Acts::HashedString key,
IndexType istate ) const

Get a component from a track state.

Parameters
keyComponent key
istateTrack state index
Returns
Component value

◆ covariance_impl()

template<template< typename... > class holder_t>
ConstCovariance ActsPlugins::ConstPodioTrackStateContainer< holder_t >::covariance_impl ( IndexType istate) const

Get covariance for a track state.

Parameters
istateTrack state index
Returns
Track covariance matrix

◆ dynamicKeys_impl()

template<template< typename... > class holder_t>
Acts::detail::DynamicKeyRange< podio_detail::ConstDynamicColumnBase > ActsPlugins::ConstPodioTrackStateContainer< holder_t >::dynamicKeys_impl ( ) const

Get dynamic column keys.

Returns
Range of dynamic column keys

◆ getUncalibratedSourceLink_impl()

template<template< typename... > class holder_t>
Acts::SourceLink ActsPlugins::ConstPodioTrackStateContainer< holder_t >::getUncalibratedSourceLink_impl ( IndexType istate) const

Get uncalibrated source link for a track state.

Parameters
istateTrack state index
Returns
Uncalibrated source link

◆ has_impl()

template<template< typename... > class holder_t>
bool ActsPlugins::ConstPodioTrackStateContainer< holder_t >::has_impl ( Acts::HashedString key,
IndexType istate ) const
constexpr

Check if a component exists for a track state.

Parameters
keyComponent key
istateTrack state index
Returns
True if component exists

◆ hasColumn_impl()

template<template< typename... > class holder_t>
bool ActsPlugins::ConstPodioTrackStateContainer< holder_t >::hasColumn_impl ( Acts::HashedString key) const
constexpr

Check if a column exists.

Parameters
keyColumn key
Returns
True if column exists

◆ jacobian_impl()

template<template< typename... > class holder_t>
ConstCovariance ActsPlugins::ConstPodioTrackStateContainer< holder_t >::jacobian_impl ( IndexType istate) const

Get jacobian for a track state.

Parameters
istateTrack state index
Returns
Jacobian matrix

◆ parameters_impl()

template<template< typename... > class holder_t>
ConstParameters ActsPlugins::ConstPodioTrackStateContainer< holder_t >::parameters_impl ( IndexType istate) const

Get parameters for a track state.

Parameters
istateTrack state index
Returns
Track parameters

◆ referenceSurface_impl()

template<template< typename... > class holder_t>
const Acts::Surface * ActsPlugins::ConstPodioTrackStateContainer< holder_t >::referenceSurface_impl ( IndexType istate) const

Get reference surface for a track state.

Parameters
istateTrack state index
Returns
Reference surface pointer

◆ size_impl()

template<template< typename... > class holder_t>
IndexType ActsPlugins::ConstPodioTrackStateContainer< holder_t >::size_impl ( ) const

Get number of track states.

Returns
Number of track states