Skip to content

Commit

Permalink
fix: consistent std::int32_t in AdaptiveGridTrackDensity (#3933)
Browse files Browse the repository at this point in the history
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

## Summary by CodeRabbit

- **Bug Fixes**
	- Improved type consistency for the `getBin` method in the Adaptive Grid Track Density class, ensuring reliable bin calculations. 

This change enhances the overall stability of the feature without altering its functionality.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
  • Loading branch information
AJPfleger authored Dec 3, 2024
1 parent 1663c02 commit cb5bfbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/src/Vertexing/AdaptiveGridTrackDensity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ double AdaptiveGridTrackDensity::getBinCenter(std::int32_t bin,
}

std::int32_t AdaptiveGridTrackDensity::getBin(double value, double binExtent) {
return static_cast<int>(std::floor(value / binExtent - 0.5) + 1);
return static_cast<std::int32_t>(std::floor(value / binExtent - 0.5) + 1);
}

std::uint32_t AdaptiveGridTrackDensity::getTrkGridSize(
Expand Down

0 comments on commit cb5bfbe

Please sign in to comment.