IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 1b52b4bf authored by Maximilian Reininghaus's avatar Maximilian Reininghaus :vulcan:
Browse files

Merge branch 'fix-weight-obs-plane' into 'master'

Update weight of the particle properly in observation plane

See merge request !494
parents c1ac012c 00f2e12b
No related branches found
No related tags found
1 merge request!494Update weight of the particle properly in observation plane
Pipeline #10289 passed with warnings
......@@ -51,7 +51,7 @@ namespace corsika {
Vector const displacement = pointOfIntersection - plane_.getCenter();
// add our particles to the output file stream
double const weight = 1.; // step.getParticlePre().getWeight();
double const weight = step.getParticlePre().getWeight();
this->write(step.getParticlePre().getPID(), kineticEnergy, displacement.dot(xAxis_),
displacement.dot(yAxis_), 0_m, step.getTimePost(), weight);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment