Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -220,13 +220,15 @@ TRACCC_HOST_DEVICE inline void build_tracks(
#ifndef NDEBUG
// Assert that we did not make any duplicate track states.
for (const auto& i : track.constituent_links()) {
assert(i.type == edm::track_constituent_link::measurement);
if (run_mbf) {
assert(i.type == edm::track_constituent_link::track_state);
} else {
assert(i.type == edm::track_constituent_link::measurement);
}
for (const auto& j : track.constituent_links()) {
assert(j.type == edm::track_constituent_link::measurement);
if (i.index != j.index) {
// TODO: Re-enable me!
// assert(measurements.at(i->index).identifier() !=
// measurement.at(j->index).identifier());
assert(measurements.at(i.index).identifier() !=
measurements.at(j.index).identifier());
Comment on lines +230 to +231
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But if we use MBF, this could potentially lead to invalid memory access, no? 🤔

}
}
}
Expand Down
Loading