mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-20 02:40:03 +02:00
fixed issue with cluster finder
This commit is contained in:
parent
22b16de6b5
commit
bb0201385f
@ -433,10 +433,11 @@ class singlePhotonDetector : public analogDetector<uint16_t> {
|
|||||||
(ix + ic) >= 0 && (ix + ic) < nx) {
|
(ix + ic) >= 0 && (ix + ic) < nx) {
|
||||||
|
|
||||||
|
|
||||||
if ((iy + ir) >= iy && (ix + ic) >= ix ) {
|
if ((iy + ir) >= iy && (ix + ic) >= ix ) {
|
||||||
val[(iy + ir) * nx + ix + ic] =
|
val[(iy + ir) * nx + ix + ic] =
|
||||||
subtractPedestal(data, ix + ic, iy + ir, cm);
|
subtractPedestal(data, ix + ic, iy + ir, cm);
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
v = &(val[(iy + ir) * nx + ix + ic]);
|
v = &(val[(iy + ir) * nx + ix + ic]);
|
||||||
tot += *v;
|
tot += *v;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user