Problem 1609 - UI commands /process/em/fluo,pixe,auger not working in MT mode
Summary: UI commands /process/em/fluo,pixe,auger not working in MT mode
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: processes/electromagnetic (show other problems)
Version: 10.0
Hardware: All All
: P5 normal
Assignee: Vladimir.Ivantchenko
URL:
Depends on:
Blocks:
 
Reported: 2014-04-15 02:49 CEST by Andrea Dotti
Modified: 2014-05-06 09:15 CEST (History)
0 users

See Also:


Attachments
Macro file with line that solves the problem (1.39 KB, image/x-macpaint)
2014-04-15 02:49 CEST, Andrea Dotti
Details

Note You need to log in before you can comment on or make changes to this problem.
Description Andrea Dotti 2014-04-15 02:49:09 CEST
Created attachment 262 [details]
Macro file with line that solves the problem

TestEm5 in MT mode shows that the activation of em processes like PIXE via UI commands does not work. The following three lines:
/process/em/fluo true
/process/em/pixe true
/process/em/auger false
Are not taken into account.
This is because in MT we need to force the trigger of re-configuring physics. Adding the following UI command makes the example work (as in the attached macro):
/run/physicsModified

A possible solution would be to add 
G4UImanager::GetUIpointer()->ApplyCommand("/run/physicsModified"); 
To messengers that define commands that change physics (like the three discussed here). This strategy is already applied for other UI commands, but not for these three.

Andrea
Comment 1 Vladimir.Ivantchenko 2014-05-06 09:14:22 CEST
A flag "physicsIsModified" is set after each UI command for de-excitation module. This was done for the development version and will be available with the next public release of Geant4 in June.