From ccbd89122ab4d02af4723d39323eae81252c2b6b Mon Sep 17 00:00:00 2001 From: Anton Riedel Date: Thu, 17 Oct 2024 16:14:28 +0200 Subject: [PATCH] Fix: fix index offset in CheckOfSlices --- Modules/TPC/src/CheckOfSlices.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Modules/TPC/src/CheckOfSlices.cxx b/Modules/TPC/src/CheckOfSlices.cxx index aa16abb01e..3ee26906f0 100644 --- a/Modules/TPC/src/CheckOfSlices.cxx +++ b/Modules/TPC/src/CheckOfSlices.cxx @@ -509,15 +509,15 @@ std::string CheckOfSlices::createMetaData(const std::vector& pointM std::string expectedValueString = ""; std::string rangeString = ""; - for (int i; i < pointMetaData.size(); i++) { + for (int i = 0; i < pointMetaData.size(); i++) { if (pointMetaData.at(i).find("MeanCheck") != std::string::npos) { - meanString += " " + std::to_string(i + 1) + ","; + meanString += " " + std::to_string(i) + ","; } if (pointMetaData.at(i).find("ExpectedValueCheck") != std::string::npos) { - expectedValueString += " " + std::to_string(i + 1) + ","; + expectedValueString += " " + std::to_string(i) + ","; } if (pointMetaData.at(i).find("RangeCheck") != std::string::npos) { - rangeString += " " + std::to_string(i + 1) + ","; + rangeString += " " + std::to_string(i) + ","; } } @@ -541,4 +541,4 @@ std::string CheckOfSlices::createMetaData(const std::vector& pointM return totalString; } -} // namespace o2::quality_control_modules::tpc \ No newline at end of file +} // namespace o2::quality_control_modules::tpc