Geant4  10.02.p03
G4SIunits.hh File Reference

Go to the source code of this file.

Macros

#define pascal   hep_pascal
 

Variables

static const double pi = 3.14159265358979323846
 
static const double twopi = 2*pi
 
static const double halfpi = pi/2
 
static const double pi2 = pi*pi
 
static const double meter = 1.
 
static const double meter2 = meter*meter
 
static const double meter3 = meter*meter*meter
 
static const double millimeter = 0.001*meter
 
static const double millimeter2 = millimeter*millimeter
 
static const double millimeter3 = millimeter*millimeter*millimeter
 
static const double centimeter = 10.*millimeter
 
static const double centimeter2 = centimeter*centimeter
 
static const double centimeter3 = centimeter*centimeter*centimeter
 
static const double kilometer = 1000.*meter
 
static const double kilometer2 = kilometer*kilometer
 
static const double kilometer3 = kilometer*kilometer*kilometer
 
static const double parsec = 3.0856775807e+16*meter
 
static const double micrometer = 1.e-6 *meter
 
static const double nanometer = 1.e-9 *meter
 
static const double angstrom = 1.e-10*meter
 
static const double fermi = 1.e-15*meter
 
static const double barn = 1.e-28*meter2
 
static const double millibarn = 1.e-3 *barn
 
static const double microbarn = 1.e-6 *barn
 
static const double nanobarn = 1.e-9 *barn
 
static const double picobarn = 1.e-12*barn
 
static const double nm = nanometer
 
static const double um = micrometer
 
static const double mm = millimeter
 
static const double mm2 = millimeter2
 
static const double mm3 = millimeter3
 
static const double cm = centimeter
 
static const double cm2 = centimeter2
 
static const double cm3 = centimeter3
 
static const double liter = 1.e+3*cm3
 
static const double L = liter
 
static const double dL = 1.e-1*liter
 
static const double cL = 1.e-2*liter
 
static const double mL = 1.e-3*liter
 
static const double m = meter
 
static const double m2 = meter2
 
static const double m3 = meter3
 
static const double km = kilometer
 
static const double km2 = kilometer2
 
static const double km3 = kilometer3
 
static const double pc = parsec
 
static const double radian = 1.
 
static const double milliradian = 1.e-3*radian
 
static const double degree = (pi/180.0)*radian
 
static const double steradian = 1.
 
static const double rad = radian
 
static const double mrad = milliradian
 
static const double sr = steradian
 
static const double deg = degree
 
static const double second = 1.
 
static const double nanosecond = 1.e-9 *second
 
static const double millisecond = 1.e-3 *second
 
static const double microsecond = 1.e-6 *second
 
static const double picosecond = 1.e-12*second
 
static const double hertz = 1./second
 
static const double kilohertz = 1.e+3*hertz
 
static const double megahertz = 1.e+6*hertz
 
static const double ns = nanosecond
 
static const double s = second
 
static const double ms = millisecond
 
static const double kilogram = 1.
 
static const double gram = 1.e-3*kilogram
 
static const double milligram = 1.e-3*gram
 
static const double kg = kilogram
 
static const double g = gram
 
static const double mg = milligram
 
static const double ampere = 1.
 
static const double milliampere = 1.e-3*ampere
 
static const double microampere = 1.e-6*ampere
 
static const double nanoampere = 1.e-9*ampere
 
static const double coulomb = ampere*second
 
static const double e_SI = 1.602176487e-19
 
static const double eplus = e_SI*coulomb
 
static const double joule = kg*m*m/(s*s)
 
static const double electronvolt = e_SI*joule
 
static const double kiloelectronvolt = 1.e+3*electronvolt
 
static const double megaelectronvolt = 1.e+6*electronvolt
 
static const double gigaelectronvolt = 1.e+9*electronvolt
 
static const double teraelectronvolt = 1.e+12*electronvolt
 
static const double petaelectronvolt = 1.e+15*electronvolt
 
static const double MeV = megaelectronvolt
 
static const double eV = electronvolt
 
static const double keV = kiloelectronvolt
 
static const double GeV = gigaelectronvolt
 
static const double TeV = teraelectronvolt
 
static const double PeV = petaelectronvolt
 
static const double watt = joule/second
 
static const double newton = joule/meter
 
static const double hep_pascal = newton/m2
 
static const double bar = 100000*pascal
 
