Skip to content

Commit

Permalink
Consider the particle being matched if hit counts is larger than the …
Browse files Browse the repository at this point in the history
…half of the number of measurements
  • Loading branch information
beomki-yeo committed Oct 8, 2024
1 parent 3f1dc9e commit 6e1deb4
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions performance/src/efficiency/finding_performance_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,14 +170,15 @@ void finding_performance_writer::write_common(
std::vector<particle_hit_count> particle_hit_counts =
identify_contributing_particles(measurements, evt_map.meas_ptc_map);

if (particle_hit_counts.size() == 1) {
auto pid = particle_hit_counts.at(0).ptc.particle_id;
assert(measurements.size() > 0u);
// Consider it being matched if hit counts is larger than the half
// of the number of measurements
if (particle_hit_counts.at(0).hit_counts >= measurements.size() / 2) {
const auto pid = particle_hit_counts.at(0).ptc.particle_id;
match_counter[pid]++;
}

if (particle_hit_counts.size() > 1) {
} else {
for (particle_hit_count const& phc : particle_hit_counts) {
auto pid = phc.ptc.particle_id;
const auto pid = phc.ptc.particle_id;
fake_counter[pid]++;
}
}
Expand Down

0 comments on commit 6e1deb4

Please sign in to comment.