Problem 1307 - degrees defined incorrectly in G4SIunits.h
Summary: degrees defined incorrectly in G4SIunits.h
Status: RESOLVED INVALID
Alias: None
Product: Geant4
Classification: Unclassified
Component: global (show other problems)
Version: 9.5
Hardware: All All
: P5 trivial
Assignee: Gabriele Cosmo
URL:
Depends on:
Blocks:
 
Reported: 2012-04-25 18:55 CEST by Brett Viren
Modified: 2012-04-26 11:54 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 Brett Viren 2012-04-25 18:55:38 CEST
In geant4.9.5.p01 I happen to be looking at G4SIunits and see that the "degree" definition is inverted from what is correct:

static const double degree = (3.14159265358979323846/180.0)*radian;

It looks like G4SIunits.hh are not used in the rest of the G4 source so this is only a potential problem but may bite someone someday if not fixed.

-Brett.
Comment 1 Gabriele Cosmo 2012-04-26 11:54:19 CEST
The definition of 'degree' in G4SIUnits (and in CLHEP) is correct, as it relies upon transformation from radians, where 'radian' is considered as unit.