Skip to content

Commit a73adae

Browse files
authored
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.
1 parent 8c2216f commit a73adae

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Detectors/ITSMFT/ITS/tracking/src/TrackingInterface.cxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,10 @@ void ITSTrackingInterface::run(framework::ProcessingContext& pc)
246246
if (!vtxSpan.empty()) {
247247
bool hasUPC = std::any_of(vtxSpan.begin(), vtxSpan.end(), [](const auto& v) { return v.isFlagSet(Vertex::UPCMode); });
248248
if (hasUPC) { // at least one vertex in this ROF and it is from second vertex iteration
249-
LOGP(debug, "ROF {} rejected as vertices are from the UPC iteration", iRof);
250-
processUPCMask.selectROF({clockTiming.getROFStartInBC(iRof), clockTiming.getROFEndInBC(iRof)});
249+
LOGP(debug, "ROF {} accepted as vertices are from the UPC iteration", iRof);
250+
const auto startBC = clockTiming.getROFStartInBC(iRof);
251+
const auto endBC = clockTiming.getROFEndInBC(iRof);
252+
processUPCMask.selectROF({startBC, endBC - startBC});
251253
vtxROF.setFlag(o2::itsmft::ROFRecord::VtxUPCMode);
252254
} else { // in all cases except if as standard mode vertex was found, the ROF was processed with UPC settings
253255
vtxROF.setFlag(o2::itsmft::ROFRecord::VtxStdMode);

0 commit comments

Comments
 (0)