From 019dc315a8338d00246575ccb9c55093ab3e310f Mon Sep 17 00:00:00 2001 From: Javier Galan Date: Tue, 30 Aug 2022 12:06:07 +0200 Subject: [PATCH 1/2] TRestSystemOfUnits. Adding arcmin and arcsec units --- source/framework/tools/inc/TRestSystemOfUnits.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/framework/tools/inc/TRestSystemOfUnits.h b/source/framework/tools/inc/TRestSystemOfUnits.h index c8ebed05e..bfb87b509 100644 --- a/source/framework/tools/inc/TRestSystemOfUnits.h +++ b/source/framework/tools/inc/TRestSystemOfUnits.h @@ -151,6 +151,8 @@ AddUnit(radians, REST_Units::Angle, 1.); AddUnit(deg, REST_Units::Angle, TMath::RadToDeg()); AddUnit(degree, REST_Units::Angle, TMath::RadToDeg()); AddUnit(degrees, REST_Units::Angle, TMath::RadToDeg()); +AddUnit(arcmin, REST_Units::Angle, TMath::RadToDeg() * 60.); +AddUnit(arcmin, REST_Units::Angle, TMath::RadToDeg() * 3600.); } // namespace REST_Units typedef REST_Units::TRestSystemOfUnits units; From 3ff24198c1c39dfb3dba6fd9e04838ddb9540262 Mon Sep 17 00:00:00 2001 From: Javier Galan Date: Tue, 30 Aug 2022 12:06:56 +0200 Subject: [PATCH 2/2] TRestSystemOfUnits. Fix --- source/framework/tools/inc/TRestSystemOfUnits.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/framework/tools/inc/TRestSystemOfUnits.h b/source/framework/tools/inc/TRestSystemOfUnits.h index bfb87b509..682413d0f 100644 --- a/source/framework/tools/inc/TRestSystemOfUnits.h +++ b/source/framework/tools/inc/TRestSystemOfUnits.h @@ -152,7 +152,7 @@ AddUnit(deg, REST_Units::Angle, TMath::RadToDeg()); AddUnit(degree, REST_Units::Angle, TMath::RadToDeg()); AddUnit(degrees, REST_Units::Angle, TMath::RadToDeg()); AddUnit(arcmin, REST_Units::Angle, TMath::RadToDeg() * 60.); -AddUnit(arcmin, REST_Units::Angle, TMath::RadToDeg() * 3600.); +AddUnit(arcsec, REST_Units::Angle, TMath::RadToDeg() * 3600.); } // namespace REST_Units typedef REST_Units::TRestSystemOfUnits units;