13 ISvcLocator* pSvcLocator)
29 return AthReentrantAlgorithm::initialize();
46 ATH_CHECK(boundTrackParamsHandle.
record(std::make_unique<ActsTrk::BoundTrackParametersContainer>()));
52 for (std::size_t iseed = 0; iseed < seeds.size(); ++iseed) {
57 auto retrieveSurfaceFunction =
58 [
this, &detElements] (
const ActsTrk::Seed& seed,
bool useTopSp) ->
const Acts::Surface& {
61 useTopSp ?
sp->elementIdList().back() :
sp->elementIdList().front());
66 std::optional<Acts::BoundTrackParameters> optTrackParams =
72 retrieveSurfaceFunction);
74 if (!optTrackParams.has_value()) {
75 ATH_MSG_DEBUG(
"Failed to estimate track parameters for seed " << iseed);
76 trackParams->
push_back(std::unique_ptr<Acts::BoundTrackParameters>());
80 trackParams->
push_back(std::make_unique<Acts::BoundTrackParameters>(std::move(*optTrackParams)));
83 return StatusCode::SUCCESS;
87 const auto& bottom_sp = seed.sp().front();
89 const double r = bottom_sp->radius();
90 const double z = std::abs(bottom_sp->z());
95 return r > rBoundary ||
z > zBoundary;
#define ATH_CHECK
Evaluate an expression and check for errors.
bool shouldReverseSearch(const ActsTrk::Seed &seed) const
ToolHandle< ActsTrk::IActsToTrkConverterTool > m_ATLASConverterTool
SeedsToTrackParamsAlg(const std::string &name, ISvcLocator *pSvcLocator)
PublicToolHandle< ActsTrk::ITrackingGeometryTool > m_trackingGeometryTool
ToolHandle< ActsTrk::ITrackParamsEstimationTool > m_paramEstimationTool
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_detEleCollKey
virtual StatusCode execute(const EventContext &ctx) const override
SG::ReadHandleKey< ActsTrk::SeedContainer > m_inputSeedContainerKey
Gaudi::Property< std::vector< double > > m_useTopSpRZboundary
virtual StatusCode initialize() override
Gaudi::Property< bool > m_autoReverseSearch
ToolHandle< ActsTrk::IExtrapolationTool > m_extrapolationTool
SG::WriteHandleKey< ActsTrk::BoundTrackParametersContainer > m_outputTrackParamsCollectionKey
An algorithm that can be simultaneously executed in multiple threads.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
Class to hold the SiDetectorElement objects to be put in the detector store.
const SiDetectorElement * getDetectorElement(const IdentifierHash &hash) const
Class to hold geometrical description of a silicon detector element.
Trk::Surface & surface()
Element Surface.
const_pointer_type cptr()
virtual bool isValid() override final
Can the handle be successfully dereferenced?
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
pointer_type ptr()
Dereference the pointer.
Abstract Base Class for tracking surfaces.
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
DataVector< Acts::BoundTrackParameters > BoundTrackParametersContainer
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())