Problem 1802

Summary: UI session command line parameter doesn't work
Product: Examples/Basic and Novice Reporter: jorgen.petersen
Component: B4Assignee: Ivana Hrivnacova <ivana>
Status: RESOLVED FIXED    
Severity: minor    
Priority: P5    
Version: 10.1   
Hardware: All   
OS: All   

Description jorgen.petersen 2015-12-05 17:03:51 CET
Hello,
The README  for example B4 explains that the command line parameter "- u" defines a UI session.
Trying "./example4a -u tcsh" doesn't seem to have an effect.
Looking at the code, it seems that the command line parameter is extracted and stored in variable "session". However, this variable doesn't appear to be used.
Adding it as a third parameter to G4UIExecutive(argc, argv, session) seems to fix the problem.

Maybe another question: the example uses the FTFP_BERT physics list.
This results in some VERY long lists of EM and Hadronic proceses in the UI output. I've tried to control that by setting the verbose level for processes in different ways but without success. It seems that the verbose level is set internally to 1 somewhere?
Would you know if this can be controlled?
Thanks,
Jorgen.
Comment 1 Ivana Hrivnacova 2015-12-09 14:36:27 CET
Hello,

Thank you for your report. The third argument got lost when we reorganised all basic examples main functions in 10.1 and moved the code where the session is created ahead.
The problem is now fixed.