Skip to content

Commit

Permalink
remain with float for now
Browse files Browse the repository at this point in the history
  • Loading branch information
cvarni committed Oct 9, 2024
1 parent 07bd464 commit aa650b9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
21 changes: 11 additions & 10 deletions Core/include/Acts/Seeding/detail/CylindricalSpacePointGrid.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ struct CylindricalSpacePointGridConfig {
// maximum impact parameter in mm
float impactMax = 0 * Acts::UnitConstants::mm;
// minimum phi value for phiAxis construction
double phiMin = -std::numbers::pi;
float phiMin = -std::numbers::pi_v<float>;
// maximum phi value for phiAxis construction
double phiMax = std::numbers::pi;
float phiMax = std::numbers::pi_v<float>;
// Multiplicator for the number of phi-bins. The minimum number of phi-bins
// depends on min_pt, magnetic field: 2*M_PI/(minPT particle phi-deflection).
// phiBinDeflectionCoverage is a multiplier for this number. If
Expand Down Expand Up @@ -90,14 +90,15 @@ struct CylindricalSpacePointGridConfig {
config.zMin /= 1_mm;
config.deltaRMax /= 1_mm;

if (config.phiMin < -std::numbers::pi || config.phiMax > std::numbers::pi) {
throw std::runtime_error("CylindricalSpacePointGridConfig: phiMin (" +
std::to_string(config.phiMin) +
") and/or phiMax (" +
std::to_string(config.phiMax) +
") are outside "
"the allowed phi range, defined as "
"[-std::numbers::pi, std::numbers::pi]");
if (config.phiMin < -std::numbers::pi_v<float> ||
config.phiMax > std::numbers::pi_v<float>) {
throw std::runtime_error(
"CylindricalSpacePointGridConfig: phiMin (" +
std::to_string(config.phiMin) + ") and/or phiMax (" +
std::to_string(config.phiMax) +
") are outside "
"the allowed phi range, defined as "
"[-std::numbers::pi_v<float>, std::numbers::pi_v<float>]");
}
if (config.phiMin > config.phiMax) {
throw std::runtime_error(
Expand Down
2 changes: 1 addition & 1 deletion Examples/Python/python/acts/examples/reconstruction.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"maxPhiBins",
"phi", # (min,max)
],
defaults=[None] * 6 + [(-math.pi, math.pi)],
defaults=[None] * 6 + [(None, None)] * 1,
)

SeedingAlgorithmConfigArg = namedtuple(
Expand Down

0 comments on commit aa650b9

Please sign in to comment.