4 // Author: I. Hrivnacova
8 // Class defines the G3 default units of physical quantities;
9 // all physical quantities returned by MC are expressed in these units.
11 #ifndef TG4_G3_UNITS_H
12 #define TG4_G3_UNITS_H
21 virtual ~TG4G3Units();
24 static G4double Length();
25 static G4double Angle();
26 static G4double Time();
27 static G4double Charge();
28 static G4double Energy();
29 static G4double Mass();
30 static G4double MassDensity();
31 static G4double AtomicWeight();
32 static G4double Field();
36 // only static data members and methods
39 // static data members
40 static const G4double fgkLength; //G3 length unit
41 static const G4double fgkAngle; //G3 angle unit
42 static const G4double fgkTime; //G3 time unit
43 static const G4double fgkCharge; //G3 charge unit
44 static const G4double fgkEnergy; //G3 energy unit
45 static const G4double fgkMass; //G3 mass unit
46 static const G4double fgkMassDensity; //G3 mass density unit
47 static const G4double fgkAtomicWeight; //G3 atomic weight unit
48 static const G4double fgkField; //G3 magnetic field unit
53 inline G4double TG4G3Units::Length() { return fgkLength; }
54 inline G4double TG4G3Units::Angle() { return fgkAngle; }
55 inline G4double TG4G3Units::Time() { return fgkTime; }
56 inline G4double TG4G3Units::Charge() { return fgkCharge; }
57 inline G4double TG4G3Units::Energy() { return fgkEnergy; }
58 inline G4double TG4G3Units::Mass() { return fgkMass; }
59 inline G4double TG4G3Units::MassDensity() { return fgkMassDensity; }
60 inline G4double TG4G3Units::AtomicWeight() { return fgkAtomicWeight; }
61 inline G4double TG4G3Units::Field() { return fgkField; }
63 #endif //TG4_G3_UNITS_H