From 4bff00b353be1afed779e55abcb206e665b6f25f Mon Sep 17 00:00:00 2001 From: Felix Riehn <felix@matilda> Date: Wed, 28 Nov 2018 19:19:52 +0000 Subject: [PATCH] added units to stack inspector output --- Processes/StackInspector/StackInspector.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Processes/StackInspector/StackInspector.cc b/Processes/StackInspector/StackInspector.cc index 5717953f9..b475e9c35 100644 --- a/Processes/StackInspector/StackInspector.cc +++ b/Processes/StackInspector/StackInspector.cc @@ -38,14 +38,15 @@ process::EProcessReturn StackInspector<Stack, Trajectory>::DoContinuous(Particle // std::cout << "generation " << countStep << std::endl; [[maybe_unused]] int i = 0; EnergyType Etot = 0_GeV; + for (auto& iterP : s) { EnergyType E = iterP.GetEnergy(); 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++; // 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; } -- GitLab