mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2025-12-15 17:41:25 +01:00
Fixed cluster bug. cluster.data is not saved in the correct order (makes extracting 3x3s from 9x9 impossible). This is a bug in all branches
This commit is contained in:
@@ -195,13 +195,14 @@ class ClusterFinder {
|
||||
|
||||
// CT tmp = static_cast<CT>(frame(iy + ir, ix + ic)) - static_cast<CT>(m_pedestal.mean(iy + ir, ix + ic));
|
||||
|
||||
CT tmp = 0;
|
||||
// CT tmp = 0;
|
||||
if (std_ptr[inner_row_offset + ix + ic] != 0)
|
||||
tmp = static_cast<CT>(frame(iy + ir, ix + ic)) - static_cast<CT>(mean_ptr[inner_row_offset + ix + ic]);
|
||||
|
||||
cluster.data[i] = tmp; // Watch for out of bounds access
|
||||
i++;
|
||||
{
|
||||
CT tmp = static_cast<CT>(frame(iy + ir, ix + ic)) - static_cast<CT>(mean_ptr[inner_row_offset + ix + ic]);
|
||||
cluster.data[i] = tmp; // Watch for out of bounds access
|
||||
}
|
||||
}
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user