{ gROOT->Reset(); LNCanvas *ln1 = new LNCanvas("ln1"); PInput p; TH1F *hist; hist = p.inpHist("60Co.dat"); float a0 = -29.9; float a1 = 3.111; hist->GetXaxis()->Set(2048, a0, a0+a1*2048); hist->GetXaxis()->SetRange(100,900); hist->Draw(); TLatex *tex = new TLatex(80,1075,"counts"); tex->SetTextSize(0.043); tex->SetTextAngle(90); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(1230,-260,"gamma energy (keV)"); tex->SetTextSize(0.043); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(1080,2600,"1173"); tex->SetTextSize(0.035); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(1260,2150,"1332"); tex->SetTextSize(0.035); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(2350,150,"sum peak"); tex->SetTextSize(0.035); tex->SetLineWidth(2); tex->Draw(); ln1->Modified(); ln1->cd(); }