]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TGeant4/TG4G3Units.h
added tcsh UI
[u/mrichter/AliRoot.git] / TGeant4 / TG4G3Units.h
CommitLineData
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 16class 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 53inline G4double TG4G3Units::Length() { return fgkLength; }
54inline G4double TG4G3Units::Angle() { return fgkAngle; }
55inline G4double TG4G3Units::Time() { return fgkTime; }
56inline G4double TG4G3Units::Charge() { return fgkCharge; }
57inline G4double TG4G3Units::Energy() { return fgkEnergy; }
58inline G4double TG4G3Units::Mass() { return fgkMass; }
59inline G4double TG4G3Units::MassDensity() { return fgkMassDensity; }
60inline G4double TG4G3Units::AtomicWeight() { return fgkAtomicWeight; }
61inline G4double TG4G3Units::Field() { return fgkField; }
62
63#endif //TG4_G3_UNITS_H