Skip to content

Commit

Permalink
pass by value
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisFelipeCoelho committed Jul 28, 2023
1 parent 9c9eda6 commit 9c6b77b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
3 changes: 1 addition & 2 deletions Core/include/Acts/Seeding/SeedFinderConfig.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,7 @@ struct SeedFinderConfig {
Delegate<Acts::Vector3(const SpacePoint&)> getTopStripCenterPosition;

// Delegate to apply experiment specific cuts
Delegate<bool(const float& bottomRadius, const float& cotTheta)>
experimentCuts;
Delegate<bool(const float bottomRadius, const float cotTheta)> experimentCuts;

bool isInInternalUnits = false;

Expand Down
3 changes: 1 addition & 2 deletions Core/include/Acts/Seeding/SeedFinderOrthogonalConfig.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ struct SeedFinderOrthogonalConfig {
float maxScatteringAngle2 = 0;

// Delegate to apply experiment specific cuts
Delegate<bool(const float bottomRadius, const float cotTheta)>
experimentCuts;
Delegate<bool(const float bottomRadius, const float cotTheta)> experimentCuts;

bool isInInternalUnits = false;

Expand Down
4 changes: 2 additions & 2 deletions Examples/Algorithms/TrackFinding/src/SeedingAlgorithm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ ActsExamples::SeedingAlgorithm::SeedingAlgorithm(
}

m_cfg.seedFinderConfig.experimentCuts.connect(
[](const void*, const float& /*bottomRadius*/,
const float& /*cotTheta*/) -> bool { return false; });
[](const void*, const float /*bottomRadius*/,
const float /*cotTheta*/) -> bool { return false; });

m_bottomBinFinder = std::make_shared<const Acts::BinFinder<SimSpacePoint>>(
m_cfg.zBinNeighborsBottom, m_cfg.numPhiNeighbors);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ ActsExamples::SeedingOrthogonalAlgorithm::SeedingOrthogonalAlgorithm(
}

m_cfg.seedFinderConfig.experimentCuts.connect(
[](const void *, const float & /*bottomRadius*/,
const float & /*cotTheta*/) -> bool { return false; });
[](const void *, const float /*bottomRadius*/,
const float /*cotTheta*/) -> bool { return false; });

// construct seed filter
m_cfg.seedFinderConfig.seedFilter =
Expand Down

0 comments on commit 9c6b77b

Please sign in to comment.