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

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

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

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

Public Member Functions

 ConstPodioTrackContainer (const PodioUtil::ConversionHelper &helper, const podio::Frame &frame, const std::string &suffix="")
 Constructor from frame.
 ConstPodioTrackContainer (const PodioUtil::ConversionHelper &helper, holder_t< const ActsPodioEdm::TrackCollection > collection)
 Constructor from collection.
std::any component_impl (Acts::HashedString key, IndexType itrack) const
 Get component implementation.
ConstCovariance covariance (IndexType itrack) const
 Get track covariance.
Acts::detail::DynamicKeyRange< podio_detail::ConstDynamicColumnBase > dynamicKeys_impl () const
 Get dynamic keys implementation.
bool hasColumn_impl (Acts::HashedString key) const
 Check if column exists implementation.
ConstParameters parameters (IndexType itrack) const
 Get track parameters.
Acts::ParticleHypothesis particleHypothesis_impl (IndexType itrack) const
 Get particle hypothesis implementation.
const Acts::SurfacereferenceSurface_impl (IndexType itrack) const
 Get reference surface implementation.
std::size_t size_impl () const
 Get size implementation.
const ActsPodioEdm::TrackCollection & trackCollection ()
 Get the underlying track collection.

Additional Inherited Members

Public Types inherited from ActsPlugins::PodioTrackContainerBase
using ConstCovariance
 Const track covariance type.
using ConstParameters
 Const track parameters type.
using Covariance
 Mutable track covariance type.
using IndexType = Acts::TrackIndexType
 Track index type.
using Parameters
 Mutable track parameters type.
Static Public Attributes inherited from ActsPlugins::PodioTrackContainerBase
static constexpr auto kInvalid = Acts::kTrackIndexInvalid
 Invalid track index.
static constexpr auto MeasurementSizeMax = Acts::kMeasurementSizeMax
 Maximum measurement size.
Protected Member Functions inherited from ActsPlugins::PodioTrackContainerBase
 PodioTrackContainerBase (const PodioUtil::ConversionHelper &helper)
 Constructor.
Static Protected Member Functions inherited from ActsPlugins::PodioTrackContainerBase
template<bool EnsureConst, typename T>
static std::any component_impl (T &instance, Acts::HashedString key, IndexType itrack)
 Get component implementation.
template<typename T>
static auto dynamicKeys_impl (T &instance)
 Get dynamic keys implementation.
template<typename T>
static Acts::ParticleHypothesis particleHypothesis_impl (T &instance, IndexType itrack)
 Get particle hypothesis implementation.
static void populateSurfaceBuffer (const PodioUtil::ConversionHelper &helper, const ActsPodioEdm::TrackCollection &collection, std::vector< std::shared_ptr< const Acts::Surface > > &surfaces) noexcept
 Populate surface buffer from track collection.
Protected Attributes inherited from ActsPlugins::PodioTrackContainerBase
std::reference_wrapper< const PodioUtil::ConversionHelperm_helper
 Conversion helper.
std::vector< std::shared_ptr< const Acts::Surface > > m_surfaces
 Surface buffer.

Detailed Description

template<template< typename... > class holder_t>
requires edm4hep::detail::PodioConstTrackCollectionHolder<holder_t>
class ActsPlugins::ConstPodioTrackContainer< holder_t >

Read-only track container backend using podio for storage.

Constructor & Destructor Documentation

◆ ConstPodioTrackContainer() [1/2]

template<template< typename... > class holder_t>
ActsPlugins::ConstPodioTrackContainer< holder_t >::ConstPodioTrackContainer ( const PodioUtil::ConversionHelper & helper,
holder_t< const ActsPodioEdm::TrackCollection > collection )

Constructor from collection.

Parameters
helperConversion helper
collectionTrack collection

◆ ConstPodioTrackContainer() [2/2]

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

Constructor from frame.

Parameters
helperConversion helper
framePodio frame
suffixCollection name suffix

Member Function Documentation

◆ component_impl()

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

Get component implementation.

Parameters
keyComponent key
itrackTrack index
Returns
Component value

◆ covariance()

template<template< typename... > class holder_t>
ConstCovariance ActsPlugins::ConstPodioTrackContainer< holder_t >::covariance ( IndexType itrack) const

Get track covariance.

Parameters
itrackTrack index
Returns
Track covariance matrix

◆ dynamicKeys_impl()

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

Get dynamic keys implementation.

Returns
Range of dynamic column keys

◆ hasColumn_impl()

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

Check if column exists implementation.

Parameters
keyColumn key
Returns
True if column exists

◆ parameters()

template<template< typename... > class holder_t>
ConstParameters ActsPlugins::ConstPodioTrackContainer< holder_t >::parameters ( IndexType itrack) const

Get track parameters.

Parameters
itrackTrack index
Returns
Track parameters

◆ particleHypothesis_impl()

template<template< typename... > class holder_t>
Acts::ParticleHypothesis ActsPlugins::ConstPodioTrackContainer< holder_t >::particleHypothesis_impl ( IndexType itrack) const

Get particle hypothesis implementation.

Parameters
itrackTrack index
Returns
Particle hypothesis

◆ referenceSurface_impl()

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

Get reference surface implementation.

Parameters
itrackTrack index
Returns
Reference surface pointer

◆ size_impl()

template<template< typename... > class holder_t>
std::size_t ActsPlugins::ConstPodioTrackContainer< holder_t >::size_impl ( ) const

Get size implementation.

Returns
Number of tracks

◆ trackCollection()

template<template< typename... > class holder_t>
const ActsPodioEdm::TrackCollection & ActsPlugins::ConstPodioTrackContainer< holder_t >::trackCollection ( )

Get the underlying track collection.

Returns
Track collection