Problem 1616

Summary: Handling of UI command parameters: /analysis/h1/create (and possibly /analysis/h2/create)
Product: Geant4 Reporter: Andrea Dotti <andrea.dotti>
Component: analysisAssignee: Ivana.Hrivnacova
Status: RESOLVED FIXED    
Severity: normal    
Priority: P5    
Version: 10.0   
Hardware: All   
OS: All   

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,