| Summary: | printing out a material using 'G4cout' reduces precision of all following G4double variables... | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | schwamm |
| Component: | global/management | Assignee: | Michel.Maire |
| Status: | RESOLVED INVALID | ||
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 2.0 | ||
| Hardware: | DEC | ||
| OS: | HP-UX | ||
It is done on purpose (setPrecision(3)), in order to give a compact summary of the material properties. If you wish better, do your own printing method. |
Printing out my starting material via ... _myStartingMaterial = G4Material::GetMaterial("Copper"); G4cout << _myStartingMaterial << G4endl;" ... leads to all the following 'G4double' variables being rounded to 'two-digit' values, i.e. 2.455*MeV changes to 2.5*MeV, 0.0006643 changes to 0.0066, 672.7*keV changes to 6.7e+02*keV etc.!