]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TGeant4/TG4G3Units.h
Latest version
[u/mrichter/AliRoot.git] / TGeant4 / TG4G3Units.h
1 // $Id$
2 // Category: global
3 //
4 // Author: I. Hrivnacova
5 //
6 // Class TG4G3Units
7 // ----------------
8 // Class defines the G3 default units of physical quantities; 
9 // all physical quantities returned by MC are expressed in these units.
10
11 #ifndef TG4_G3_UNITS_H
12 #define TG4_G3_UNITS_H
13
14 #include <globals.hh>
15
16 class TG4G3Units
17 {
18   public:
19     // --> protected
20     // TG4G3Units();  
21     virtual ~TG4G3Units();
22
23     // static get methods
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(); 
33       
34   protected:
35     TG4G3Units();      
36         // only static data members and methods
37
38   private:
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 
49 };     
50
51 // inline methods
52
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