Problem 1259 - ASCII geometry does not parse units any longer
Summary: ASCII geometry does not parse units any longer
Status: RESOLVED DUPLICATE of problem 1240
Alias: None
Product: Geant4
Classification: Unclassified
Component: persistency/ascii (show other problems)
Version: 9.4
Hardware: All All
: P2 major
Assignee: Pedro.Arce
URL:
Depends on:
Blocks:
 
Reported: 2011-10-27 00:49 CEST by Mike Rinaldi
Modified: 2011-10-27 09: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 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 ***