ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
Acts
ActsToolInterfaces
ActsToolInterfaces
ITrackConverterTool.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 ACTSGEOMETRYINTERFACES_ITrackConverterTool_H
6
#define ACTSGEOMETRYINTERFACES_ITrackConverterTool_H
7
8
// ATHENA
9
#include <memory>
10
#include <variant>
11
12
#include "GaudiKernel/IAlgTool.h"
13
#include "GaudiKernel/IInterface.h"
14
#include "
StoreGate/WriteHandle.h
"
15
#include "
TrkParameters/TrackParameters.h
"
//typedef, cannot fwd declare
16
#include "
TrkTrack/TrackCollection.h
"
17
#include "
xAODMeasurementBase/UncalibratedMeasurement.h
"
//typedef, cannot fwd declare
18
#include "
xAODTracking/TrackJacobianContainer.h
"
19
#include "
xAODTracking/TrackMeasurementContainer.h
"
20
#include "
xAODTracking/TrackParametersContainer.h
"
21
#include "
xAODTracking/TrackStateContainer.h
"
22
#include "Acts/EventData/BoundTrackParameters.hpp"
23
#include "Acts/EventData/VectorTrackContainer.hpp"
24
#include "
ActsEvent/TrackContainer.h
"
25
26
namespace
Trk
{
27
class
Track
;
28
class
MeasurementBase
;
29
class
PrepRawData
;
30
}
// namespace Trk
31
32
namespace
Acts
{
33
class
Surface;
34
class
SourceLink;
35
}
36
37
38
namespace
ActsTrk
{
43
class
ITrackConverterTool
:
virtual
public
IAlgTool {
44
public
:
45
DeclareInterfaceID
(
ITrackConverterTool
, 1, 0);
47
using
ConstTrack_t
= TrackContainer::ConstTrackProxy;
48
using
Track_t
= MutableTrackContainer::TrackProxy;
49
using
TrackFitResult_t
= Acts::Result<Track_t, std::error_code>;
53
virtual
std::vector<Acts::SourceLink>
trkTrackToSourceLinks
(
const
Trk::Track
& track)
const
= 0;
59
using
ActsTrack_t
= ActsTrk::MutableTrackContainer::TrackProxy;
60
virtual
std::unique_ptr<Trk::Track>
convertActsToTrk
(
const
EventContext& ctx,
61
const
ActsTrack_t
& actsTrack,
62
const
Trk::TrackInfo::TrackFitter
fitAuthor)
const
= 0;
66
virtual
std::unique_ptr<Trk::Track>
convertTrack
(
const
EventContext& ctx,
67
const
ConstTrack_t
& trackProxy)
const
= 0;
74
virtual
void
convertTrkToActsContainer
(
const
EventContext& ctx,
75
const
TrackCollection
& trackColl,
76
ActsTrk::MutableTrackContainer
& outTrackColl)
const
= 0;
77
81
virtual
std::unique_ptr<TrackCollection>
82
convertActsToTrkContainer
(
const
EventContext& ctx,
83
const
ActsTrk::TrackContainer
& trackCont)
const
= 0;
84
85
};
86
}
// namespace ActsTrk
87
88
#endif
TrackParametersContainer.h
WriteHandle.h
Handle class for recording to StoreGate.
TrackCollection.h
TrackCollection
DataVector< Trk::Track > TrackCollection
This typedef represents a collection of Trk::Track objects.
Definition
TrackCollection.h:19
TrackContainer.h
TrackJacobianContainer.h
TrackMeasurementContainer.h
TrackStateContainer.h
TrackParameters.h
UncalibratedMeasurement.h
ActsTrk::ITrackConverterTool
ConversionTool between the Acts Track EDM and the Trk::Track EDM.
Definition
ITrackConverterTool.h:43
ActsTrk::ITrackConverterTool::trkTrackToSourceLinks
virtual std::vector< Acts::SourceLink > trkTrackToSourceLinks(const Trk::Track &track) const =0
Converts the Trk measurement track states into a vector of Acts::Source links.
ActsTrk::ITrackConverterTool::Track_t
MutableTrackContainer::TrackProxy Track_t
Definition
ITrackConverterTool.h:48
ActsTrk::ITrackConverterTool::convertActsToTrk
virtual std::unique_ptr< Trk::Track > convertActsToTrk(const EventContext &ctx, const ActsTrack_t &actsTrack, const Trk::TrackInfo::TrackFitter fitAuthor) const =0
ActsTrk::ITrackConverterTool::TrackFitResult_t
Acts::Result< Track_t, std::error_code > TrackFitResult_t
Definition
ITrackConverterTool.h:49
ActsTrk::ITrackConverterTool::ConstTrack_t
TrackContainer::ConstTrackProxy ConstTrack_t
Abrivate the Track Proxy.
Definition
ITrackConverterTool.h:47
ActsTrk::ITrackConverterTool::convertTrkToActsContainer
virtual void convertTrkToActsContainer(const EventContext &ctx, const TrackCollection &trackColl, ActsTrk::MutableTrackContainer &outTrackColl) const =0
Convert the Trk::Track in the passed TrackCollection into Acts tracks and appends the result to the p...
ActsTrk::ITrackConverterTool::ActsTrack_t
ActsTrk::MutableTrackContainer::TrackProxy ActsTrack_t
Convert the Acts fit result into a Trk::Track object, if the fit was successful.
Definition
ITrackConverterTool.h:59
ActsTrk::ITrackConverterTool::DeclareInterfaceID
DeclareInterfaceID(ITrackConverterTool, 1, 0)
ActsTrk::ITrackConverterTool::convertActsToTrkContainer
virtual std::unique_ptr< TrackCollection > convertActsToTrkContainer(const EventContext &ctx, const ActsTrk::TrackContainer &trackCont) const =0
Converts the Acts track container to a Trk::Track collection.
ActsTrk::ITrackConverterTool::convertTrack
virtual std::unique_ptr< Trk::Track > convertTrack(const EventContext &ctx, const ConstTrack_t &trackProxy) const =0
Converts a const Acts::Track into.
ActsTrk::TrackContainer
Definition
TrackContainer.h:31
Trk::MeasurementBase
This class is the pure abstract base class for all fittable tracking measurements.
Definition
MeasurementBase.h:58
Trk::PrepRawData
Definition
PrepRawData.h:62
Trk::TrackInfo::TrackFitter
TrackFitter
enums to identify who created this track and what propertis does it have.
Definition
Tracking/TrkEvent/TrkTrack/TrkTrack/TrackInfo.h:39
Trk::Track
The ATLAS Track class.
Definition
Tracking/TrkEvent/TrkTrack/TrkTrack/Track.h:73
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition
MdtCalibInput.h:31
ActsTrk::MutableTrackContainer
Acts::TrackContainer< MutableTrackBackend, MutableTrackStateBackend, Acts::detail::ValueHolder > MutableTrackContainer
Definition
TrackContainer.h:25
Acts
This class is not to needed in AthSimulation.
Definition
MuonSpectrometer/MuonPhaseII/Event/xAOD/xAODMuonPrepData/xAODMuonPrepData/UtilFunctions.h:23
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition
FakeTrackBuilder.h:9
Generated on
for ATLAS Offline Software by
1.17.0