ATLAS Offline Software
Loading...
Searching...
No Matches
PersistentTrackContainer.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef ACTSTRKEVENT_PERSISTENTTRACKCONTAINER_H
6#define ACTSTRKEVENT_PERSISTENTTRACKCONTAINER_H
7
10#include "Acts/EventData/TrackContainer.hpp"
11
12namespace ActsTrk {
13 // Containers with xAOD backends - this is for persistification
18
19 template <typename T>
22 DataLinkHolder(const DataLink<T>& link) : m_link{link} {}
23
24 const T& operator*() const { return *(m_link.cptr()); }
25 const T* operator->() const { return m_link.cptr(); }
26 };
27
31
34 {
35 public:
36 using PersistentTrackContainerBase::PersistentTrackContainerBase;
37 using value_type = ConstTrackProxy;
38 ConstTrackProxy operator[](unsigned int index) const {
39 return getTrack(index);
40 }
41 bool empty() const {
42 return size() == 0;
43 }
44 };
45
47 : public Acts::TrackContainer<ActsTrk::MutablePersistentTrackBackend,
48 ActsTrk::MutablePersistentTrackStateBackend,
49 Acts::detail::ValueHolder> {
56 };
57
58} // namespace ActsTrk
59
62
63#endif
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Read only version of MTJ The implementation is separate as the details are significantly different an...
Athena implementation of ACTS::MultiTrajectory (ReadWrite version) The data is stored in 4 external b...
ConstTrackProxy operator[](unsigned int index) const
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Acts::TrackContainer< ActsTrk::PersistentTrackBackend, ActsTrk::PersistentTrackStateBackend, ActsTrk::DataLinkHolder > PersistentTrackContainerBase
ActsTrk::MutableMultiTrajectory MutablePersistentTrackStateBackend
ActsTrk::TrackSummaryContainer PersistentTrackBackend
ActsTrk::MultiTrajectory PersistentTrackStateBackend
ActsTrk::MutableTrackSummaryContainer MutablePersistentTrackBackend
Definition index.py:1
DataLinkHolder(const DataLink< T > &link)