Skip to content

Commit

Permalink
Fix: fix index offset in CheckOfSlices
Browse files Browse the repository at this point in the history
  • Loading branch information
ariedel-cern authored and wiechula committed Oct 17, 2024
1 parent 7e7076f commit ccbd891
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Modules/TPC/src/CheckOfSlices.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -509,15 +509,15 @@ std::string CheckOfSlices::createMetaData(const std::vector<std::string>& 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) + ",";
}
}

Expand All @@ -541,4 +541,4 @@ std::string CheckOfSlices::createMetaData(const std::vector<std::string>& pointM
return totalString;
}

} // namespace o2::quality_control_modules::tpc
} // namespace o2::quality_control_modules::tpc

0 comments on commit ccbd891

Please sign in to comment.