Geant4  10.02.p03
extended/medical/electronScattering/results/plot.C File Reference

Go to the source code of this file.

Functions

TFile f ("./Au3.local.root")
 
h1d SetTitle ("Fluence distribution of 13 MeV e- in Au (93.7 mg/cm2)")
 
h1d GetXaxis () -> SetTitle("r (mm)")
 
h1d GetYaxis () -> SetTitle("Fluence")
 
h1d SetStats (kFALSE)
 
h1d Draw ("HIST")
 
in open ("../data/Au3.13MeV.ascii")
 
 for (int i=0 ;i< nbdata ;i++)
 
in close ()
 
legend AddEntry (h1d,"msc95","l")
 
legend AddEntry (pt,"Faddegon data","P")
 
legend Draw ()
 

Variables

TH1D * h1d = (TH1D*) f.Get("4")
 
ifstream in
 
TMarker * pt
 
Double_t x
 
Double_t y
 
int nbdata = 0
 
TLegend * legend = new TLegend(0.6,0.55,0.8,0.68)
 

Function Documentation

◆ AddEntry() [1/2]

legend AddEntry ( h1d  ,
"msc95"  ,
"l"   
)

◆ AddEntry() [2/2]

legend AddEntry ( pt  ,
"Faddegon data"  ,
"P"   
)

◆ close()

in close ( )

◆ Draw() [1/2]

h1d Draw ( "HIST"  )

◆ Draw() [2/2]

legend Draw ( )

◆ f()

TFile f ( "./Au3.local.root"  )

◆ for()

for ( )

Definition at line 26 of file extended/medical/electronScattering/results/plot.C.

26  {
27  in >> x >> y ;
28  if (!in.good()) break;
29  pt = new TMarker(x,y,22); // 22 for triangle TMatker
30  pt->SetMarkerColor(kRed);
31  pt->Draw();
32  }

◆ GetXaxis()

h1d GetXaxis ( ) -> SetTitle("r (mm)")

◆ GetYaxis()

h1d GetYaxis ( ) -> SetTitle("Fluence")

◆ open()

in open ( "../data/Au3.13MeV.ascii"  )

◆ SetStats()

h1d SetStats ( kFALSE  )

◆ SetTitle()

h1d SetTitle ( "Fluence distribution of 13 MeV e- in Au (93.7 mg/cm2)"  )

Variable Documentation

◆ h1d

TH1D* h1d = (TH1D*) f.Get("4")

◆ in

ifstream in

◆ legend

TLegend* legend = new TLegend(0.6,0.55,0.8,0.68)

◆ nbdata

in nbdata = 0

◆ pt

TMarker* pt

◆ x

Double_t x

◆ y

Double_t y