Problem 1259

Summary: ASCII geometry does not parse units any longer
Product: Geant4 Reporter: Mike Rinaldi <marinaldi>
Component: persistency/asciiAssignee: Pedro.Arce
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: P2    
Version: 9.4   
Hardware: All   
OS: All   

Description Mike Rinaldi 2011-10-27 00:49:34 CEST
Beginning with geant 4.9.4.p01  the ascii geometry parser does not seem to process units at all.  Any tag with a unit causes a crash.

For example  

:P Param1 10*cm
 or 
:MATE_MEE mat 300*eV

both cause a crash.   If the unit is removed, such as 

:P Param1 100

then the parser works as before.

I believe the problem maybe in G4tgrUtils.cc, specifically, in the method

G4double G4tgrUtils::GetDouble( const G4String& str, G4double unitval ) 

There was a difference in how this method parses units from 4.9.3

Mike
Comment 1 Gabriele Cosmo 2011-10-27 09:12:23 CEST
The fix will be included in the next patch.

*** This problem has been marked as a duplicate of problem 1240 ***