Hotfix positive z crossings
This commit is contained in:
@@ -160,7 +160,7 @@ void CurrentCollector::collectLongitudinalMovement(
|
|||||||
if (bin_new(1) < bin_old(1)) {
|
if (bin_new(1) < bin_old(1)) {
|
||||||
z_negative_crossings(bin_old(0), bin_new(1) + 1) += weight;
|
z_negative_crossings(bin_old(0), bin_new(1) + 1) += weight;
|
||||||
} else if (bin_new(1) > bin_old(1)) {
|
} else if (bin_new(1) > bin_old(1)) {
|
||||||
z_positive_crossings(bin_old(0), bin_old(1)) += weight;
|
z_positive_crossings(bin_old(0), bin_new(1)) += weight;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// does not work correctly if \Delta t*v_phi > pi*r!
|
// does not work correctly if \Delta t*v_phi > pi*r!
|
||||||
|
|||||||
Reference in New Issue
Block a user