ATLAS Offline Software
Loading...
Searching...
No Matches
ActsToTrkConvertorAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef ACTSEVENTCNV_ACTSTOTRK_CONVERTER_ALG_H
6#define ACTSEVENTCNV_ACTSTOTRK_CONVERTER_ALG_H
7
19#include "Acts/Geometry/GeometryContext.hpp"
20
21namespace ActsTrk
22{
23
25 {
26 public:
27 using AthReentrantAlgorithm::AthReentrantAlgorithm;
28 virtual ~ActsToTrkConvertorAlg() = default;
29
30 virtual StatusCode initialize() override;
31 virtual StatusCode execute(const EventContext &ctx) const override;
32
33 private:
34 StatusCode makeTracks(const EventContext &ctx,
35 const Acts::GeometryContext &tgContext,
36 const ActsTrk::TrackContainer &tracks,
37 ::TrackCollection &tracksContainer) const;
38
39 std::unique_ptr<Trk::MeasurementBase>
41 const Trk::TrackParameters &parm) const;
42
43 private:
44 PublicToolHandle<ActsTrk::ITrackingGeometryTool> m_trackingGeometryTool{this, "TrackingGeometryTool", "ActsTrackingGeometryTool"};
45 ToolHandle<ActsTrk::IActsToTrkConverterTool> m_ATLASConverterTool{this, "ATLASConverterTool", "ActsToTrkConverterTool"};
46 ToolHandle<Trk::IBoundaryCheckTool> m_boundaryCheckTool{this, "BoundaryCheckTool", "InDet::InDetBoundaryCheckTool", "Boundary checking tool for detector sensitivities"};
47 ToolHandle<Trk::IRIO_OnTrackCreator> m_RotCreatorTool{this, "RotCreatorTool", "", "optional RIO_OnTrack creator tool"};
48 ToolHandle<Trk::IExtendedTrackSummaryTool> m_trkSummaryTool{this, "SummaryTool", "ToolHandle for track summary tool"};
49
50 SG::ReadHandleKey<ActsTrk::TrackContainer> m_tracksContainerKey{this, "ACTSTracksLocation", "SiSPSeededActsTrackContainer",
51 "Output track collection (ActsTrk variant)"};
52 SG::WriteHandleKey<::TrackCollection> m_tracksKey{this, "TracksLocation", "SiSPSeededActsTracks",
53 "Output track collection"};
54 };
55
56}
57
58#endif
Property holding a SG store/key/clid from which a WriteHandle is made.
DataVector< Trk::Track > TrackCollection
This typedef represents a collection of Trk::Track objects.
ToolHandle< Trk::IBoundaryCheckTool > m_boundaryCheckTool
ToolHandle< ActsTrk::IActsToTrkConverterTool > m_ATLASConverterTool
ToolHandle< Trk::IExtendedTrackSummaryTool > m_trkSummaryTool
StatusCode makeTracks(const EventContext &ctx, const Acts::GeometryContext &tgContext, const ActsTrk::TrackContainer &tracks, ::TrackCollection &tracksContainer) const
virtual StatusCode initialize() override
virtual StatusCode execute(const EventContext &ctx) const override
SG::ReadHandleKey< ActsTrk::TrackContainer > m_tracksContainerKey
ToolHandle< Trk::IRIO_OnTrackCreator > m_RotCreatorTool
SG::WriteHandleKey<::TrackCollection > m_tracksKey
virtual ~ActsToTrkConvertorAlg()=default
std::unique_ptr< Trk::MeasurementBase > makeRIO_OnTrack(const xAOD::UncalibratedMeasurement &uncalibMeas, const Trk::TrackParameters &parm) const
PublicToolHandle< ActsTrk::ITrackingGeometryTool > m_trackingGeometryTool
An algorithm that can be simultaneously executed in multiple threads.
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...
ParametersBase< TrackParametersDim, Charged > TrackParameters
UncalibratedMeasurement_v1 UncalibratedMeasurement
Define the version of the uncalibrated measurement class.