12 gStyle->SetOptStat(0000);
14 c1 =
new TCanvas (
"c1",
"",20,20,1200,600);
20 FILE *
fp = fopen(
"Dend3DEdep.out",
"r");
30 h1 =
new TProfile(
"Energy",
"Energy deposits (keV) in dendritic compartments",1000,-1000,1000,0.001,1000);
31 h2 =
new TProfile(
"Dose",
"Dose deposits (Gy) in dendritic compartments",1000,-1000,1000,0.001,1000);
34 ncols = fscanf(fp,
" %f %f %f %f %f %f %f",&posX, &posY, &posZ, &distA, &distB, &EdepR, &DoseR);
36 if (distMaxA < distA ) distMaxA =
distA ;
37 if (distMaxB < distB ) distMaxB =
distB ;
38 if (edepMax < EdepR ) edepMax =
EdepR ;
39 if (doseMax < DoseR ) doseMax =
DoseR ;
40 if (edepMin > EdepR ) edepMin =
EdepR ;
41 if (doseMin > DoseR ) doseMin =
DoseR ;
43 h1->Fill(-distB, EdepR);
44 h1->Fill(distA, EdepR);
45 h2->Fill(-distB, DoseR);
46 h2->Fill(distA, DoseR);
50 cout <<
" Max and Min Energy deposits (keV) == " << edepMax <<
" ; "<< edepMin<<endl;
51 cout <<
" Max and Min Dose deposits (Gy) == " << doseMax <<
" ; "<< doseMin<<endl;
52 cout <<
" Maximum Basal Distance (um) == " << distMaxB <<
" "<<endl;
53 cout <<
" Maximum Apical Distance (um) == " << distMaxA <<
" "<<endl;
59 h1->SetMarkerColor(4);
60 h1->SetMarkerStyle(27);
61 h1->SetFillStyle(3005);
63 h1->GetXaxis()->SetTitle(
"Distance from Soma (um)");
64 h1->GetYaxis()->SetRangeUser(edepMin, edepMax+3.);
67 TLatex text(-distMaxB,edepMax-1.,
"Basal");
72 TLatex text(distMaxA/3.,edepMax-2.,
"Apical");
75 h1->GetXaxis()->SetRangeUser(-distMaxB-10., distMaxA+10.);
82 h2->SetMarkerColor(kRed);
83 h2->SetMarkerStyle(27);
84 h2->SetFillStyle(3005);
86 h2->GetXaxis()->SetTitle(
"Distance from Soma (um)");
87 h2->GetYaxis()->SetRangeUser(doseMin, doseMax+0.3);
90 TLatex text(-distMaxB,doseMax-0.1,
"Basal");
95 TLatex text(distMaxA/3.,doseMax-0.2,
"Apical");
98 h2->GetXaxis()->SetRangeUser(-distMaxB-10., distMaxA+10.);