static const double atmosphere = 101325*pascal
 
static const double megavolt = megaelectronvolt/eplus
 
static const double kilovolt = 1.e-3*megavolt
 
static const double volt = 1.e-6*megavolt
 
static const double ohm = volt/ampere
 
static const double farad = coulomb/volt
 
static const double millifarad = 1.e-3*farad
 
static const double microfarad = 1.e-6*farad
 
static const double nanofarad = 1.e-9*farad
 
static const double picofarad = 1.e-12*farad
 
static const double weber = volt*second
 
static const double tesla = volt*second/meter2
 
static const double gauss = 1.e-4*tesla
 
static const double kilogauss = 1.e-1*tesla
 
static const double henry = weber/ampere
 
static const double kelvin = 1.
 
static const double mole = 1.
 
static const double becquerel = 1./second
 
static const double curie = 3.7e+10 * becquerel
 
static const double kilobecquerel = 1.e+3*becquerel
 
static const double megabecquerel = 1.e+6*becquerel
 
static const double gigabecquerel = 1.e+9*becquerel
 
static const double millicurie = 1.e-3*curie
 
static const double microcurie = 1.e-6*curie
 
static const double Bq = becquerel
 
static const double kBq = kilobecquerel
 
static const double MBq = megabecquerel
 
static const double GBq = gigabecquerel
 
static const double Ci = curie
 
static const double mCi = millicurie
 
static const double uCi = microcurie
 
static const double gray = joule/kilogram
 
static const double kilogray = 1.e+3*gray
 
static const double milligray = 1.e-3*gray
 
static const double microgray = 1.e-6*gray
 
static const double candela = 1.
 
static const double lumen = candela*steradian
 
static const double lux = lumen/meter2
 
static const double perCent = 0.01
 
static const double perThousand = 0.001
 
static const double perMillion = 0.000001
 

Macro Definition Documentation

◆ pascal

#define pascal   hep_pascal

Definition at line 231 of file G4SIunits.hh.

Variable Documentation

◆ ampere

const double ampere = 1.
static

Definition at line 186 of file G4SIunits.hh.

◆ angstrom

const double angstrom = 1.e-10*meter
static

Definition at line 101 of file G4SIunits.hh.

◆ atmosphere

const double atmosphere = 101325*pascal
static

Definition at line 234 of file G4SIunits.hh.

◆ bar

const double bar = 100000*pascal
static

Definition at line 233 of file G4SIunits.hh.

◆ barn

const double barn = 1.e-28*meter2
static

Definition at line 104 of file G4SIunits.hh.

◆ becquerel

const double becquerel = 1./second
static

Definition at line 288 of file G4SIunits.hh.

◆ Bq

const double Bq = becquerel
static

Definition at line 295 of file G4SIunits.hh.

◆ candela

const double candela = 1.
static

Definition at line 314 of file G4SIunits.hh.

◆ centimeter

const double centimeter = 10.*millimeter
static

Definition at line 89 of file G4SIunits.hh.

◆ centimeter2

const double centimeter2 = centimeter*centimeter
static

Definition at line 90 of file G4SIunits.hh.

◆ centimeter3

const double centimeter3 = centimeter*centimeter*centimeter
static

Definition at line 91 of file G4SIunits.hh.

◆ Ci

const double Ci = curie
static

Definition at line 299 of file G4SIunits.hh.

◆ cL

const double cL = 1.e-2*liter
static

Definition at line 125 of file G4SIunits.hh.

◆ cm

const double cm = centimeter
static

Definition at line 118 of file G4SIunits.hh.

◆ cm2

const double cm2 = centimeter2
static

Definition at line 119 of file G4SIunits.hh.

◆ cm3

const double cm3 = centimeter3
static

Definition at line 120 of file G4SIunits.hh.

◆ coulomb

const double coulomb = ampere*second
static

Definition at line 194 of file G4SIunits.hh.

◆ curie

const double curie = 3.7e+10 * becquerel
static

Definition at line 289 of file G4SIunits.hh.

◆ deg

const double deg = degree
static

Definition at line 151 of file G4SIunits.hh.

◆ degree

const double degree = (pi/180.0)*radian
static

Definition at line 143 of file G4SIunits.hh.

◆ dL

const double dL = 1.e-1*liter
static

Definition at line 124 of file G4SIunits.hh.

◆ e_SI

