Skip to content

Commit

Permalink
refactor: Using UnitConstants in calculation of minHelixRadius in Spa…
Browse files Browse the repository at this point in the history
…cePointGrid (#2243)

Same as #2132
  • Loading branch information
LuisFelipeCoelho committed Jun 26, 2023
1 parent 360b24f commit b483c1a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Core/include/Acts/Seeding/SpacePointGrid.ipp
Expand Up @@ -26,6 +26,7 @@ Acts::SpacePointGridCreator::createGrid(
"SpacePointGridCreator::createGrid");
}
using AxisScalar = Acts::Vector3::Scalar;
using namespace Acts::UnitLiterals;

int phiBins = 0;
// for no magnetic field, create 100 phi-bins
Expand All @@ -35,8 +36,9 @@ Acts::SpacePointGridCreator::createGrid(
// calculate circle intersections of helix and max detector radius
float minHelixRadius =
config.minPt /
(300. * options.bFieldInZ); // in mm -> R[mm] =pT[GeV] / (3·10−4×B[T])
// = pT[MeV] / (300 *Bz[kT])
(1_T * 1e6 *
options.bFieldInZ); // in mm -> R[mm] =pT[GeV] / (3·10−4×B[T])
// = pT[MeV] / (300 *Bz[kT])

// sanity check: if yOuter takes the square root of a negative number
if (minHelixRadius < config.rMax / 2) {
Expand Down

0 comments on commit b483c1a

Please sign in to comment.