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(
"wvalue.txt",
"r");
24 TNtuple *
ntuple =
new TNtuple(
"ntuple",
"w",
"E:nbioni:snbioni:w:sw");
27 ncols = fscanf(fp,
"%f %f %f %f %f",&E,&nbioni,&snbioni,&w,&sw);
29 ntuple->Fill(E,nbioni,snbioni,w,sw);
38 TH2F *
h2 =
new TH2F (
"h2",
"",2,9.99,1e3,2,9.99,1e3);
40 ntuple->SetMarkerStyle(20);
41 ntuple->SetMarkerSize(1.);
42 ntuple->Draw(
"w: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(
"W (eV)");