Skip to content

Commit

Permalink
try external surfaces for GSF with standard navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminhuth committed Dec 10, 2024
1 parent 94ae506 commit c747db8
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Core/include/Acts/TrackFitting/GaussianSumFitter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ struct GaussianSumFitter {
static_assert(std::is_same_v<Navigator, typename propagator_t::Navigator>);

// Initialize the forward propagation with the DirectNavigator
auto fwdPropInitializer = [this](const auto& opts) {
auto fwdPropInitializer = [&](const auto& opts) {
using Actors =
ActorList<GsfActor, EndOfWorldReached, NavigationBreakAborter>;
using PropagatorOptions = typename propagator_t::template Options<Actors>;
Expand All @@ -159,21 +159,31 @@ struct GaussianSumFitter {

propOptions.setPlainOptions(opts.propagatorPlainOptions);

for (auto it = begin; it != end; ++it) {
propOptions.navigation.insertExternalSurface(
options.extensions.surfaceAccessor(SourceLink{*it})->geometryId());
}

propOptions.actorList.template get<GsfActor>()
.m_cfg.bethe_heitler_approx = &m_betheHeitlerApproximation;

return propOptions;
};

// Initialize the backward propagation with the DirectNavigator
auto bwdPropInitializer = [this](const auto& opts) {
auto bwdPropInitializer = [&](const auto& opts) {
using Actors = ActorList<GsfActor, EndOfWorldReached>;
using PropagatorOptions = typename propagator_t::template Options<Actors>;

PropagatorOptions propOptions(opts.geoContext, opts.magFieldContext);

propOptions.setPlainOptions(opts.propagatorPlainOptions);

for (auto it = begin; it != end; ++it) {
propOptions.navigation.insertExternalSurface(
options.extensions.surfaceAccessor(SourceLink{*it})->geometryId());
}

propOptions.actorList.template get<GsfActor>()
.m_cfg.bethe_heitler_approx = &m_betheHeitlerApproximation;

Expand Down

0 comments on commit c747db8

Please sign in to comment.