Loading src/modules/DepositionGeant4/DepositionGeant4Module.cpp +2 −3 Original line number Diff line number Diff line Loading @@ -17,7 +17,6 @@ #include <utility> #include <G4Box.hh> #include <G4BuilderType.hh> #include <G4EmParameters.hh> #include <G4HadronicParameters.hh> #include <G4HadronicProcessStore.hh> Loading Loading @@ -221,8 +220,8 @@ void DepositionGeant4Module::initialize() { LOG(DEBUG) << "Registering Geant4 step limiter physics list"; physicsList->RegisterPhysics(new G4StepLimiterPhysics()); // Register radioactive decay physics lists unless the list already has it registered - check with its type: if(physicsList->GetPhysicsWithType(G4BuilderType::bDecay) == nullptr) { // Register radioactive decay physics lists unless the list already has it registered: if(physics_list_up.find("HP") == std::string::npos && physics_list.find("Shielding") == std::string::npos) { LOG(DEBUG) << "Registering Geant4 radioactive decay physics list"; physicsList->RegisterPhysics(new G4RadioactiveDecayPhysics()); } Loading Loading
src/modules/DepositionGeant4/DepositionGeant4Module.cpp +2 −3 Original line number Diff line number Diff line Loading @@ -17,7 +17,6 @@ #include <utility> #include <G4Box.hh> #include <G4BuilderType.hh> #include <G4EmParameters.hh> #include <G4HadronicParameters.hh> #include <G4HadronicProcessStore.hh> Loading Loading @@ -221,8 +220,8 @@ void DepositionGeant4Module::initialize() { LOG(DEBUG) << "Registering Geant4 step limiter physics list"; physicsList->RegisterPhysics(new G4StepLimiterPhysics()); // Register radioactive decay physics lists unless the list already has it registered - check with its type: if(physicsList->GetPhysicsWithType(G4BuilderType::bDecay) == nullptr) { // Register radioactive decay physics lists unless the list already has it registered: if(physics_list_up.find("HP") == std::string::npos && physics_list.find("Shielding") == std::string::npos) { LOG(DEBUG) << "Registering Geant4 radioactive decay physics list"; physicsList->RegisterPhysics(new G4RadioactiveDecayPhysics()); } Loading