Changes in logging of movement at spectrometers.

This commit is contained in:
Christian
2019-09-06 14:16:41 +02:00
parent 8d162e3c4e
commit c36dc05ff2
2 changed files with 3 additions and 4 deletions
+2 -3
View File
@@ -62,11 +62,10 @@ inline void MultiZ_Particle_Logger::log(const Particle &logPart, const vec3 &old
if (!logging) {
return;
}
double zold = oldLoc_m[2];
double znew = logPart.get_x_m()[2];
double zmin = std::min(zold,znew);
double zmax = std::max(zold,znew);
double zmin = std::min(zold, znew);
double zmax = std::max(zold, znew);
for (int i=0;i<numberZBins;i++) {
if (zLogValues[i]>=zmin && zLogValues[i]<=zmax) {
h5tb[i].write(logPart); // Location wrong, because set to new Location, instead of logging location.