checkmate is hosted by Hepforge, IPPP Durham
Units.h
Go to the documentation of this file.
1 #ifndef _UNITS
2 #define _UNITS
3 
4 #include <cstdlib>
5 #include <iostream>
6 #include <stdio.h>
7 #include <string>
8 
10 namespace units {
11  const double KB = 1.E18, B = 1.E15, MB = 1.E12, MUB = 1.E9, NB = 1.E6, PB = 1.E3, FB = 1.0, AB = 1.E-3, ZB = 1.E-6;
12  const double INVKB = 1./KB, INVB = 1./B, INVMB = 1./MB, INVMUB = 1./MUB, INVNB = 1./NB, INVPB = 1./PB, INVFB = 1./FB, INVAB = 1./AB, INVZB = 1./ZB;
13 
14  double strToUnit(std::string unit);
15 }
16 
17 #endif
const double MUB
Definition: Units.h:11
const double INVB
Definition: Units.h:12
const double INVAB
Definition: Units.h:12
double strToUnit(std::string unit)
Returns the factor that corresponds to a given unit.
Definition: Units.cc:4
const double INVNB
Definition: Units.h:12
const double INVPB
Definition: Units.h:12
const double B
Definition: Units.h:11
const double ZB
Definition: Units.h:11
const double INVFB
Definition: Units.h:12
const double FB
Definition: Units.h:11
const double INVMB
Definition: Units.h:12
const double AB
Definition: Units.h:11
const double KB
Definition: Units.h:11
const double NB
Definition: Units.h:11
const double PB
Definition: Units.h:11
const double MB
Definition: Units.h:11
const double INVZB
Definition: Units.h:12
const double INVMUB
Definition: Units.h:12
const double INVKB
Definition: Units.h:12