33 G4int MicrobeamPhantomConfiguration::phantomTotalPixels = 0;
34 G4int MicrobeamPhantomConfiguration::nucleusTotalPixels = 0;
35 G4int MicrobeamPhantomConfiguration::cytoplasmTotalPixels = 0;
36 G4float MicrobeamPhantomConfiguration::dx = 0;
37 G4float MicrobeamPhantomConfiguration::dy = 0;
38 G4float MicrobeamPhantomConfiguration::dz = 0;
39 G4float MicrobeamPhantomConfiguration::nucleusMass = 0;
40 G4float MicrobeamPhantomConfiguration::cytoplasmMass = 0;
50 delete[] voxelThreeVector;
59 G4float denCyto1, denCyto2, denCyto3, denNucl1, denNucl2, denNucl3;
64 cytoplasmTotalPixels=0;
73 fMap = fopen(
"phantom.dat",
"r");
75 fscanf(fMap,
"%i %i %i",&phantomTotalPixels, &nucleusTotalPixels, &cytoplasmTotalPixels);
76 fscanf(fMap,
"%f %f %f",&dx, &dy, &dz);
77 fscanf(fMap,
"%f %f %f",&tmp, &tmp, &tmp);
78 fscanf(fMap,
"%f %f %f",&denCyto1, &denCyto2, &denCyto3);
79 fscanf(fMap,
"%f %f %f",&denNucl1, &denNucl2, &denNucl3);
85 for (
G4int i=0; i<phantomTotalPixels; i++)
87 fscanf(fMap,
"%f %f %f %i %i %f",&vx, &vy, &vz, &mat, &den, &tmp);
89 if (std::abs(mat-2)<1.
e-30)
91 if (std::abs(den-1)<1.
e-30) density = denNucl1*(
g/
cm3);
92 if (std::abs(den-2)<1.e-30) density = denNucl2*(
g/
cm3);
93 if (std::abs(den-3)<1.e-30) density = denNucl3*(
g/
cm3);
94 nucleusMass = nucleusMass + density * dx * dy * dz ;
97 if (std::abs(mat-1)<1.e-30)
99 if (std::abs(den-1)<1
e-30) density = denCyto1*(
g/
cm3);
100 if (std::abs(den-2)<1
e-30) density = denCyto2*(
g/
cm3);
101 if (std::abs(den-3)<1
e-30) density = denCyto3*(
g/
cm3);
102 cytoplasmMass = cytoplasmMass + density * dx * dy * dz ;
106 voxelThreeVector[i] =
v;