Skip to content

Commit

Permalink
avoid double -> float conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
cvarni authored and cvarni committed Nov 8, 2024
1 parent 21a16e6 commit 138ab4b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/cpu/compare_with_acts_seeding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class SpacePointCollector {
friend Acts::SpacePointContainer<SpacePointCollector, Acts::detail::RefHolder>;
using ValueType = SpacePoint;

SpacePointCollector(std::vector<const ValueType*>& externalCollection)
explicit SpacePointCollector(std::vector<const ValueType*>& externalCollection)
: m_storage(&externalCollection)
{}

Expand All @@ -75,7 +75,7 @@ class SpacePointCollector {
case "TopStripCenterPosition"_hash:
return Acts::Vector3( {0, 0, 0} );
default:
throw std::runtime_error("no such component " + std::to_string(key));
throw std::invalid_argument("no such component " + std::to_string(key));
}
}

Expand Down Expand Up @@ -232,8 +232,8 @@ TEST_P(CompareWithActsSeedingTests, Run) {
acts_config.rMaxMiddle = std::numeric_limits<float>::max();
acts_config.useVariableMiddleSPRange = false;
acts_config.rRangeMiddleSP = {};
acts_config.deltaRMiddleMinSPRange = 10 * Acts::UnitConstants::mm;
acts_config.deltaRMiddleMaxSPRange = 10 * Acts::UnitConstants::mm;
acts_config.deltaRMiddleMinSPRange = 10.f; // mm
acts_config.deltaRMiddleMaxSPRange = 10.f; // mm
acts_config.deltaRMin = traccc_config.deltaRMin;
acts_config.deltaRMax = traccc_config.deltaRMax;
acts_config.deltaRMinTopSP = traccc_config.deltaRMin;
Expand Down Expand Up @@ -338,7 +338,6 @@ TEST_P(CompareWithActsSeedingTests, Run) {
// the constructor can accept a mixture of all of these types
int numPhiNeighbors = 1;
int numRadiusNeighbors = 0;
// TODO: set some reasonable values here!!!
std::vector<std::pair<int, int>> zBinNeighborsTop{};
std::vector<std::pair<int, int>> zBinNeighborsBottom{};

Expand Down

0 comments on commit 138ab4b

Please sign in to comment.