{
//=========Macro generated from canvas: c2/
//=========  (Wed Jun  9 12:04:36 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,-5.90625,1.25,53.15625);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow18 = new TH1F("ResoRow18","",100,-1,1);
   ResoRow18->SetBinContent(0,45);
   ResoRow18->SetBinContent(4,2);
   ResoRow18->SetBinContent(5,5);
   ResoRow18->SetBinContent(6,3);
   ResoRow18->SetBinContent(7,3);
   ResoRow18->SetBinContent(8,3);
   ResoRow18->SetBinContent(9,3);
   ResoRow18->SetBinContent(10,2);
   ResoRow18->SetBinContent(11,5);
   ResoRow18->SetBinContent(12,2);
   ResoRow18->SetBinContent(13,5);
   ResoRow18->SetBinContent(14,3);
   ResoRow18->SetBinContent(15,8);
   ResoRow18->SetBinContent(16,5);
   ResoRow18->SetBinContent(17,3);
   ResoRow18->SetBinContent(18,7);
   ResoRow18->SetBinContent(19,9);
   ResoRow18->SetBinContent(20,2);
   ResoRow18->SetBinContent(21,7);
   ResoRow18->SetBinContent(22,6);
   ResoRow18->SetBinContent(23,15);
   ResoRow18->SetBinContent(24,13);
   ResoRow18->SetBinContent(25,10);
   ResoRow18->SetBinContent(26,12);
   ResoRow18->SetBinContent(27,14);
   ResoRow18->SetBinContent(28,14);
   ResoRow18->SetBinContent(29,23);
   ResoRow18->SetBinContent(30,16);
   ResoRow18->SetBinContent(31,23);
   ResoRow18->SetBinContent(32,24);
   ResoRow18->SetBinContent(33,15);
   ResoRow18->SetBinContent(34,23);
   ResoRow18->SetBinContent(35,13);
   ResoRow18->SetBinContent(36,32);
   ResoRow18->SetBinContent(37,19);
   ResoRow18->SetBinContent(38,18);
   ResoRow18->SetBinContent(39,33);
   ResoRow18->SetBinContent(40,35);
   ResoRow18->SetBinContent(41,28);
   ResoRow18->SetBinContent(42,28);
   ResoRow18->SetBinContent(43,39);
   ResoRow18->SetBinContent(44,37);
   ResoRow18->SetBinContent(45,31);
   ResoRow18->SetBinContent(46,37);
   ResoRow18->SetBinContent(47,37);
   ResoRow18->SetBinContent(48,27);
   ResoRow18->SetBinContent(49,45);
   ResoRow18->SetBinContent(50,35);
   ResoRow18->SetBinContent(51,37);
   ResoRow18->SetBinContent(52,35);
   ResoRow18->SetBinContent(53,31);
   ResoRow18->SetBinContent(54,37);
   ResoRow18->SetBinContent(55,38);
   ResoRow18->SetBinContent(56,32);
   ResoRow18->SetBinContent(57,39);
   ResoRow18->SetBinContent(58,39);
   ResoRow18->SetBinContent(59,41);
   ResoRow18->SetBinContent(60,24);
   ResoRow18->SetBinContent(61,26);
   ResoRow18->SetBinContent(62,23);
   ResoRow18->SetBinContent(63,28);
   ResoRow18->SetBinContent(64,29);
   ResoRow18->SetBinContent(65,20);
   ResoRow18->SetBinContent(66,24);
   ResoRow18->SetBinContent(67,15);
   ResoRow18->SetBinContent(68,10);
   ResoRow18->SetBinContent(69,16);
   ResoRow18->SetBinContent(70,18);
   ResoRow18->SetBinContent(71,18);
   ResoRow18->SetBinContent(72,19);
   ResoRow18->SetBinContent(73,13);
   ResoRow18->SetBinContent(74,11);
   ResoRow18->SetBinContent(75,14);
   ResoRow18->SetBinContent(76,11);
   ResoRow18->SetBinContent(77,11);
   ResoRow18->SetBinContent(78,6);
   ResoRow18->SetBinContent(79,8);
   ResoRow18->SetBinContent(80,4);
   ResoRow18->SetBinContent(81,11);
   ResoRow18->SetBinContent(82,5);
   ResoRow18->SetBinContent(83,4);
   ResoRow18->SetBinContent(84,5);
   ResoRow18->SetBinContent(85,5);
   ResoRow18->SetBinContent(86,3);
   ResoRow18->SetBinContent(87,4);
   ResoRow18->SetBinContent(88,4);
   ResoRow18->SetBinContent(89,5);
   ResoRow18->SetBinContent(90,3);
   ResoRow18->SetBinContent(91,2);
   ResoRow18->SetBinContent(92,2);
   ResoRow18->SetBinContent(93,1);
   ResoRow18->SetBinContent(94,2);
   ResoRow18->SetBinContent(95,4);
   ResoRow18->SetBinContent(96,2);
   ResoRow18->SetBinContent(97,6);
   ResoRow18->SetBinContent(98,4);
   ResoRow18->SetBinContent(99,1);
   ResoRow18->SetBinContent(100,1);
   ResoRow18->SetBinContent(101,45);
   ResoRow18->SetEntries(1620);
   
   TF1 *ResoRowFit18 = new TF1("ResoRowFit18","gaus",-1,1);
   ResoRowFit18->SetFillColor(19);
   ResoRowFit18->SetFillStyle(0);
   ResoRowFit18->SetLineWidth(3);
   ResoRowFit18->SetChisquare(107.142);
   ResoRowFit18->SetNDF(94);
   ResoRowFit18->SetParameter(0,33.84088);
   ResoRowFit18->SetParError(0,1.192661);
   ResoRowFit18->SetParLimits(0,0,0);
   ResoRowFit18->SetParameter(1,-0.004478794);
   ResoRowFit18->SetParError(1,0.009103672);
   ResoRowFit18->SetParLimits(1,0,0);
   ResoRowFit18->SetParameter(2,0.3368799);
   ResoRowFit18->SetParError(2,0.008124819);
   ResoRowFit18->SetParLimits(2,0,3.512056);
   ResoRow18->GetListOfFunctions()->Add(ResoRowFit18);
   
   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("ResoRow18");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1620   ");
   text = ptstats->AddText("Mean  = -0.006788");
   text = ptstats->AddText("RMS   =  0.351");
   text = ptstats->AddText("#chi^{2} / ndf = 107.1 / 94");
   text = ptstats->AddText("Constant = 33.84 #pm 1.19 ");
   text = ptstats->AddText("Mean     = -0.004479 #pm 0.009104 ");
   text = ptstats->AddText("Sigma    = 0.3369 #pm 0.0081 ");
   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_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,-5.775,1.25,51.975);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow19 = new TH1F("ResoRow19","",100,-1,1);
   ResoRow19->SetBinContent(0,28);
   ResoRow19->SetBinContent(1,1);
   ResoRow19->SetBinContent(2,1);
   ResoRow19->SetBinContent(3,1);
   ResoRow19->SetBinContent(4,1);
   ResoRow19->SetBinContent(5,3);
   ResoRow19->SetBinContent(6,2);
   ResoRow19->SetBinContent(7,2);
   ResoRow19->SetBinContent(8,4);
   ResoRow19->SetBinContent(9,3);
   ResoRow19->SetBinContent(10,3);
   ResoRow19->SetBinContent(11,2);
   ResoRow19->SetBinContent(12,4);
   ResoRow19->SetBinContent(13,6);
   ResoRow19->SetBinContent(14,4);
   ResoRow19->SetBinContent(15,4);
   ResoRow19->SetBinContent(16,8);
   ResoRow19->SetBinContent(17,4);
   ResoRow19->SetBinContent(18,9);
   ResoRow19->SetBinContent(19,8);
   ResoRow19->SetBinContent(20,13);
   ResoRow19->SetBinContent(21,9);
   ResoRow19->SetBinContent(22,8);
   ResoRow19->SetBinContent(23,15);
   ResoRow19->SetBinContent(24,9);
   ResoRow19->SetBinContent(25,8);
   ResoRow19->SetBinContent(26,15);
   ResoRow19->SetBinContent(27,10);
   ResoRow19->SetBinContent(28,19);
   ResoRow19->SetBinContent(29,15);
   ResoRow19->SetBinContent(30,18);
   ResoRow19->SetBinContent(31,15);
   ResoRow19->SetBinContent(32,20);
   ResoRow19->SetBinContent(33,19);
   ResoRow19->SetBinContent(34,24);
   ResoRow19->SetBinContent(35,19);
   ResoRow19->SetBinContent(36,21);
   ResoRow19->SetBinContent(37,18);
   ResoRow19->SetBinContent(38,27);
   ResoRow19->SetBinContent(39,26);
   ResoRow19->SetBinContent(40,32);
   ResoRow19->SetBinContent(41,34);
   ResoRow19->SetBinContent(42,34);
   ResoRow19->SetBinContent(43,28);
   ResoRow19->SetBinContent(44,32);
   ResoRow19->SetBinContent(45,44);
   ResoRow19->SetBinContent(46,38);
   ResoRow19->SetBinContent(47,38);
   ResoRow19->SetBinContent(48,37);
   ResoRow19->SetBinContent(49,25);
   ResoRow19->SetBinContent(50,35);
   ResoRow19->SetBinContent(51,41);
   ResoRow19->SetBinContent(52,35);
   ResoRow19->SetBinContent(53,36);
   ResoRow19->SetBinContent(54,44);
   ResoRow19->SetBinContent(55,37);
   ResoRow19->SetBinContent(56,38);
   ResoRow19->SetBinContent(57,33);
   ResoRow19->SetBinContent(58,34);
   ResoRow19->SetBinContent(59,34);
   ResoRow19->SetBinContent(60,35);
   ResoRow19->SetBinContent(61,27);
   ResoRow19->SetBinContent(62,27);
   ResoRow19->SetBinContent(63,19);
   ResoRow19->SetBinContent(64,24);
   ResoRow19->SetBinContent(65,27);
   ResoRow19->SetBinContent(66,19);
   ResoRow19->SetBinContent(67,25);
   ResoRow19->SetBinContent(68,17);
   ResoRow19->SetBinContent(69,15);
   ResoRow19->SetBinContent(70,15);
   ResoRow19->SetBinContent(71,14);
   ResoRow19->SetBinContent(72,16);
   ResoRow19->SetBinContent(73,25);
   ResoRow19->SetBinContent(74,14);
   ResoRow19->SetBinContent(75,11);
   ResoRow19->SetBinContent(76,16);
   ResoRow19->SetBinContent(77,14);
   ResoRow19->SetBinContent(78,7);
   ResoRow19->SetBinContent(79,4);
   ResoRow19->SetBinContent(80,9);
   ResoRow19->SetBinContent(81,7);
   ResoRow19->SetBinContent(82,5);
   ResoRow19->SetBinContent(83,3);
   ResoRow19->SetBinContent(84,10);
   ResoRow19->SetBinContent(85,2);
   ResoRow19->SetBinContent(86,5);
   ResoRow19->SetBinContent(87,6);
   ResoRow19->SetBinContent(88,5);
   ResoRow19->SetBinContent(89,3);
   ResoRow19->SetBinContent(90,7);
   ResoRow19->SetBinContent(91,3);
   ResoRow19->SetBinContent(92,2);
   ResoRow19->SetBinContent(93,2);
   ResoRow19->SetBinContent(94,3);
   ResoRow19->SetBinContent(95,1);
   ResoRow19->SetBinContent(97,2);
   ResoRow19->SetBinContent(99,1);
   ResoRow19->SetBinContent(100,2);
   ResoRow19->SetBinContent(101,36);
   ResoRow19->SetEntries(1620);
   
   TF1 *ResoRowFit19 = new TF1("ResoRowFit19","gaus",-1,1);
   ResoRowFit19->SetFillColor(19);
   ResoRowFit19->SetFillStyle(0);
   ResoRowFit19->SetLineWidth(3);
   ResoRowFit19->SetChisquare(75.78583);
   ResoRowFit19->SetNDF(95);
   ResoRowFit19->SetParameter(0,34.28136);
   ResoRowFit19->SetParError(0,1.169589);
   ResoRowFit19->SetParLimits(0,0,0);
   ResoRowFit19->SetParameter(1,-0.01033488);
   ResoRowFit19->SetParError(1,0.009217388);
   ResoRowFit19->SetParLimits(1,0,0);
   ResoRowFit19->SetParameter(2,0.3462638);
   ResoRowFit19->SetParError(2,0.007994915);
   ResoRowFit19->SetParLimits(2,0,3.508976);
   ResoRow19->GetListOfFunctions()->Add(ResoRowFit19);
   
   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("ResoRow19");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1620   ");
   text = ptstats->AddText("Mean  = -0.005203");
   text = ptstats->AddText("RMS   = 0.3507");
   text = ptstats->AddText("#chi^{2} / ndf = 75.79 / 95");
   text = ptstats->AddText("Constant = 34.28 #pm 1.17 ");
   text = ptstats->AddText("Mean     = -0.01033 #pm 0.00922 ");
   text = ptstats->AddText("Sigma    = 0.3463 #pm 0.0080 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow19->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow19->GetListOfFunctions());
   ResoRow19->GetXaxis()->SetTitle("residual / mm");
   ResoRow19->GetYaxis()->SetTitle("counts");
   ResoRow19->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,-6.5625,1.25,59.0625);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow20 = new TH1F("ResoRow20","",100,-1,1);
   ResoRow20->SetBinContent(0,21);
   ResoRow20->SetBinContent(1,2);
   ResoRow20->SetBinContent(3,1);
   ResoRow20->SetBinContent(4,1);
   ResoRow20->SetBinContent(5,1);
   ResoRow20->SetBinContent(6,2);
   ResoRow20->SetBinContent(8,3);
   ResoRow20->SetBinContent(9,1);
   ResoRow20->SetBinContent(10,5);
   ResoRow20->SetBinContent(11,1);
   ResoRow20->SetBinContent(12,2);
   ResoRow20->SetBinContent(13,5);
   ResoRow20->SetBinContent(14,4);
   ResoRow20->SetBinContent(15,7);
   ResoRow20->SetBinContent(16,4);
   ResoRow20->SetBinContent(17,3);
   ResoRow20->SetBinContent(18,6);
   ResoRow20->SetBinContent(19,8);
   ResoRow20->SetBinContent(20,13);
   ResoRow20->SetBinContent(21,7);
   ResoRow20->SetBinContent(22,8);
   ResoRow20->SetBinContent(23,10);
   ResoRow20->SetBinContent(24,6);
   ResoRow20->SetBinContent(25,13);
   ResoRow20->SetBinContent(26,7);
   ResoRow20->SetBinContent(27,15);
   ResoRow20->SetBinContent(28,11);
   ResoRow20->SetBinContent(29,8);
   ResoRow20->SetBinContent(30,15);
   ResoRow20->SetBinContent(31,26);
   ResoRow20->SetBinContent(32,16);
   ResoRow20->SetBinContent(33,14);
   ResoRow20->SetBinContent(34,18);
   ResoRow20->SetBinContent(35,30);
   ResoRow20->SetBinContent(36,27);
   ResoRow20->SetBinContent(37,30);
   ResoRow20->SetBinContent(38,29);
   ResoRow20->SetBinContent(39,34);
   ResoRow20->SetBinContent(40,32);
   ResoRow20->SetBinContent(41,32);
   ResoRow20->SetBinContent(42,39);
   ResoRow20->SetBinContent(43,23);
   ResoRow20->SetBinContent(44,48);
   ResoRow20->SetBinContent(45,41);
   ResoRow20->SetBinContent(46,30);
   ResoRow20->SetBinContent(47,49);
   ResoRow20->SetBinContent(48,33);
   ResoRow20->SetBinContent(49,43);
   ResoRow20->SetBinContent(50,39);
   ResoRow20->SetBinContent(51,50);
   ResoRow20->SetBinContent(52,29);
   ResoRow20->SetBinContent(53,41);
   ResoRow20->SetBinContent(54,42);
   ResoRow20->SetBinContent(55,36);
   ResoRow20->SetBinContent(56,25);
   ResoRow20->SetBinContent(57,29);
   ResoRow20->SetBinContent(58,38);
   ResoRow20->SetBinContent(59,44);
   ResoRow20->SetBinContent(60,26);
   ResoRow20->SetBinContent(61,26);
   ResoRow20->SetBinContent(62,29);
   ResoRow20->SetBinContent(63,30);
   ResoRow20->SetBinContent(64,24);
   ResoRow20->SetBinContent(65,22);
   ResoRow20->SetBinContent(66,20);
   ResoRow20->SetBinContent(67,22);
   ResoRow20->SetBinContent(68,22);
   ResoRow20->SetBinContent(69,20);
   ResoRow20->SetBinContent(70,13);
   ResoRow20->SetBinContent(71,8);
   ResoRow20->SetBinContent(72,12);
   ResoRow20->SetBinContent(73,12);
   ResoRow20->SetBinContent(74,13);
   ResoRow20->SetBinContent(75,11);
   ResoRow20->SetBinContent(76,11);
   ResoRow20->SetBinContent(77,10);
   ResoRow20->SetBinContent(78,9);
   ResoRow20->SetBinContent(79,7);
   ResoRow20->SetBinContent(80,5);
   ResoRow20->SetBinContent(81,8);
   ResoRow20->SetBinContent(82,6);
   ResoRow20->SetBinContent(83,4);
   ResoRow20->SetBinContent(84,6);
   ResoRow20->SetBinContent(85,2);
   ResoRow20->SetBinContent(86,9);
   ResoRow20->SetBinContent(87,4);
   ResoRow20->SetBinContent(88,4);
   ResoRow20->SetBinContent(89,1);
   ResoRow20->SetBinContent(91,4);
   ResoRow20->SetBinContent(92,4);
   ResoRow20->SetBinContent(93,2);
   ResoRow20->SetBinContent(94,3);
   ResoRow20->SetBinContent(96,2);
   ResoRow20->SetBinContent(97,2);
   ResoRow20->SetBinContent(98,4);
   ResoRow20->SetBinContent(99,2);
   ResoRow20->SetBinContent(101,44);
   ResoRow20->SetEntries(1620);
   
   TF1 *ResoRowFit20 = new TF1("ResoRowFit20","gaus",-1,1);
   ResoRowFit20->SetFillColor(19);
   ResoRowFit20->SetFillStyle(0);
   ResoRowFit20->SetLineWidth(3);
   ResoRowFit20->SetChisquare(105.5756);
   ResoRowFit20->SetNDF(92);
   ResoRowFit20->SetParameter(0,36.12958);
   ResoRowFit20->SetParError(0,1.265007);
   ResoRowFit20->SetParLimits(0,0,0);
   ResoRowFit20->SetParameter(1,-0.006262938);
   ResoRowFit20->SetParError(1,0.008622066);
   ResoRowFit20->SetParLimits(1,0,0);
   ResoRowFit20->SetParameter(2,0.3216018);
   ResoRowFit20->SetParError(2,0.007733426);
   ResoRowFit20->SetParLimits(2,0,3.345125);
   ResoRow20->GetListOfFunctions()->Add(ResoRowFit20);
   
   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("ResoRow20");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1620   ");
   text = ptstats->AddText("Mean  = -0.006553");
   text = ptstats->AddText("RMS   = 0.3345");
   text = ptstats->AddText("#chi^{2} / ndf = 105.6 / 92");
   text = ptstats->AddText("Constant = 36.13 #pm 1.27 ");
   text = ptstats->AddText("Mean     = -0.006263 #pm 0.008622 ");
   text = ptstats->AddText("Sigma    = 0.3216 #pm 0.0077 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow20->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow20->GetListOfFunctions());
   ResoRow20->GetXaxis()->SetTitle("residual / mm");
   ResoRow20->GetYaxis()->SetTitle("counts");
   ResoRow20->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,-6.3,1.25,56.7);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow21 = new TH1F("ResoRow21","",100,-1,1);
   ResoRow21->SetBinContent(0,33);
   ResoRow21->SetBinContent(3,2);
   ResoRow21->SetBinContent(4,2);
   ResoRow21->SetBinContent(5,2);
   ResoRow21->SetBinContent(7,2);
   ResoRow21->SetBinContent(8,1);
   ResoRow21->SetBinContent(9,4);
   ResoRow21->SetBinContent(10,3);
   ResoRow21->SetBinContent(11,3);
   ResoRow21->SetBinContent(12,5);
   ResoRow21->SetBinContent(13,5);
   ResoRow21->SetBinContent(14,11);
   ResoRow21->SetBinContent(15,2);
   ResoRow21->SetBinContent(16,4);
   ResoRow21->SetBinContent(17,9);
   ResoRow21->SetBinContent(18,5);
   ResoRow21->SetBinContent(19,7);
   ResoRow21->SetBinContent(20,5);
   ResoRow21->SetBinContent(21,12);
   ResoRow21->SetBinContent(22,9);
   ResoRow21->SetBinContent(23,6);
   ResoRow21->SetBinContent(24,8);
   ResoRow21->SetBinContent(25,10);
   ResoRow21->SetBinContent(26,3);
   ResoRow21->SetBinContent(27,9);
   ResoRow21->SetBinContent(28,9);
   ResoRow21->SetBinContent(29,21);
   ResoRow21->SetBinContent(30,15);
   ResoRow21->SetBinContent(31,22);
   ResoRow21->SetBinContent(32,16);
   ResoRow21->SetBinContent(33,22);
   ResoRow21->SetBinContent(34,23);
   ResoRow21->SetBinContent(35,22);
   ResoRow21->SetBinContent(36,22);
   ResoRow21->SetBinContent(37,17);
   ResoRow21->SetBinContent(38,19);
   ResoRow21->SetBinContent(39,24);
   ResoRow21->SetBinContent(40,32);
   ResoRow21->SetBinContent(41,34);
   ResoRow21->SetBinContent(42,40);
   ResoRow21->SetBinContent(43,40);
   ResoRow21->SetBinContent(44,30);
   ResoRow21->SetBinContent(45,43);
   ResoRow21->SetBinContent(46,46);
   ResoRow21->SetBinContent(47,43);
   ResoRow21->SetBinContent(48,34);
   ResoRow21->SetBinContent(49,41);
   ResoRow21->SetBinContent(50,43);
   ResoRow21->SetBinContent(51,39);
   ResoRow21->SetBinContent(52,38);
   ResoRow21->SetBinContent(53,48);
   ResoRow21->SetBinContent(54,40);
   ResoRow21->SetBinContent(55,29);
   ResoRow21->SetBinContent(56,37);
   ResoRow21->SetBinContent(57,29);
   ResoRow21->SetBinContent(58,34);
   ResoRow21->SetBinContent(59,35);
   ResoRow21->SetBinContent(60,34);
   ResoRow21->SetBinContent(61,29);
   ResoRow21->SetBinContent(62,29);
   ResoRow21->SetBinContent(63,32);
   ResoRow21->SetBinContent(64,18);
   ResoRow21->SetBinContent(65,25);
   ResoRow21->SetBinContent(66,24);
   ResoRow21->SetBinContent(67,13);
   ResoRow21->SetBinContent(68,14);
   ResoRow21->SetBinContent(69,19);
   ResoRow21->SetBinContent(70,17);
   ResoRow21->SetBinContent(71,6);
   ResoRow21->SetBinContent(72,17);
   ResoRow21->SetBinContent(73,17);
   ResoRow21->SetBinContent(74,9);
   ResoRow21->SetBinContent(75,11);
   ResoRow21->SetBinContent(76,7);
   ResoRow21->SetBinContent(77,3);
   ResoRow21->SetBinContent(78,12);
   ResoRow21->SetBinContent(79,7);
   ResoRow21->SetBinContent(80,6);
   ResoRow21->SetBinContent(81,7);
   ResoRow21->SetBinContent(82,4);
   ResoRow21->SetBinContent(83,7);
   ResoRow21->SetBinContent(84,3);
   ResoRow21->SetBinContent(85,5);
   ResoRow21->SetBinContent(86,2);
   ResoRow21->SetBinContent(87,7);
   ResoRow21->SetBinContent(88,4);
   ResoRow21->SetBinContent(89,5);
   ResoRow21->SetBinContent(90,2);
   ResoRow21->SetBinContent(91,5);
   ResoRow21->SetBinContent(92,2);
   ResoRow21->SetBinContent(93,4);
   ResoRow21->SetBinContent(94,1);
   ResoRow21->SetBinContent(95,2);
   ResoRow21->SetBinContent(96,1);
   ResoRow21->SetBinContent(97,3);
   ResoRow21->SetBinContent(98,4);
   ResoRow21->SetBinContent(99,2);
   ResoRow21->SetBinContent(100,2);
   ResoRow21->SetBinContent(101,50);
   ResoRow21->SetEntries(1620);
   
   TF1 *ResoRowFit21 = new TF1("ResoRowFit21","gaus",-1,1);
   ResoRowFit21->SetFillColor(19);
   ResoRowFit21->SetFillStyle(0);
   ResoRowFit21->SetLineWidth(3);
   ResoRowFit21->SetChisquare(143.449);
   ResoRowFit21->SetNDF(94);
   ResoRowFit21->SetParameter(0,36.2329);
   ResoRowFit21->SetParError(0,1.384324);
   ResoRowFit21->SetParLimits(0,0,0);
   ResoRowFit21->SetParameter(1,-0.006624541);
   ResoRowFit21->SetParError(1,0.008317204);
   ResoRowFit21->SetParLimits(1,0,0);
   ResoRowFit21->SetParameter(2,0.3074613);
   ResoRowFit21->SetParError(2,0.008537394);
   ResoRowFit21->SetParLimits(2,0,3.40282);
   ResoRow21->GetListOfFunctions()->Add(ResoRowFit21);
   
   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("ResoRow21");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1620   ");
   text = ptstats->AddText("Mean  = -0.004258");
   text = ptstats->AddText("RMS   = 0.3403");
   text = ptstats->AddText("#chi^{2} / ndf = 143.4 / 94");
   text = ptstats->AddText("Constant = 36.23 #pm 1.38 ");
   text = ptstats->AddText("Mean     = -0.006625 #pm 0.008317 ");
   text = ptstats->AddText("Sigma    = 0.3075 #pm 0.0085 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow21->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow21->GetListOfFunctions());
   ResoRow21->GetXaxis()->SetTitle("residual / mm");
   ResoRow21->GetYaxis()->SetTitle("counts");
   ResoRow21->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,-5.775,1.25,51.975);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow22 = new TH1F("ResoRow22","",100,-1,1);
   ResoRow22->SetBinContent(0,24);
   ResoRow22->SetBinContent(1,3);
   ResoRow22->SetBinContent(3,4);
   ResoRow22->SetBinContent(4,2);
   ResoRow22->SetBinContent(5,3);
   ResoRow22->SetBinContent(6,2);
   ResoRow22->SetBinContent(7,4);
   ResoRow22->SetBinContent(8,4);
   ResoRow22->SetBinContent(9,1);
   ResoRow22->SetBinContent(10,4);
   ResoRow22->SetBinContent(11,5);
   ResoRow22->SetBinContent(12,1);
   ResoRow22->SetBinContent(13,2);
   ResoRow22->SetBinContent(14,8);
   ResoRow22->SetBinContent(15,5);
   ResoRow22->SetBinContent(16,5);
   ResoRow22->SetBinContent(17,4);
   ResoRow22->SetBinContent(18,5);
   ResoRow22->SetBinContent(19,5);
   ResoRow22->SetBinContent(20,9);
   ResoRow22->SetBinContent(21,6);
   ResoRow22->SetBinContent(22,9);
   ResoRow22->SetBinContent(23,8);
   ResoRow22->SetBinContent(24,12);
   ResoRow22->SetBinContent(25,12);
   ResoRow22->SetBinContent(26,9);
   ResoRow22->SetBinContent(27,17);
   ResoRow22->SetBinContent(28,21);
   ResoRow22->SetBinContent(29,11);
   ResoRow22->SetBinContent(30,14);
   ResoRow22->SetBinContent(31,14);
   ResoRow22->SetBinContent(32,20);
   ResoRow22->SetBinContent(33,22);
   ResoRow22->SetBinContent(34,19);
   ResoRow22->SetBinContent(35,19);
   ResoRow22->SetBinContent(36,26);
   ResoRow22->SetBinContent(37,35);
   ResoRow22->SetBinContent(38,30);
   ResoRow22->SetBinContent(39,29);
   ResoRow22->SetBinContent(40,35);
   ResoRow22->SetBinContent(41,29);
   ResoRow22->SetBinContent(42,25);
   ResoRow22->SetBinContent(43,33);
   ResoRow22->SetBinContent(44,44);
   ResoRow22->SetBinContent(45,33);
   ResoRow22->SetBinContent(46,40);
   ResoRow22->SetBinContent(47,31);
   ResoRow22->SetBinContent(48,38);
   ResoRow22->SetBinContent(49,42);
   ResoRow22->SetBinContent(50,35);
   ResoRow22->SetBinContent(51,38);
   ResoRow22->SetBinContent(52,41);
   ResoRow22->SetBinContent(53,37);
   ResoRow22->SetBinContent(54,28);
   ResoRow22->SetBinContent(55,39);
   ResoRow22->SetBinContent(56,30);
   ResoRow22->SetBinContent(57,40);
   ResoRow22->SetBinContent(58,27);
   ResoRow22->SetBinContent(59,34);
   ResoRow22->SetBinContent(60,35);
   ResoRow22->SetBinContent(61,22);
   ResoRow22->SetBinContent(62,30);
   ResoRow22->SetBinContent(63,25);
   ResoRow22->SetBinContent(64,34);
   ResoRow22->SetBinContent(65,26);
   ResoRow22->SetBinContent(66,22);
   ResoRow22->SetBinContent(67,15);
   ResoRow22->SetBinContent(68,21);
   ResoRow22->SetBinContent(69,22);
   ResoRow22->SetBinContent(70,17);
   ResoRow22->SetBinContent(71,16);
   ResoRow22->SetBinContent(72,17);
   ResoRow22->SetBinContent(73,6);
   ResoRow22->SetBinContent(74,15);
   ResoRow22->SetBinContent(75,10);
   ResoRow22->SetBinContent(76,7);
   ResoRow22->SetBinContent(77,7);
   ResoRow22->SetBinContent(78,9);
   ResoRow22->SetBinContent(79,12);
   ResoRow22->SetBinContent(80,10);
   ResoRow22->SetBinContent(81,10);
   ResoRow22->SetBinContent(82,6);
   ResoRow22->SetBinContent(83,6);
   ResoRow22->SetBinContent(84,4);
   ResoRow22->SetBinContent(85,6);
   ResoRow22->SetBinContent(86,1);
   ResoRow22->SetBinContent(87,3);
   ResoRow22->SetBinContent(88,7);
   ResoRow22->SetBinContent(89,1);
   ResoRow22->SetBinContent(90,3);
   ResoRow22->SetBinContent(91,5);
   ResoRow22->SetBinContent(92,4);
   ResoRow22->SetBinContent(93,1);
   ResoRow22->SetBinContent(94,2);
   ResoRow22->SetBinContent(95,1);
   ResoRow22->SetBinContent(96,1);
   ResoRow22->SetBinContent(97,5);
   ResoRow22->SetBinContent(99,4);
   ResoRow22->SetBinContent(100,3);
   ResoRow22->SetBinContent(101,37);
   ResoRow22->SetEntries(1620);
   
   TF1 *ResoRowFit22 = new TF1("ResoRowFit22","gaus",-1,1);
   ResoRowFit22->SetFillColor(19);
   ResoRowFit22->SetFillStyle(0);
   ResoRowFit22->SetLineWidth(3);
   ResoRowFit22->SetChisquare(99.07848);
   ResoRowFit22->SetNDF(95);
   ResoRowFit22->SetParameter(0,35.63449);
   ResoRowFit22->SetParError(0,1.212795);
   ResoRowFit22->SetParLimits(0,0,0);
   ResoRowFit22->SetParameter(1,-0.01181504);
   ResoRowFit22->SetParError(1,0.008707913);
   ResoRowFit22->SetParLimits(1,0,0);
   ResoRowFit22->SetParameter(2,0.3278614);
   ResoRowFit22->SetParError(2,0.007339901);
   ResoRowFit22->SetParLimits(2,0,3.520435);
   ResoRow22->GetListOfFunctions()->Add(ResoRowFit22);
   
   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("ResoRow22");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1620   ");
   text = ptstats->AddText("Mean  = -0.006225");
   text = ptstats->AddText("RMS   = 0.3519");
   text = ptstats->AddText("#chi^{2} / ndf = 99.08 / 95");
   text = ptstats->AddText("Constant = 35.63 #pm 1.21 ");
   text = ptstats->AddText("Mean     = -0.01182 #pm 0.00871 ");
   text = ptstats->AddText("Sigma    = 0.3279 #pm 0.0073 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow22->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow22->GetListOfFunctions());
   ResoRow22->GetXaxis()->SetTitle("residual / mm");
   ResoRow22->GetYaxis()->SetTitle("counts");
   ResoRow22->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,-6.16875,1.25,55.51875);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   c2_6->Modified();
   c2->cd();
   c2->Modified();
   c2->cd();
   c2->SetSelected(c2);
}
