Skip to content
Snippets Groups Projects
Commit ef9e90de authored by Marko Petric's avatar Marko Petric
Browse files

Drop G4SystemOfUnits in favour of CLHEP/Units/SystemOfUnits.h

parent 0c5e2d96
No related branches found
No related tags found
No related merge requests found
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#include "UTIL/Operators.h" #include "UTIL/Operators.h"
#include "UTIL/ILDConf.h" #include "UTIL/ILDConf.h"
#include <G4SystemOfUnits.hh> #include "CLHEP/Units/SystemOfUnits.h"
using namespace std; using namespace std;
using namespace lcio ; using namespace lcio ;
......
...@@ -24,10 +24,12 @@ ...@@ -24,10 +24,12 @@
#include "G4ParticleTable.hh" #include "G4ParticleTable.hh"
#include "G4ParticleDefinition.hh" #include "G4ParticleDefinition.hh"
#include "G4SystemOfUnits.hh"
#include "G4PhysicalConstants.hh" #include "G4PhysicalConstants.hh"
#include "G4Version.hh" #include "G4Version.hh"
#include "CLHEP/Units/SystemOfUnits.h"
#include "CLHEP/Units/PhysicalConstants.h"
#include <fstream> #include <fstream>
#include <sstream> #include <sstream>
#include <string> #include <string>
...@@ -91,18 +93,18 @@ void Geant4ExtraParticles::constructParticle(Constructor& ) { ...@@ -91,18 +93,18 @@ void Geant4ExtraParticles::constructParticle(Constructor& ) {
if(width<0) width = 0; if(width<0) width = 0;
// normalize to G4 units // normalize to G4 units
mass *= GeV; mass *= CLHEP::GeV;
if (charge != 0) { if (charge != 0) {
charge /= 3.; charge /= 3.;
} }
if (lifetime > 0) { if (lifetime > 0) {
lifetime = lifetime*mm/c_light; lifetime = lifetime*CLHEP::mm/CLHEP::c_light;
} }
if (width == 0 && lifetime > 0) { if (width == 0 && lifetime > 0) {
width = hbar_Planck/lifetime; width = CLHEP::hbar_Planck/lifetime;
} }
// don't add if the particle already exists // don't add if the particle already exists
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment