Skip to content

Commit

Permalink
suppress SynRad output
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelHu committed Dec 1, 2024
1 parent 47180d7 commit 77c89bb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/RMGPhysics.cc
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
#include "G4ParticleHPThermalScattering.hh"
#include "G4ParticleHPThermalScatteringData.hh"
#include "G4ProcessManager.hh"
#include "G4ProcessTable.hh"
#include "G4RadioactiveDecayPhysics.hh"
#include "G4RegionStore.hh"
#include "G4RunManagerKernel.hh"
Expand Down Expand Up @@ -177,6 +178,12 @@ void RMGPhysics::ConstructProcess() {
em_extra_physics->MuonNuclear(true);
em_extra_physics->ConstructProcess();

// G4EmExtraPhysics does not propagate the verbose level...
auto synch_proc = G4ProcessTable::GetProcessTable()->FindProcesses("SynRad");
for (size_t i = 0; i < synch_proc->size(); i++) {
(*synch_proc)[i]->SetVerboseLevel(G4VModularPhysicsList::verboseLevel);
}

if (fConstructOptical) this->ConstructOptical();
else RMGLog::Out(RMGLog::detail, "Processes for optical photons are inactivated");

Expand Down

0 comments on commit 77c89bb

Please sign in to comment.