ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
Acts
ActsEvent
ActsEvent
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:
8
#include "
xAODTracking/TrackingPrimitives.h
"
9
#include "Acts/EventData/ProxyAccessor.hpp"
10
#include "
ActsEvent/Decoration.h
"
11
12
#include <cstdint>
13
#include <string>
14
15
namespace
ActsTrk
{
17
struct
TrackContainerUtils
18
{
21
template
<Acts::detail::ProxyType trackproxy_t>
22
static
void
setFitterType
(trackproxy_t &trackProxy,
xAOD::TrackFitter
fitterType
) {
23
s_fitterAccessor
(trackProxy) =
fitterType
;
24
}
25
28
template
<Acts::detail::ProxyType consttrackproxy_t>
29
static
xAOD::TrackFitter
fitterType
(
const
consttrackproxy_t &trackProxy) {
30
return
static_cast<
xAOD::TrackFitter
>
(
s_constFitterAccessor
(trackProxy));
31
}
32
35
template
<Acts::detail::ProxyType consttrackproxy_t>
36
static
bool
hasFitterType
(
const
consttrackproxy_t &trackProxy) {
37
return
s_constFitterAccessor
.hasColumn(trackProxy);
38
}
39
42
template
<
typename
track_container_t>
43
static
void
addFitterTypeProperty
(track_container_t &tracksContainer) { tracksContainer.template addColumn<UnderlyingOrSelf_t<xAOD::TrackFitter>>(
s_fitterColumnName
); }
44
47
template
<Acts::detail::ProxyType trackproxy_t>
48
static
void
setBremTrack
(trackproxy_t &trackProxy,
bool
bremTrack) {
49
s_bremTrackAccessor
(trackProxy) = bremTrack;
50
}
51
55
template
<Acts::detail::ProxyType consttrackproxy_t>
56
static
bool
isBremTrack
(
const
consttrackproxy_t &trackProxy) {
57
return
s_constBremTrackAccessor
.hasColumn(trackProxy) &&
s_constBremTrackAccessor
(trackProxy) != 0;
58
}
59
62
template
<
typename
track_container_t>
63
static
void
addBremTrackProperty
(track_container_t &tracksContainer) { tracksContainer.template addColumn<std::uint8_t>(
s_bremTrackColumnName
); }
64
65
private
:
66
static
constexpr
std::string_view
s_fitterColumnName
=
"fitter"
;
67
static
const
Acts::ProxyAccessor<UnderlyingOrSelf_t<xAOD::TrackFitter>>
s_fitterAccessor
;
68
static
const
Acts::ConstProxyAccessor<UnderlyingOrSelf_t<xAOD::TrackFitter>>
s_constFitterAccessor
;
69
70
static
constexpr
std::string_view
s_bremTrackColumnName
=
"bremTrack"
;
71
static
const
Acts::ProxyAccessor<std::uint8_t>
s_bremTrackAccessor
;
72
static
const
Acts::ConstProxyAccessor<std::uint8_t>
s_constBremTrackAccessor
;
73
};
74
}
75
#endif
Decoration.h
TrackingPrimitives.h
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition
MdtCalibInput.h:31
xAOD::TrackFitter
TrackFitter
Enums to identify who created this track and which properties does it have.
Definition
TrackingPrimitives.h:35
ActsTrk::TrackContainerUtils
Convenience struct which defines track augmentations.
Definition
TrackContainerUtils.h:18
ActsTrk::TrackContainerUtils::addFitterTypeProperty
static void addFitterTypeProperty(track_container_t &tracksContainer)
add fitter column to the track container
Definition
TrackContainerUtils.h:43
ActsTrk::TrackContainerUtils::s_fitterAccessor
static const Acts::ProxyAccessor< UnderlyingOrSelf_t< xAOD::TrackFitter > > s_fitterAccessor
Definition
TrackContainerUtils.h:67
ActsTrk::TrackContainerUtils::s_bremTrackAccessor
static const Acts::ProxyAccessor< std::uint8_t > s_bremTrackAccessor
Definition
TrackContainerUtils.h:71
ActsTrk::TrackContainerUtils::fitterType
static xAOD::TrackFitter fitterType(const consttrackproxy_t &trackProxy)
get fitter type of a track
Definition
TrackContainerUtils.h:29
ActsTrk::TrackContainerUtils::s_bremTrackColumnName
static constexpr std::string_view s_bremTrackColumnName
Definition
TrackContainerUtils.h:70
ActsTrk::TrackContainerUtils::addBremTrackProperty
static void addBremTrackProperty(track_container_t &tracksContainer)
add brem track column to the track container
Definition
TrackContainerUtils.h:63
ActsTrk::TrackContainerUtils::hasFitterType
static bool hasFitterType(const consttrackproxy_t &trackProxy)
test whether a track has a fitter type
Definition
TrackContainerUtils.h:36
ActsTrk::TrackContainerUtils::s_fitterColumnName
static constexpr std::string_view s_fitterColumnName
Definition
TrackContainerUtils.h:66
ActsTrk::TrackContainerUtils::s_constBremTrackAccessor
static const Acts::ConstProxyAccessor< std::uint8_t > s_constBremTrackAccessor
Definition
TrackContainerUtils.h:72
ActsTrk::TrackContainerUtils::setFitterType
static void setFitterType(trackproxy_t &trackProxy, xAOD::TrackFitter fitterType)
set fitter type of a track
Definition
TrackContainerUtils.h:22
ActsTrk::TrackContainerUtils::isBremTrack
static bool isBremTrack(const consttrackproxy_t &trackProxy)
test whether a track was found with the brem recovery of the track finding.
Definition
TrackContainerUtils.h:56
ActsTrk::TrackContainerUtils::setBremTrack
static void setBremTrack(trackproxy_t &trackProxy, bool bremTrack)
flag a track as found with the brem recovery of the track finding
Definition
TrackContainerUtils.h:48
ActsTrk::TrackContainerUtils::s_constFitterAccessor
static const Acts::ConstProxyAccessor< UnderlyingOrSelf_t< xAOD::TrackFitter > > s_constFitterAccessor
Definition
TrackContainerUtils.h:68
Generated on
for ATLAS Offline Software by
1.17.0