ATLAS Offline Software
FPGATrackSimPrototrackFitterAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ACTSTRACKRECONSTRUCTION_FPGATRACKSIMPROTOTRACKFITTERALG_H
6 #define ACTSTRACKRECONSTRUCTION_FPGATRACKSIMPROTOTRACKFITTERALG_H 1
7 
10 
16 
18 
19 namespace FPGATrackSim{
21  public:
22  FPGATrackSimPrototrackFitterAlg( const std::string& name, ISvcLocator* pSvcLocator );
23  virtual ~FPGATrackSimPrototrackFitterAlg() = default;
24 
26 
27  //IS EXECUTED:
28  virtual StatusCode initialize() override final; //once, before any input is loaded
29  virtual StatusCode execute(const EventContext & ctx) const override final;
30 
31  private:
32  // the track fitter to use for the refit
33  ToolHandle<ActsTrk::IFitterTool> m_actsFitter{this, "ActsFitter", "", "Choice of Acts Fitter (Kalman by default)"};
34  // tracking geometry - used to translate ATLAS to ACTS geometry
35  ToolHandle<IActsTrackingGeometryTool> m_trackingGeometryTool{this, "TrackingGeometryTool", ""};
36  // ACTS extrapolation tool - provides the magnetic field
37  ToolHandle<IActsExtrapolationTool> m_extrapolationTool{this, "ExtrapolationTool", ""};
38  // output location to write to
39  SG::WriteHandleKey<ActsTrk::TrackContainer> m_trackContainerKey{this, "ACTSTracksLocation", "", "Output track collection (ActsTrk variant)"};
40  // acts helper for the output
42  // prototrack collection from FPGAClusters or FPGATracks
43  SG::ReadHandleKey<ActsTrk::ProtoTrackCollection> m_ProtoTrackCollectionFromFPGAKey{this, "FPGATrackSimActsProtoTracks","","FPGATrackSim PrototrackCollection"};
45  {this, "DetectorElementToActsGeometryIdMapKey", "DetectorElementToActsGeometryIdMap",
46  "Map which associates detector elements to Acts Geometry IDs"};
47 
48  };
49 
50 }
51 
52 #endif //> !ACTSTRACKRECONSTRUCTION_PROTOTRACKCREATIONANDFITALG_H
FPGATrackSim::FPGATrackSimPrototrackFitterAlg::initialize
virtual StatusCode initialize() override final
uncomment and implement methods as required
Definition: FPGATrackSimPrototrackFitterAlg.cxx:11
FPGATrackSim::FPGATrackSimPrototrackFitterAlg::m_actsFitter
ToolHandle< ActsTrk::IFitterTool > m_actsFitter
Definition: FPGATrackSimPrototrackFitterAlg.h:33
FPGATrackSim::FPGATrackSimPrototrackFitterAlg::m_tracksBackendHandlesHelper
ActsTrk::MutableTrackContainerHandlesHelper m_tracksBackendHandlesHelper
Definition: FPGATrackSimPrototrackFitterAlg.h:41
FPGATrackSim::FPGATrackSimPrototrackFitterAlg::~FPGATrackSimPrototrackFitterAlg
virtual ~FPGATrackSimPrototrackFitterAlg()=default
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
SG::ReadHandleKey< ActsTrk::ProtoTrackCollection >
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
FPGATrackSim::FPGATrackSimPrototrackFitterAlg::m_extrapolationTool
ToolHandle< IActsExtrapolationTool > m_extrapolationTool
Definition: FPGATrackSimPrototrackFitterAlg.h:37
FPGATrackSim::FPGATrackSimPrototrackFitterAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition: FPGATrackSimPrototrackFitterAlg.cxx:23
SG::WriteHandleKey< ActsTrk::TrackContainer >
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ActsTrk::MutableTrackContainerHandlesHelper
Definition: TrackContainerHandlesHelper.h:33
FPGATrackSim
Definition: FPGATrackSimPrototrackFitterAlg.h:19
CondHandleKeyArray.h
ProtoTrackCollection.h
AthReentrantAlgorithm.h
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
IFitterTool.h
SG::ReadCondHandleKey< ActsTrk::DetectorElementToActsGeometryIdMap >
FPGATrackSim::FPGATrackSimPrototrackFitterAlg::m_trackContainerKey
SG::WriteHandleKey< ActsTrk::TrackContainer > m_trackContainerKey
Definition: FPGATrackSimPrototrackFitterAlg.h:39
FPGATrackSim::FPGATrackSimPrototrackFitterAlg
Definition: FPGATrackSimPrototrackFitterAlg.h:20
FPGATrackSim::FPGATrackSimPrototrackFitterAlg::FPGATrackSimPrototrackFitterAlg
FPGATrackSimPrototrackFitterAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: FPGATrackSimPrototrackFitterAlg.cxx:8
FPGATrackSim::FPGATrackSimPrototrackFitterAlg::m_detectorElementToGeometryIdMapKey
SG::ReadCondHandleKey< ActsTrk::DetectorElementToActsGeometryIdMap > m_detectorElementToGeometryIdMapKey
Definition: FPGATrackSimPrototrackFitterAlg.h:45
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition: MuonDetectorBuilderTool.cxx:54
TrackContainerHandlesHelper.h
FPGATrackSim::FPGATrackSimPrototrackFitterAlg::m_trackingGeometryTool
ToolHandle< IActsTrackingGeometryTool > m_trackingGeometryTool
Definition: FPGATrackSimPrototrackFitterAlg.h:35
IActsTrackingGeometryTool.h
IActsExtrapolationTool.h
DetectorElementToActsGeometryIdMap.h
FPGATrackSim::FPGATrackSimPrototrackFitterAlg::m_ProtoTrackCollectionFromFPGAKey
SG::ReadHandleKey< ActsTrk::ProtoTrackCollection > m_ProtoTrackCollectionFromFPGAKey
Definition: FPGATrackSimPrototrackFitterAlg.h:43