Problem 2198 - /run/storeRndmStatToEvent cmd has too strict range flag<3
Summary: /run/storeRndmStatToEvent cmd has too strict range flag<3
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: run (show other problems)
Version: other
Hardware: All All
: P4 minor
Assignee: asai
URL:
Depends on:
Blocks:
 
Reported: 2019-10-07 17:44 CEST by Wouter Deconinck
Modified: 2019-10-07 20:57 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description Wouter Deconinck 2019-10-07 17:44:02 CEST
The command /run/storeRndmStatToEvent has documentation and handling that allows for the specified flag to take on values 0, 1, 2, 3.

However, in line 323, https://gitlab.cern.ch/clemenci/Geant4-srcs/blob/geant4-10.5-release/source/run/src/G4RunMessenger.cc#L323, the range is restricted to randEvtCmd->SetRange("flag>=0 && flag<3"). This means that flag value 3 cannot be set through UI commands. A simple fix is to modify the line to randEvtCmd->SetRange("flag>=0 && flag<=3").
Comment 1 asai 2019-10-07 20:57:05 CEST
Thanks for reporting this bug. The fix as you suggested will be included in the next release.
Makoto