6 TFile
f(
"brachytherapy.root");
23 for (
int i=0; i <401; i++)
34 Double_t xx_histo =
h20.GetXaxis()->GetBinCenter(k);
35 Double_t yy_histo =
h20.GetYaxis()->GetBinCenter(m);
36 Double_t edep_histo=
h20.GetBinContent(k, m);
37 radius = sqrt(xx_histo*xx_histo+yy_histo*yy_histo);
42 radInt = TMath::Nint(4*radius);
43 if ((radInt>0)&&(radInt<=400))
45 EnergyMap[
radInt]+= edep_histo;
54 std::cout <<
"Energy Map Complete" << std::endl;
57 std::cout <<
"The energy deposition at the reference point is " << EnergyMap[40] << std::endl;
58 Double_t tempNormValue = EnergyMap[40]/Voxels[40];
60 std::cout <<
"Dose rate ditribution (distances in cm)" << std::endl;
64 myfile.open (
"geant4_dose.txt");
66 for (
int i=0; i<=400; i++)
69 if (Voxels[i]>0) normDose[i] = EnergyMap[i]/Voxels[i]/tempNormValue;
76 cout << R <<
" " << normDose[i] << endl;
77 myfile << R <<
" " << normDose[i] <<
"\n";
Double_t GeometryFunctionZero
TFile f("brachytherapy.root")
Double_t GeomFunction[401]
ntupleExperimental Reset()