 |
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef ACTSTRKEVENT_TRACKCONTAINER_H
6 #define ACTSTRKEVENT_TRACKCONTAINER_H 1
9 #include "Acts/EventData/TrackContainer.hpp"
10 #include "Acts/EventData/VectorTrackContainer.hpp"
11 #include "Acts/EventData/VectorMultiTrajectory.hpp"
22 Acts::detail::ValueHolder>;
26 Acts::detail::ValueHolder>;
33 using value_type =
typename TrackContainerBase::ConstTrackProxy;
46 template <
typename track_container_t>
84 std::optional<ConstTrackProxy>
m_proxy {std::nullopt};
97 return index != ConstTrackProxy::kInvalid;
105 index=ConstTrackProxy::kInvalid;
110 return container.getTrack(
index);
117 index = element.has_value() ? element.value().index() : ConstTrackProxy::kInvalid;
typename ActsTrk::IndexingPolicy< ActsTrk::TrackContainer > type
ConstTrackProxy operator[](unsigned int index) const
std::optional< ConstTrackProxy > m_proxy
Acts::ConstVectorTrackContainer TrackBackend
Acts::VectorTrackContainer MutableTrackBackend
Acts::TrackContainer< MutableTrackBackend, MutableTrackStateBackend, Acts::detail::ValueHolder > MutableTrackContainer
const ConstTrackProxy * operator->() const
static ElementType lookup(const stored_index_type &index, const track_container_t &container)
ConstTrackProxyPtr & operator=(const ElementType *src)
ConstTrackProxyPtr(const ConstTrackProxy &val)
ConstTrackProxy operator*() const
static void reverseLookup([[maybe_unused]] const track_container_t &container, ElementConstReference element, index_type &index)
static index_type storedToExternal(stored_index_type index)
static void reset(stored_index_type &index)
Acts::ConstVectorMultiTrajectory TrackStateBackend
Acts::VectorMultiTrajectory MutableTrackStateBackend
track_container_t::IndexType index_type
The type of an index, as provided to or returned from a link.
std::optional< ConstTrackProxy > ElementConstReference
std::optional< ConstTrackProxy > ElementType
The type we get when we dereference a link, and derived types.
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
static bool isValid(const stored_index_type &index)
ConstTrackProxyPtr(ConstTrackProxy &&val)
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
ConstTrackProxyPtr(const ElementType *src)
ConstTrackProxyPtr(ConstTrackProxyPtr &&)=default
index_type stored_index_type
The type of an index, as stored internally within a link.
typename track_container_t::ConstTrackProxy ConstTrackProxy
The type of the const track proxy.
macros to associate a CLID to a type
ConstTrackProxyPtr(const ConstTrackProxyPtr &)=default
Acts::TrackContainer< TrackBackend, TrackStateBackend, Acts::detail::ValueHolder > TrackContainerBase