IAP GITLAB

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

added units to stack inspector output

parent 3a139b8c
No related branches found
No related tags found
No related merge requests found
...@@ -37,12 +37,15 @@ process::EProcessReturn StackInspector<Stack, Trajectory>::DoContinuous(Particle ...@@ -37,12 +37,15 @@ process::EProcessReturn StackInspector<Stack, Trajectory>::DoContinuous(Particle
if (!fReport) return EProcessReturn::eOk; if (!fReport) return EProcessReturn::eOk;
[[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.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 << "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