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

Go to the source code of this file.

Functions

gStyle SetPalette (1)
 
gROOT SetStyle ("Plain")
 
gStyle SetOptStat (000000)
 
c1 Divide (1, 1)
 
 while (1)
 
 fclose (fp)
 
c1 cd (1)
 
gPad SetLogx ()
 
gPad SetLogy ()
 
h2 Draw ()
 
ntuple SetMarkerStyle (20)
 
ntuple SetMarkerSize (1.)
 
ntuple Draw ("w:E","","LPsame")
 
h2 GetXaxis () -> SetLabelSize(0.025)
 
h2 GetYaxis () -> SetLabelSize(0.025)
 

Variables

 c1 = new TCanvas ("c1","",60,60,500,500)
 
FILE * fp = fopen("wvalue.txt","r")
 
Float_t E
 
Float_t nbioni
 
Float_t snbioni
 
Float_t w
 
Float_t sw
 
Int_t ncols = 0
 
Int_t nlines = 0
 
TNtuple * ntuple = new TNtuple("ntuple","w","E:nbioni:snbioni:w:sw")
 
TH2F * h2 = new TH2F ("h2","",2,9.99,1e3,2,9.99,1e3)
 

Function Documentation

◆ cd()

c1 cd ( )

◆ Divide()

c1 Divide ( ,
 
)

◆ Draw() [1/2]

h2 Draw ( )

◆ Draw() [2/2]

ntuple Draw ( "w:E"  ,
""  ,
"LPsame"   
)

◆ fclose()

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

◆ GetXaxis()

h2 GetXaxis ( ) -> SetLabelSize(0.025)

◆ GetYaxis()

h2 GetYaxis ( ) -> SetLabelSize(0.025)

◆ SetLogx()

gPad SetLogx ( )

◆ SetLogy()

gPad SetLogy ( )

◆ SetMarkerSize()

ntuple SetMarkerSize ( 1.  )

◆ SetMarkerStyle()

ntuple SetMarkerStyle ( 20  )

◆ SetOptStat()

gStyle SetOptStat ( 000000  )

◆ SetPalette()

gStyle SetPalette ( )

◆ SetStyle()

gROOT SetStyle ( "Plain"  )

◆ while()

while ( )

Definition at line 28 of file extended/medical/dna/wvalue/plot.C.

29 {
30  ncols = fscanf(fp,"%f %f %f %f %f",&E,&nbioni,&snbioni,&w,&sw);
31  if (ncols < 0) break;
32  ntuple->Fill(E,nbioni,snbioni,w,sw);
33  nlines++;
34 }
Here is the call graph for this function:

Variable Documentation

◆ c1

c1 = new TCanvas ("c1","",60,60,500,500)

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

◆ E

Float_t E

Definition at line 23 of file extended/medical/dna/wvalue/plot.C.

◆ fp

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

Definition at line 21 of file extended/medical/dna/wvalue/plot.C.

◆ h2

TH2F* h2 = new TH2F ("h2","",2,9.99,1e3,2,9.99,1e3)

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

◆ nbioni

Float_t nbioni

Definition at line 23 of file extended/medical/dna/wvalue/plot.C.

◆ ncols

Int_t ncols = 0

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

◆ nlines

Int_t nlines = 0

Definition at line 25 of file extended/medical/dna/wvalue/plot.C.

◆ ntuple

TNtuple* ntuple = new TNtuple("ntuple","w","E:nbioni:snbioni:w:sw")

Definition at line 27 of file extended/medical/dna/wvalue/plot.C.

◆ snbioni

Float_t snbioni

Definition at line 23 of file extended/medical/dna/wvalue/plot.C.

◆ sw

Float_t sw

Definition at line 23 of file extended/medical/dna/wvalue/plot.C.

◆ w

Float_t w

Definition at line 23 of file extended/medical/dna/wvalue/plot.C.