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
@@ -21,7 +21,7 @@
// ********************************************************************
//
#include "G4HadTmpUtil.hh"
#include <strstream>
#include <sstream>
G4int G4lrint(double ad)
{
@@ -40,9 +40,8 @@ G4int G4rint(double ad)
G4String G4inttostring(int ai)
{
char the[100] = {""};
std::ostrstream ost(the, 100, std::ios::out);
std::ostringstream ost;
ost << ai;
G4String result(the);
G4String result = ost.str();
return result;
}
@@ -325,15 +325,19 @@ G4ReactionProduct G4Nucleus::GetThermalNucleus(G4double targetMass, G4double tem
// chv: .. we assume zero temperature!
// momentum is equally distributed in each phasespace volume dpx, dpy, dpz.
G4double ranflat1=RandFlat::shoot((G4double)0.,(G4double)fermiMomentum);
G4double ranflat2=RandFlat::shoot((G4double)0.,(G4double)fermiMomentum);
G4double ranflat3=RandFlat::shoot((G4double)0.,(G4double)fermiMomentum);
G4double ranflat1=
CLHEP::RandFlat::shoot((G4double)0.,(G4double)fermiMomentum);
G4double ranflat2=
CLHEP::RandFlat::shoot((G4double)0.,(G4double)fermiMomentum);
G4double ranflat3=
CLHEP::RandFlat::shoot((G4double)0.,(G4double)fermiMomentum);
G4double ranmax = (ranflat1>ranflat2? ranflat1: ranflat2);
ranmax = (ranmax>ranflat3? ranmax : ranflat3);
// - random decay angle
G4double theta=pi*G4UniformRand(); // isotropic decay angle theta
G4double phi =RandFlat::shoot((G4double)0.,(G4double)2*pi); // isotropic decay angle phi
G4double phi =CLHEP::RandFlat::shoot((G4double)0.,(G4double)2*pi);
// isotropic decay angle phi
// - setup ThreeVector
G4double pz=std::cos(theta)*ranmax;
@@ -59,8 +59,8 @@ void G4ReactionKinematics::TwoBodyScattering(
// - random decay angle
G4double theta=pi*G4UniformRand(); // isotropic decay angle theta
G4double phi =RandFlat::shoot(G4double(0.),G4double(twopi)); // isotropic decay angle phi
G4double phi =CLHEP::RandFlat::shoot(G4double(0.),G4double(twopi));
// isotropic decay angle phi
// - setup LorentzVectors
G4double pz=std::cos(theta)*breakupMomentum;
G4double px=std::sin(theta)*std::cos(phi)*breakupMomentum;