Skip to content
Snippets Groups Projects
Commit 534604a6 authored by Frank Gaede's avatar Frank Gaede
Browse files

- changed default unit for angles to be radians (tgeo::rad = 1.)

 - enforce usage of units from TGeoUnits.h in xml expression evaluators
 - convert to degrees for angles in TGeoShapes constructors
 - NB: there is one inconsistency left here:  angles returned 
       from TGeoShapes are already in degrees, this is the one
       case where a quantity returned from DD4hep/TGeo does not have the default
       units - thus one should not write
       double phi = coneSeg.Phi1() / tgeo::rad ;
       but rather
       double phi = coneSeg.Phi1() * tgeo::deg ; 
 
parent a024c5b8
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment