Problem 2296

Summary: Type for hadron physics
Product: Geant4 Reporter: Keita Mizukoshi <mzks>
Component: processes/hadronicAssignee: Vladimir.Ivantchenko
Status: RESOLVED FIXED    
Severity: minor CC: Alberto.Ribon, Vladimir.Ivantchenko
Priority: P4    
Version: 10.6   
Hardware: All   
OS: All   

Description Keita Mizukoshi 2020-12-03 09:18:22 CET
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.
Comment 1 Vladimir.Ivantchenko 2020-12-05 11:59:49 CET
Hi Dennis,

please, switch this problem to me.

Vladimir
Comment 2 Vladimir.Ivantchenko 2020-12-07 21:34:30 CET
Hello,

thank you for this post. The fix is done and will be available with the 1st patch for the release 10.7.

VI