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>
21 using element_type = T;
23 DataLinkHolder(const DataLink<T>& link) : m_link{link} {}
24
25 const T& operator*() const { return *(m_link.cptr()); }
26 const T* operator->() const { return m_link.cptr(); }
27 T& operator*() { return *(m_link.ptr()); }
28 T* operator->() { return m_link.ptr(); }
29
30 operator bool() const { return m_link.isValid(); }
31 };
32
36
39 {
40 public:
41 using PersistentTrackContainerBase::PersistentTrackContainerBase;
42 using value_type = ConstTrackProxy;
43 ConstTrackProxy operator[](unsigned int index) const {
44 return getTrack(index);
45 }
46 bool empty() const {
47 return size() == 0;
48 }
49 };
50
52 : public Acts::TrackContainer<ActsTrk::MutablePersistentTrackBackend,
53 ActsTrk::MutablePersistentTrackStateBackend,
54 Acts::detail::ValueHolder> {
61 };
62
63} // namespace ActsTrk
64
67
68#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)