const double e_SI = 1.602176487e-19
static

Definition at line 195 of file G4SIunits.hh.

◆ electronvolt

const double electronvolt = e_SI*joule
static

Definition at line 203 of file G4SIunits.hh.

◆ eplus

const double eplus = e_SI*coulomb
static

Definition at line 196 of file G4SIunits.hh.

◆ eV

const double eV = electronvolt
static

Definition at line 212 of file G4SIunits.hh.

◆ farad

const double farad = coulomb/volt
static

Definition at line 251 of file G4SIunits.hh.

◆ fermi

const double fermi = 1.e-15*meter
static

Definition at line 102 of file G4SIunits.hh.

◆ g

const double g = gram
static

Definition at line 180 of file G4SIunits.hh.

◆ gauss

const double gauss = 1.e-4*tesla
static

Definition at line 267 of file G4SIunits.hh.

◆ GBq

const double GBq = gigabecquerel
static

Definition at line 298 of file G4SIunits.hh.

◆ GeV

const double GeV = gigaelectronvolt
static

Definition at line 214 of file G4SIunits.hh.

◆ gigabecquerel

const double gigabecquerel = 1.e+9*becquerel
static

Definition at line 292 of file G4SIunits.hh.

◆ gigaelectronvolt

const double gigaelectronvolt = 1.e+9*electronvolt
static

Definition at line 206 of file G4SIunits.hh.

◆ gram

const double gram = 1.e-3*kilogram
static

Definition at line 175 of file G4SIunits.hh.

◆ gray

const double gray = joule/kilogram
static

Definition at line 306 of file G4SIunits.hh.

◆ halfpi

const double halfpi = pi/2
static

Definition at line 76 of file G4SIunits.hh.

◆ henry

const double henry = weber/ampere
static

Definition at line 273 of file G4SIunits.hh.

◆ hep_pascal

const double hep_pascal = newton/m2
static

Definition at line 232 of file G4SIunits.hh.

◆ hertz

const double hertz = 1./second
static

Definition at line 162 of file G4SIunits.hh.

◆ joule

const double joule = kg*m*m/(s*s)
static

Definition at line 201 of file G4SIunits.hh.

◆ kBq

const double kBq = kilobecquerel
static

Definition at line 296 of file G4SIunits.hh.

◆ kelvin

const double kelvin = 1.
static

Definition at line 278 of file G4SIunits.hh.

◆ keV

const double keV = kiloelectronvolt
static

Definition at line 213 of file G4SIunits.hh.

◆ kg

const double kg = kilogram
static

Definition at line 179 of file G4SIunits.hh.

◆ kilobecquerel

const double kilobecquerel = 1.e+3*becquerel
static

Definition at line 290 of file G4SIunits.hh.

◆ kiloelectronvolt

const double kiloelectronvolt = 1.e+3*electronvolt
static

Definition at line 204 of file G4SIunits.hh.

◆ kilogauss

const double kilogauss = 1.e-1*tesla
static

Definition at line 268 of file G4SIunits.hh.

◆ kilogram

const double kilogram = 1.
static

Definition at line 174 of file G4SIunits.hh.

◆ kilogray

const double kilogray = 1.e+3*gray
static

Definition at line 307 of file G4SIunits.hh.

◆ kilohertz

const double kilohertz = 1.e+3*hertz
static

Definition at line 163 of file G4SIunits.hh.

◆ kilometer

const double kilometer = 1000.*meter
static

Definition at line 93 of file G4SIunits.hh.

◆ kilometer2

const double kilometer2 = kilometer*kilometer
static

Definition at line 94 of file G4SIunits.hh.

◆ kilometer3

const double kilometer3 = kilometer*kilometer*kilometer
static

Definition at line 95 of file G4SIunits.hh.

◆ kilovolt

const double kilovolt = 1.e-3*megavolt
static

Definition at line 240 of file G4SIunits.hh.

◆ km

const double km = kilometer
static

Definition at line 132 of file G4SIunits.hh.

◆ km2

const double km2 = kilometer2
static

Definition at line 133 of file G4SIunits.hh.

◆ km3

const double km3 = kilometer3
static

Definition at line 134 of file G4SIunits.hh.

◆ L

const double L = liter
static

Definition at line 123 of file G4SIunits.hh.

◆ liter

const double liter = 1.e+3*cm3
static

