Import Geant4 7.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 12:11:21 +02:00
parent 516dbf1a58
commit d93e1e39a9
5384 changed files with 125662 additions and 82444 deletions
+3 -3
View File
@@ -44,7 +44,7 @@
#include "G4PrimaryParticle.hh"
#include "G4Event.hh"
#include "Randomize.hh"
#include <math.h>
#include <cmath>
#include "G4TransportationManager.hh"
#include "G4VPhysicalVolume.hh"
#include "G4PhysicalVolumeStore.hh"
@@ -605,7 +605,7 @@ G4double G4SPSRandomGenerator::GenRandPosTheta()
// IPDF has not been created, so create it
G4double bins[1024],vals[1024], sum;
G4int ii;
G4int maxbin = G4int(ThetaBiasH.GetVectorLength());
G4int maxbin = G4int(PosThetaBiasH.GetVectorLength());
bins[0] = PosThetaBiasH.GetLowEdgeEnergy(size_t(0));
vals[0] = PosThetaBiasH(size_t(0));
sum = vals[0];
@@ -706,7 +706,7 @@ G4double G4SPSRandomGenerator::GenRandPosPhi()
G4double NatProb = xaxisu - xaxisl;
bweights[7] = NatProb/bweights[7];
if(verbosityLevel >= 1)
G4cout << "PosPhi bin weight " << bweights[4] << " " << rndm << G4endl;
G4cout << "PosPhi bin weight " << bweights[7] << " " << rndm << G4endl;
return(IPDFPosPhiBiasH.GetEnergy(rndm));
}
}