Skip to content

Commit 7895ccc

Browse files
committed
pr feedback
1 parent 6145441 commit 7895ccc

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

Core/include/Acts/Seeding2/CylindricalSpacePointGrid2.hpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,14 @@ class CylindricalSpacePointGrid2 {
3030
/// Space point index type used in the grid.
3131
using SpacePointIndex = std::uint32_t;
3232
using BinType = std::vector<SpacePointIndex>;
33-
/// Cylindrical space point bin is a 2D (phi,z) grid. It stores a vector of
34-
/// space point indices.
35-
using GridType =
36-
Grid<BinType, Axis<AxisType::Equidistant, AxisBoundaryType::Closed>,
37-
Axis<AxisType::Variable, AxisBoundaryType::Open>,
38-
Axis<AxisType::Variable, AxisBoundaryType::Open>>;
33+
using PhiAxisType = Axis<AxisType::Equidistant, AxisBoundaryType::Closed>;
34+
using ZAxisType = Axis<AxisType::Variable, AxisBoundaryType::Open>;
35+
using RAxisType = Axis<AxisType::Variable, AxisBoundaryType::Open>;
36+
/// Cylindrical space point grid type, which is a grid over `BinType` with
37+
/// axes defined by `PhiAxisType`, `ZAxisType`, and `RAxisType`.
38+
/// The grid is a 3D grid with the axes representing azimuthal angle (phi),
39+
/// z-coordinate, and radial distance (r).
40+
using GridType = Grid<BinType, PhiAxisType, ZAxisType, RAxisType>;
3941
using BinnedGroupType = BinnedGroup<GridType>;
4042

4143
struct Config {

Core/src/Seeding2/CylindricalSpacePointGrid2.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ CylindricalSpacePointGrid2::CylindricalSpacePointGrid2(
105105
phiBins = std::min(phiBins, m_cfg.maxPhiBins);
106106
}
107107

108-
Axis phiAxis(AxisClosed, m_cfg.phiMin, m_cfg.phiMax, phiBins);
108+
PhiAxisType phiAxis(AxisClosed, m_cfg.phiMin, m_cfg.phiMax, phiBins);
109109

110110
// vector that will store the edges of the bins of z
111111
std::vector<double> zValues{};
@@ -142,8 +142,8 @@ CylindricalSpacePointGrid2::CylindricalSpacePointGrid2(
142142
m_cfg.rBinEdges.end());
143143
}
144144

145-
Axis zAxis(AxisOpen, std::move(zValues));
146-
Axis rAxis(AxisOpen, std::move(rValues));
145+
ZAxisType zAxis(AxisOpen, std::move(zValues));
146+
RAxisType rAxis(AxisOpen, std::move(rValues));
147147

148148
ACTS_VERBOSE("Defining Grid:");
149149
ACTS_VERBOSE("- Phi Axis: " << phiAxis);

0 commit comments

Comments
 (0)