Skip to content

Commit

Permalink
only phi is double for now
Browse files Browse the repository at this point in the history
  • Loading branch information
cvarni authored and cvarni committed Oct 7, 2024
1 parent c1b9897 commit 07bd464
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions Core/include/Acts/Seeding/detail/CylindricalSpacePointGrid.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,25 +37,25 @@ using CylindricalBinnedGroupIterator = Acts::BinnedGroupIterator<

struct CylindricalSpacePointGridConfig {
// minimum pT to be found by seedFinder
double minPt = 0 * Acts::UnitConstants::MeV;
float minPt = 0 * Acts::UnitConstants::MeV;
// maximum extension of sensitive detector layer relevant for seeding as
// distance from x=y=0 (i.e. in r)
double rMax = 320 * Acts::UnitConstants::mm;
float rMax = 320 * Acts::UnitConstants::mm;
// maximum extension of sensitive detector layer relevant for seeding as
// distance from x=y=0 (i.e. in r)
double rMin = 0 * Acts::UnitConstants::mm;
float rMin = 0 * Acts::UnitConstants::mm;
// maximum extension of sensitive detector layer relevant for seeding in
// positive direction in z
double zMax = 0 * Acts::UnitConstants::mm;
float zMax = 0 * Acts::UnitConstants::mm;
// maximum extension of sensitive detector layer relevant for seeding in
// negative direction in z
double zMin = 0 * Acts::UnitConstants::mm;
float zMin = 0 * Acts::UnitConstants::mm;
// maximum distance in r from middle space point to bottom or top spacepoint
double deltaRMax = 0 * Acts::UnitConstants::mm;
float deltaRMax = 0 * Acts::UnitConstants::mm;
// maximum forward direction expressed as cot(theta)
double cotThetaMax = 0;
float cotThetaMax = 0;
// maximum impact parameter in mm
double impactMax = 0 * Acts::UnitConstants::mm;
float impactMax = 0 * Acts::UnitConstants::mm;
// minimum phi value for phiAxis construction
double phiMin = -std::numbers::pi;
// maximum phi value for phiAxis construction
Expand Down Expand Up @@ -118,7 +118,7 @@ struct CylindricalSpacePointGridConfig {

struct CylindricalSpacePointGridOptions {
// magnetic field
double bFieldInZ = 0.;
float bFieldInZ = 0.;
bool isInInternalUnits = false;
CylindricalSpacePointGridOptions toInternalUnits() const {
if (isInInternalUnits) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ Acts::CylindricalSpacePointGridCreator::createGrid(
// FIXME: zBinSize must include scattering
float zBinSize = config.cotThetaMax * config.deltaRMax;
float zBins =
std::max(1., std::floor((config.zMax - config.zMin) / zBinSize));
std::max(1.f, std::floor((config.zMax - config.zMin) / zBinSize));

zValues.reserve(static_cast<int>(zBins));
for (int bin = 0; bin <= static_cast<int>(zBins); bin++) {
Expand Down

0 comments on commit 07bd464

Please sign in to comment.