File tree Expand file tree Collapse file tree
core/opengate_core/opengate_lib Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99#include " GateHelpers.h"
1010#include " GateHelpersDict.h"
1111// For DEBUGGING only (see below) - remove again
12- #include " G4UnitsTable.hh"
1312#include " G4Electron.hh"
13+ #include " G4UnitsTable.hh"
1414#include " G4VProcess.hh"
1515
1616#include < chrono>
@@ -113,12 +113,11 @@ void GateSimulationStatisticsActor::PreUserTrackingAction(
113113 // for electrons, print which process created them
114114 // to check if cuts work as expected
115115 if (track->GetParticleDefinition () == G4Electron::Definition ()) {
116- const G4VProcess* creator = track->GetCreatorProcess ();
116+ const G4VProcess * creator = track->GetCreatorProcess ();
117117 const G4String proc = creator ? creator->GetProcessName () : " primary" ;
118118 const G4double ekin = track->GetKineticEnergy ();
119- std::cout << " Ek=" << G4BestUnit (ekin," Energy" )
120- << " created by " << proc
121- << " parentID=" << track->GetParentID () << std::endl;
119+ std::cout << " Ek=" << G4BestUnit (ekin, " Energy" ) << " created by "
120+ << proc << " parentID=" << track->GetParentID () << std::endl;
122121 }
123122 }
124123}
You can’t perform that action at this time.
0 commit comments