ATLAS Offline Software
ProtoTrackCreationAndFitAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ACTSTRACKRECONSTRUCTION_PROTOTRACKCREATIONANDFITALG_H
6 #define ACTSTRACKRECONSTRUCTION_PROTOTRACKCREATIONANDFITALG_H 1
7 
11 
21 
22 namespace
23 {
24  // Forward-declare internal classes defined in TrackFindingData.h and used only in TrackFindingAlg.cxx.
25  // Define in the anonymous namespace to prevent unnecessary external linkage.
26  class TrackFindingMeasurements;
27  class DuplicateSeedDetector;
28 }
29 
30 
31 
32 namespace ActsTrk{
34  public:
35  ProtoTrackCreationAndFitAlg( const std::string& name, ISvcLocator* pSvcLocator );
36  virtual ~ProtoTrackCreationAndFitAlg() = default;
37 
39 
40  //IS EXECUTED:
41  virtual StatusCode initialize() override final; //once, before any input is loaded
42  virtual StatusCode execute(const EventContext & ctx) const override final;
43 
44  private:
45 
46  // the pixel clusters to read as input
47  SG::ReadHandleKey<xAOD::PixelClusterContainer> m_PixelClusters{this, "PixelClusterContainer","","the pix clusters"};
48  // the strip clusters to read as input
49  SG::ReadHandleKey<xAOD::StripClusterContainer> m_StripClusters{this, "StripClusterContainer","","the strip clusters"};
50  // the user-provided pattern recognition tool to test
51  ToolHandle<ActsTrk::IProtoTrackCreatorTool> m_patternBuilder{this, "PatternBuilder", "", "the pattern builder to use"};
52  // the track fitter to use for the refit
53  ToolHandle<ActsTrk::IFitterTool> m_actsFitter{this, "ActsFitter", "", "Choice of Acts Fitter (Kalman by default)"};
54  // tracking geometry - used to translate ATLAS to ACTS geometry
55  ToolHandle<IActsTrackingGeometryTool> m_trackingGeometryTool{this, "TrackingGeometryTool", ""};
56  // more conversion helpers
57  ToolHandle<ActsTrk::IActsToTrkConverterTool> m_ATLASConverterTool{this, "ATLASConverterTool", ""};
58  // detector element collections - again needed for geometry translation
59  SG::ReadCondHandleKeyArray<InDetDD::SiDetectorElementCollection> m_detEleCollKeys{this, "DetectorElementCollectionKeys", {}, "input SiDetectorElementCollection"};
60  // ACTS extrapolation tool - provides the magnetic field
61  ToolHandle<IActsExtrapolationTool> m_extrapolationTool{this, "ExtrapolationTool", ""};
62  // output location to write to
63  SG::WriteHandleKey<ActsTrk::TrackContainer> m_trackContainerKey{this, "ACTSTracksLocation", "", "Output track collection (ActsTrk variant)"};
64  // acts helper for the output
66 
67 
68 
69  };
70 
71 }
72 
73 #endif //> !ACTSTRACKRECONSTRUCTION_PROTOTRACKCREATIONANDFITALG_H
ActsTrk::ProtoTrackCreationAndFitAlg::m_actsFitter
ToolHandle< ActsTrk::IFitterTool > m_actsFitter
Definition: ProtoTrackCreationAndFitAlg.h:53
ActsTrk::ProtoTrackCreationAndFitAlg::m_trackingGeometryTool
ToolHandle< IActsTrackingGeometryTool > m_trackingGeometryTool
Definition: ProtoTrackCreationAndFitAlg.h:55
TrackParameters.h
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
ActsTrk::ProtoTrackCreationAndFitAlg::m_patternBuilder
ToolHandle< ActsTrk::IProtoTrackCreatorTool > m_patternBuilder
Definition: ProtoTrackCreationAndFitAlg.h:51
ActsTrk::ProtoTrackCreationAndFitAlg::m_extrapolationTool
ToolHandle< IActsExtrapolationTool > m_extrapolationTool
Definition: ProtoTrackCreationAndFitAlg.h:61
ActsTrk::ProtoTrackCreationAndFitAlg::m_trackContainerKey
SG::WriteHandleKey< ActsTrk::TrackContainer > m_trackContainerKey
Definition: ProtoTrackCreationAndFitAlg.h:63
ActsTrk::ProtoTrackCreationAndFitAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition: ProtoTrackCreationAndFitAlg.cxx:29
ActsTrk::ProtoTrackCreationAndFitAlg::m_PixelClusters
SG::ReadHandleKey< xAOD::PixelClusterContainer > m_PixelClusters
Definition: ProtoTrackCreationAndFitAlg.h:47
IProtoTrackCreatorTool.h
SG::HandleKeyArray
Definition: StoreGate/StoreGate/HandleKeyArray.h:38
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:562
SG::ReadHandleKey< xAOD::StripClusterContainer >
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
ActsTrk::ProtoTrackCreationAndFitAlg::~ProtoTrackCreationAndFitAlg
virtual ~ProtoTrackCreationAndFitAlg()=default
ActsTrk::ProtoTrackCreationAndFitAlg
Definition: ProtoTrackCreationAndFitAlg.h:33
ActsTrk::ProtoTrackCreationAndFitAlg::m_tracksBackendHandlesHelper
ActsTrk::MutableTrackContainerHandlesHelper m_tracksBackendHandlesHelper
Definition: ProtoTrackCreationAndFitAlg.h:65
ActsTrk::ProtoTrackCreationAndFitAlg::initialize
virtual StatusCode initialize() override final
uncomment and implement methods as required
Definition: ProtoTrackCreationAndFitAlg.cxx:14
SG::WriteHandleKey< ActsTrk::TrackContainer >
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
PixelClusterContainer.h
ActsTrk::MutableTrackContainerHandlesHelper
Definition: TrackContainerHandlesHelper.h:33
ActsTrk::ProtoTrackCreationAndFitAlg::ProtoTrackCreationAndFitAlg
ProtoTrackCreationAndFitAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: ProtoTrackCreationAndFitAlg.cxx:11
CondHandleKeyArray.h
AthReentrantAlgorithm.h
ActsTrk::ProtoTrackCreationAndFitAlg::m_detEleCollKeys
SG::ReadCondHandleKeyArray< InDetDD::SiDetectorElementCollection > m_detEleCollKeys
Definition: ProtoTrackCreationAndFitAlg.h:59
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
xAOD::PixelClusterContainer
PixelClusterContainer_v1 PixelClusterContainer
Define the version of the pixel cluster container.
Definition: Event/xAOD/xAODInDetMeasurement/xAODInDetMeasurement/PixelClusterContainer.h:14
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
ActsTrk::ProtoTrackCreationAndFitAlg::m_StripClusters
SG::ReadHandleKey< xAOD::StripClusterContainer > m_StripClusters
Definition: ProtoTrackCreationAndFitAlg.h:49
IFitterTool.h
SiDetectorElementCollection.h
StripClusterContainer.h
IActsToTrkConverterTool.h
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition: MuonDetectorBuilderTool.cxx:34
TrackContainerHandlesHelper.h
ActsTrk::ProtoTrackCreationAndFitAlg::m_ATLASConverterTool
ToolHandle< ActsTrk::IActsToTrkConverterTool > m_ATLASConverterTool
Definition: ProtoTrackCreationAndFitAlg.h:57
IActsTrackingGeometryTool.h
IActsExtrapolationTool.h