IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 4bff00b3 authored by Felix Riehn's avatar Felix Riehn
Browse files

added units to stack inspector output

parent a8dcb961
No related branches found
No related tags found
No related merge requests found
...@@ -38,14 +38,15 @@ process::EProcessReturn StackInspector<Stack, Trajectory>::DoContinuous(Particle ...@@ -38,14 +38,15 @@ process::EProcessReturn StackInspector<Stack, Trajectory>::DoContinuous(Particle
// std::cout << "generation " << countStep << std::endl; // std::cout << "generation " << countStep << std::endl;
[[maybe_unused]] int i = 0; [[maybe_unused]] int i = 0;
EnergyType Etot = 0_GeV; EnergyType Etot = 0_GeV;
for (auto& iterP : s) { for (auto& iterP : s) {
EnergyType E = iterP.GetEnergy(); EnergyType E = iterP.GetEnergy();
Etot += E; Etot += E;
// std::cout << " particle data: " << i++ << ", id=" << iterP << " | " << std::endl; std::cout << " particle data: " << i++ << ", id=" << iterP.GetPID()<< ", en=" << iterP.GetEnergy() / 1_GeV << " | " << std::endl;
} }
countStep++; countStep++;
// cout << "#=" << countStep << " " << s.GetSize() << " " << Etot/1_GeV << endl; // cout << "#=" << countStep << " " << s.GetSize() << " " << Etot/1_GeV << endl;
cout << countStep << " " << s.GetSize() << " " << Etot / 1_GeV << " " << endl; cout << "call: " << countStep << " stack size: " << s.GetSize() << " energy: " << Etot / 1_GeV << endl;
return EProcessReturn::eOk; return EProcessReturn::eOk;
} }
......
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