Geant4  10.02.p03
TestEm12/berger/berger.C File Reference

Go to the source code of this file.

Functions

in open ("./EGSnrc/100keV-DPK.ascii")
 
 for (int i=0 ;i< nbdata ;i++)
 
in close ()
 
h1d SetTitle ("Dose point kernel : energy deposition profile, e- 100 keV")
 
h1d GetXaxis () -> SetTitle("d(E/E0)/d(r/r0) along r/r0 r/r0")
 
h1d GetYaxis () -> SetTitle("DPK")
 
h1d SetStats (kFALSE)
 
h1d SetLineColor (kRed)
 
h1d Draw ("L")
 
TFile f1 ("./100keV_local.root")
 
h1 SetLineColor (kBlack)
 
h1 Draw ("SAME HIST")
 
legend AddEntry (h1,"local ","l")
 
legend AddEntry (h1d,"EGSnrc","l")
 
legend Draw ()
 

Variables

ifstream in
 
double x_min = 0
 
double x_max = 1.2
 
int nbdata = 0
 
TH1D * h1d = new TH1D("h1d","",nbdata,x_min,x_max)
 
Double_t x
 
Double_t y
 
TH1D * h1 = (TH1D*) f1.Get("8")
 
TLegend * legend = new TLegend(0.7,0.6,0.86,0.78)
 

Function Documentation

◆ AddEntry() [1/2]

legend AddEntry ( h1  ,
"local "  ,
"l"   
)

◆ AddEntry() [2/2]

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

legend->AddEntry(h2,"liver ","l"); legend->AddEntry(h3,"penel","l");

◆ close()

in close ( )

◆ Draw() [1/3]

h1d Draw ( "L"  )

◆ Draw() [2/3]

h3 Draw ( "SAME HIST"  )

◆ Draw() [3/3]

legend Draw ( )

◆ f1()

TFile f1 ( "./100keV_local.root"  )
Here is the caller graph for this function:

◆ for()

for ( )

Definition at line 24 of file TestEm12/berger/berger.C.

24  {
25  in >> x >> y ;
26  if (!in.good()) break;
27  h1d->Fill(x,y);
28  }
Double_t x
ifstream in
Double_t y
TH1D * h1d
Here is the call graph for this function:

◆ GetXaxis()

h1d GetXaxis ( ) -> SetTitle("d(E/E0)/d(r/r0) along r/r0 r/r0")

◆ GetYaxis()

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

◆ open()

in open ( "./EGSnrc/100keV-DPK.ascii"  )

◆ SetLineColor() [1/2]

h14 SetLineColor ( kRed  )

◆ SetLineColor() [2/2]

h1 SetLineColor ( kBlack  )

◆ SetStats()

h1d SetStats ( kFALSE  )

◆ SetTitle()

h1d SetTitle ( "Dose point kernel : energy deposition  profile,
e- 100 keV  
)

Variable Documentation

◆ h1

TH1D* h1 = (TH1D*) f1.Get("8")

Definition at line 42 of file TestEm12/berger/berger.C.

◆ h1d

TH1D* h1d = new TH1D("h1d","",nbdata,x_min,x_max)

Definition at line 21 of file TestEm12/berger/berger.C.

◆ in

ifstream in
Initial value:
{
gROOT->Reset()

Definition at line 1 of file TestEm12/berger/berger.C.

◆ legend

TLegend* legend = new TLegend(0.7,0.6,0.86,0.78)

Definition at line 57 of file TestEm12/berger/berger.C.

◆ nbdata

in nbdata = 0

Definition at line 18 of file TestEm12/berger/berger.C.

◆ x

Double_t x

Definition at line 23 of file TestEm12/berger/berger.C.

◆ x_max

double x_max = 1.2

Definition at line 16 of file TestEm12/berger/berger.C.

◆ x_min

double x_min = 0

Definition at line 15 of file TestEm12/berger/berger.C.

◆ y

Double_t y

Definition at line 23 of file TestEm12/berger/berger.C.