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"
22
23namespace ActsTrk
24{
25
27 {
28 public:
29 using AthReentrantAlgorithm::AthReentrantAlgorithm;
30 virtual ~ActsToTrkConvertorAlg() = default;
31
32 virtual StatusCode initialize() override;
33 virtual StatusCode execute(const EventContext &ctx) const override;
34
35 private:
36 StatusCode makeTracks(const EventContext &ctx,
37 const Acts::GeometryContext &tgContext,
38 const ActsTrk::TrackContainer &tracks,
39 ::TrackCollection &tracksContainer) const;
40
41 std::unique_ptr<Trk::MeasurementBase>
43 const Trk::TrackParameters &parm, bool getSecMeas) const;
44
45 private:
46 PublicToolHandle<ActsTrk::ITrackingGeometryTool> m_trackingGeometryTool{this, "TrackingGeometryTool", "ActsTrackingGeometryTool"};
47 ToolHandle<ActsTrk::IActsToTrkConverterTool> m_ATLASConverterTool{this, "ATLASConverterTool", "ActsToTrkConverterTool"};
48 ToolHandle<Trk::IBoundaryCheckTool> m_boundaryCheckTool{this, "BoundaryCheckTool", "InDet::InDetBoundaryCheckTool", "Boundary checking tool for detector sensitivities"};
49 ToolHandle<Trk::IRIO_OnTrackCreator> m_RotCreatorTool{this, "RotCreatorTool", "", "optional RIO_OnTrack creator tool"};
50 ToolHandle<Trk::IExtendedTrackSummaryTool> m_trkSummaryTool{this, "SummaryTool", "ToolHandle for track summary tool"};
51 ToolHandle<Muon::IMuonClusterOnTrackCreator> m_muonClusterCreator{this, "MuonClusterCreator", "", "Muon cluster creator tool"};
52
53 SG::ReadHandleKey<ActsTrk::TrackContainer> m_tracksContainerKey{this, "ACTSTracksLocation", "SiSPSeededActsTrackContainer",
54 "Output track collection (ActsTrk variant)"};
55 SG::WriteHandleKey<::TrackCollection> m_tracksKey{this, "TracksLocation", "SiSPSeededActsTracks",
56 "Output track collection"};
57
58 template <class PrdType>
59 const PrdType* fetchPrd(const Identifier& prdId, const Muon::MuonPrepDataContainerT<PrdType>* prdContainer) const;
66
67
68
69 };
70
71}
72
73#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
SG::ReadHandleKey< Muon::sTgcPrepDataContainer > m_keyStgc
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
std::unique_ptr< Trk::MeasurementBase > makeRIO_OnTrack(const xAOD::UncalibratedMeasurement &uncalibMeas, const Trk::TrackParameters &parm, bool getSecMeas) const
SG::WriteHandleKey<::TrackCollection > m_tracksKey
virtual ~ActsToTrkConvertorAlg()=default
const PrdType * fetchPrd(const Identifier &prdId, const Muon::MuonPrepDataContainerT< PrdType > *prdContainer) const
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
SG::ReadHandleKey< Muon::MdtPrepDataContainer > m_keyMdt
SG::ReadHandleKey< Muon::RpcPrepDataContainer > m_keyRpc
SG::ReadHandleKey< Muon::TgcPrepDataContainer > m_keyTgc
ToolHandle< Muon::IMuonClusterOnTrackCreator > m_muonClusterCreator
SG::ReadHandleKey< Muon::MMPrepDataContainer > m_keyMm
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...
MuonPrepDataContainer< MuonPrepDataCollection< PrdType > > MuonPrepDataContainerT
ParametersBase< TrackParametersDim, Charged > TrackParameters
UncalibratedMeasurement_v1 UncalibratedMeasurement
Define the version of the uncalibrated measurement class.