ATLAS Offline Software
Loading...
Searching...
No Matches
TrackContainerUtils.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3 */
4#ifndef ACTSTRK_TRACKCONTAINERUTILS_H
5#define ACTSTRK_TRACKCONTAINERUTILS_H
6
7// fitter definition:
9#include "Acts/EventData/ProxyAccessor.hpp"
10
11#include <string>
12
13namespace ActsTrk {
16{
19 template <Acts::detail::ProxyType trackproxy_t>
20 static void setFitterType(trackproxy_t &trackProxy, xAOD::TrackFitter fitterType) {
21 s_fitterAccessor(trackProxy) = fitterType;
22 }
23
26 template <Acts::detail::ConstProxyType consttrackproxy_t>
27 static xAOD::TrackFitter fitterType(const consttrackproxy_t &trackProxy) {
28 return s_constFitterAccessor(trackProxy);
29 }
30
33 template <Acts::detail::ConstProxyType consttrackproxy_t>
34 static bool hasFitterType(const consttrackproxy_t &trackProxy) {
35 return s_constFitterAccessor.hasColumn(trackProxy);
36 }
37
40 template <typename track_container_t>
41 static void addFitterTypeProperty(track_container_t &tracksContainer) { tracksContainer.template addColumn<xAOD::TrackFitter>(s_fitterColumnName); }
42
43private:
44 static const std::string s_fitterColumnName;
45 static const Acts::ProxyAccessor<xAOD::TrackFitter> s_fitterAccessor;
46 static const Acts::ConstProxyAccessor<xAOD::TrackFitter> s_constFitterAccessor;
47};
48}
49#endif
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
TrackFitter
Enums to identify who created this track and which properties does it have.
Convenience struct which defines track augmentations.
static void addFitterTypeProperty(track_container_t &tracksContainer)
add fitter column to the track container
static const Acts::ConstProxyAccessor< xAOD::TrackFitter > s_constFitterAccessor
static xAOD::TrackFitter fitterType(const consttrackproxy_t &trackProxy)
get fitter type of a track
static bool hasFitterType(const consttrackproxy_t &trackProxy)
test whether a track has a fitter type
static void setFitterType(trackproxy_t &trackProxy, xAOD::TrackFitter fitterType)
set fitter type of a track
static const std::string s_fitterColumnName
static const Acts::ProxyAccessor< xAOD::TrackFitter > s_fitterAccessor