Import Geant4 8.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 14:36:02 +02:00
parent d93e1e39a9
commit 8a51e0bc40
5471 changed files with 99628 additions and 55248 deletions
+5 -5
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4Poisson.hh,v 1.7 2004/11/12 17:38:34 gcosmo Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: G4Poisson.hh,v 1.8 2005/11/04 08:18:51 gcosmo Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// ------------------------------------------------------------
@@ -50,7 +50,7 @@ inline G4long G4Poisson(G4double mean)
G4double limit = 2e9;
if(mean <= border) {
G4double position = RandFlat::shoot();
G4double position = CLHEP::RandFlat::shoot();
G4double poissonValue = std::exp(-mean);
G4double poissonSum = poissonValue;
@@ -63,8 +63,8 @@ inline G4long G4Poisson(G4double mean)
} // the case of mean <= 16
G4double value, t, y;
t = std::sqrt(-2*std::log(RandFlat::shoot()));
y = twopi*RandFlat::shoot();
t = std::sqrt(-2*std::log(CLHEP::RandFlat::shoot()));
y = twopi*CLHEP::RandFlat::shoot();
t *= std::cos(y);
value = mean + t*std::sqrt(mean) + 0.5;
if(value <= 0) {return 0;}
@@ -22,7 +22,7 @@
//
//
// $Id: G4RandomDirection.hh,v 1.2 2004/11/12 17:38:34 gcosmo Exp $
// GEANT4 tag $Name: geant4-07-01 $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// ------------------------------------------------------------
+4 -4
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: Randomize.hh,v 1.5 2001/07/11 10:00:43 gunter Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: Randomize.hh,v 1.6 2005/11/04 08:18:51 gcosmo Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
#ifndef randomize_h
#define randomize_h 1
@@ -38,7 +38,7 @@
#include <CLHEP/Random/RandLandau.h>
#include <CLHEP/Random/RandBit.h>
#define G4RandGauss RandGaussQ
#define G4UniformRand() HepRandom::getTheEngine()->flat()
#define G4RandGauss CLHEP::RandGaussQ
#define G4UniformRand() CLHEP::HepRandom::getTheEngine()->flat()
#endif // randomize_h