EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EicUnits.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file EicUnits.h
1 //
2 // AYK (ayk@bnl.gov), 2017/10/07
3 //
4 // Eventually introduce oftenly used units; follow the G4 logic;
5 // do not want to introduce duplicate constants like just 'cm', but
6 // wrap them into the 'eic' namespace; NB: bear in mind that ROOT
7 // stores values in 'cm' (rather than in 'mm' like G4), so direct
8 // usage of G4 length definitions would not work anyway;
9 //
10 
11 #ifndef _EIC_UNITS_
12 #define _EIC_UNITS_
13 
14 namespace eic {
15  // For now I need only convenient length units I guess;
16  static const double cm = 1.0;
17  static const double mm = 0.1;
18  static const double m = 100.0;
19  static const double um = 1E-4;
20  static const double inch = 2.54;
21 }
22 
23 #endif