Commit 3f8235b8 authored by Dorothea Vom Bruch's avatar Dorothea Vom Bruch
Browse files

Merge branch 'thboettc_vertex_fit_fix' into...

Merge branch 'thboettc_vertex_fit_fix' into dovombru_thboettc_fix_debug_compilation_and_vertex_fit_fix_no_PVs
parents 4e5a2e7a 3d4955de
Pipeline #973504 passed with stage
in 1 minute and 27 seconds
......@@ -292,8 +292,9 @@ __global__ void fit_secondary_vertices(
const ParKalmanFilter::FittedTrack* event_tracks = dev_kf_tracks + event_tracks_offset;
// Primary vertices.
const uint n_pvs_event = *(dev_number_of_multi_fit_vertices + event_number);
gsl::span<PV::Vertex const> vertices {dev_multi_fit_vertices + event_number * PV::max_number_vertices,
*(dev_number_of_multi_fit_vertices + event_number)};
n_pvs_event};
// Secondary vertices.
VertexFit::TrackMVAVertex* event_secondary_vertices = dev_secondary_vertices + sv_offset;
......@@ -307,6 +308,11 @@ __global__ void fit_secondary_vertices(
((int) n_scifi_tracks - 1 - i_track) * ((int) n_scifi_tracks - 2 - i_track) / 2 + j_track;
event_secondary_vertices[vertex_idx].chi2 = -1;
}
// Don't fit SVs in events with no PVs.
// TODO: Decide how to handle events with no PVs.
if (n_pvs_event == 0) return;
const ParKalmanFilter::FittedTrack trackA = event_tracks[i_track];
// Preselection on first track.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment