Import Geant4 9.5.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 16:46:55 +02:00
parent 89a9605df1
commit b1eb5424d2
10957 changed files with 888481 additions and 160139 deletions
+5 -5
View File
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4Poisson.hh,v 1.9 2006/06/29 19:00:44 gunter Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: G4Poisson.hh,v 1.9 2006-06-29 19:00:44 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
//
// ------------------------------------------------------------
@@ -53,7 +53,7 @@ inline G4long G4Poisson(G4double mean)
G4double limit = 2e9;
if(mean <= border) {
G4double position = CLHEP::RandFlat::shoot();
G4double position = G4UniformRand();
G4double poissonValue = std::exp(-mean);
G4double poissonSum = poissonValue;
@@ -66,8 +66,8 @@ inline G4long G4Poisson(G4double mean)
} // the case of mean <= 16
G4double value, t, y;
t = std::sqrt(-2*std::log(CLHEP::RandFlat::shoot()));
y = twopi*CLHEP::RandFlat::shoot();
t = std::sqrt(-2*std::log(G4UniformRand()));
y = twopi*G4UniformRand();
t *= std::cos(y);
value = mean + t*std::sqrt(mean) + 0.5;
if(value <= 0) {return 0;}
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4RandomDirection.hh,v 1.5 2008/03/19 17:00:20 gcosmo Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: G4RandomDirection.hh,v 1.5 2008-03-19 17:00:20 gcosmo Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
//
// ------------------------------------------------------------
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4RandomTools.hh,v 1.2 2008/11/07 17:54:21 gum Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: G4RandomTools.hh,v 1.2 2008-11-07 17:54:21 gum Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
//
// ---------------------------------------------------------------------------
+17 -8
View File
@@ -24,24 +24,33 @@
// ********************************************************************
//
//
// $Id: Randomize.hh,v 1.7 2006/06/29 19:00:50 gunter Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: Randomize.hh,v 1.7 2006-06-29 19:00:50 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
#ifndef randomize_h
#define randomize_h 1
#include <CLHEP/Random/Randomize.h>
// Additional distributions ...
// Distributions used ...
//
#include <CLHEP/Random/RandGaussQ.h>
#include <CLHEP/Random/RandGaussT.h>
#include <CLHEP/Random/RandPoissonQ.h>
#include <CLHEP/Random/RandPoissonT.h>
#include <CLHEP/Random/RandLandau.h>
#include <CLHEP/Random/RandFlat.h>
#include <CLHEP/Random/RandBit.h>
#include <CLHEP/Random/RandGamma.h>
#include <CLHEP/Random/RandGaussQ.h>
#include <CLHEP/Random/RandPoissonQ.h>
#include <CLHEP/Random/RandExponential.h>
#include <CLHEP/Random/RandGeneral.h>
#define G4RandStat CLHEP::HepStat
#define G4RandFlat CLHEP::RandFlat
#define G4RandBit CLHEP::RandBit
#define G4RandGamma CLHEP::RandGamma
#define G4RandGauss CLHEP::RandGaussQ
#define G4RandExponential CLHEP::RandExponential
#define G4RandGeneral CLHEP::RandGeneral
#define G4Random CLHEP::HepRandom
#define G4UniformRand() CLHEP::HepRandom::getTheEngine()->flat()
#endif // randomize_h