From 34a8c72a4bd104f07b64f1fbaa942b9eb6e8e4c3 Mon Sep 17 00:00:00 2001 From: ivana Date: Fri, 28 Jul 2000 18:35:25 +0000 Subject: [PATCH] added G4 angle unit (deg) --- TGeant4/TG3Units.cxx | 1 + TGeant4/TG3Units.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/TGeant4/TG3Units.cxx b/TGeant4/TG3Units.cxx index e6a1446a598..46c03f2df55 100644 --- a/TGeant4/TG3Units.cxx +++ b/TGeant4/TG3Units.cxx @@ -8,6 +8,7 @@ // static const data members const G4double TG3Units::fgkLength = cm; +const G4double TG3Units::fgkAngle = deg; const G4double TG3Units::fgkTime = s; const G4double TG3Units::fgkCharge = eplus; const G4double TG3Units::fgkEnergy = GeV; diff --git a/TGeant4/TG3Units.h b/TGeant4/TG3Units.h index 6c0f218134d..c14e09eb34d 100644 --- a/TGeant4/TG3Units.h +++ b/TGeant4/TG3Units.h @@ -18,6 +18,7 @@ class TG3Units // static get methods static G4double Length(); + static G4double Angle(); static G4double Time(); static G4double Charge(); static G4double Energy(); @@ -33,6 +34,7 @@ class TG3Units private: // static data members static const G4double fgkLength; //G3 length unit + static const G4double fgkAngle; //G3 angle unit static const G4double fgkTime; //G3 time unit static const G4double fgkCharge; //G3 charge unit static const G4double fgkEnergy; //G3 energy unit @@ -45,6 +47,7 @@ class TG3Units // inline methods inline G4double TG3Units::Length() { return fgkLength; } +inline G4double TG3Units::Angle() { return fgkAngle; } inline G4double TG3Units::Time() { return fgkTime; } inline G4double TG3Units::Charge() { return fgkCharge; } inline G4double TG3Units::Energy() { return fgkEnergy; } -- 2.39.3