VGM Version 5.3
Loading...
Searching...
No Matches
Units.h
Go to the documentation of this file.
1// $Id$
2
3// -----------------------------------------------------------------------
4// The ClhepVGM package of the Virtual Geometry Model
5// Copyright (C) 2007, Ivana Hrivnacova
6// All rights reserved.
7//
8// For the licensing terms see vgm/LICENSE.
9// Contact: ivana@ipno.in2p3.fr
10// -----------------------------------------------------------------------
11
13//
19
20#ifndef CLHEP_VGM_UNITS_H
21#define CLHEP_VGM_UNITS_H
22
23#include "VGM/common/Axis.h"
24
25namespace ClhepVGM {
26
27class Units
28{
29 public:
30 // --> protected
31 // Units();
32 virtual ~Units();
33
36 static double Length();
37
40 static double Length(double clhepUnit);
41
44 static double Angle();
45
48 static double Angle(double clhepUnit);
49
52 static double MassDensity();
53
56 static double MassDensity(double clhepUnit);
57
60 static double AtomicWeight();
61
64 static double AtomicWeight(double clhepUnit);
65
68 static double Temperature();
69
72 static double Temperature(double clhepUnit);
73
76 static double Pressure();
77
80 static double Pressure(double clhepUnit);
81
85 static double AxisUnit(VGM::Axis axis);
86
87 protected:
88 Units();
89 // only static data members and methods
90
91 private:
92 // static data members
93 static const double fgkLength;
94 static const double fgkAngle;
95 static const double fgkMassDensity;
96 static const double fgkAtomicWeight;
97 static const double fgkTemperature;
98 static const double fgkPressure;
99};
100
101} // namespace ClhepVGM
102
103#endif // CLHEP_VGM_UNITS_H
Conversion from CLHEP physical units to VGM units.
Definition Units.h:28
virtual ~Units()
Definition Units.cxx:53
static double Temperature()
Return CLHEP default temperature unit in VGM unit.
Definition Units.cxx:116
static double AtomicWeight()
Return CLHEP default atomic weight unit in VGM units.
Definition Units.cxx:107
static double MassDensity()
Return CLHEP default mass density unit in VGM units.
Definition Units.cxx:98
static double Pressure()
Return CLHEP default pressure unit in VGM unit.
Definition Units.cxx:125
static double Length()
Return CLHEP default length unit in VGM units.
Definition Units.cxx:83
static double Angle()
Return CLHEP default angle unit in VGM units.
Definition Units.cxx:92
static double AxisUnit(VGM::Axis axis)
Convert CLHEP default unit for given axis type in VGM units.
Definition Units.cxx:63
VGM Axis enumeration.
ClhepVGM utilities.
Definition transform.h:29