Skip to content

Commit

Permalink
reduce the diff
Browse files Browse the repository at this point in the history
  • Loading branch information
ssdetlab committed Aug 6, 2024
1 parent 47012a9 commit a21e2c6
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ namespace Acts::Test {

using StraightPropagator = Propagator<StraightLineStepper, Navigator>;
using TestSourceLink = detail::Test::TestSourceLink;
using SurfaceAccessor = detail::Test::TestSourceLink::SurfaceAccessor;
using ConstantFieldStepper = EigenStepper<>;
using ConstantFieldPropagator = Propagator<ConstantFieldStepper, Navigator>;
// Construct initial track parameters.
Expand Down Expand Up @@ -187,18 +186,18 @@ BOOST_DATA_TEST_CASE(SpacePointBuilder_basic, bdata::xrange(1), index) {
auto spBuilderConfig = SpacePointBuilderConfig();
spBuilderConfig.trackingGeometry = geometry;

SurfaceAccessor surfaceAccessor{*geometry};
spBuilderConfig.slSurfaceAccessor.connect<&SurfaceAccessor::operator()>(
&surfaceAccessor);
TestSourceLink::SurfaceAccessor surfaceAccessor{*geometry};
spBuilderConfig.slSurfaceAccessor
.connect<&TestSourceLink::SurfaceAccessor::operator()>(&surfaceAccessor);

auto spBuilder =
SpacePointBuilder<TestSpacePoint>(spBuilderConfig, spConstructor);

// for cosmic without vertex constraint, usePerpProj = true
auto spBuilderConfig_perp = SpacePointBuilderConfig();
spBuilderConfig_perp.trackingGeometry = geometry;
spBuilderConfig_perp.slSurfaceAccessor.connect<&SurfaceAccessor::operator()>(
&surfaceAccessor);
spBuilderConfig_perp.slSurfaceAccessor
.connect<&TestSourceLink::SurfaceAccessor::operator()>(&surfaceAccessor);

spBuilderConfig_perp.usePerpProj = true;

Expand Down Expand Up @@ -281,7 +280,8 @@ BOOST_DATA_TEST_CASE(SpacePointBuilder_basic, bdata::xrange(1), index) {

spBuilderConfig_badStrips.trackingGeometry = geometry;
spBuilderConfig_badStrips.slSurfaceAccessor
.connect<&SurfaceAccessor::operator()>(&surfaceAccessor);
.connect<&TestSourceLink::SurfaceAccessor::operator()>(
&surfaceAccessor);

auto spBuilder_badStrips = SpacePointBuilder<TestSpacePoint>(
spBuilderConfig_badStrips, spConstructor);
Expand Down

0 comments on commit a21e2c6

Please sign in to comment.