Commit 124be91b authored by Simon Spannagel's avatar Simon Spannagel
Browse files

DepositionGeant4: roll back to detecting G4RadioActiveDecay based on name of physics list :/

(cherry picked from commit 1701f2cf)
parent ada228e1
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -17,7 +17,6 @@
#include <utility>

#include <G4Box.hh>
#include <G4BuilderType.hh>
#include <G4EmParameters.hh>
#include <G4HadronicParameters.hh>
#include <G4HadronicProcessStore.hh>
@@ -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());
    }