Skip to content

Commit

Permalink
TPC: Fixing timestamp in file name when storing scaler to file
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-kleiner committed Feb 7, 2024
1 parent eea5b54 commit 0f57787
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Detectors/TPC/calibration/src/TPCScaler.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ void TPCScaler::dumpToFileSlices(const char* file, const char* name, int minutes
const long tsCCDBStart = mTimeStampMS + i * timePerSliceMS;
const long tsCCDBStartMargin = (i == 0) ? (tsCCDBStart - marginCCDBMS) : tsCCDBStart;
const long tsCCDBEnd = (i == nSlices - 1) ? (getEndTimeStampMS(o2::tpc::Side::A) + marginCCDBMS) : (tsCCDBStart + timePerSliceMS);
const std::string fileOut = fmt::format("{}_{}_{}_{}.root", file, i, tsCCDBStartMargin, tsCCDBEnd - 1);
const std::string fileOut = fmt::format("{}_{}_{}_{}.root", file, i, tsCCDBStartMargin, tsCCDBEnd);
scaler.dumpToFile(fileOut.data(), name);
}
}
Expand Down

0 comments on commit 0f57787

Please sign in to comment.