ATLAS Offline Software
SeedsToTrackParamsAlg.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 ACTSTRKANALYSIS_SEEDSTOTRACKPARAMSALG_H
6 #define ACTSTRKANALYSIS_SEEDSTOTRACKPARAMSALG_H
7 
9 
11 
16 
17 #include "ActsEvent/Seed.h"
21 
23 
24 #include <vector>
25 namespace ActsTrk {
26 
28  public:
29  SeedsToTrackParamsAlg(const std::string& name, ISvcLocator* pSvcLocator);
30 
31  virtual StatusCode initialize() override;
32  virtual StatusCode execute(const EventContext &ctx) const override;
33 
34  private:
35  ToolHandle<IActsExtrapolationTool> m_extrapolationTool{this, "ExtrapolationTool", ""};
36  PublicToolHandle<ActsTrk::ITrackingGeometryTool> m_trackingGeometryTool{this, "TrackingGeometryTool", ""};
37  ToolHandle< ActsTrk::IActsToTrkConverterTool > m_ATLASConverterTool{this, "ATLASConverterTool", ""};
38  ToolHandle<ActsTrk::ITrackParamsEstimationTool> m_paramEstimationTool{this, "TrackParamsEstimationTool", "", "Track Param Estimation from Seeds"};
39 
40  SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection> m_detEleCollKey{this, "DetectorElementsKey", {}, "Key of input SiDetectorElementCollection"};
41 
42  SG::ReadHandleKey<ActsTrk::SeedContainer> m_inputSeedContainerKey{this, "InputSeedContainerKey", "", "Name of the input seed container"};
43  SG::WriteHandleKey<ActsTrk::BoundTrackParametersContainer> m_outputTrackParamsCollectionKey{this, "OutputTrackParamsCollectionKey","", "Name of the output track parameters collection"};
44 
45  Gaudi::Property<bool> m_autoReverseSearch{this, "autoReverseSearch", false, "Whether to run the finding in seed parameter direction (false or not specified) or reverse direction (true), automatically determined by the param estimation tool"};
46  Gaudi::Property<std::vector<double>> m_useTopSpRZboundary {this, "useTopSpRZboundary", {350. * Acts::UnitConstants::mm, 1060. * Acts::UnitConstants::mm}, "R/Z boundary for using the top space point in the track parameter estimation"};
47 
48  bool shouldReverseSearch(const ActsTrk::Seed& seed) const;
49 
50  };
51 
52 }
53 
54 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
ActsTrk::SeedsToTrackParamsAlg::m_inputSeedContainerKey
SG::ReadHandleKey< ActsTrk::SeedContainer > m_inputSeedContainerKey
Definition: SeedsToTrackParamsAlg.h:42
ActsTrk::SeedsToTrackParamsAlg::m_paramEstimationTool
ToolHandle< ActsTrk::ITrackParamsEstimationTool > m_paramEstimationTool
Definition: SeedsToTrackParamsAlg.h:38
python.SystemOfUnits.mm
float mm
Definition: SystemOfUnits.py:98
TrackParameters.h
ActsTrk::SeedsToTrackParamsAlg
Definition: SeedsToTrackParamsAlg.h:27
ActsTrk::SeedsToTrackParamsAlg::m_useTopSpRZboundary
Gaudi::Property< std::vector< double > > m_useTopSpRZboundary
Definition: SeedsToTrackParamsAlg.h:46
ActsTrk::SeedsToTrackParamsAlg::SeedsToTrackParamsAlg
SeedsToTrackParamsAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: SeedsToTrackParamsAlg.cxx:12
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
SeedContainer.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:74
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
ActsTrk::SeedsToTrackParamsAlg::m_detEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_detEleCollKey
Definition: SeedsToTrackParamsAlg.h:40
ActsTrk::SeedsToTrackParamsAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: SeedsToTrackParamsAlg.cxx:32
columnar::final
CM final
Definition: ColumnAccessor.h:106
ActsTrk::SeedsToTrackParamsAlg::m_autoReverseSearch
Gaudi::Property< bool > m_autoReverseSearch
Definition: SeedsToTrackParamsAlg.h:45
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
Seed.h
ActsTrk::SeedsToTrackParamsAlg::m_trackingGeometryTool
PublicToolHandle< ActsTrk::ITrackingGeometryTool > m_trackingGeometryTool
Definition: SeedsToTrackParamsAlg.h:36
SiDetectorElementCollection.h
ActsTrk::ActsSeed
Definition: Seed.h:18
ActsTrk::SeedsToTrackParamsAlg::shouldReverseSearch
bool shouldReverseSearch(const ActsTrk::Seed &seed) const
Definition: SeedsToTrackParamsAlg.cxx:86
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection >
ActsTrk::SeedsToTrackParamsAlg::initialize
virtual StatusCode initialize() override
Definition: SeedsToTrackParamsAlg.cxx:17
ActsTrk::SeedsToTrackParamsAlg::m_outputTrackParamsCollectionKey
SG::WriteHandleKey< ActsTrk::BoundTrackParametersContainer > m_outputTrackParamsCollectionKey
Definition: SeedsToTrackParamsAlg.h:43
ActsTrk::SeedsToTrackParamsAlg::m_extrapolationTool
ToolHandle< IActsExtrapolationTool > m_extrapolationTool
Definition: SeedsToTrackParamsAlg.h:35
ITrackingGeometryTool.h
ActsTrk::SeedsToTrackParamsAlg::m_ATLASConverterTool
ToolHandle< ActsTrk::IActsToTrkConverterTool > m_ATLASConverterTool
Definition: SeedsToTrackParamsAlg.h:37
ITrackParamsEstimationTool.h
IActsToTrkConverterTool.h
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition: MSTrackingVolumeBuilder.cxx:25
IActsExtrapolationTool.h
TrackParametersContainer.h