From 9c6b77bbd036742abbce1de5a25c8c6a6ba678ff Mon Sep 17 00:00:00 2001 From: LuisFelipeCoelho Date: Fri, 28 Jul 2023 11:27:33 +0200 Subject: [PATCH] pass by value --- Core/include/Acts/Seeding/SeedFinderConfig.hpp | 3 +-- Core/include/Acts/Seeding/SeedFinderOrthogonalConfig.hpp | 3 +-- Examples/Algorithms/TrackFinding/src/SeedingAlgorithm.cpp | 4 ++-- .../TrackFinding/src/SeedingOrthogonalAlgorithm.cpp | 4 ++-- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/Core/include/Acts/Seeding/SeedFinderConfig.hpp b/Core/include/Acts/Seeding/SeedFinderConfig.hpp index b56d23cd395..5bcbe805f79 100644 --- a/Core/include/Acts/Seeding/SeedFinderConfig.hpp +++ b/Core/include/Acts/Seeding/SeedFinderConfig.hpp @@ -168,8 +168,7 @@ struct SeedFinderConfig { Delegate getTopStripCenterPosition; // Delegate to apply experiment specific cuts - Delegate - experimentCuts; + Delegate experimentCuts; bool isInInternalUnits = false; diff --git a/Core/include/Acts/Seeding/SeedFinderOrthogonalConfig.hpp b/Core/include/Acts/Seeding/SeedFinderOrthogonalConfig.hpp index 7e9c4b05baa..afc58ed26ef 100644 --- a/Core/include/Acts/Seeding/SeedFinderOrthogonalConfig.hpp +++ b/Core/include/Acts/Seeding/SeedFinderOrthogonalConfig.hpp @@ -106,8 +106,7 @@ struct SeedFinderOrthogonalConfig { float maxScatteringAngle2 = 0; // Delegate to apply experiment specific cuts - Delegate - experimentCuts; + Delegate experimentCuts; bool isInInternalUnits = false; diff --git a/Examples/Algorithms/TrackFinding/src/SeedingAlgorithm.cpp b/Examples/Algorithms/TrackFinding/src/SeedingAlgorithm.cpp index cec2b8d1820..abdd9978350 100644 --- a/Examples/Algorithms/TrackFinding/src/SeedingAlgorithm.cpp +++ b/Examples/Algorithms/TrackFinding/src/SeedingAlgorithm.cpp @@ -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>( m_cfg.zBinNeighborsBottom, m_cfg.numPhiNeighbors); diff --git a/Examples/Algorithms/TrackFinding/src/SeedingOrthogonalAlgorithm.cpp b/Examples/Algorithms/TrackFinding/src/SeedingOrthogonalAlgorithm.cpp index d0ba644321c..15669962cad 100644 --- a/Examples/Algorithms/TrackFinding/src/SeedingOrthogonalAlgorithm.cpp +++ b/Examples/Algorithms/TrackFinding/src/SeedingOrthogonalAlgorithm.cpp @@ -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 =