Import Geant4 8.0.0 source tree
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
-------------------------------------------------------------------
|
||||
|
||||
==========================================================
|
||||
Geant4 - an Object-Oriented Toolkit for Physics Simulation
|
||||
==========================================================
|
||||
|
||||
History file for hadronic/util directory
|
||||
----------------------------------------
|
||||
|
||||
This file should be used to summarize modifications introduced in the
|
||||
code and to keep track of all tags.
|
||||
|
||||
---------------------------------------------------------------
|
||||
* Please list in reverse chronological order (last date on top)
|
||||
---------------------------------------------------------------
|
||||
|
||||
30 Nov 2005 Gabriele Cosmo (hadr-util-V07-01-01)
|
||||
-----------------------------------------------
|
||||
- Trivial fix in G4ReactionKinematics and G4Nucleus for support of
|
||||
CLHEP-2.0.X series.
|
||||
|
||||
25 Nov 2005 Dennis Wright (hadr-util-V07-01-00)
|
||||
----------------------------------------------
|
||||
- G4HadTmpUtil.cc : <sstream> migration
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user