{ //=========Macro generated from canvas: resCnv/Fit slices results //========= (Wed Aug 05 13:29:48 2009) by ROOT version5.24/00 TCanvas *resCnv = new TCanvas("resCnv", "Fit slices results",320,59,800,622); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); gROOT->SetEditHistograms(); resCnv->ToggleEventStatus(); resCnv->Range(27.81633,0.9373802,44.06122,1.062367); resCnv->SetFillColor(0); resCnv->SetBorderMode(0); resCnv->SetBorderSize(2); resCnv->SetGridy(); resCnv->SetLeftMargin(0.1344221); resCnv->SetRightMargin(0.06532663); resCnv->SetFrameFillColor(19); resCnv->SetFrameBorderMode(0); resCnv->SetFrameBorderMode(0); TH1 *clEtagE_1 = new TH1D("clEtagE_1","Fitted value of par[1]=Mean",300,30,43); clEtagE_1->SetBinContent(3,1.00142); clEtagE_1->SetBinContent(9,1.001779); clEtagE_1->SetBinContent(15,1.000904); clEtagE_1->SetBinContent(20,1.001599); clEtagE_1->SetBinContent(26,1.00142); clEtagE_1->SetBinContent(32,1.00106); clEtagE_1->SetBinContent(38,0.9998033); clEtagE_1->SetBinContent(44,0.9994302); clEtagE_1->SetBinContent(49,0.9989053); clEtagE_1->SetBinContent(61,0.9986932); clEtagE_1->SetBinContent(72,1.003036); clEtagE_1->SetBinContent(84,1.002378); clEtagE_1->SetBinContent(95,0.9971061); clEtagE_1->SetBinContent(107,0.9869991); clEtagE_1->SetBinContent(119,0.9837341); clEtagE_1->SetBinContent(130,0.9923336); clEtagE_1->SetBinContent(142,0.9976954); clEtagE_1->SetBinContent(165,1.001262); clEtagE_1->SetBinContent(188,1.000257); clEtagE_1->SetBinContent(211,1.004832); clEtagE_1->SetBinContent(234,0.9999829); clEtagE_1->SetBinContent(257,1.002318); clEtagE_1->SetBinError(3,5.964149e-005); clEtagE_1->SetBinError(9,5.756097e-005); clEtagE_1->SetBinError(15,6.375098e-005); clEtagE_1->SetBinError(20,6.678138e-005); clEtagE_1->SetBinError(26,7.613937e-005); clEtagE_1->SetBinError(32,6.789002e-005); clEtagE_1->SetBinError(38,6.441012e-005); clEtagE_1->SetBinError(44,5.894854e-005); clEtagE_1->SetBinError(49,6.351932e-005); clEtagE_1->SetBinError(61,6.391128e-005); clEtagE_1->SetBinError(72,7.549432e-005); clEtagE_1->SetBinError(84,6.139758e-005); clEtagE_1->SetBinError(95,6.165156e-005); clEtagE_1->SetBinError(107,6.460377e-005); clEtagE_1->SetBinError(119,5.514817e-005); clEtagE_1->SetBinError(130,9.352177e-005); clEtagE_1->SetBinError(142,9.967172e-005); clEtagE_1->SetBinError(165,0.0001141332); clEtagE_1->SetBinError(188,9.718313e-005); clEtagE_1->SetBinError(211,0.000114494); clEtagE_1->SetBinError(234,0.0001159463); clEtagE_1->SetBinError(257,0.0001185929); clEtagE_1->SetMinimum(0.9500537); clEtagE_1->SetMaximum(1.049912); clEtagE_1->SetEntries(52); clEtagE_1->SetMarkerStyle(20); clEtagE_1->GetXaxis()->SetTitle("X (cm)"); clEtagE_1->GetYaxis()->SetTitle("E_{reconstructed} / E_{incident} "); clEtagE_1->GetYaxis()->CenterTitle(true); clEtagE_1->GetYaxis()->SetNdivisions(305); clEtagE_1->GetYaxis()->SetTitleOffset(1.4); clEtagE_1->Draw(""); TLine *line = new TLine(31.14545,0.9601114,31.14545,0.9504129); line->Draw(); line = new TLine(33.2,0.9599318,33.2,0.9504129); line->Draw(); TArrow *arrow = new TArrow(35.16364,0.9502333,35.16364,0.9698099,0.01,"|>"); arrow->SetFillColor(1); arrow->SetFillStyle(1001); arrow->Draw(); line = new TLine(39.03636,0.9601114,39.03636,0.9500537); line->Draw(); TLatex * tex = new TLatex(32.7454,0.967116,"PbWO_{4}"); tex->SetTextSize(0.03591954); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(36.12727,0.9671158,"Lead Glass"); tex->SetTextSize(0.03591954); tex->SetLineWidth(2); tex->Draw(); resCnv->Modified(); resCnv->cd(); resCnv->SetSelected(resCnv); }