Skip to content

Commit a847fab

Browse files
committed
Fix checkcode errors
1 parent e5c01a0 commit a847fab

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

‎Detectors/ITSMFT/ITS/workflow-ca/src/CATrackerSpec.cxx‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,15 +190,17 @@ std::optional<TrackOutput> stageTrackOutput(const TimeFrame& frame,
190190
o2::its::TrackITS output{inner, common.chi2, outer};
191191
uint32_t pattern = 0;
192192
if (!collectReferences(frame, common, staged.clusterIndices, output, pattern,
193-
externalIndicesBySurface, clusterSizesBySurface))
193+
externalIndicesBySurface, clusterSizesBySurface)) {
194194
return std::nullopt;
195+
}
195196
output.setPattern(pattern);
196197
output.setSharedClusters(sharedClusterFlags[index] != 0);
197198
output.getTimeStamp() = timestamp;
198199
staged.tracks.push_back(std::move(output));
199200
times.push_back(timestamp);
200-
if (withMC)
201+
if (withMC) {
201202
staged.labels.push_back(frame.getTrackLabels()[index]);
203+
}
202204
}
203205
finalizeROFs(staged.trackROFs, times, context);
204206
return staged;

‎Detectors/ITSMFT/MFT/workflow/src/CATrackerSpec.cxx‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,9 @@ std::optional<TrackOutput> stageTrackOutput(const TimeFrame& frame,
169169
const std::vector<std::vector<uint32_t>>* clusterSizesBySurface = nullptr)
170170
{
171171
auto selection = selectGenericTracksForSurfaces(frame, kLayerToLayout);
172-
if (!selection)
172+
if (!selection) {
173173
return std::nullopt;
174+
}
174175
if (withMC && frame.getTrackLabels().size() != frame.getGenericTracks().size()) {
175176
return std::nullopt;
176177
}
@@ -203,13 +204,15 @@ std::optional<TrackOutput> stageTrackOutput(const TimeFrame& frame,
203204
output.setChi2QPtSeed(0.);
204205
uint32_t pattern = 0;
205206
if (!collectReferences(frame, common, staged.clusterIndices, output, pattern,
206-
externalIndicesBySurface, clusterSizesBySurface))
207+
externalIndicesBySurface, clusterSizesBySurface)) {
207208
return std::nullopt;
209+
}
208210
staged.tracks.push_back(std::move(output));
209211
staged.seedPatterns.push_back(static_cast<uint16_t>(pattern));
210212
times.push_back(timestamp);
211-
if (withMC)
213+
if (withMC) {
212214
staged.labels.push_back(frame.getTrackLabels()[index]);
215+
}
213216
}
214217
finalizeROFs(staged.trackROFs, times, context);
215218
return staged;

0 commit comments

Comments
 (0)