Hi. I would like to switch hadronic physics before RunManager::Initialize(). I’ve tried to use void G4VModularPhysicsList::ReplacePhysics(G4VPhysicsConstructor* fPhysics). It works for electromagnetic physics, but it doesn’t work for hadronic physics. The reason is that any pType isn’t set for Hadronic physics, (i.e. G4HadronPhysicsQGSP_BERT_HP, etc.). I think that bHadronInelastic (= 6) should be set as their type. In the current implementation, the ReplacePhysics doesn’t replace, just register the compatible physics again because if the pType is 0, the function just add them without considering consistency. That situation may be confusing and make unclear bugs. I think that ptype should be set for also hadron physics.
Hi Dennis, please, switch this problem to me. Vladimir
Hello, thank you for this post. The fix is done and will be available with the 1st patch for the release 10.7. VI