Commit c1520052 authored by adelmann's avatar adelmann 🎗
Browse files

no energy correction when reading from file

parent 79d7c0c6
......@@ -411,7 +411,7 @@ void Distribution::Create(size_t &numberOfParticles, double massIneV) {
break;
}
// Scale and shift coordinates according to distribution input.
// AAA Scale and shift coordinates according to distribution input.
ScaleDistCoordinates();
ShiftDistCoordinates(massIneV);
}
......@@ -3131,9 +3131,9 @@ void Distribution::InjectBeam(PartBunch &beam) {
pzDist_m.clear();
beam.boundp();
beam.correctEnergy(avrgpz_m);
if (distrTypeT_m != DistrTypeT::FROMFILE)
beam.correctEnergy(avrgpz_m);
beam.calcEMean();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment