11 gStyle->SetPalette(1);
12 gROOT->SetStyle(
"Plain");
13 gStyle->SetOptStat(000000);
15 c1 =
new TCanvas (
"c1",
"",60,60,800,800);
18 FILE *
fp = fopen(
"mfp.txt",
"r");
24 TNtuple *
ntuple =
new TNtuple(
"ntuple",
"mfp",
"E:mfp:smfp");
27 ncols = fscanf(fp,
"%f %f %f",&E,&mfp,&smfp);
29 ntuple->Fill(E,mfp,smfp);
38 TH2F *
h2 =
new TH2F (
"h2",
"",2,9.99,1
e4,2,0.099,1
e2);
40 ntuple->SetMarkerStyle(20);
41 ntuple->SetMarkerSize(1.);
42 ntuple->Draw(
"mfp:E",
"",
"LPSAME");
44 h2->GetXaxis()->SetLabelSize(0.025);
45 h2->GetYaxis()->SetLabelSize(0.025);
46 h2->GetXaxis()->SetTitleSize(0.035);
47 h2->GetYaxis()->SetTitleSize(0.035);
48 h2->GetXaxis()->SetTitleOffset(1.4);
49 h2->GetYaxis()->SetTitleOffset(1.4);
50 h2->GetXaxis()->SetTitle(
"E (eV)");
51 h2->GetYaxis()->SetTitle(
"MFP (nm)");