Import Geant4 7.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 11:11:55 +02:00
parent e083ffb441
commit 516dbf1a58
5914 changed files with 202605 additions and 71141 deletions
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: F02PrimaryGeneratorAction.cc,v 1.3 2001/10/15 17:20:44 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// $Id: F02PrimaryGeneratorAction.cc,v 1.4 2004/12/03 16:07:23 gcosmo Exp $
// GEANT4 tag $Name: geant4-07-00-cand-03 $
//
//
@@ -111,10 +111,10 @@ void F02PrimaryGeneratorAction::GeneratePrimaries(G4Event* anEvent)
if (rndmFlag == "on")
{
r0 = (F02Detector->GetAbsorberRadius())*sqrt(G4UniformRand());
r0 = (F02Detector->GetAbsorberRadius())*std::sqrt(G4UniformRand());
phi0 = twopi*G4UniformRand();
x0 = r0*cos(phi0);
y0 = r0*sin(phi0);
x0 = r0*std::cos(phi0);
y0 = r0*std::sin(phi0);
}
particleGun->SetParticlePosition(G4ThreeVector(x0,y0,z0));