Commit cf416ef4 authored by Lynn Garren's avatar Lynn Garren
Browse files

put Units into CLHEP namespace

parent fc2d6e55
......@@ -16,7 +16,7 @@
namespace HepMC {
static const double HepMC_pi = pi; // use pi from CLHEP
static const double HepMC_pi = CLHEP::pi; // use pi from CLHEP
/**
* @author
......
// -*- C++ -*-
// $Id: PhysicalConstants.h,v 1.1.1.1 2003/07/15 20:15:05 garren Exp $
// $Id: PhysicalConstants.h,v 1.2 2003/08/06 18:31:22 garren Exp $
// ----------------------------------------------------------------------
// HEP coherent Physical Constants
//
......@@ -39,6 +39,8 @@
#include "CLHEP/Units/SystemOfUnits.h"
namespace CLHEP {
//
//
//
......@@ -125,6 +127,8 @@ static const double kGasThreshold = 10.*mg/cm3;
//
static const double universe_mean_density = 1.e-25*g/cm3;
} // namespace CLHEP
#endif /* HEP_PHYSICAL_CONSTANTS_H */
......
// -*- C++ -*-
// $Id: SystemOfUnits.h,v 1.1.1.1 2003/07/15 20:15:05 garren Exp $
// $Id: SystemOfUnits.h,v 1.2 2003/08/06 18:31:22 garren Exp $
// ----------------------------------------------------------------------
// HEP coherent system of Units
//
......@@ -41,6 +41,7 @@
#ifndef HEP_SYSTEM_OF_UNITS_H
#define HEP_SYSTEM_OF_UNITS_H
namespace CLHEP {
//
// Length [L]
......@@ -273,4 +274,6 @@ static const double perCent = 0.01 ;
static const double perThousand = 0.001;
static const double perMillion = 0.000001;
} // namespace CLHEP
#endif /* HEP_SYSTEM_OF_UNITS_H */
// -*- C++ -*-
// $Id: testUnits.cc,v 1.1 2003/07/22 16:38:04 garren Exp $
// $Id: testUnits.cc,v 1.2 2003/08/06 18:31:22 garren Exp $
// ---------------------------------------------------------------------------
//
// This file is a part of the CLHEP - a Class Library for High Energy Physics.
......@@ -19,9 +19,9 @@ int main() {
double m=0;
for (int i=0; i<7; i++, m++) { assert(m == double(i)); }
assert(m != meter);
assert(m != CLHEP::meter);
std::cout << "Speed of light is " << std::setw(10) << std::setprecision(8)
<< c_light << std::endl;
<< CLHEP::c_light << std::endl;
return 0;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment