| Summary: | General Particle Source /ang/type appears not to be set correctly by SetDefaulValue (isotropic) | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | Fabio Zeiser <fzeiser> |
| Component: | event | Assignee: | asai |
| Status: | RESOLVED WONTFIX | ||
| Severity: | minor | CC: | fzeiser |
| Priority: | P4 | ||
| Version: | 10.6 | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: | visualization_output | ||
|
Description
Fabio Zeiser
2020-08-07 15:38:04 CEST
So whilst the default should be set to be `iso` when looking in the source code, it appears to be set to beam1D or something like this. Default value of the UI command means it is used when you issue this command without specifying the parameter value. /gps/ang/typ It does not necessarily mean the initial value of the program has that "default" value, and actually it is initialized to "planar" as you see here. https://geant4.kek.jp/lxr/source/event/src/G4SPSAngDistribution.cc#L62 I admit it would nice to coincide the initial value and the default value of the command. But changing the initial value may affect to the other users who innocently rely on the initial value, so this initial value won't be changed. I'm sorry for your inconvenience but please use /gps/ang/typ command to specify the angle distribution you need. Regards, Makoto Asai Thank you very much for the quick response. Indeed I did not realize that there was this distinction as I usually explicitly specified the type for /gps/ang/type. I agree that it would be less confusing if the default value would coincide with the initial value. Is it reasonable to open up a "feature request" for that? |