Skip to content

Commit

Permalink
Report the configuration settings after the initialisation of e+ (the…
Browse files Browse the repository at this point in the history
… last in a normal g4 flow).
  • Loading branch information
mnovak42 committed Feb 14, 2025
1 parent 8229653 commit 590fa0c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions G4HepEm/G4HepEm/src/G4HepEmTrackingManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ void G4HepEmTrackingManager::BuildPhysicsTable(const G4ParticleDefinition &part)
if (G4Threading::IsMasterThread() && fVerbose > 0) {
ReportExtraProcesses(particleID);
}
// Report the configuration (as e+ is the last among the 3 particles in a normal g4 flow)
if (G4Threading::IsMasterThread() && fVerbose > 0) {
fConfig->Dump();
}
} else if (&part == G4Gamma::Definition()) {
int particleID = 2;
fRunManager->Initialize(fRandomEngine, particleID, fConfig->GetG4HepEmParameters());
Expand Down Expand Up @@ -202,10 +206,6 @@ void G4HepEmTrackingManager::BuildPhysicsTable(const G4ParticleDefinition &part)
if (G4Threading::IsMasterThread() && fVerbose > 0) {
ReportExtraProcesses(particleID);
}
// Report the configuration
if (G4Threading::IsMasterThread() && fVerbose > 0) {
fConfig->Dump();
}
} else {
std::cerr
<< " **** ERROR in G4HepEmProcess::BuildPhysicsTable: unknown particle "
Expand Down

0 comments on commit 590fa0c

Please sign in to comment.