]>
Commit | Line | Data |
---|---|---|
2817d3e2 | 1 | // $Id$ |
2 | // Category: global | |
3 | // | |
499b353a | 4 | // Author: I. Hrivnacova |
5 | // | |
6 | // Class TG4G3Units | |
7 | // ---------------- | |
2817d3e2 | 8 | // Class defines the G3 default units of physical quantities; |
9 | // all physical quantities returned by MC are expressed in these units. | |
10 | ||
1cdefcd9 | 11 | #ifndef TG4_G3_UNITS_H |
12 | #define TG4_G3_UNITS_H | |
2817d3e2 | 13 | |
14 | #include <globals.hh> | |
15 | ||
1cdefcd9 | 16 | class TG4G3Units |
2817d3e2 | 17 | { |
18 | public: | |
19 | // --> protected | |
1cdefcd9 | 20 | // TG4G3Units(); |
21 | virtual ~TG4G3Units(); | |
2817d3e2 | 22 | |
23 | // static get methods | |
24 | static G4double Length(); | |
34a8c72a | 25 | static G4double Angle(); |
2817d3e2 | 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(); | |
33 | ||
34 | protected: | |
1cdefcd9 | 35 | TG4G3Units(); |
2817d3e2 | 36 | // only static data members and methods |
37 | ||
38 | private: | |
39 | // static data members | |
c63f260d | 40 | static const G4double fgkLength; //G3 length unit |
34a8c72a | 41 | static const G4double fgkAngle; //G3 angle unit |
c63f260d | 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 | |
2817d3e2 | 49 | }; |
50 | ||
51 | // inline methods | |
52 | ||
1cdefcd9 | 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; } | |
62 | ||
63 | #endif //TG4_G3_UNITS_H |