{ //=========Macro generated from canvas: resCnv/Fit slices results //========= (Thu Sep 01 11:49:39 2011) by ROOT version5.29/02 TCanvas *resCnv = new TCanvas("resCnv", "Fit slices results",0,22,1505,988); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); gROOT->SetEditHistograms(); resCnv->ToggleEventStatus(); resCnv->Range(27.99837,0.9375548,42.94588,1.062278); resCnv->SetFillColor(0); resCnv->SetBorderMode(0); resCnv->SetBorderSize(2); resCnv->SetGridy(); resCnv->SetLeftMargin(0.1339107); resCnv->SetRightMargin(0.06595603); resCnv->SetFrameFillColor(19); resCnv->SetFrameBorderMode(0); resCnv->SetFrameLineWidth(3); resCnv->SetFrameBorderMode(0); TH1D *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.001778); 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.997257); clEtagE_1->SetBinContent(107,0.9869991); clEtagE_1->SetBinContent(119,0.9837341); clEtagE_1->SetBinContent(130,0.9922043); 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(56); clEtagE_1->SetStats(0); clEtagE_1->SetLineColor(4); clEtagE_1->SetMarkerColor(4); clEtagE_1->SetMarkerStyle(20); clEtagE_1->SetMarkerSize(1.4); clEtagE_1->GetXaxis()->SetTitle("X (cm)"); clEtagE_1->GetXaxis()->SetRange(1,276); clEtagE_1->GetXaxis()->SetLabelFont(42); clEtagE_1->GetXaxis()->SetLabelSize(0.035); clEtagE_1->GetXaxis()->SetTitleSize(0.05); clEtagE_1->GetXaxis()->SetTitleFont(42); clEtagE_1->GetYaxis()->SetTitle("E_{reconstructed} / E_{incident} "); clEtagE_1->GetYaxis()->CenterTitle(true); clEtagE_1->GetYaxis()->SetNdivisions(305); clEtagE_1->GetYaxis()->SetLabelFont(42); clEtagE_1->GetYaxis()->SetLabelSize(0.035); clEtagE_1->GetYaxis()->SetTitleSize(0.05); clEtagE_1->GetYaxis()->SetTitleOffset(1.11); clEtagE_1->GetYaxis()->SetTitleFont(42); clEtagE_1->GetZaxis()->SetLabelFont(42); clEtagE_1->GetZaxis()->SetLabelSize(0.035); clEtagE_1->GetZaxis()->SetTitleSize(0.035); clEtagE_1->GetZaxis()->SetTitleFont(42); clEtagE_1->Draw(""); TLine *line = new TLine(31.13,0.96,31.13,0.95); line->SetLineColor(2); line->SetLineWidth(3); line->Draw(); line = new TLine(33.2,0.96,33.2,0.95); line->SetLineColor(2); line->SetLineWidth(3); line->Draw(); TArrow *arrow = new TArrow(35.163,0.95,35.163,0.97,0.01,"|>"); arrow->SetFillColor(1); arrow->SetFillStyle(1001); Int_t ci; // for color index setting ci = TColor::GetColor("#330000"); arrow->SetLineColor(ci); arrow->SetLineWidth(4); arrow->SetAngle(47); arrow->Draw(); line = new TLine(39.02748,0.9601592,39.02748,0.9500537); line->SetLineColor(2); line->SetLineWidth(3); 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); }