{ //=========Macro generated from canvas: c3/c3 //========= (Fri Feb 12 10:40:27 2016) by ROOT version5.34/25 TCanvas *c3 = new TCanvas("c3", "c3",15,31,1064,530); gStyle->SetOptFit(1); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); c3->ToggleEventStatus(); c3->Range(0,0,1,1); c3->SetFillColor(0); c3->SetBorderMode(0); c3->SetBorderSize(2); c3->SetTickx(1); c3->SetTicky(1); c3->SetLeftMargin(0.17); c3->SetRightMargin(0.03); c3->SetTopMargin(0.05); c3->SetBottomMargin(0.14); c3->SetFrameFillStyle(0); c3->SetFrameBorderMode(0); // ------------>Primitives in pad: c3_1 TPad *c3_1 = new TPad("c3_1", "c3_1",0.01,0.01,0.49,0.99); c3_1->Draw(); c3_1->cd(); c3_1->Range(2.869,-588.6268,3.269,3615.85); c3_1->SetFillColor(0); c3_1->SetBorderMode(0); c3_1->SetBorderSize(2); c3_1->SetTickx(1); c3_1->SetTicky(1); c3_1->SetLeftMargin(0.17); c3_1->SetRightMargin(0.03); c3_1->SetTopMargin(0.05); c3_1->SetBottomMargin(0.14); c3_1->SetFrameFillStyle(0); c3_1->SetFrameBorderMode(0); c3_1->SetFrameFillStyle(0); c3_1->SetFrameBorderMode(0); TH1F *hm0s = new TH1F("hm0s","hm0s",100,2.937,3.257); hm0s->SetBinContent(1,1); hm0s->SetBinContent(2,2); hm0s->SetBinContent(3,8); hm0s->SetBinContent(4,5); hm0s->SetBinContent(5,3); hm0s->SetBinContent(6,6); hm0s->SetBinContent(7,5); hm0s->SetBinContent(8,4); hm0s->SetBinContent(9,5); hm0s->SetBinContent(10,3); hm0s->SetBinContent(11,8); hm0s->SetBinContent(12,9); hm0s->SetBinContent(13,10); hm0s->SetBinContent(14,10); hm0s->SetBinContent(15,11); hm0s->SetBinContent(16,9); hm0s->SetBinContent(17,11); hm0s->SetBinContent(18,6); hm0s->SetBinContent(19,13); hm0s->SetBinContent(20,10); hm0s->SetBinContent(21,7); hm0s->SetBinContent(22,11); hm0s->SetBinContent(23,11); hm0s->SetBinContent(24,17); hm0s->SetBinContent(25,17); hm0s->SetBinContent(26,16); hm0s->SetBinContent(27,18); hm0s->SetBinContent(28,15); hm0s->SetBinContent(29,32); hm0s->SetBinContent(30,26); hm0s->SetBinContent(31,20); hm0s->SetBinContent(32,26); hm0s->SetBinContent(33,32); hm0s->SetBinContent(34,59); hm0s->SetBinContent(35,41); hm0s->SetBinContent(36,60); hm0s->SetBinContent(37,54); hm0s->SetBinContent(38,68); hm0s->SetBinContent(39,62); hm0s->SetBinContent(40,100); hm0s->SetBinContent(41,95); hm0s->SetBinContent(42,104); hm0s->SetBinContent(43,142); hm0s->SetBinContent(44,212); hm0s->SetBinContent(45,332); hm0s->SetBinContent(46,505); hm0s->SetBinContent(47,950); hm0s->SetBinContent(48,1601); hm0s->SetBinContent(49,2378); hm0s->SetBinContent(50,3090); hm0s->SetBinContent(51,3187); hm0s->SetBinContent(52,2603); hm0s->SetBinContent(53,1843); hm0s->SetBinContent(54,1137); hm0s->SetBinContent(55,666); hm0s->SetBinContent(56,473); hm0s->SetBinContent(57,314); hm0s->SetBinContent(58,232); hm0s->SetBinContent(59,208); hm0s->SetBinContent(60,180); hm0s->SetBinContent(61,142); hm0s->SetBinContent(62,139); hm0s->SetBinContent(63,112); hm0s->SetBinContent(64,128); hm0s->SetBinContent(65,92); hm0s->SetBinContent(66,97); hm0s->SetBinContent(67,86); hm0s->SetBinContent(68,92); hm0s->SetBinContent(69,93); hm0s->SetBinContent(70,60); hm0s->SetBinContent(71,68); hm0s->SetBinContent(72,84); hm0s->SetBinContent(73,67); hm0s->SetBinContent(74,41); hm0s->SetBinContent(75,44); hm0s->SetBinContent(76,46); hm0s->SetBinContent(77,36); hm0s->SetBinContent(78,39); hm0s->SetBinContent(79,38); hm0s->SetBinContent(80,43); hm0s->SetBinContent(81,38); hm0s->SetBinContent(82,35); hm0s->SetBinContent(83,29); hm0s->SetBinContent(84,28); hm0s->SetBinContent(85,30); hm0s->SetBinContent(86,25); hm0s->SetBinContent(87,31); hm0s->SetBinContent(88,12); hm0s->SetBinContent(89,20); hm0s->SetBinContent(90,21); hm0s->SetBinContent(91,22); hm0s->SetBinContent(92,6); hm0s->SetBinContent(93,22); hm0s->SetBinContent(94,17); hm0s->SetBinContent(95,16); hm0s->SetBinContent(96,12); hm0s->SetBinContent(97,22); hm0s->SetBinContent(98,11); hm0s->SetBinContent(99,10); hm0s->SetBinContent(100,16); hm0s->SetEntries(23053); hm0s->SetStats(0); TPaveStats *ptstats = new TPaveStats(0.6066767,0.6954805,0.9685408,0.9515599,"brNDC"); ptstats->SetName("stats"); ptstats->SetBorderSize(1); ptstats->SetFillColor(0); ptstats->SetTextAlign(12); ptstats->SetTextFont(42); ptstats->SetTextSize(0.03127688); TText *text = ptstats->AddText("#chi^{2} / ndf = 980 / 95"); text = ptstats->AddText("N = 2.21e+04 #pm 1.49e+02 "); text = ptstats->AddText("#mu = 3.1 #pm 0.0 "); text = ptstats->AddText("#sigma_{1} = 0.00772 #pm 0.00007 "); text = ptstats->AddText("#sigma_{2} = 0.0457 #pm 0.0011 "); text = ptstats->AddText("R = 3.78 #pm 0.10 "); ptstats->SetOptStat(0); ptstats->SetOptFit(112); ptstats->Draw(); hm0s->GetListOfFunctions()->Add(ptstats); ptstats->SetParent(hm0s); TF1 *ff1 = new TF1("ff1","0.003200*[0]*([4]/([4]+1.0)/[2]*exp(-0.5*((x-[1])/[2])^2)+1.0/([4]+1.0)/[3]*exp(-0.5*((x-[1])/[3])^2))/sqrt(2.0*pi)",2.937,3.257); ff1->SetNpx(500); ff1->SetFillColor(19); ff1->SetFillStyle(0); ff1->SetMarkerStyle(20); ff1->SetLineColor(4); ff1->SetLineWidth(2); ff1->SetChisquare(979.9414); ff1->SetNDF(95); ff1->GetXaxis()->SetLabelFont(42); ff1->GetXaxis()->SetLabelSize(0.05); ff1->GetXaxis()->SetTitleSize(0.06); ff1->GetXaxis()->SetTickLength(0.02); ff1->GetXaxis()->SetTitleFont(42); ff1->GetYaxis()->SetLabelFont(42); ff1->GetYaxis()->SetLabelSize(0.05); ff1->GetYaxis()->SetTitleSize(0.06); ff1->GetYaxis()->SetTickLength(0.015); ff1->GetYaxis()->SetTitleFont(42); ff1->SetParameter(0,22075.2); ff1->SetParError(0,148.5858); ff1->SetParLimits(0,0,0); ff1->SetParameter(1,3.097778); ff1->SetParError(1,6.438237e-05); ff1->SetParLimits(1,0,0); ff1->SetParameter(2,0.007715595); ff1->SetParError(2,6.896962e-05); ff1->SetParLimits(2,0,0); ff1->SetParameter(3,0.04570796); ff1->SetParError(3,0.001065602); ff1->SetParLimits(3,0,0); ff1->SetParameter(4,3.776215); ff1->SetParError(4,0.1045851); ff1->SetParLimits(4,0,0); hm0s->GetListOfFunctions()->Add(ff1); hm0s->SetMarkerStyle(20); hm0s->SetLineColor(1); hm0s->GetXaxis()->SetTitle("m_{fit,cand}(#mu^{+}#mu^{-}) [GeV/c^{2}]"); hm0s->GetXaxis()->SetLabelFont(42); hm0s->GetXaxis()->SetLabelSize(0.05); hm0s->GetXaxis()->SetTitleSize(0.06); hm0s->GetXaxis()->SetTickLength(0.02); hm0s->GetXaxis()->SetTitleFont(42); hm0s->GetYaxis()->SetTitle("counts / 3.2 MeV/c^{2}"); hm0s->GetYaxis()->SetLabelFont(42); hm0s->GetYaxis()->SetLabelSize(0.05); hm0s->GetYaxis()->SetTitleSize(0.06); hm0s->GetYaxis()->SetTickLength(0.015); hm0s->GetYaxis()->SetTitleOffset(1.5); hm0s->GetYaxis()->SetTitleFont(42); hm0s->GetZaxis()->SetLabelFont(42); hm0s->GetZaxis()->SetLabelSize(0.05); hm0s->GetZaxis()->SetTitleSize(0.06); hm0s->GetZaxis()->SetTickLength(0.02); hm0s->GetZaxis()->SetTitleFont(42); hm0s->Draw("e"); tex = new TLatex(0.19,0.87,"#bar{P}ANDA"); tex->SetNDC(); tex->SetTextColor(13); tex->SetTextSize(0.063); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.19,0.8613,"MC simulation"); tex->SetNDC(); tex->SetTextAlign(13); tex->SetTextColor(13); tex->SetTextFont(42); tex->SetTextSize(0.036); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.57,0.4578,"PRELIMINARY"); tex->SetNDC(); tex->SetTextAlign(22); tex->SetTextColor(17); tex->SetTextFont(42); tex->SetTextSize(0.136); tex->SetTextAngle(35.02116); tex->SetLineWidth(2); tex->Draw(); TList *ll=gPad->GetListOfPrimitives(); ll->AddAt(ll->RemoveAt(ll->GetEntries()-1),0); c3_1->Modified(); c3->cd(); // ------------>Primitives in pad: c3_2 c3_2 = new TPad("c3_2", "c3_2",0.51,0.01,0.99,0.99); c3_2->Draw(); c3_2->cd(); c3_2->Range(2.869,-6.438459,3.269,39.55054); c3_2->SetFillColor(0); c3_2->SetBorderMode(0); c3_2->SetBorderSize(2); c3_2->SetTickx(1); c3_2->SetTicky(1); c3_2->SetLeftMargin(0.17); c3_2->SetRightMargin(0.03); c3_2->SetTopMargin(0.05); c3_2->SetBottomMargin(0.14); c3_2->SetFrameFillStyle(0); c3_2->SetFrameBorderMode(0); c3_2->SetFrameFillStyle(0); c3_2->SetFrameBorderMode(0); TH1F *hm0b2 = new TH1F("hm0b2","hm0b2",100,2.937,3.257); hm0b2->SetBinContent(1,12); hm0b2->SetBinContent(2,10); hm0b2->SetBinContent(3,9); hm0b2->SetBinContent(4,16); hm0b2->SetBinContent(5,17); hm0b2->SetBinContent(6,19); hm0b2->SetBinContent(7,19); hm0b2->SetBinContent(8,15); hm0b2->SetBinContent(9,18); hm0b2->SetBinContent(10,17); hm0b2->SetBinContent(11,15); hm0b2->SetBinContent(12,20); hm0b2->SetBinContent(13,14); hm0b2->SetBinContent(14,17); hm0b2->SetBinContent(15,12); hm0b2->SetBinContent(16,16); hm0b2->SetBinContent(17,20); hm0b2->SetBinContent(18,30); hm0b2->SetBinContent(19,9); hm0b2->SetBinContent(20,11); hm0b2->SetBinContent(21,16); hm0b2->SetBinContent(22,16); hm0b2->SetBinContent(23,13); hm0b2->SetBinContent(24,18); hm0b2->SetBinContent(25,14); hm0b2->SetBinContent(26,18); hm0b2->SetBinContent(27,23); hm0b2->SetBinContent(28,14); hm0b2->SetBinContent(29,16); hm0b2->SetBinContent(30,10); hm0b2->SetBinContent(31,12); hm0b2->SetBinContent(32,15); hm0b2->SetBinContent(33,16); hm0b2->SetBinContent(34,19); hm0b2->SetBinContent(35,15); hm0b2->SetBinContent(36,22); hm0b2->SetBinContent(37,13); hm0b2->SetBinContent(38,12); hm0b2->SetBinContent(39,17); hm0b2->SetBinContent(40,17); hm0b2->SetBinContent(41,22); hm0b2->SetBinContent(42,15); hm0b2->SetBinContent(43,18); hm0b2->SetBinContent(44,15); hm0b2->SetBinContent(45,17); hm0b2->SetBinContent(46,16); hm0b2->SetBinContent(47,14); hm0b2->SetBinContent(48,15); hm0b2->SetBinContent(49,16); hm0b2->SetBinContent(50,12); hm0b2->SetBinContent(51,13); hm0b2->SetBinContent(52,16); hm0b2->SetBinContent(53,14); hm0b2->SetBinContent(54,21); hm0b2->SetBinContent(55,18); hm0b2->SetBinContent(56,14); hm0b2->SetBinContent(57,17); hm0b2->SetBinContent(58,19); hm0b2->SetBinContent(59,14); hm0b2->SetBinContent(60,20); hm0b2->SetBinContent(61,17); hm0b2->SetBinContent(62,16); hm0b2->SetBinContent(63,23); hm0b2->SetBinContent(64,15); hm0b2->SetBinContent(65,12); hm0b2->SetBinContent(66,19); hm0b2->SetBinContent(67,23); hm0b2->SetBinContent(68,15); hm0b2->SetBinContent(69,15); hm0b2->SetBinContent(70,21); hm0b2->SetBinContent(71,10); hm0b2->SetBinContent(72,16); hm0b2->SetBinContent(73,22); hm0b2->SetBinContent(74,18); hm0b2->SetBinContent(75,25); hm0b2->SetBinContent(76,16); hm0b2->SetBinContent(77,14); hm0b2->SetBinContent(78,12); hm0b2->SetBinContent(79,15); hm0b2->SetBinContent(80,14); hm0b2->SetBinContent(81,20); hm0b2->SetBinContent(82,18); hm0b2->SetBinContent(83,17); hm0b2->SetBinContent(84,16); hm0b2->SetBinContent(85,22); hm0b2->SetBinContent(86,17); hm0b2->SetBinContent(87,20); hm0b2->SetBinContent(88,28); hm0b2->SetBinContent(89,23); hm0b2->SetBinContent(90,15); hm0b2->SetBinContent(91,18); hm0b2->SetBinContent(92,23); hm0b2->SetBinContent(93,22); hm0b2->SetBinContent(94,15); hm0b2->SetBinContent(95,16); hm0b2->SetBinContent(96,24); hm0b2->SetBinContent(97,23); hm0b2->SetBinContent(98,15); hm0b2->SetBinContent(99,12); hm0b2->SetBinContent(100,12); hm0b2->SetEntries(1672); TF1 *fp2 = new TF1("fp2","[0]+[1]*x+[2]*x*x",2.937,3.257); fp2->SetFillColor(19); fp2->SetFillStyle(0); fp2->SetMarkerStyle(20); fp2->SetLineColor(2); fp2->SetLineWidth(2); fp2->SetChisquare(84.98191); fp2->SetNDF(97); fp2->GetXaxis()->SetLabelFont(42); fp2->GetXaxis()->SetLabelSize(0.05); fp2->GetXaxis()->SetTitleSize(0.06); fp2->GetXaxis()->SetTickLength(0.02); fp2->GetXaxis()->SetTitleFont(42); fp2->GetYaxis()->SetLabelFont(42); fp2->GetYaxis()->SetLabelSize(0.05); fp2->GetYaxis()->SetTitleSize(0.06); fp2->GetYaxis()->SetTickLength(0.015); fp2->GetYaxis()->SetTitleFont(42); fp2->SetParameter(0,-172.3647); fp2->SetParError(0,5.030442); fp2->SetParLimits(0,0,0); fp2->SetParameter(1,111.308); fp2->SetParError(1,1.917318); fp2->SetParLimits(1,0,0); fp2->SetParameter(2,-16.30071); fp2->SetParError(2,0.5250539); fp2->SetParLimits(2,0,0); hm0b2->GetListOfFunctions()->Add(fp2); hm0b2->SetStats(0); ptstats = new TPaveStats(0.6316824,0.7365314,0.9677673,0.9515599,"brNDC"); ptstats->SetName("stats"); ptstats->SetBorderSize(1); ptstats->SetFillColor(0); ptstats->SetTextAlign(12); ptstats->SetTextFont(42); text = ptstats->AddText("#chi^{2} / ndf = 85 / 97"); text = ptstats->AddText("a_{0} = -172 #pm 5.0 "); text = ptstats->AddText("a_{1} = 111 #pm 1.9 "); text = ptstats->AddText("a_{2} = -16.3 #pm 0.5 "); ptstats->SetOptStat(0); ptstats->SetOptFit(112); ptstats->Draw(); hm0b2->GetListOfFunctions()->Add(ptstats); ptstats->SetParent(hm0b2); hm0b2->SetMarkerStyle(20); hm0b2->SetLineColor(1); hm0b2->GetXaxis()->SetTitle("m_{fit,cand}(#mu^{+}#mu^{-}) [GeV/c^{2}]"); hm0b2->GetXaxis()->SetLabelFont(42); hm0b2->GetXaxis()->SetLabelSize(0.05); hm0b2->GetXaxis()->SetTitleSize(0.06); hm0b2->GetXaxis()->SetTickLength(0.02); hm0b2->GetXaxis()->SetTitleFont(42); hm0b2->GetYaxis()->SetTitle("counts / 3.2 MeV/c^{2}"); hm0b2->GetYaxis()->SetLabelFont(42); hm0b2->GetYaxis()->SetLabelSize(0.05); hm0b2->GetYaxis()->SetTitleSize(0.06); hm0b2->GetYaxis()->SetTickLength(0.015); hm0b2->GetYaxis()->SetTitleOffset(1.3); hm0b2->GetYaxis()->SetTitleFont(42); hm0b2->GetZaxis()->SetLabelFont(42); hm0b2->GetZaxis()->SetLabelSize(0.05); hm0b2->GetZaxis()->SetTitleSize(0.06); hm0b2->GetZaxis()->SetTickLength(0.02); hm0b2->GetZaxis()->SetTitleFont(42); hm0b2->Draw("e"); tex = new TLatex(0.19,0.87,"#bar{P}ANDA"); tex->SetNDC(); tex->SetTextColor(13); tex->SetTextSize(0.063); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.19,0.8613,"MC simulation"); tex->SetNDC(); tex->SetTextAlign(13); tex->SetTextColor(13); tex->SetTextFont(42); tex->SetTextSize(0.036); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.57,0.4578,"PRELIMINARY"); tex->SetNDC(); tex->SetTextAlign(22); tex->SetTextColor(17); tex->SetTextFont(42); tex->SetTextSize(0.136); tex->SetTextAngle(35.02116); tex->SetLineWidth(2); tex->Draw(); TList *ll=gPad->GetListOfPrimitives(); ll->AddAt(ll->RemoveAt(ll->GetEntries()-1),0); c3_2->Modified(); c3->cd(); c3->Modified(); c3->cd(); c3->SetSelected(c3); c3->SaveAs("Fig13ab.gif"); c3->SaveAs("Fig13ab.pdf"); }