Functions | Variables
plotDend.C File Reference

Go to the source code of this file.

Functions

gStyle SetOptStat (0000)
 
c1 Divide (2, 1)
 
 while (1)
 
 fclose (fp)
 
cout<< " Max and Min Energy deposits (keV) == "<< edepMax<< " ; "<< edepMin<< endl;cout<< " Max and Min Dose deposits (Gy) == "<< doseMax<< " ; "<< doseMin<< endl;cout<< " Maximum Basal Distance (um) == "<< distMaxB<< " "<< endl;cout<< " Maximum Apical Distance (um) == "<< distMaxA<< " "<< endl;c1-> cd (1)
 
h1 Draw ("P")
 
h1 SetMarkerSize (2)
 
h1 SetMarkerColor (4)
 
h1 SetMarkerStyle (27)
 
h1 SetFillStyle (3005)
 
h1 GetXaxis () -> SetTitle("Distance from Soma (um)")
 
h1 GetYaxis () -> SetRangeUser(edepMin, edepMax+3.)
 
 if (distMaxB > 0.)
 
 if (distMaxA > 0.)
 
c1 cd (2)
 
h2 SetMarkerColor (kRed)
 

Variables

 c1 = new TCanvas ("c1","",20,20,1200,600)
 
Int_t ncols =0
 
Int_t nlines = 0
 
FILE * fp = fopen("Dend3DEdep.out","r")
 
Float_t posX
 
Float_t posY
 
Float_t posZ
 
Float_t distB
 
Float_t distA
 
Float_t EdepR
 
Float_t DoseR
 
Float_t distMaxA = -1e-9
 
Float_t distMaxB = -1e-9
 
Float_t edepMax = -1e-9
 
Float_t doseMax = -1e-9
 
Float_t edepMin = 1e9
 
Float_t doseMin = 1e9
 
 h1 = new TProfile("Energy", "Energy deposits (keV) in dendritic compartments",1000,-1000,1000,0.001,1000)
 
 h2 = new TProfile("Dose", "Dose deposits (Gy) in dendritic compartments",1000,-1000,1000,0.001,1000)
 

Function Documentation

cout<< " Max and Min Energy deposits (keV) == " << edepMax << " ; "<< edepMin<<endl;cout << " Max and Min Dose deposits (Gy) == " << doseMax << " ; "<< doseMin<<endl;cout << " Maximum Basal Distance (um) == " << distMaxB << " "<<endl;cout << " Maximum Apical Distance (um) == " << distMaxA << " "<<endl;c1-> cd ( )
c1 cd ( )
c1 Divide ( ,
 
)
h2 Draw ( "P"  )
fclose ( fp  )

Referenced by while().

h1 GetXaxis ( ) -> SetTitle("Distance from Soma (um)")

Definition at line 84 of file plot_lowE_sig_spread_genie.C.

84 {#nu} (GeV)");
h1 GetYaxis ( ) -> SetRangeUser(edepMin, edepMax+3.)
if ( distMaxB  ,
0.   
)

Definition at line 65 of file plotDend.C.

References MakeMiniprodValidationCuts::text.

66 {
67  TLatex text(-distMaxB,edepMax-1.,"Basal");
68  text.DrawClone();
69 }
Float_t distMaxB
Definition: plotDend.C:24
Float_t edepMax
Definition: plotDend.C:25
if ( distMaxA  ,
0.   
)

Definition at line 70 of file plotDend.C.

References c1, h1, h2, kRed, and MakeMiniprodValidationCuts::text.

71 {
72  TLatex text(distMaxA/3.,edepMax-2.,"Apical");
73  text.DrawClone();
74 }
Float_t distMaxA
Definition: plotDend.C:23
Float_t edepMax
Definition: plotDend.C:25
h2 SetFillStyle ( 3005  )
h1 SetMarkerColor ( )
h2 SetMarkerColor ( kRed  )
h1 SetMarkerSize ( )
h2 SetMarkerStyle ( 27  )
gStyle SetOptStat ( 0000  )
while ( )

Definition at line 32 of file plotDend.C.

References c1, om::cout, distA, distB, DoseR, EdepR, allTimeWatchdog::endl, fclose(), h1, and h2.

33  {
34  ncols = fscanf(fp," %f %f %f %f %f %f %f",&posX, &posY, &posZ, &distA, &distB, &EdepR, &DoseR);
35  if (ncols < 0) break;
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 ;
42  // ....
43  h1->Fill(-distB, EdepR); // Basal dendrite
44  h1->Fill(distA, EdepR); // Apical dendrite
45  h2->Fill(-distB, DoseR);
46  h2->Fill(distA, DoseR);
47  nlines++;
48  }
Float_t posZ
Definition: plotDend.C:21
Float_t EdepR
Definition: plotDend.C:22
h1
Definition: plotDend.C:30
Float_t posY
Definition: plotDend.C:21
h2
Definition: plotDend.C:31
Int_t nlines
Definition: plotDend.C:18
Float_t edepMin
Definition: plotDend.C:27
Float_t doseMin
Definition: plotDend.C:28
Float_t DoseR
Definition: plotDend.C:22
Float_t distB
Definition: plotDend.C:22
FILE * fp
Definition: plotDend.C:20
Float_t distMaxA
Definition: plotDend.C:23
Int_t ncols
Definition: plotDend.C:17
Float_t distMaxB
Definition: plotDend.C:24
Float_t posX
Definition: plotDend.C:21
Float_t doseMax
Definition: plotDend.C:26
Float_t distA
Definition: plotDend.C:22
Float_t edepMax
Definition: plotDend.C:25

Variable Documentation

c1 = new TCanvas ("c1","",20,20,1200,600)

Definition at line 14 of file plotDend.C.

Referenced by if(), and while().

Float_t distA

Definition at line 22 of file plotDend.C.

Referenced by while().

Float_t distB

Definition at line 22 of file plotDend.C.

Referenced by while().

Float_t distMaxA = -1e-9

Definition at line 23 of file plotDend.C.

Float_t distMaxB = -1e-9

Definition at line 24 of file plotDend.C.

Float_t doseMax = -1e-9

Definition at line 26 of file plotDend.C.

Float_t doseMin = 1e9

Definition at line 28 of file plotDend.C.

Float_t DoseR

Definition at line 22 of file plotDend.C.

Referenced by while().

Float_t edepMax = -1e-9

Definition at line 25 of file plotDend.C.

Float_t edepMin = 1e9

Definition at line 27 of file plotDend.C.

Float_t EdepR

Definition at line 22 of file plotDend.C.

Referenced by while().

FILE* fp = fopen("Dend3DEdep.out","r")

Definition at line 20 of file plotDend.C.

h1 = new TProfile("Energy", "Energy deposits (keV) in dendritic compartments",1000,-1000,1000,0.001,1000)

Definition at line 30 of file plotDend.C.

Referenced by if(), and while().

h2 = new TProfile("Dose", "Dose deposits (Gy) in dendritic compartments",1000,-1000,1000,0.001,1000)

Definition at line 31 of file plotDend.C.

Referenced by if(), and while().

Int_t ncols =0

Definition at line 17 of file plotDend.C.

Int_t nlines = 0

Definition at line 18 of file plotDend.C.

Float_t posX

Definition at line 21 of file plotDend.C.

Float_t posY

Definition at line 21 of file plotDend.C.

Float_t posZ

Definition at line 21 of file plotDend.C.