7 #include "Acts/Seeding/EstimateTrackParamsFromSeed.hpp"
11 const std::string&
name,
43 return StatusCode::SUCCESS;
46 std::optional<Acts::BoundTrackParameters>
49 const Acts::GeometryContext& geoContext,
50 const Acts::MagneticFieldContext& magFieldContext,
51 std::function<
const Acts::Surface&(
const ActsTrk::Seed&)> retrieveSurface)
const
53 const auto& sp_collection = seed.sp();
54 if ( sp_collection.size() < 3 )
return std::nullopt;
55 const auto& bottom_sp = sp_collection.front();
59 Acts::MagneticFieldProvider::Cache magFieldCache = magneticField.
makeCache( magFieldContext );
60 Acts::Vector3 bField = *magneticField.
getField( Acts::Vector3(bottom_sp->x(), bottom_sp->y(), bottom_sp->z()),
64 const Acts::Surface& surface = retrieveSurface(seed);
75 std::optional<Acts::BoundTrackParameters>
78 const Acts::GeometryContext& geoContext,
79 const Acts::Surface& surface,
80 const Acts::BoundSquareMatrix& covariance,
81 const Acts::Vector3& bField,
82 double bFieldMin)
const
85 const auto& sp_collection = seed.sp();
86 if ( sp_collection.size() < 3 )
return std::nullopt;
89 std::optional<Acts::BoundVector> params_opt =
90 Acts::estimateTrackParamsFromSeed(geoContext,
91 sp_collection.begin(),
97 if ( not params_opt.has_value() )
100 const auto&
params = params_opt.value();
103 return Acts::BoundTrackParameters(surface.getSharedPtr(),