Geant4  10.02.p03
extended/medical/dna/range/plot.C File Reference

Go to the source code of this file.

Functions

gStyle SetPalette (1)
 
gROOT SetStyle ("Plain")
 
gStyle SetOptStat (00000)
 
c1 Divide (1, 1)
 
c1 cd (1)
 
gPad SetLogx ()
 
gPad SetLogy ()
 
h2 Draw ()
 
h2 GetXaxis () -> SetLabelSize(0.025)
 
h2 GetYaxis () -> SetLabelSize(0.025)
 
 while (1)
 
 fclose (fp)
 
ntuple SetLineWidth (3)
 
ntuple SetLineColor (2)
 
ntuple Draw ("track:e","","Lsame")
 
ntuple SetLineColor (3)
 
ntuple Draw ("pene:e","","Lsame")
 
ntuple SetLineColor (4)
 
ntuple Draw ("proj:e","","Lsame")
 

Variables

 c1 = new TCanvas ("c1","Range",60,60,700,700)
 
TH2F * h2 = new TH2F("h2","",2,9.99,1e+4,2,1e-1,1e+4)
 
FILE * fp = fopen("range.txt","r")
 
Float_t e
 
Float_t track
 
Float_t strack
 
Float_t proj
 
Float_t sproj
 
Float_t pene
 
Float_t spene
 
Int_t ncols = 0
 
Int_t nlines = 0
 
TNtuple * ntuple = new TNtuple("ntuple","range","e:track:strack:proj:sproj:pene:spene")
 

Function Documentation

◆ cd()

c1 cd ( )

◆ Divide()

c1 Divide ( ,
 
)

◆ Draw() [1/4]

h2 Draw ( )

◆ Draw() [2/4]

ntuple Draw ( "track:e"  ,
""  ,
"Lsame"   
)

◆ Draw() [3/4]

ntuple Draw ( "pene:e"  ,
""  ,
"Lsame"   
)

◆ Draw() [4/4]

ntuple Draw ( "proj:e"  ,
""  ,
"Lsame"   
)

◆ fclose()

fclose ( fp  )
Here is the caller graph for this function:

◆ GetXaxis()

h2 GetXaxis ( ) -> SetLabelSize(0.025)

◆ GetYaxis()

h2 GetYaxis ( ) -> SetLabelSize(0.025)

◆ SetLineColor() [1/3]

ntuple SetLineColor ( )

◆ SetLineColor() [2/3]

ntuple SetLineColor ( )

◆ SetLineColor() [3/3]

ntuple SetLineColor ( )

◆ SetLineWidth()

ntuple SetLineWidth ( )

◆ SetLogx()

gPad SetLogx ( )

◆ SetLogy()

gPad SetLogy ( )

◆ SetOptStat()

gStyle SetOptStat ( 00000  )

◆ SetPalette()

gStyle SetPalette ( )

◆ SetStyle()

gROOT SetStyle ( "Plain"  )

◆ while()

while ( )

Definition at line 43 of file extended/medical/dna/range/plot.C.

44 {
45  ncols = fscanf(fp,"%f %f %f %f %f %f %f",&e,&track,&strack,&proj,&sproj,&pene,&spene);
46  if (ncols < 0) break;
48  nlines++;
49 }
TNtuple * ntuple
Here is the call graph for this function:

Variable Documentation

◆ c1

c1 = new TCanvas ("c1","Range",60,60,700,700)

Definition at line 18 of file extended/medical/dna/range/plot.C.

◆ e

Float_t e

Definition at line 37 of file extended/medical/dna/range/plot.C.

◆ fp

FILE* fp = fopen("range.txt","r")

Definition at line 35 of file extended/medical/dna/range/plot.C.

◆ h2

TH2F* h2 = new TH2F("h2","",2,9.99,1e+4,2,1e-1,1e+4)

Definition at line 24 of file extended/medical/dna/range/plot.C.

◆ ncols

Int_t ncols = 0

Definition at line 38 of file extended/medical/dna/range/plot.C.

◆ nlines

Int_t nlines = 0

Definition at line 39 of file extended/medical/dna/range/plot.C.

◆ ntuple

TNtuple* ntuple = new TNtuple("ntuple","range","e:track:strack:proj:sproj:pene:spene")

Definition at line 41 of file extended/medical/dna/range/plot.C.

◆ pene

Float_t pene

Definition at line 37 of file extended/medical/dna/range/plot.C.

◆ proj

Float_t proj

Definition at line 37 of file extended/medical/dna/range/plot.C.

◆ spene

Float_t spene

Definition at line 37 of file extended/medical/dna/range/plot.C.

◆ sproj

Float_t sproj

Definition at line 37 of file extended/medical/dna/range/plot.C.

◆ strack

Float_t strack

Definition at line 37 of file extended/medical/dna/range/plot.C.

◆ track

Float_t track

Definition at line 37 of file extended/medical/dna/range/plot.C.