Made sure Container uses z bin

This commit is contained in:
Jonas Kellerer
2020-10-22 13:36:14 +02:00
parent dd08b58f86
commit 44b8401131
+1 -1
View File
@@ -88,7 +88,7 @@ void Population_Container::increase_cum_time_s(const vec3 &loc1_m, const vec3 &l
int E_bin = E_scale.calc_index(E_eV);
Bins bins_1 = calc_loc_bin(loc1_m);
Bins bins_2 = calc_loc_bin(loc2_m);
if (!(bins_1.r == bins_2.r && bins_1.phi == bins_2.phi)) { // Movement not in z... just ignore it for now...
if ((!(bins_1.r == bins_2.r && bins_1.phi == bins_2.phi)) && (bins_1.z == bins_2.z)) { // Movement not in z... just ignore it for now...
cout<<"Population_Container: Movement in r-phi-direction. \n.";
} else if (bins_1.z == bins_2.z) { // Movement in same bin, most of the times!
double d_m = calc_vec3_abs(loc2_m - loc1_m);