Skip to content

Commit cfa397c

Browse files
[pre-commit.ci] Automatic python and c++ formatting
1 parent 10b06b0 commit cfa397c

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

core/opengate_core/opengate_lib/GateSimulationStatisticsActor.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
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
}

0 commit comments

Comments
 (0)