Definition at line 122 of file G4SIunits.hh.

◆ lumen

const double lumen = candela*steradian
static

Definition at line 319 of file G4SIunits.hh.

◆ lux

const double lux = lumen/meter2
static

Definition at line 324 of file G4SIunits.hh.

◆ m

const double m = meter
static

Definition at line 128 of file G4SIunits.hh.

◆ m2

const double m2 = meter2
static

Definition at line 129 of file G4SIunits.hh.

◆ m3

const double m3 = meter3
static

Definition at line 130 of file G4SIunits.hh.

◆ MBq

const double MBq = megabecquerel
static

Definition at line 297 of file G4SIunits.hh.

◆ mCi

const double mCi = millicurie
static

Definition at line 300 of file G4SIunits.hh.

◆ megabecquerel

const double megabecquerel = 1.e+6*becquerel
static

Definition at line 291 of file G4SIunits.hh.

◆ megaelectronvolt

const double megaelectronvolt = 1.e+6*electronvolt
static

Definition at line 205 of file G4SIunits.hh.

◆ megahertz

const double megahertz = 1.e+6*hertz
static

Definition at line 164 of file G4SIunits.hh.

◆ megavolt

const double megavolt = megaelectronvolt/eplus
static

Definition at line 239 of file G4SIunits.hh.

◆ meter

const double meter = 1.
static

Definition at line 81 of file G4SIunits.hh.

◆ meter2

const double meter2 = meter*meter
static

Definition at line 82 of file G4SIunits.hh.

◆ meter3

const double meter3 = meter*meter*meter
static

Definition at line 83 of file G4SIunits.hh.

◆ MeV

const double MeV = megaelectronvolt
static

Definition at line 211 of file G4SIunits.hh.

◆ mg

const double mg = milligram
static

Definition at line 181 of file G4SIunits.hh.

◆ microampere

const double microampere = 1.e-6*ampere
static

Definition at line 188 of file G4SIunits.hh.

◆ microbarn

const double microbarn = 1.e-6 *barn
static

Definition at line 106 of file G4SIunits.hh.

◆ microcurie

const double microcurie = 1.e-6*curie
static

Definition at line 294 of file G4SIunits.hh.

◆ microfarad

const double microfarad = 1.e-6*farad
static

Definition at line 253 of file G4SIunits.hh.

◆ microgray

const double microgray = 1.e-6*gray
static

Definition at line 309 of file G4SIunits.hh.

◆ micrometer

const double micrometer = 1.e-6 *meter
static

Definition at line 99 of file G4SIunits.hh.

◆ microsecond

const double microsecond = 1.e-6 *second
static

Definition at line 159 of file G4SIunits.hh.

◆ milliampere

const double milliampere = 1.e-3*ampere
static

Definition at line 187 of file G4SIunits.hh.

◆ millibarn

const double millibarn = 1.e-3 *barn
static

Definition at line 105 of file G4SIunits.hh.

◆ millicurie

const double millicurie = 1.e-3*curie
static

Definition at line 293 of file G4SIunits.hh.

◆ millifarad

const double millifarad = 1.e-3*farad
static

Definition at line 252 of file G4SIunits.hh.

◆ milligram

const double milligram = 1.e-3*gram
static

Definition at line 176 of file G4SIunits.hh.

◆ milligray

const double milligray = 1.e-3*gray
static

Definition at line 308 of file G4SIunits.hh.

◆ millimeter

const double millimeter = 0.001*meter
static

Definition at line 85 of file G4SIunits.hh.

◆ millimeter2

const double millimeter2 = millimeter*millimeter
static

Definition at line 86 of file G4SIunits.hh.

◆ millimeter3

const double millimeter3 = millimeter*millimeter*millimeter
static

Definition at line 87 of file G4SIunits.hh.

◆ milliradian

const double milliradian = 1.e-3*radian
static

Definition at line 142 of file G4SIunits.hh.

◆ millisecond

const double millisecond = 1.e-3 *second
static

Definition at line 158 of file G4SIunits.hh.

◆ mL

const double mL = 1.e-3*liter
static

Definition at line 126 of file G4SIunits.hh.

◆ mm

const double mm = millimeter
static

Definition at line 114 of file G4SIunits.hh.

◆ mm2

const double mm2 = millimeter2
static

Definition at line 115 of file G4SIunits.hh.

◆ mm3

