Problem 2296 - Type for hadron physics
Summary: Type for hadron physics
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: processes/hadronic (show other problems)
Version: 10.6
Hardware: All All
: P4 minor
Assignee: Vladimir.Ivantchenko
URL:
Depends on:
Blocks:
 
Reported: 2020-12-03 09:18 CET by Keita Mizukoshi
Modified: 2020-12-07 21:34 CET (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
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