Skip to content

Commit

Permalink
change to uint32_t
Browse files Browse the repository at this point in the history
  • Loading branch information
AJPfleger committed Jun 28, 2024
1 parent 430085b commit a600aab
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Core/include/Acts/TrackFitting/GlobalChiSquareFitter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,7 @@ class Gx2Fitter {

if (!trackContainer.hasColumn(
Acts::hashString(Gx2fConstants::gx2fnUpdateColumn))) {
trackContainer.template addColumn<std::size_t>("Gx2fnUpdateColumn");
trackContainer.template addColumn<std::uint32_t>("Gx2fnUpdateColumn");
}

// Prepare track for return
Expand All @@ -1006,7 +1006,7 @@ class Gx2Fitter {
if (trackContainer.hasColumn(
Acts::hashString(Gx2fConstants::gx2fnUpdateColumn))) {
ACTS_DEBUG("Add nUpdate to track")
track.template component<std::size_t>("Gx2fnUpdateColumn") = nUpdate;
track.template component<std::uint32_t>("Gx2fnUpdateColumn") = nUpdate;
}

// TODO write test for calculateTrackQuantities
Expand Down
2 changes: 1 addition & 1 deletion Examples/Io/Root/src/RootTrackSummaryWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ ProcessCode RootTrackSummaryWriter::writeT(const AlgorithmContext& ctx,
if (m_cfg.writeGx2fSpecific) {
if (tracks.hasColumn(Acts::hashString("Gx2fnUpdateColumn"))) {
int nUpdate = static_cast<int>(
track.template component<std::size_t,
track.template component<std::uint32_t,
Acts::hashString("Gx2fnUpdateColumn")>());
m_nUpdatesGx2f.push_back(nUpdate);
} else {
Expand Down
12 changes: 6 additions & 6 deletions Tests/UnitTests/Core/TrackFitting/Gx2fTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ BOOST_AUTO_TEST_CASE(NoFit) {
// Convergence
BOOST_CHECK_EQUAL(
(track.template component<
std::size_t,
std::uint32_t,
hashString(Experimental::Gx2fConstants::gx2fnUpdateColumn)>()),
0);

Expand Down Expand Up @@ -368,7 +368,7 @@ BOOST_AUTO_TEST_CASE(Fit5Iterations) {
// Convergence
BOOST_CHECK_EQUAL(
(track.template component<
std::size_t,
std::uint32_t,
hashString(Experimental::Gx2fConstants::gx2fnUpdateColumn)>()),
5);

Expand Down Expand Up @@ -472,7 +472,7 @@ BOOST_AUTO_TEST_CASE(MixedDetector) {
// Convergence
BOOST_CHECK_EQUAL(
(track.template component<
std::size_t,
std::uint32_t,
hashString(Experimental::Gx2fConstants::gx2fnUpdateColumn)>()),
5);

Expand Down Expand Up @@ -568,7 +568,7 @@ BOOST_AUTO_TEST_CASE(FitWithBfield) {
// Convergence
BOOST_CHECK_EQUAL(
(track.template component<
std::size_t,
std::uint32_t,
hashString(Experimental::Gx2fConstants::gx2fnUpdateColumn)>()),
5);

Expand Down Expand Up @@ -664,7 +664,7 @@ BOOST_AUTO_TEST_CASE(relChi2changeCutOff) {
// Convergence
BOOST_CHECK_LT(
(track.template component<
std::size_t,
std::uint32_t,
hashString(Experimental::Gx2fConstants::gx2fnUpdateColumn)>()),
10);

Expand Down Expand Up @@ -1027,7 +1027,7 @@ BOOST_AUTO_TEST_CASE(Material) {
// Convergence
BOOST_CHECK_EQUAL(
(track.template component<
std::size_t,
std::uint32_t,
hashString(Experimental::Gx2fConstants::gx2fnUpdateColumn)>()),
5);

Expand Down

0 comments on commit a600aab

Please sign in to comment.