From a73adaedccd1ca01a794b53fbe6c5864dfccba43 Mon Sep 17 00:00:00 2001 From: Felix Schlepper Date: Fri, 22 May 2026 16:35:31 +0200 Subject: [PATCH] ITS: fix building of upc ROF mask Note: since we in addition also flag the upc vertices and select them explicitly, this has no impact on the output of the UPC pass. --- Detectors/ITSMFT/ITS/tracking/src/TrackingInterface.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Detectors/ITSMFT/ITS/tracking/src/TrackingInterface.cxx b/Detectors/ITSMFT/ITS/tracking/src/TrackingInterface.cxx index 7f10419d63fea..d8d3c1501b2c6 100644 --- a/Detectors/ITSMFT/ITS/tracking/src/TrackingInterface.cxx +++ b/Detectors/ITSMFT/ITS/tracking/src/TrackingInterface.cxx @@ -246,8 +246,10 @@ void ITSTrackingInterface::run(framework::ProcessingContext& pc) if (!vtxSpan.empty()) { bool hasUPC = std::any_of(vtxSpan.begin(), vtxSpan.end(), [](const auto& v) { return v.isFlagSet(Vertex::UPCMode); }); if (hasUPC) { // at least one vertex in this ROF and it is from second vertex iteration - LOGP(debug, "ROF {} rejected as vertices are from the UPC iteration", iRof); - processUPCMask.selectROF({clockTiming.getROFStartInBC(iRof), clockTiming.getROFEndInBC(iRof)}); + LOGP(debug, "ROF {} accepted as vertices are from the UPC iteration", iRof); + const auto startBC = clockTiming.getROFStartInBC(iRof); + const auto endBC = clockTiming.getROFEndInBC(iRof); + processUPCMask.selectROF({startBC, endBC - startBC}); vtxROF.setFlag(o2::itsmft::ROFRecord::VtxUPCMode); } else { // in all cases except if as standard mode vertex was found, the ROF was processed with UPC settings vtxROF.setFlag(o2::itsmft::ROFRecord::VtxStdMode);