Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Units.h

Go to the documentation of this file.
00001 //   $Header: /nfs/slac/g/glast/ground/cvs/gismo/gismo/Units.h,v 1.2 2000/01/17 23:37:27 burnett Exp $
00002 //
00003 
00004 #ifndef GISMO_UNITS_H
00005 #define GISMO_UNITS_H
00006 
00008 
00017 class Units
00018 {
00019 
00020 
00021   public:
00023   static  float toMeV(float e) {return 1.E3*e;}
00024   static  float fromMeV(float e){return 1.E-3*e;}
00025   static  float fromKeV(float e){return 1.e-6*e;}
00026 
00028   static  float fromMeters(float d) {return 100.*d;}
00029   static  float from_mm(float d){return 0.1*d;}
00030 
00032   static  double ec() {return 0.00299792;}   // GeV/T-m
00033   static  double hbarc() {return 197.327*fromMeV(1.f)*fromMeters(1.E-15f);}
00034 };
00035 #endif
00036 
00037 

Generated at Mon Nov 26 18:18:34 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000