IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 0731aad3 authored by Maximilian Reininghaus's avatar Maximilian Reininghaus :vulcan: Committed by Maximilian Reininghaus
Browse files

write PDG code in TrackWriter instead of name

parent bfd51121
No related branches found
No related tags found
1 merge request!116Some improvements here and there
...@@ -37,9 +37,9 @@ namespace corsika::process::track_writer { ...@@ -37,9 +37,9 @@ namespace corsika::process::track_writer {
using namespace units::si; using namespace units::si;
auto const start = vT.GetPosition(0).GetCoordinates(); auto const start = vT.GetPosition(0).GetCoordinates();
auto const delta = vT.GetPosition(1).GetCoordinates() - start; auto const delta = vT.GetPosition(1).GetCoordinates() - start;
auto const& name = particles::GetName(vP.GetPID()); auto const pdg = static_cast<int>(particles::GetPDG(vP.GetPID()));
fFile << name << " " << vP.GetEnergy() / 1_eV << ' ' << start[0] / 1_m << ' ' fFile << pdg << ' ' << vP.GetEnergy() / 1_eV << ' ' << start[0] / 1_m << ' '
<< start[1] / 1_m << ' ' << start[2] / 1_m << " " << delta[0] / 1_m << ' ' << start[1] / 1_m << ' ' << start[2] / 1_m << " " << delta[0] / 1_m << ' '
<< delta[1] / 1_m << ' ' << delta[2] / 1_m << '\n'; << delta[1] / 1_m << ' ' << delta[2] / 1_m << '\n';
......
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