const double mm3 = millimeter3
static

Definition at line 116 of file G4SIunits.hh.

◆ mole

const double mole = 1.
static

Definition at line 283 of file G4SIunits.hh.

◆ mrad

const double mrad = milliradian
static

Definition at line 149 of file G4SIunits.hh.

◆ ms

const double ms = millisecond
static

Definition at line 169 of file G4SIunits.hh.

◆ nanoampere

const double nanoampere = 1.e-9*ampere
static

Definition at line 189 of file G4SIunits.hh.

◆ nanobarn

const double nanobarn = 1.e-9 *barn
static

Definition at line 107 of file G4SIunits.hh.

◆ nanofarad

const double nanofarad = 1.e-9*farad
static

Definition at line 254 of file G4SIunits.hh.

◆ nanometer

const double nanometer = 1.e-9 *meter
static

Definition at line 100 of file G4SIunits.hh.

◆ nanosecond

const double nanosecond = 1.e-9 *second
static

Definition at line 157 of file G4SIunits.hh.

◆ newton

const double newton = joule/meter
static

Definition at line 226 of file G4SIunits.hh.

◆ nm

const double nm = nanometer
static

Definition at line 111 of file G4SIunits.hh.

◆ ns

const double ns = nanosecond
static

Definition at line 167 of file G4SIunits.hh.

◆ ohm

const double ohm = volt/ampere
static

Definition at line 246 of file G4SIunits.hh.

◆ parsec

const double parsec = 3.0856775807e+16*meter
static

Definition at line 97 of file G4SIunits.hh.

◆ pc

const double pc = parsec
static

Definition at line 136 of file G4SIunits.hh.

◆ perCent

const double perCent = 0.01
static

Definition at line 329 of file G4SIunits.hh.

◆ perMillion

const double perMillion = 0.000001
static

Definition at line 331 of file G4SIunits.hh.

◆ perThousand

const double perThousand = 0.001
static

Definition at line 330 of file G4SIunits.hh.

◆ petaelectronvolt

const double petaelectronvolt = 1.e+15*electronvolt
static

Definition at line 208 of file G4SIunits.hh.

◆ PeV

const double PeV = petaelectronvolt
static

Definition at line 216 of file G4SIunits.hh.

◆ pi

const double pi = 3.14159265358979323846
static

Definition at line 74 of file G4SIunits.hh.

◆ pi2

const double pi2 = pi*pi
static

Definition at line 77 of file G4SIunits.hh.

◆ picobarn

const double picobarn = 1.e-12*barn
static

Definition at line 108 of file G4SIunits.hh.

◆ picofarad

const double picofarad = 1.e-12*farad
static

Definition at line 255 of file G4SIunits.hh.

◆ picosecond

const double picosecond = 1.e-12*second
static

Definition at line 160 of file G4SIunits.hh.

◆ rad

const double rad = radian
static

Definition at line 148 of file G4SIunits.hh.

◆ radian

const double radian = 1.
static

Definition at line 141 of file G4SIunits.hh.

◆ s

const double s = second
static

Definition at line 168 of file G4SIunits.hh.

◆ second

const double second = 1.
static

Definition at line 156 of file G4SIunits.hh.

◆ sr

const double sr = steradian
static

Definition at line 150 of file G4SIunits.hh.

◆ steradian

const double steradian = 1.
static

Definition at line 145 of file G4SIunits.hh.

◆ teraelectronvolt

const double teraelectronvolt = 1.e+12*electronvolt
static

Definition at line 207 of file G4SIunits.hh.

◆ tesla

const double tesla = volt*second/meter2
static

Definition at line 265 of file G4SIunits.hh.

◆ TeV

const double TeV = teraelectronvolt
static

Definition at line 215 of file G4SIunits.hh.

◆ twopi

const double twopi = 2*pi
static

Definition at line 75 of file G4SIunits.hh.

◆ uCi

const double uCi = microcurie
static

Definition at line 301 of file G4SIunits.hh.

◆ um

const double um = micrometer
static

Definition at line 112 of file G4SIunits.hh.

◆ volt

const double volt = 1.e-6*megavolt
static

Definition at line 241 of file G4SIunits.hh.

◆ watt

const double watt = joule/second
static

Definition at line 221 of file G4SIunits.hh.

◆ weber

const double weber = volt*second
static

Definition at line 260 of file G4SIunits.hh.