ATLAS Offline Software
Loading...
Searching...
No Matches
TrackContainerHandlesHelper.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef ACTSTRKEVENT_TRACKCONTAINERHANDLESHELPER_H
6#define ACTSTRKEVENT_TRACKCONTAINERHANDLESHELPER_H
7
8#include <memory>
9
10#include "Acts/Geometry/TrackingGeometry.hpp"
15#include "GaudiKernel/StatusCode.h"
24
25namespace ActsTrk {
26
31std::string prefixFromTrackContainerName(const std::string& tracks);
32
34 public:
35
41 template <class PropOwner>
43
49 StatusCode initialize(std::string_view prefix);
50
51
52
53 std::unique_ptr<ActsTrk::PersistentTrackContainer> copyToPersistent(
55 const Acts::GeometryContext& geoContext,
56 const EventContext& evtContext) const;
57
65 std::unique_ptr<ActsTrk::PersistentTrackContainer> moveToConst(
67 const Acts::GeometryContext& geoContext,
68 const EventContext& evtContext) const;
69
70 private:
71 // MTJ part
78
82 std::unique_ptr<ActsTrk::MultiTrajectory> moveToConst(
84 const EventContext& context) const;
85
86 // TrackContainer part
90
91 Gaudi::Property<std::set<std::string>> m_excludeDecors;
92};
93
95 public:
101 StatusCode initialize(const std::string& prefix);
102
108 template <class PropOwner>
110
111 std::unique_ptr<ActsTrk::PersistentTrackContainer> build(
112 const Acts::TrackingGeometry* geo,
113 const Acts::GeometryContext& geoContext,
114 const EventContext& context) const;
115
116 private:
117 // restore the pointer to uncalibrated measurements from element links
119 // MTJ part
125
127 // build for MTJ part
128 std::unique_ptr<ActsTrk::MultiTrajectory> buildMtj(
129 const Acts::TrackingGeometry* geo,
130 const EventContext& context) const;
131 // TrackContainer part
132
133 // track and its backend
137};
138
139} // namespace ActsTrk
141#endif
static Double_t tc
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
SG::ReadHandleKey< xAOD::TrackMeasurementContainer > m_measurementsKey
std::unique_ptr< ActsTrk::PersistentTrackContainer > build(const Acts::TrackingGeometry *geo, const Acts::GeometryContext &geoContext, const EventContext &context) const
SG::ReadHandleKey< xAOD::TrackSurfaceContainer > m_surfacesKey
SG::WriteHandleKey< ActsTrk::MultiTrajectory > m_mtjKey
SG::ReadHandleKey< xAOD::TrackStateContainer > m_statesKey
void restoreUncalibMeasurementPtr(xAOD::TrackStateAuxContainer &statesLink) const
SG::ReadHandleKey< xAOD::TrackJacobianContainer > m_jacobiansKey
SG::WriteHandleKey< ActsTrk::TrackSummaryContainer > m_trackSummaryKey
ConstTrackContainerHandlesHelper(PropOwner *owner)
Constructor taking the pointer to the class holding the object used to declare the data dependency fr...
SG::ReadHandleKey< xAOD::TrackParametersContainer > m_parametersKey
SG::ReadHandleKey< xAOD::TrackSurfaceContainer > m_trackSurfacesKey
SG::ReadHandleKey< xAOD::TrackSummaryContainer > m_xAODTrackSummaryKey
std::unique_ptr< ActsTrk::MultiTrajectory > buildMtj(const Acts::TrackingGeometry *geo, const EventContext &context) const
Athena implementation of ACTS::MultiTrajectory (ReadWrite version) The data is stored in 4 external b...
std::unique_ptr< ActsTrk::PersistentTrackContainer > copyToPersistent(const ActsTrk::TrackContainer &tc, const Acts::GeometryContext &geoContext, const EventContext &evtContext) const
SG::WriteHandleKey< xAOD::TrackParametersContainer > m_parametersKey
std::unique_ptr< ActsTrk::PersistentTrackContainer > moveToConst(ActsTrk::MutablePersistentTrackContainer &&tc, const Acts::GeometryContext &geoContext, const EventContext &evtContext) const
produces ActsTrk::ConstTrackContainer with all backends stored in SG
SG::WriteHandleKey< xAOD::TrackMeasurementContainer > m_measurementsKey
Gaudi::Property< std::set< std::string > > m_excludeDecors
SG::WriteHandleKey< xAOD::TrackSurfaceContainer > m_trackSurfacesKey
SG::WriteHandleKey< xAOD::TrackJacobianContainer > m_jacobiansKey
SG::WriteHandleKey< ActsTrk::MultiTrajectory > m_mtjKey
SG::WriteHandleKey< xAOD::TrackSummaryContainer > m_xAODTrackSummaryKey
SG::WriteHandleKey< ActsTrk::TrackSummaryContainer > m_trackSummaryKey
SG::WriteHandleKey< xAOD::TrackStateContainer > m_statesKey
MutableTrackContainerHandlesHelper(PropOwner *owner)
Constructor taking the pointer to the class holding the object used to declare the data dependency fr...
SG::WriteHandleKey< xAOD::TrackSurfaceContainer > m_surfacesKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
std::string prefixFromTrackContainerName(const std::string &tracks)
Parse TrackContainer name to get the prefix for backends The name has to contain XYZTracks,...
TrackStateAuxContainer_v1 TrackStateAuxContainer
void initialize()