{
//=========Macro generated from canvas: c2/
//=========  (Thu Jun 10 07:18:13 2010) by ROOT version5.25/04
   TCanvas *c2 = new TCanvas("c2", "",1,1,900,576);
   gStyle->SetOptFit(1);
   c2->Range(0,0,1,1);
   c2->SetFillColor(0);
   c2->SetBorderSize(2);
  
// ------------>Primitives in pad: c2_1
   TPad *c2_1 = new TPad("c2_1", "c2_1",0.01,0.51,0.3233333,0.99);
   c2_1->Draw();
   c2_1->cd();
   c2_1->Range(-1.25,-14.04375,1.25,126.3938);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow13 = new TH1F("ResoRow13","",100,-1,1);
   ResoRow13->SetBinContent(0,11);
   ResoRow13->SetBinContent(4,1);
   ResoRow13->SetBinContent(5,2);
   ResoRow13->SetBinContent(6,1);
   ResoRow13->SetBinContent(14,1);
   ResoRow13->SetBinContent(15,2);
   ResoRow13->SetBinContent(16,2);
   ResoRow13->SetBinContent(17,1);
   ResoRow13->SetBinContent(18,1);
   ResoRow13->SetBinContent(19,2);
   ResoRow13->SetBinContent(21,2);
   ResoRow13->SetBinContent(22,2);
   ResoRow13->SetBinContent(23,1);
   ResoRow13->SetBinContent(24,1);
   ResoRow13->SetBinContent(25,1);
   ResoRow13->SetBinContent(26,2);
   ResoRow13->SetBinContent(27,1);
   ResoRow13->SetBinContent(29,6);
   ResoRow13->SetBinContent(30,4);
   ResoRow13->SetBinContent(31,5);
   ResoRow13->SetBinContent(32,3);
   ResoRow13->SetBinContent(33,3);
   ResoRow13->SetBinContent(34,3);
   ResoRow13->SetBinContent(35,6);
   ResoRow13->SetBinContent(36,9);
   ResoRow13->SetBinContent(37,9);
   ResoRow13->SetBinContent(38,6);
   ResoRow13->SetBinContent(39,19);
   ResoRow13->SetBinContent(40,23);
   ResoRow13->SetBinContent(41,27);
   ResoRow13->SetBinContent(42,23);
   ResoRow13->SetBinContent(43,37);
   ResoRow13->SetBinContent(44,50);
   ResoRow13->SetBinContent(45,44);
   ResoRow13->SetBinContent(46,68);
   ResoRow13->SetBinContent(47,62);
   ResoRow13->SetBinContent(48,89);
   ResoRow13->SetBinContent(49,97);
   ResoRow13->SetBinContent(50,99);
   ResoRow13->SetBinContent(51,107);
   ResoRow13->SetBinContent(52,88);
   ResoRow13->SetBinContent(53,83);
   ResoRow13->SetBinContent(54,75);
   ResoRow13->SetBinContent(55,73);
   ResoRow13->SetBinContent(56,49);
   ResoRow13->SetBinContent(57,31);
   ResoRow13->SetBinContent(58,30);
   ResoRow13->SetBinContent(59,30);
   ResoRow13->SetBinContent(60,35);
   ResoRow13->SetBinContent(61,27);
   ResoRow13->SetBinContent(62,13);
   ResoRow13->SetBinContent(63,16);
   ResoRow13->SetBinContent(64,5);
   ResoRow13->SetBinContent(65,5);
   ResoRow13->SetBinContent(66,7);
   ResoRow13->SetBinContent(67,6);
   ResoRow13->SetBinContent(68,4);
   ResoRow13->SetBinContent(69,3);
   ResoRow13->SetBinContent(70,4);
   ResoRow13->SetBinContent(71,2);
   ResoRow13->SetBinContent(72,2);
   ResoRow13->SetBinContent(73,3);
   ResoRow13->SetBinContent(74,5);
   ResoRow13->SetBinContent(75,3);
   ResoRow13->SetBinContent(76,1);
   ResoRow13->SetBinContent(77,1);
   ResoRow13->SetBinContent(78,3);
   ResoRow13->SetBinContent(84,2);
   ResoRow13->SetBinContent(85,1);
   ResoRow13->SetBinContent(86,1);
   ResoRow13->SetBinContent(87,1);
   ResoRow13->SetBinContent(90,1);
   ResoRow13->SetBinContent(101,27);
   ResoRow13->SetEntries(1470);
   
   TF1 *ResoRowFit13 = new TF1("ResoRowFit13","gaus",-1,1);
   ResoRowFit13->SetFillColor(19);
   ResoRowFit13->SetFillStyle(0);
   ResoRowFit13->SetLineWidth(3);
   ResoRowFit13->SetChisquare(125.2807);
   ResoRowFit13->SetNDF(68);
   ResoRowFit13->SetParameter(0,84.26543);
   ResoRowFit13->SetParError(0,3.248164);
   ResoRowFit13->SetParLimits(0,0,0);
   ResoRowFit13->SetParameter(1,0.0001145);
   ResoRowFit13->SetParError(1,0.003427018);
   ResoRowFit13->SetParLimits(1,0,0);
   ResoRowFit13->SetParameter(2,0.1237404);
   ResoRowFit13->SetParError(2,0.003323994);
   ResoRowFit13->SetParLimits(2,0,1.726906);
   ResoRow13->GetListOfFunctions()->Add(ResoRowFit13);
   
   TPaveStats *ptstats = new TPaveStats(0.62,0.635,0.98,0.995,"brNDC");
   ptstats->SetName("stats");
   ptstats->SetBorderSize(2);
   ptstats->SetFillColor(19);
   ptstats->SetTextAlign(12);
   TText *text = ptstats->AddText("ResoRow13");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1470   ");
   text = ptstats->AddText("Mean  = -0.002537");
   text = ptstats->AddText("RMS   = 0.1726");
   text = ptstats->AddText("#chi^{2} / ndf = 125.3 / 68");
   text = ptstats->AddText("Constant = 84.27 #pm 3.25 ");
   text = ptstats->AddText("Mean     = 0.0001145 #pm 0.0034270 ");
   text = ptstats->AddText("Sigma    = 0.1237 #pm 0.0033 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow13->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow13->GetListOfFunctions());
   ResoRow13->GetXaxis()->SetTitle("residual / mm");
   ResoRow13->GetYaxis()->SetTitle("counts");
   ResoRow13->Draw("");
   c2_1->Modified();
   c2->cd();
  
// ------------>Primitives in pad: c2_2
   c2_2 = new TPad("c2_2", "c2_2",0.3433333,0.51,0.6566667,0.99);
   c2_2->Draw();
   c2_2->cd();
   c2_2->Range(-1.25,-12.73125,1.25,114.5813);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow14 = new TH1F("ResoRow14","",100,-1,1);
   ResoRow14->SetBinContent(0,14);
   ResoRow14->SetBinContent(1,1);
   ResoRow14->SetBinContent(2,1);
   ResoRow14->SetBinContent(9,1);
   ResoRow14->SetBinContent(10,1);
   ResoRow14->SetBinContent(11,1);
   ResoRow14->SetBinContent(13,1);
   ResoRow14->SetBinContent(14,2);
   ResoRow14->SetBinContent(15,1);
   ResoRow14->SetBinContent(18,1);
   ResoRow14->SetBinContent(20,1);
   ResoRow14->SetBinContent(22,1);
   ResoRow14->SetBinContent(23,2);
   ResoRow14->SetBinContent(25,3);
   ResoRow14->SetBinContent(27,2);
   ResoRow14->SetBinContent(28,2);
   ResoRow14->SetBinContent(29,2);
   ResoRow14->SetBinContent(30,4);
   ResoRow14->SetBinContent(31,2);
   ResoRow14->SetBinContent(32,7);
   ResoRow14->SetBinContent(33,7);
   ResoRow14->SetBinContent(34,7);
   ResoRow14->SetBinContent(35,7);
   ResoRow14->SetBinContent(36,11);
   ResoRow14->SetBinContent(37,10);
   ResoRow14->SetBinContent(38,11);
   ResoRow14->SetBinContent(39,17);
   ResoRow14->SetBinContent(40,18);
   ResoRow14->SetBinContent(41,24);
   ResoRow14->SetBinContent(42,27);
   ResoRow14->SetBinContent(43,40);
   ResoRow14->SetBinContent(44,42);
   ResoRow14->SetBinContent(45,49);
   ResoRow14->SetBinContent(46,71);
   ResoRow14->SetBinContent(47,63);
   ResoRow14->SetBinContent(48,87);
   ResoRow14->SetBinContent(49,97);
   ResoRow14->SetBinContent(50,93);
   ResoRow14->SetBinContent(51,84);
   ResoRow14->SetBinContent(52,97);
   ResoRow14->SetBinContent(53,59);
   ResoRow14->SetBinContent(54,77);
   ResoRow14->SetBinContent(55,78);
   ResoRow14->SetBinContent(56,62);
   ResoRow14->SetBinContent(57,58);
   ResoRow14->SetBinContent(58,44);
   ResoRow14->SetBinContent(59,30);
   ResoRow14->SetBinContent(60,19);
   ResoRow14->SetBinContent(61,24);
   ResoRow14->SetBinContent(62,13);
   ResoRow14->SetBinContent(63,11);
   ResoRow14->SetBinContent(64,8);
   ResoRow14->SetBinContent(65,7);
   ResoRow14->SetBinContent(66,4);
   ResoRow14->SetBinContent(67,7);
   ResoRow14->SetBinContent(68,3);
   ResoRow14->SetBinContent(69,6);
   ResoRow14->SetBinContent(70,3);
   ResoRow14->SetBinContent(71,4);
   ResoRow14->SetBinContent(72,2);
   ResoRow14->SetBinContent(73,2);
   ResoRow14->SetBinContent(74,1);
   ResoRow14->SetBinContent(75,1);
   ResoRow14->SetBinContent(76,3);
   ResoRow14->SetBinContent(78,2);
   ResoRow14->SetBinContent(79,2);
   ResoRow14->SetBinContent(82,2);
   ResoRow14->SetBinContent(86,1);
   ResoRow14->SetBinContent(87,1);
   ResoRow14->SetBinContent(89,1);
   ResoRow14->SetBinContent(96,1);
   ResoRow14->SetBinContent(99,1);
   ResoRow14->SetBinContent(100,1);
   ResoRow14->SetBinContent(101,20);
   ResoRow14->SetEntries(1470);
   
   TF1 *ResoRowFit14 = new TF1("ResoRowFit14","gaus",-1,1);
   ResoRowFit14->SetFillColor(19);
   ResoRowFit14->SetFillStyle(0);
   ResoRowFit14->SetLineWidth(3);
   ResoRowFit14->SetChisquare(101.3425);
   ResoRowFit14->SetNDF(69);
   ResoRowFit14->SetParameter(0,82.28802);
   ResoRowFit14->SetParError(0,3.137688);
   ResoRowFit14->SetParLimits(0,0,0);
   ResoRowFit14->SetParameter(1,0.0009034648);
   ResoRowFit14->SetParError(1,0.00357809);
   ResoRowFit14->SetParLimits(1,0,0);
   ResoRowFit14->SetParameter(2,0.129422);
   ResoRowFit14->SetParError(2,0.003438593);
   ResoRowFit14->SetParLimits(2,0,1.752253);
   ResoRow14->GetListOfFunctions()->Add(ResoRowFit14);
   
   ptstats = new TPaveStats(0.62,0.635,0.98,0.995,"brNDC");
   ptstats->SetName("stats");
   ptstats->SetBorderSize(2);
   ptstats->SetFillColor(19);
   ptstats->SetTextAlign(12);
   text = ptstats->AddText("ResoRow14");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1470   ");
   text = ptstats->AddText("Mean  = -0.0009463");
   text = ptstats->AddText("RMS   = 0.1755");
   text = ptstats->AddText("#chi^{2} / ndf = 101.3 / 69");
   text = ptstats->AddText("Constant = 82.29 #pm 3.14 ");
   text = ptstats->AddText("Mean     = 0.0009035 #pm 0.0035781 ");
   text = ptstats->AddText("Sigma    = 0.1294 #pm 0.0034 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow14->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow14->GetListOfFunctions());
   ResoRow14->GetXaxis()->SetTitle("residual / mm");
   ResoRow14->GetYaxis()->SetTitle("counts");
   ResoRow14->Draw("");
   c2_2->Modified();
   c2->cd();
  
// ------------>Primitives in pad: c2_3
   c2_3 = new TPad("c2_3", "c2_3",0.6766667,0.51,0.99,0.99);
   c2_3->Draw();
   c2_3->cd();
   c2_3->Range(-1.25,-14.56875,1.25,131.1188);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow15 = new TH1F("ResoRow15","",100,-1,1);
   ResoRow15->SetBinContent(0,16);
   ResoRow15->SetBinContent(1,1);
   ResoRow15->SetBinContent(2,2);
   ResoRow15->SetBinContent(3,1);
   ResoRow15->SetBinContent(6,1);
   ResoRow15->SetBinContent(8,1);
   ResoRow15->SetBinContent(12,1);
   ResoRow15->SetBinContent(16,1);
   ResoRow15->SetBinContent(17,1);
   ResoRow15->SetBinContent(19,1);
   ResoRow15->SetBinContent(20,2);
   ResoRow15->SetBinContent(21,1);
   ResoRow15->SetBinContent(22,2);
   ResoRow15->SetBinContent(25,1);
   ResoRow15->SetBinContent(26,1);
   ResoRow15->SetBinContent(27,1);
   ResoRow15->SetBinContent(28,4);
   ResoRow15->SetBinContent(29,3);
   ResoRow15->SetBinContent(30,4);
   ResoRow15->SetBinContent(31,4);
   ResoRow15->SetBinContent(32,4);
   ResoRow15->SetBinContent(33,3);
   ResoRow15->SetBinContent(34,5);
   ResoRow15->SetBinContent(35,9);
   ResoRow15->SetBinContent(36,7);
   ResoRow15->SetBinContent(37,10);
   ResoRow15->SetBinContent(38,17);
   ResoRow15->SetBinContent(39,7);
   ResoRow15->SetBinContent(40,19);
   ResoRow15->SetBinContent(41,31);
   ResoRow15->SetBinContent(42,24);
   ResoRow15->SetBinContent(43,43);
   ResoRow15->SetBinContent(44,51);
   ResoRow15->SetBinContent(45,54);
   ResoRow15->SetBinContent(46,80);
   ResoRow15->SetBinContent(47,65);
   ResoRow15->SetBinContent(48,73);
   ResoRow15->SetBinContent(49,94);
   ResoRow15->SetBinContent(50,111);
   ResoRow15->SetBinContent(51,93);
   ResoRow15->SetBinContent(52,90);
   ResoRow15->SetBinContent(53,91);
   ResoRow15->SetBinContent(54,59);
   ResoRow15->SetBinContent(55,63);
   ResoRow15->SetBinContent(56,44);
   ResoRow15->SetBinContent(57,44);
   ResoRow15->SetBinContent(58,34);
   ResoRow15->SetBinContent(59,31);
   ResoRow15->SetBinContent(60,30);
   ResoRow15->SetBinContent(61,10);
   ResoRow15->SetBinContent(62,20);
   ResoRow15->SetBinContent(63,16);
   ResoRow15->SetBinContent(64,11);
   ResoRow15->SetBinContent(65,8);
   ResoRow15->SetBinContent(66,4);
   ResoRow15->SetBinContent(67,4);
   ResoRow15->SetBinContent(68,5);
   ResoRow15->SetBinContent(69,3);
   ResoRow15->SetBinContent(70,3);
   ResoRow15->SetBinContent(71,4);
   ResoRow15->SetBinContent(72,2);
   ResoRow15->SetBinContent(73,4);
   ResoRow15->SetBinContent(74,1);
   ResoRow15->SetBinContent(76,1);
   ResoRow15->SetBinContent(77,2);
   ResoRow15->SetBinContent(79,2);
   ResoRow15->SetBinContent(80,4);
   ResoRow15->SetBinContent(84,2);
   ResoRow15->SetBinContent(85,1);
   ResoRow15->SetBinContent(86,1);
   ResoRow15->SetBinContent(87,1);
   ResoRow15->SetBinContent(88,2);
   ResoRow15->SetBinContent(90,1);
   ResoRow15->SetBinContent(91,1);
   ResoRow15->SetBinContent(96,1);
   ResoRow15->SetBinContent(101,21);
   ResoRow15->SetEntries(1470);
   
   TF1 *ResoRowFit15 = new TF1("ResoRowFit15","gaus",-1,1);
   ResoRowFit15->SetFillColor(19);
   ResoRowFit15->SetFillStyle(0);
   ResoRowFit15->SetLineWidth(3);
   ResoRowFit15->SetChisquare(127.9366);
   ResoRowFit15->SetNDF(71);
   ResoRowFit15->SetParameter(0,83.40784);
   ResoRowFit15->SetParError(0,3.272249);
   ResoRowFit15->SetParLimits(0,0,0);
   ResoRowFit15->SetParameter(1,-0.00240892);
   ResoRowFit15->SetParError(1,0.003468005);
   ResoRowFit15->SetParLimits(1,0,0);
   ResoRowFit15->SetParameter(2,0.1248487);
   ResoRowFit15->SetParError(2,0.0034719);
   ResoRowFit15->SetParLimits(2,0,1.786463);
   ResoRow15->GetListOfFunctions()->Add(ResoRowFit15);
   
   ptstats = new TPaveStats(0.62,0.635,0.98,0.995,"brNDC");
   ptstats->SetName("stats");
   ptstats->SetBorderSize(2);
   ptstats->SetFillColor(19);
   ptstats->SetTextAlign(12);
   text = ptstats->AddText("ResoRow15");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1470   ");
   text = ptstats->AddText("Mean  = -0.003077");
   text = ptstats->AddText("RMS   = 0.1786");
   text = ptstats->AddText("#chi^{2} / ndf = 127.9 / 71");
   text = ptstats->AddText("Constant = 83.41 #pm 3.27 ");
   text = ptstats->AddText("Mean     = -0.002409 #pm 0.003468 ");
   text = ptstats->AddText("Sigma    = 0.1248 #pm 0.0035 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow15->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow15->GetListOfFunctions());
   ResoRow15->GetXaxis()->SetTitle("residual / mm");
   ResoRow15->GetYaxis()->SetTitle("counts");
   ResoRow15->Draw("");
   c2_3->Modified();
   c2->cd();
  
// ------------>Primitives in pad: c2_4
   c2_4 = new TPad("c2_4", "c2_4",0.01,0.01,0.3233333,0.49);
   c2_4->Draw();
   c2_4->cd();
   c2_4->Range(-1.25,-14.4375,1.25,129.9375);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow16 = new TH1F("ResoRow16","",100,-1,1);
   ResoRow16->SetBinContent(0,13);
   ResoRow16->SetBinContent(2,1);
   ResoRow16->SetBinContent(3,1);
   ResoRow16->SetBinContent(7,1);
   ResoRow16->SetBinContent(8,2);
   ResoRow16->SetBinContent(15,1);
   ResoRow16->SetBinContent(16,1);
   ResoRow16->SetBinContent(20,1);
   ResoRow16->SetBinContent(22,2);
   ResoRow16->SetBinContent(23,1);
   ResoRow16->SetBinContent(24,3);
   ResoRow16->SetBinContent(25,2);
   ResoRow16->SetBinContent(26,1);
   ResoRow16->SetBinContent(27,1);
   ResoRow16->SetBinContent(28,1);
   ResoRow16->SetBinContent(29,5);
   ResoRow16->SetBinContent(30,8);
   ResoRow16->SetBinContent(31,2);
   ResoRow16->SetBinContent(32,5);
   ResoRow16->SetBinContent(33,6);
   ResoRow16->SetBinContent(34,4);
   ResoRow16->SetBinContent(35,3);
   ResoRow16->SetBinContent(36,4);
   ResoRow16->SetBinContent(37,9);
   ResoRow16->SetBinContent(38,12);
   ResoRow16->SetBinContent(39,27);
   ResoRow16->SetBinContent(40,26);
   ResoRow16->SetBinContent(41,22);
   ResoRow16->SetBinContent(42,26);
   ResoRow16->SetBinContent(43,43);
   ResoRow16->SetBinContent(44,47);
   ResoRow16->SetBinContent(45,51);
   ResoRow16->SetBinContent(46,55);
   ResoRow16->SetBinContent(47,76);
   ResoRow16->SetBinContent(48,85);
   ResoRow16->SetBinContent(49,86);
   ResoRow16->SetBinContent(50,92);
   ResoRow16->SetBinContent(51,110);
   ResoRow16->SetBinContent(52,97);
   ResoRow16->SetBinContent(53,86);
   ResoRow16->SetBinContent(54,61);
   ResoRow16->SetBinContent(55,57);
   ResoRow16->SetBinContent(56,45);
   ResoRow16->SetBinContent(57,52);
   ResoRow16->SetBinContent(58,36);
   ResoRow16->SetBinContent(59,30);
   ResoRow16->SetBinContent(60,26);
   ResoRow16->SetBinContent(61,13);
   ResoRow16->SetBinContent(62,19);
   ResoRow16->SetBinContent(63,17);
   ResoRow16->SetBinContent(64,10);
   ResoRow16->SetBinContent(65,8);
   ResoRow16->SetBinContent(66,7);
   ResoRow16->SetBinContent(67,4);
   ResoRow16->SetBinContent(68,6);
   ResoRow16->SetBinContent(69,3);
   ResoRow16->SetBinContent(70,1);
   ResoRow16->SetBinContent(71,1);
   ResoRow16->SetBinContent(72,3);
   ResoRow16->SetBinContent(73,1);
   ResoRow16->SetBinContent(74,1);
   ResoRow16->SetBinContent(76,1);
   ResoRow16->SetBinContent(77,1);
   ResoRow16->SetBinContent(78,2);
   ResoRow16->SetBinContent(79,3);
   ResoRow16->SetBinContent(83,1);
   ResoRow16->SetBinContent(86,1);
   ResoRow16->SetBinContent(87,2);
   ResoRow16->SetBinContent(92,2);
   ResoRow16->SetBinContent(95,2);
   ResoRow16->SetBinContent(96,2);
   ResoRow16->SetBinContent(98,1);
   ResoRow16->SetBinContent(101,32);
   ResoRow16->SetEntries(1470);
   
   TF1 *ResoRowFit16 = new TF1("ResoRowFit16","gaus",-1,1);
   ResoRowFit16->SetFillColor(19);
   ResoRowFit16->SetFillStyle(0);
   ResoRowFit16->SetLineWidth(3);
   ResoRowFit16->SetChisquare(105.3077);
   ResoRowFit16->SetNDF(68);
   ResoRowFit16->SetParameter(0,82.20788);
   ResoRowFit16->SetParError(0,3.087322);
   ResoRowFit16->SetParLimits(0,0,0);
   ResoRowFit16->SetParameter(1,-0.0008923596);
   ResoRowFit16->SetParError(1,0.00353866);
   ResoRowFit16->SetParLimits(1,0,0);
   ResoRowFit16->SetParameter(2,0.1280911);
   ResoRowFit16->SetParError(2,0.003273225);
   ResoRowFit16->SetParLimits(2,0,1.772763);
   ResoRow16->GetListOfFunctions()->Add(ResoRowFit16);
   
   ptstats = new TPaveStats(0.62,0.635,0.98,0.995,"brNDC");
   ptstats->SetName("stats");
   ptstats->SetBorderSize(2);
   ptstats->SetFillColor(19);
   ptstats->SetTextAlign(12);
   text = ptstats->AddText("ResoRow16");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1470   ");
   text = ptstats->AddText("Mean  = -0.002634");
   text = ptstats->AddText("RMS   = 0.1772");
   text = ptstats->AddText("#chi^{2} / ndf = 105.3 / 68");
   text = ptstats->AddText("Constant = 82.21 #pm 3.09 ");
   text = ptstats->AddText("Mean     = -0.0008924 #pm 0.0035387 ");
   text = ptstats->AddText("Sigma    = 0.1281 #pm 0.0033 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow16->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow16->GetListOfFunctions());
   ResoRow16->GetXaxis()->SetTitle("residual / mm");
   ResoRow16->GetYaxis()->SetTitle("counts");
   ResoRow16->Draw("");
   c2_4->Modified();
   c2->cd();
  
// ------------>Primitives in pad: c2_5
   c2_5 = new TPad("c2_5", "c2_5",0.3433333,0.01,0.6566667,0.49);
   c2_5->Draw();
   c2_5->cd();
   c2_5->Range(-1.25,-13.65,1.25,122.85);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow17 = new TH1F("ResoRow17","",100,-1,1);
   ResoRow17->SetBinContent(0,9);
   ResoRow17->SetBinContent(5,1);
   ResoRow17->SetBinContent(6,1);
   ResoRow17->SetBinContent(13,3);
   ResoRow17->SetBinContent(17,2);
   ResoRow17->SetBinContent(18,2);
   ResoRow17->SetBinContent(19,1);
   ResoRow17->SetBinContent(21,1);
   ResoRow17->SetBinContent(22,1);
   ResoRow17->SetBinContent(23,1);
   ResoRow17->SetBinContent(24,1);
   ResoRow17->SetBinContent(26,2);
   ResoRow17->SetBinContent(27,2);
   ResoRow17->SetBinContent(28,1);
   ResoRow17->SetBinContent(29,6);
   ResoRow17->SetBinContent(30,4);
   ResoRow17->SetBinContent(31,3);
   ResoRow17->SetBinContent(32,2);
   ResoRow17->SetBinContent(33,1);
   ResoRow17->SetBinContent(34,7);
   ResoRow17->SetBinContent(35,12);
   ResoRow17->SetBinContent(36,9);
   ResoRow17->SetBinContent(37,9);
   ResoRow17->SetBinContent(38,19);
   ResoRow17->SetBinContent(39,23);
   ResoRow17->SetBinContent(40,16);
   ResoRow17->SetBinContent(41,44);
   ResoRow17->SetBinContent(42,37);
   ResoRow17->SetBinContent(43,45);
   ResoRow17->SetBinContent(44,53);
   ResoRow17->SetBinContent(45,53);
   ResoRow17->SetBinContent(46,70);
   ResoRow17->SetBinContent(47,73);
   ResoRow17->SetBinContent(48,71);
   ResoRow17->SetBinContent(49,99);
   ResoRow17->SetBinContent(50,104);
   ResoRow17->SetBinContent(51,85);
   ResoRow17->SetBinContent(52,88);
   ResoRow17->SetBinContent(53,75);
   ResoRow17->SetBinContent(54,65);
   ResoRow17->SetBinContent(55,58);
   ResoRow17->SetBinContent(56,51);
   ResoRow17->SetBinContent(57,38);
   ResoRow17->SetBinContent(58,32);
   ResoRow17->SetBinContent(59,22);
   ResoRow17->SetBinContent(60,24);
   ResoRow17->SetBinContent(61,22);
   ResoRow17->SetBinContent(62,18);
   ResoRow17->SetBinContent(63,13);
   ResoRow17->SetBinContent(64,8);
   ResoRow17->SetBinContent(65,11);
   ResoRow17->SetBinContent(66,6);
   ResoRow17->SetBinContent(67,6);
   ResoRow17->SetBinContent(69,4);
   ResoRow17->SetBinContent(70,2);
   ResoRow17->SetBinContent(71,7);
   ResoRow17->SetBinContent(72,1);
   ResoRow17->SetBinContent(73,1);
   ResoRow17->SetBinContent(75,2);
   ResoRow17->SetBinContent(76,2);
   ResoRow17->SetBinContent(77,1);
   ResoRow17->SetBinContent(78,1);
   ResoRow17->SetBinContent(79,1);
   ResoRow17->SetBinContent(83,2);
   ResoRow17->SetBinContent(87,2);
   ResoRow17->SetBinContent(88,1);
   ResoRow17->SetBinContent(89,1);
   ResoRow17->SetBinContent(90,1);
   ResoRow17->SetBinContent(91,1);
   ResoRow17->SetBinContent(92,1);
   ResoRow17->SetBinContent(94,1);
   ResoRow17->SetBinContent(95,1);
   ResoRow17->SetBinContent(96,3);
   ResoRow17->SetBinContent(97,2);
   ResoRow17->SetBinContent(101,22);
   ResoRow17->SetEntries(1470);
   
   TF1 *ResoRowFit17 = new TF1("ResoRowFit17","gaus",-1,1);
   ResoRowFit17->SetFillColor(19);
   ResoRowFit17->SetFillStyle(0);
   ResoRowFit17->SetLineWidth(3);
   ResoRowFit17->SetChisquare(102.6991);
   ResoRowFit17->SetNDF(70);
   ResoRowFit17->SetParameter(0,80.97361);
   ResoRowFit17->SetParError(0,2.971988);
   ResoRowFit17->SetParLimits(0,0,0);
   ResoRowFit17->SetParameter(1,-0.01034394);
   ResoRowFit17->SetParError(1,0.003674986);
   ResoRowFit17->SetParLimits(1,0,0);
   ResoRowFit17->SetParameter(2,0.1318825);
   ResoRowFit17->SetParError(2,0.003264473);
   ResoRowFit17->SetParLimits(2,0,1.83323);
   ResoRow17->GetListOfFunctions()->Add(ResoRowFit17);
   
   ptstats = new TPaveStats(0.62,0.635,0.98,0.995,"brNDC");
   ptstats->SetName("stats");
   ptstats->SetBorderSize(2);
   ptstats->SetFillColor(19);
   ptstats->SetTextAlign(12);
   text = ptstats->AddText("ResoRow17");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1470   ");
   text = ptstats->AddText("Mean  = -0.00778");
   text = ptstats->AddText("RMS   = 0.1832");
   text = ptstats->AddText("#chi^{2} / ndf = 102.7 / 70");
   text = ptstats->AddText("Constant = 80.97 #pm 2.97 ");
   text = ptstats->AddText("Mean     = -0.01034 #pm 0.00367 ");
   text = ptstats->AddText("Sigma    = 0.1319 #pm 0.0033 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow17->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow17->GetListOfFunctions());
   ResoRow17->GetXaxis()->SetTitle("residual / mm");
   ResoRow17->GetYaxis()->SetTitle("counts");
   ResoRow17->Draw("");
   c2_5->Modified();
   c2->cd();
  
// ------------>Primitives in pad: c2_6
   c2_6 = new TPad("c2_6", "c2_6",0.6766667,0.01,0.99,0.49);
   c2_6->Draw();
   c2_6->cd();
   c2_6->Range(-1.25,-14.83125,1.25,133.4813);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow18 = new TH1F("ResoRow18","",100,-1,1);
   ResoRow18->SetBinContent(0,12);
   ResoRow18->SetBinContent(3,2);
   ResoRow18->SetBinContent(9,1);
   ResoRow18->SetBinContent(12,1);
   ResoRow18->SetBinContent(14,1);
   ResoRow18->SetBinContent(17,1);
   ResoRow18->SetBinContent(18,1);
   ResoRow18->SetBinContent(19,2);
   ResoRow18->SetBinContent(22,2);
   ResoRow18->SetBinContent(26,1);
   ResoRow18->SetBinContent(27,4);
   ResoRow18->SetBinContent(28,3);
   ResoRow18->SetBinContent(29,3);
   ResoRow18->SetBinContent(30,3);
   ResoRow18->SetBinContent(31,1);
   ResoRow18->SetBinContent(32,5);
   ResoRow18->SetBinContent(33,6);
   ResoRow18->SetBinContent(34,8);
   ResoRow18->SetBinContent(35,6);
   ResoRow18->SetBinContent(36,3);
   ResoRow18->SetBinContent(37,11);
   ResoRow18->SetBinContent(38,11);
   ResoRow18->SetBinContent(39,19);
   ResoRow18->SetBinContent(40,17);
   ResoRow18->SetBinContent(41,22);
   ResoRow18->SetBinContent(42,36);
   ResoRow18->SetBinContent(43,49);
   ResoRow18->SetBinContent(44,59);
   ResoRow18->SetBinContent(45,68);
   ResoRow18->SetBinContent(46,73);
   ResoRow18->SetBinContent(47,75);
   ResoRow18->SetBinContent(48,88);
   ResoRow18->SetBinContent(49,85);
   ResoRow18->SetBinContent(50,113);
   ResoRow18->SetBinContent(51,91);
   ResoRow18->SetBinContent(52,81);
   ResoRow18->SetBinContent(53,70);
   ResoRow18->SetBinContent(54,65);
   ResoRow18->SetBinContent(55,62);
   ResoRow18->SetBinContent(56,56);
   ResoRow18->SetBinContent(57,36);
   ResoRow18->SetBinContent(58,23);
   ResoRow18->SetBinContent(59,19);
   ResoRow18->SetBinContent(60,34);
   ResoRow18->SetBinContent(61,21);
   ResoRow18->SetBinContent(62,10);
   ResoRow18->SetBinContent(63,18);
   ResoRow18->SetBinContent(64,9);
   ResoRow18->SetBinContent(65,6);
   ResoRow18->SetBinContent(66,6);
   ResoRow18->SetBinContent(67,5);
   ResoRow18->SetBinContent(68,7);
   ResoRow18->SetBinContent(69,5);
   ResoRow18->SetBinContent(70,1);
   ResoRow18->SetBinContent(71,3);
   ResoRow18->SetBinContent(72,1);
   ResoRow18->SetBinContent(73,3);
   ResoRow18->SetBinContent(74,1);
   ResoRow18->SetBinContent(76,2);
   ResoRow18->SetBinContent(77,2);
   ResoRow18->SetBinContent(79,3);
   ResoRow18->SetBinContent(81,1);
   ResoRow18->SetBinContent(82,2);
   ResoRow18->SetBinContent(84,1);
   ResoRow18->SetBinContent(85,1);
   ResoRow18->SetBinContent(86,1);
   ResoRow18->SetBinContent(92,1);
   ResoRow18->SetBinContent(96,3);
   ResoRow18->SetBinContent(101,28);
   ResoRow18->SetEntries(1470);
   
   TF1 *ResoRowFit18 = new TF1("ResoRowFit18","gaus",-1,1);
   ResoRowFit18->SetFillColor(19);
   ResoRowFit18->SetFillStyle(0);
   ResoRowFit18->SetLineWidth(3);
   ResoRowFit18->SetChisquare(114.8025);
   ResoRowFit18->SetNDF(64);
   ResoRowFit18->SetParameter(0,85.41916);
   ResoRowFit18->SetParError(0,3.281455);
   ResoRowFit18->SetParLimits(0,0,0);
   ResoRowFit18->SetParameter(1,-0.01168227);
   ResoRowFit18->SetParError(1,0.003461384);
   ResoRowFit18->SetParLimits(1,0,0);
   ResoRowFit18->SetParameter(2,0.1228563);
   ResoRowFit18->SetParError(2,0.003288494);
   ResoRowFit18->SetParLimits(2,0,1.708404);
   ResoRow18->GetListOfFunctions()->Add(ResoRowFit18);
   
   ptstats = new TPaveStats(0.62,0.635,0.98,0.995,"brNDC");
   ptstats->SetName("stats");
   ptstats->SetBorderSize(2);
   ptstats->SetFillColor(19);
   ptstats->SetTextAlign(12);
   text = ptstats->AddText("ResoRow18");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1470   ");
   text = ptstats->AddText("Mean  = -0.00774");
   text = ptstats->AddText("RMS   = 0.1707");
   text = ptstats->AddText("#chi^{2} / ndf = 114.8 / 64");
   text = ptstats->AddText("Constant = 85.42 #pm 3.28 ");
   text = ptstats->AddText("Mean     = -0.01168 #pm 0.00346 ");
   text = ptstats->AddText("Sigma    = 0.1229 #pm 0.0033 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow18->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow18->GetListOfFunctions());
   ResoRow18->GetXaxis()->SetTitle("residual / mm");
   ResoRow18->GetYaxis()->SetTitle("counts");
   ResoRow18->Draw("");
   c2_6->Modified();
   c2->cd();
   c2->Modified();
   c2->cd();
   c2->SetSelected(c2);
}
