14 gStyle->SetPalette(1);
15 gROOT->SetStyle(
"Plain");
16 gStyle->SetOptStat(000000);
18 c1 =
new TCanvas (
"c1",
"",60,60,500,500);
21 FILE *
fp = fopen(
"wvalue.txt",
"r");
27 TNtuple *
ntuple =
new TNtuple(
"ntuple",
"w",
"E:nbioni:snbioni:w:sw");
30 ncols = fscanf(fp,
"%f %f %f %f %f",&E,&nbioni,&snbioni,&w,&sw);
32 ntuple->Fill(E,nbioni,snbioni,w,sw);
41 TH2F *
h2 =
new TH2F (
"h2",
"",2,9.99,1e3,2,9.99,1e3);
43 ntuple->SetMarkerStyle(20);
44 ntuple->SetMarkerSize(1.);
45 ntuple->Draw(
"w:E",
"",
"LPsame");
47 h2->GetXaxis()->SetLabelSize(0.025);
48 h2->GetYaxis()->SetLabelSize(0.025);
49 h2->GetXaxis()->SetTitleSize(0.035);
50 h2->GetYaxis()->SetTitleSize(0.035);
51 h2->GetXaxis()->SetTitleOffset(1.4);
52 h2->GetYaxis()->SetTitleOffset(1.4);
53 h2->GetXaxis()->SetTitle(
"E (eV)");
54 h2->GetYaxis()->SetTitle(
"W (eV)");