55 saving_in_ROG_Voxels_every_events=voxSave;
69 sprintf(a,
"%d",
seed);
72 fullOutFileData=ROGOutFile+
"_"+seedName+
".txt";
73 fullOutFileDataSingle=
"";
78 NumberOfVoxelsAlongX=NumVX;
79 NumberOfVoxelsAlongY=NumVY;
80 NumberOfVoxelsAlongZ=NumVZ;
81 halfXVoxelDimensionX=halfSize.
getX()/NumberOfVoxelsAlongX;
82 halfXVoxelDimensionY=halfSize.
getY()/NumberOfVoxelsAlongY;
83 halfXVoxelDimensionZ=halfSize.
getZ()/NumberOfVoxelsAlongZ;
85 voxelVolume=halfXVoxelDimensionX*halfXVoxelDimensionY*halfXVoxelDimensionZ*8.;
88 voxelsSum=
new Svoxel**[NumberOfVoxelsAlongX];
89 for (
int ix=0; ix< NumberOfVoxelsAlongX; ix++)
91 voxelsSum[ix]=
new Svoxel*[NumberOfVoxelsAlongY];
92 for (
int iy=0; iy< NumberOfVoxelsAlongY; iy++)
94 voxelsSum[ix][iy]=
new Svoxel[NumberOfVoxelsAlongZ];
95 for (
int iz=0; iz< NumberOfVoxelsAlongZ; iz++)
102 voxelsSum[ix][iy][iz].
expDose=0.;
103 voxelsSum[ix][iy][iz].
halfSize.
set(halfXVoxelDimensionX, halfXVoxelDimensionY, halfXVoxelDimensionZ);
104 voxelsSum[ix][iy][iz].
pos.
set(2.*(ix)*halfXVoxelDimensionX -halfSize.
getX()+halfXVoxelDimensionX + centre.
getX(),
105 2.*(iy)*halfXVoxelDimensionY -halfSize.
getY()+halfXVoxelDimensionY + centre.
getY(),
106 2.*(iz)*halfXVoxelDimensionZ -halfSize.
getZ()+halfXVoxelDimensionZ + centre.
getZ());
107 voxelsSum[ix][iy][iz].
nEvents=0;
114 voxelsSingle=
new Svoxel**[NumberOfVoxelsAlongX];
115 for (
int ix=0; ix< NumberOfVoxelsAlongX; ix++)
117 voxelsSingle[ix]=
new Svoxel*[NumberOfVoxelsAlongY];
118 for (
int iy=0; iy< NumberOfVoxelsAlongY; iy++)
120 voxelsSingle[ix][iy]=
new Svoxel[NumberOfVoxelsAlongZ];
121 for (
int iz=0; iz< NumberOfVoxelsAlongZ; iz++)
123 voxelsSingle[ix][iy][iz].
volumeId=-1;
128 voxelsSingle[ix][iy][iz].
expDose=0.;
129 voxelsSingle[ix][iy][iz].
halfSize.
set(halfXVoxelDimensionX, halfXVoxelDimensionY, halfXVoxelDimensionZ);
130 voxelsSingle[ix][iy][iz].
pos.
set(2.*(ix)*halfXVoxelDimensionX -halfSize.
getX()+halfXVoxelDimensionX + centre.
getX(),
131 2.*(iy)*halfXVoxelDimensionY -halfSize.
getY()+halfXVoxelDimensionY + centre.
getY(),
132 2.*(iz)*halfXVoxelDimensionZ -halfSize.
getZ()+halfXVoxelDimensionZ + centre.
getZ());
133 voxelsSingle[ix][iy][iz].
nEvents=0;
void set(double x, double y, double z)
std::vector< ExP01TrackerHit * > a
G4double depEnergyNormError
G4VSensitiveDetector(G4String name)