v1.0.0-rc.70
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
// SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute <filip.leonarski@psi.ch>
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
#include "SpotAnalysis.h"
|
||||
|
||||
void CountSpots(DataMessage &msg,
|
||||
const std::vector<SpotToSave> &spots,
|
||||
float d_min_A) {
|
||||
int64_t low_res = 0;
|
||||
int64_t ice_ring = 0;
|
||||
for (auto &s: spots) {
|
||||
if (s.ice_ring)
|
||||
ice_ring++;
|
||||
|
||||
if (s.d_A > d_min_A)
|
||||
low_res++;
|
||||
}
|
||||
msg.spot_count = spots.size();
|
||||
msg.spot_count_low_res = low_res;
|
||||
msg.spot_count_ice_rings = ice_ring;
|
||||
}
|
||||
Reference in New Issue
Block a user