IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 00f2e12b authored by Nikos Karastathis's avatar Nikos Karastathis :ocean: Committed by Maximilian Reininghaus
Browse files

weight should not be always 1

parent c1ac012c
No related branches found
No related tags found
1 merge request!494Update weight of the particle properly in observation plane
Pipeline #10286 passed
...@@ -51,7 +51,7 @@ namespace corsika { ...@@ -51,7 +51,7 @@ namespace corsika {
Vector const displacement = pointOfIntersection - plane_.getCenter(); Vector const displacement = pointOfIntersection - plane_.getCenter();
// add our particles to the output file stream // 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_), this->write(step.getParticlePre().getPID(), kineticEnergy, displacement.dot(xAxis_),
displacement.dot(yAxis_), 0_m, step.getTimePost(), weight); 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