ATLAS Offline Software
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 
21 namespace 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
UncalibratedMeasurement.h
ActsTrk::ActsToTrkConvertorAlg::m_ATLASConverterTool
ToolHandle< ActsTrk::IActsToTrkConverterTool > m_ATLASConverterTool
Definition: ActsToTrkConvertorAlg.h:45
ActsTrk::TrackContainer
Definition: TrackContainer.h:30
ActsTrk::ActsToTrkConvertorAlg::m_boundaryCheckTool
ToolHandle< Trk::IBoundaryCheckTool > m_boundaryCheckTool
Definition: ActsToTrkConvertorAlg.h:46
ActsTrk::ActsToTrkConvertorAlg::initialize
virtual StatusCode initialize() override
Definition: ActsToTrkConvertorAlg.cxx:34
IRIO_OnTrackCreator.h
ActsTrk::ActsToTrkConvertorAlg::m_tracksKey
SG::WriteHandleKey<::TrackCollection > m_tracksKey
Definition: ActsToTrkConvertorAlg.h:52
ActsTrk::ActsToTrkConvertorAlg::~ActsToTrkConvertorAlg
virtual ~ActsToTrkConvertorAlg()=default
SG::ReadHandleKey< ActsTrk::TrackContainer >
ActsTrk::ActsToTrkConvertorAlg::m_tracksContainerKey
SG::ReadHandleKey< ActsTrk::TrackContainer > m_tracksContainerKey
Definition: ActsToTrkConvertorAlg.h:50
ActsTrk::ActsToTrkConvertorAlg::makeRIO_OnTrack
std::unique_ptr< Trk::MeasurementBase > makeRIO_OnTrack(const xAOD::UncalibratedMeasurement &uncalibMeas, const Trk::TrackParameters &parm) const
Definition: ActsToTrkConvertorAlg.cxx:226
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:74
xAOD::UncalibratedMeasurement_v1
Definition: UncalibratedMeasurement_v1.h:13
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TrackCollection.h
ActsTrk::ActsToTrkConvertorAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: ActsToTrkConvertorAlg.cxx:54
Trk::ParametersBase
Definition: ParametersBase.h:55
DataVector< Trk::Track >
ActsTrk::ActsToTrkConvertorAlg::makeTracks
StatusCode makeTracks(const EventContext &ctx, const Acts::GeometryContext &tgContext, const ActsTrk::TrackContainer &tracks, ::TrackCollection &tracksContainer) const
Definition: ActsToTrkConvertorAlg.cxx:76
ReadCondHandleKey.h
AthReentrantAlgorithm.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
ActsTrk::ActsToTrkConvertorAlg::m_RotCreatorTool
ToolHandle< Trk::IRIO_OnTrackCreator > m_RotCreatorTool
Definition: ActsToTrkConvertorAlg.h:47
IExtendedTrackSummaryTool.h
ActsTrk::ActsToTrkConvertorAlg::m_trackingGeometryTool
PublicToolHandle< ActsTrk::ITrackingGeometryTool > m_trackingGeometryTool
Definition: ActsToTrkConvertorAlg.h:44
IBoundaryCheckTool.h
ITrackingGeometryTool.h
IActsToTrkConverterTool.h
ActsTrk::ActsToTrkConvertorAlg::m_trkSummaryTool
ToolHandle< Trk::IExtendedTrackSummaryTool > m_trkSummaryTool
Definition: ActsToTrkConvertorAlg.h:48
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition: MSTrackingVolumeBuilder.cxx:24
TrackContainer.h
ActsTrk::ActsToTrkConvertorAlg
Definition: ActsToTrkConvertorAlg.h:25