Problem 1616 - Handling of UI command parameters: /analysis/h1/create (and possibly /analysis/h2/create)
Summary: Handling of UI command parameters: /analysis/h1/create (and possibly /analysi...
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: analysis (show other problems)
Version: 10.0
Hardware: All All
: P5 normal
Assignee: Ivana.Hrivnacova
URL:
Depends on:
Blocks:
 
Reported: 2014-04-23 00:20 CEST by Andrea Dotti
Modified: 2014-04-28 10:12 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 Andrea Dotti 2014-04-23 00:20:58 CEST
I have an issue with some UI commands with a string that contains spaces.
Please consider the following UI command and notice that the second
parameter contains spaces. Also notice that I’m escaping the string
with “ characters:

/analysis/h1/create nSpectraLeading "Energy Neutron Leading" 100 0 1 GeV

At run time I receive the error:
*-------- WWWW ------- G4Exception-START -------- WWWW -------*
**** G4Exception : Analysis_W013*
*      issued by : G4VAnalysisManager::CheckNbins*
*    Illegal value of number of bins: nbins <= 0*
**
**** This is just a warning message. ****
*-------- WWWW -------- G4Exception-END --------- WWWW -------*
**
While if I use (notice there are no spaces):
/analysis/h1/create nSpectraLeading EnergyNeutronLeading 100 0 1 GeV
Everything works.

I do suspect the parsing of of the commands parameters is broken in this case.

Andrea
Comment 1 Ivana.Hrivnacova 2014-04-28 10:12:31 CEST
Thank you for reporting this.
The problem has been fixed in the development version and the fix will be available in the next patch to 10.0 release.

Best regards,