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
@@ -37,13 +37,14 @@
#include "HadrontherapyMatrix.hh"
#include "HadrontherapyAnalysisManager.hh"
#include "globals.hh"
#include <fstream>
HadrontherapyMatrix::HadrontherapyMatrix()
{
// Number of the voxels of the phantom
numberVoxelX = 80;
numberVoxelY = 80;
numberVoxelZ = 80;
numberVoxelX = 200;
numberVoxelY = 200;
numberVoxelZ = 200;
// Create the matrix
matrix = new G4double[numberVoxelX*numberVoxelY*numberVoxelZ];
@@ -86,33 +87,32 @@ void HadrontherapyMatrix::TotalEnergyDeposit()
G4int k;
G4int j;
G4int i;
if (matrix)
{
for(G4int l = 0; l < numberVoxelZ; l++)
{
k = l;
for(G4int m = 0; m < numberVoxelY; m++)
{
j = m * numberVoxelZ + k;
for(G4int n = 0; n < numberVoxelX; n++)
{
i = n* numberVoxelZ * numberVoxelY + j;
if(matrix[i] != 0)
{
#ifdef G4ANALYSIS_USE
HadrontherapyAnalysisManager* analysis =
HadrontherapyAnalysisManager::getInstance();
analysis -> FillEnergyDeposit(n, m, k, matrix[i]);
analysis -> BraggPeak(n, matrix[i]);
#endif
}
}
for(G4int l = 0; l < numberVoxelZ; l++)
{
k = l;
}
}
for(G4int m = 0; m < numberVoxelY; m++)
{
j = m * numberVoxelZ + k;
for(G4int n = 0; n < numberVoxelX; n++)
{
i = n* numberVoxelZ * numberVoxelY + j;
if(matrix[i] != 0)
{
#ifdef G4ANALYSIS_USE
HadrontherapyAnalysisManager* analysis =
HadrontherapyAnalysisManager::getInstance();
analysis -> FillEnergyDeposit(n, m, k, matrix[i]);
analysis -> BraggPeak(n, matrix[i]);
#endif
}
}
}
}
}
}