mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-02-19 22:08:41 +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,14 +195,15 @@ class ClusterFinder {
|
|||||||
|
|
||||||
// CT tmp = static_cast<CT>(frame(iy + ir, ix + ic)) - static_cast<CT>(m_pedestal.mean(iy + ir, ix + ic));
|
// 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)
|
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]);
|
{
|
||||||
|
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
|
cluster.data[i] = tmp; // Watch for out of bounds access
|
||||||
i++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
i++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add the cluster to the output ClusterVector
|
// Add the cluster to the output ClusterVector
|
||||||
|
|||||||
Reference in New Issue
Block a user