2817d3e2 |
1 | // $Id$ |
2 | // Category: global |
3 | // |
4 | // Class defines the G3 default units of physical quantities; |
5 | // all physical quantities returned by MC are expressed in these units. |
6 | |
7 | #ifndef TG3_UNITS_H |
8 | #define TG3_UNITS_H |
9 | |
10 | #include <globals.hh> |
11 | |
12 | class TG3Units |
13 | { |
14 | public: |
15 | // --> protected |
16 | // TG3Units(); |
17 | virtual ~TG3Units(); |
18 | |
19 | // static get methods |
20 | static G4double Length(); |
21 | static G4double Time(); |
22 | static G4double Charge(); |
23 | static G4double Energy(); |
24 | static G4double Mass(); |
25 | static G4double MassDensity(); |
26 | static G4double AtomicWeight(); |
27 | static G4double Field(); |
28 | |
29 | protected: |
30 | TG3Units(); |
31 | // only static data members and methods |
32 | |
33 | private: |
34 | // static data members |
c63f260d |
35 | static const G4double fgkLength; //G3 length unit |
36 | static const G4double fgkTime; //G3 time unit |
37 | static const G4double fgkCharge; //G3 charge unit |
38 | static const G4double fgkEnergy; //G3 energy unit |
39 | static const G4double fgkMass; //G3 mass unit |
40 | static const G4double fgkMassDensity; //G3 mass density unit |
41 | static const G4double fgkAtomicWeight; //G3 atomic weight unit |
42 | static const G4double fgkField; //G3 magnetic field unit |
2817d3e2 |
43 | }; |
44 | |
45 | // inline methods |
46 | |
c63f260d |
47 | inline G4double TG3Units::Length() { return fgkLength; } |
48 | inline G4double TG3Units::Time() { return fgkTime; } |
49 | inline G4double TG3Units::Charge() { return fgkCharge; } |
50 | inline G4double TG3Units::Energy() { return fgkEnergy; } |
51 | inline G4double TG3Units::Mass() { return fgkMass; } |
52 | inline G4double TG3Units::MassDensity() { return fgkMassDensity; } |
53 | inline G4double TG3Units::AtomicWeight() { return fgkAtomicWeight; } |
54 | inline G4double TG3Units::Field() { return fgkField; } |
2817d3e2 |
55 | |
56 | #endif //TG3_UNITS_H |