Skip to content

Commit

Permalink
fix: Fix track-picking threshold in TrackFittingAlgorithm (#1325)
Browse files Browse the repository at this point in the history
The current `TrackFittingAlgorithm` does not allow to pick track with index 0, this fixes the threshold.
  • Loading branch information
benjaminhuth authored Jul 18, 2022
1 parent 232e43d commit 1fdf72c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ ActsExamples::ProcessCode ActsExamples::TrackFittingAlgorithm::execute(
std::vector<const Acts::Surface*> surfSequence;
for (std::size_t itrack = 0; itrack < protoTracks.size(); ++itrack) {
// Check if you are not in picking mode
if (m_cfg.pickTrack > 0 and m_cfg.pickTrack != static_cast<int>(itrack)) {
if (m_cfg.pickTrack > -1 and m_cfg.pickTrack != static_cast<int>(itrack)) {
continue;
}

Expand Down

0 comments on commit 1fdf72c

Please sign in to comment.