{
//=========Macro generated from canvas: c2/
//=========  (Mon Jun  7 22:28:38 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,-9.84375,1.25,88.59375);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow19 = new TH1F("ResoRow19","",100,-1,1);
   ResoRow19->SetBinContent(0,18);
   ResoRow19->SetBinContent(4,1);
   ResoRow19->SetBinContent(8,1);
   ResoRow19->SetBinContent(9,2);
   ResoRow19->SetBinContent(10,2);
   ResoRow19->SetBinContent(11,1);
   ResoRow19->SetBinContent(12,3);
   ResoRow19->SetBinContent(13,1);
   ResoRow19->SetBinContent(15,1);
   ResoRow19->SetBinContent(16,2);
   ResoRow19->SetBinContent(18,2);
   ResoRow19->SetBinContent(19,3);
   ResoRow19->SetBinContent(20,4);
   ResoRow19->SetBinContent(21,2);
   ResoRow19->SetBinContent(22,1);
   ResoRow19->SetBinContent(23,2);
   ResoRow19->SetBinContent(24,2);
   ResoRow19->SetBinContent(25,2);
   ResoRow19->SetBinContent(26,3);
   ResoRow19->SetBinContent(27,4);
   ResoRow19->SetBinContent(28,7);
   ResoRow19->SetBinContent(29,12);
   ResoRow19->SetBinContent(30,14);
   ResoRow19->SetBinContent(31,10);
   ResoRow19->SetBinContent(32,10);
   ResoRow19->SetBinContent(33,11);
   ResoRow19->SetBinContent(34,11);
   ResoRow19->SetBinContent(35,17);
   ResoRow19->SetBinContent(36,26);
   ResoRow19->SetBinContent(37,22);
   ResoRow19->SetBinContent(38,23);
   ResoRow19->SetBinContent(39,27);
   ResoRow19->SetBinContent(40,33);
   ResoRow19->SetBinContent(41,30);
   ResoRow19->SetBinContent(42,48);
   ResoRow19->SetBinContent(43,44);
   ResoRow19->SetBinContent(44,48);
   ResoRow19->SetBinContent(45,52);
   ResoRow19->SetBinContent(46,59);
   ResoRow19->SetBinContent(47,55);
   ResoRow19->SetBinContent(48,60);
   ResoRow19->SetBinContent(49,75);
   ResoRow19->SetBinContent(50,58);
   ResoRow19->SetBinContent(51,62);
   ResoRow19->SetBinContent(52,60);
   ResoRow19->SetBinContent(53,66);
   ResoRow19->SetBinContent(54,65);
   ResoRow19->SetBinContent(55,54);
   ResoRow19->SetBinContent(56,51);
   ResoRow19->SetBinContent(57,49);
   ResoRow19->SetBinContent(58,38);
   ResoRow19->SetBinContent(59,45);
   ResoRow19->SetBinContent(60,43);
   ResoRow19->SetBinContent(61,34);
   ResoRow19->SetBinContent(62,27);
   ResoRow19->SetBinContent(63,24);
   ResoRow19->SetBinContent(64,23);
   ResoRow19->SetBinContent(65,17);
   ResoRow19->SetBinContent(66,21);
   ResoRow19->SetBinContent(67,13);
   ResoRow19->SetBinContent(68,14);
   ResoRow19->SetBinContent(69,16);
   ResoRow19->SetBinContent(70,4);
   ResoRow19->SetBinContent(71,11);
   ResoRow19->SetBinContent(72,11);
   ResoRow19->SetBinContent(73,10);
   ResoRow19->SetBinContent(74,4);
   ResoRow19->SetBinContent(75,3);
   ResoRow19->SetBinContent(76,4);
   ResoRow19->SetBinContent(77,4);
   ResoRow19->SetBinContent(78,3);
   ResoRow19->SetBinContent(79,1);
   ResoRow19->SetBinContent(81,4);
   ResoRow19->SetBinContent(82,1);
   ResoRow19->SetBinContent(83,3);
   ResoRow19->SetBinContent(84,2);
   ResoRow19->SetBinContent(85,1);
   ResoRow19->SetBinContent(86,1);
   ResoRow19->SetBinContent(87,1);
   ResoRow19->SetBinContent(89,2);
   ResoRow19->SetBinContent(90,2);
   ResoRow19->SetBinContent(93,1);
   ResoRow19->SetBinContent(95,1);
   ResoRow19->SetBinContent(101,22);
   ResoRow19->SetEntries(1627);
   
   TF1 *ResoRowFit19 = new TF1("ResoRowFit19","gaus",-1,1);
   ResoRowFit19->SetFillColor(19);
   ResoRowFit19->SetFillStyle(0);
   ResoRowFit19->SetLineWidth(3);
   ResoRowFit19->SetChisquare(78.85589);
   ResoRowFit19->SetNDF(79);
   ResoRowFit19->SetParameter(0,59.20555);
   ResoRowFit19->SetParError(0,2.029479);
   ResoRowFit19->SetParLimits(0,0,0);
   ResoRowFit19->SetParameter(1,0.0007015674);
   ResoRowFit19->SetParError(1,0.005259733);
   ResoRowFit19->SetParLimits(1,0,0);
   ResoRowFit19->SetParameter(2,0.2034308);
   ResoRowFit19->SetParError(2,0.004639032);
   ResoRowFit19->SetParLimits(2,0,2.322639);
   ResoRow19->GetListOfFunctions()->Add(ResoRowFit19);
   
   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("ResoRow19");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1627   ");
   text = ptstats->AddText("Mean  = 0.0001075");
   text = ptstats->AddText("RMS   = 0.2321");
   text = ptstats->AddText("#chi^{2} / ndf = 78.86 / 79");
   text = ptstats->AddText("Constant = 59.21 #pm 2.03 ");
   text = ptstats->AddText("Mean     = 0.0007016 #pm 0.0052597 ");
   text = ptstats->AddText("Sigma    = 0.2034 #pm 0.0046 ");
   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_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,-10.2375,1.25,92.1375);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow20 = new TH1F("ResoRow20","",100,-1,1);
   ResoRow20->SetBinContent(0,21);
   ResoRow20->SetBinContent(2,1);
   ResoRow20->SetBinContent(3,1);
   ResoRow20->SetBinContent(5,2);
   ResoRow20->SetBinContent(7,1);
   ResoRow20->SetBinContent(9,2);
   ResoRow20->SetBinContent(11,1);
   ResoRow20->SetBinContent(13,1);
   ResoRow20->SetBinContent(14,1);
   ResoRow20->SetBinContent(15,4);
   ResoRow20->SetBinContent(16,1);
   ResoRow20->SetBinContent(17,1);
   ResoRow20->SetBinContent(18,5);
   ResoRow20->SetBinContent(19,2);
   ResoRow20->SetBinContent(20,2);
   ResoRow20->SetBinContent(21,2);
   ResoRow20->SetBinContent(22,2);
   ResoRow20->SetBinContent(23,1);
   ResoRow20->SetBinContent(24,4);
   ResoRow20->SetBinContent(25,3);
   ResoRow20->SetBinContent(26,4);
   ResoRow20->SetBinContent(27,6);
   ResoRow20->SetBinContent(28,9);
   ResoRow20->SetBinContent(29,4);
   ResoRow20->SetBinContent(30,9);
   ResoRow20->SetBinContent(31,7);
   ResoRow20->SetBinContent(32,8);
   ResoRow20->SetBinContent(33,11);
   ResoRow20->SetBinContent(34,17);
   ResoRow20->SetBinContent(35,22);
   ResoRow20->SetBinContent(36,19);
   ResoRow20->SetBinContent(37,25);
   ResoRow20->SetBinContent(38,24);
   ResoRow20->SetBinContent(39,24);
   ResoRow20->SetBinContent(40,31);
   ResoRow20->SetBinContent(41,37);
   ResoRow20->SetBinContent(42,48);
   ResoRow20->SetBinContent(43,37);
   ResoRow20->SetBinContent(44,53);
   ResoRow20->SetBinContent(45,41);
   ResoRow20->SetBinContent(46,66);
   ResoRow20->SetBinContent(47,64);
   ResoRow20->SetBinContent(48,58);
   ResoRow20->SetBinContent(49,78);
   ResoRow20->SetBinContent(50,64);
   ResoRow20->SetBinContent(51,67);
   ResoRow20->SetBinContent(52,62);
   ResoRow20->SetBinContent(53,63);
   ResoRow20->SetBinContent(54,49);
   ResoRow20->SetBinContent(55,64);
   ResoRow20->SetBinContent(56,60);
   ResoRow20->SetBinContent(57,47);
   ResoRow20->SetBinContent(58,44);
   ResoRow20->SetBinContent(59,37);
   ResoRow20->SetBinContent(60,33);
   ResoRow20->SetBinContent(61,26);
   ResoRow20->SetBinContent(62,26);
   ResoRow20->SetBinContent(63,36);
   ResoRow20->SetBinContent(64,22);
   ResoRow20->SetBinContent(65,21);
   ResoRow20->SetBinContent(66,13);
   ResoRow20->SetBinContent(67,19);
   ResoRow20->SetBinContent(68,14);
   ResoRow20->SetBinContent(69,11);
   ResoRow20->SetBinContent(70,10);
   ResoRow20->SetBinContent(71,6);
   ResoRow20->SetBinContent(72,7);
   ResoRow20->SetBinContent(73,6);
   ResoRow20->SetBinContent(74,3);
   ResoRow20->SetBinContent(75,2);
   ResoRow20->SetBinContent(76,3);
   ResoRow20->SetBinContent(77,5);
   ResoRow20->SetBinContent(78,4);
   ResoRow20->SetBinContent(79,2);
   ResoRow20->SetBinContent(80,3);
   ResoRow20->SetBinContent(81,1);
   ResoRow20->SetBinContent(82,2);
   ResoRow20->SetBinContent(83,3);
   ResoRow20->SetBinContent(84,1);
   ResoRow20->SetBinContent(87,1);
   ResoRow20->SetBinContent(91,1);
   ResoRow20->SetBinContent(93,2);
   ResoRow20->SetBinContent(96,2);
   ResoRow20->SetBinContent(98,1);
   ResoRow20->SetBinContent(99,1);
   ResoRow20->SetBinContent(101,23);
   ResoRow20->SetEntries(1627);
   
   TF1 *ResoRowFit20 = new TF1("ResoRowFit20","gaus",-1,1);
   ResoRowFit20->SetFillColor(19);
   ResoRowFit20->SetFillStyle(0);
   ResoRowFit20->SetLineWidth(3);
   ResoRowFit20->SetChisquare(83.03858);
   ResoRowFit20->SetNDF(81);
   ResoRowFit20->SetParameter(0,59.58495);
   ResoRowFit20->SetParError(0,2.048025);
   ResoRowFit20->SetParLimits(0,0,0);
   ResoRowFit20->SetParameter(1,-9.786138e-05);
   ResoRowFit20->SetParError(1,0.005198556);
   ResoRowFit20->SetParLimits(1,0,0);
   ResoRowFit20->SetParameter(2,0.2009212);
   ResoRowFit20->SetParError(2,0.004575706);
   ResoRowFit20->SetParLimits(2,0,2.325374);
   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 = 1627   ");
   text = ptstats->AddText("Mean  = -0.004119");
   text = ptstats->AddText("RMS   = 0.2326");
   text = ptstats->AddText("#chi^{2} / ndf = 83.04 / 81");
   text = ptstats->AddText("Constant = 59.58 #pm 2.05 ");
   text = ptstats->AddText("Mean     = -9.786e-05 #pm 5.199e-03 ");
   text = ptstats->AddText("Sigma    = 0.2009 #pm 0.0046 ");
   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_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,-10.36875,1.25,93.31875);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow21 = new TH1F("ResoRow21","",100,-1,1);
   ResoRow21->SetBinContent(0,19);
   ResoRow21->SetBinContent(1,1);
   ResoRow21->SetBinContent(6,1);
   ResoRow21->SetBinContent(10,2);
   ResoRow21->SetBinContent(12,1);
   ResoRow21->SetBinContent(13,1);
   ResoRow21->SetBinContent(14,7);
   ResoRow21->SetBinContent(15,2);
   ResoRow21->SetBinContent(16,3);
   ResoRow21->SetBinContent(17,1);
   ResoRow21->SetBinContent(18,1);
   ResoRow21->SetBinContent(19,1);
   ResoRow21->SetBinContent(20,1);
   ResoRow21->SetBinContent(21,2);
   ResoRow21->SetBinContent(22,1);
   ResoRow21->SetBinContent(23,4);
   ResoRow21->SetBinContent(24,1);
   ResoRow21->SetBinContent(25,6);
   ResoRow21->SetBinContent(26,9);
   ResoRow21->SetBinContent(27,8);
   ResoRow21->SetBinContent(28,10);
   ResoRow21->SetBinContent(29,4);
   ResoRow21->SetBinContent(30,10);
   ResoRow21->SetBinContent(31,12);
   ResoRow21->SetBinContent(32,15);
   ResoRow21->SetBinContent(33,11);
   ResoRow21->SetBinContent(34,13);
   ResoRow21->SetBinContent(35,19);
   ResoRow21->SetBinContent(36,18);
   ResoRow21->SetBinContent(37,21);
   ResoRow21->SetBinContent(38,23);
   ResoRow21->SetBinContent(39,28);
   ResoRow21->SetBinContent(40,36);
   ResoRow21->SetBinContent(41,35);
   ResoRow21->SetBinContent(42,37);
   ResoRow21->SetBinContent(43,54);
   ResoRow21->SetBinContent(44,53);
   ResoRow21->SetBinContent(45,45);
   ResoRow21->SetBinContent(46,64);
   ResoRow21->SetBinContent(47,59);
   ResoRow21->SetBinContent(48,67);
   ResoRow21->SetBinContent(49,68);
   ResoRow21->SetBinContent(50,62);
   ResoRow21->SetBinContent(51,66);
   ResoRow21->SetBinContent(52,79);
   ResoRow21->SetBinContent(53,61);
   ResoRow21->SetBinContent(54,53);
   ResoRow21->SetBinContent(55,49);
   ResoRow21->SetBinContent(56,44);
   ResoRow21->SetBinContent(57,34);
   ResoRow21->SetBinContent(58,45);
   ResoRow21->SetBinContent(59,49);
   ResoRow21->SetBinContent(60,38);
   ResoRow21->SetBinContent(61,28);
   ResoRow21->SetBinContent(62,24);
   ResoRow21->SetBinContent(63,22);
   ResoRow21->SetBinContent(64,21);
   ResoRow21->SetBinContent(65,26);
   ResoRow21->SetBinContent(66,16);
   ResoRow21->SetBinContent(67,23);
   ResoRow21->SetBinContent(68,10);
   ResoRow21->SetBinContent(69,12);
   ResoRow21->SetBinContent(70,8);
   ResoRow21->SetBinContent(71,11);
   ResoRow21->SetBinContent(72,6);
   ResoRow21->SetBinContent(73,4);
   ResoRow21->SetBinContent(74,8);
   ResoRow21->SetBinContent(75,3);
   ResoRow21->SetBinContent(76,3);
   ResoRow21->SetBinContent(77,6);
   ResoRow21->SetBinContent(78,3);
   ResoRow21->SetBinContent(80,3);
   ResoRow21->SetBinContent(81,1);
   ResoRow21->SetBinContent(82,1);
   ResoRow21->SetBinContent(83,1);
   ResoRow21->SetBinContent(84,1);
   ResoRow21->SetBinContent(85,3);
   ResoRow21->SetBinContent(86,3);
   ResoRow21->SetBinContent(89,2);
   ResoRow21->SetBinContent(90,1);
   ResoRow21->SetBinContent(94,1);
   ResoRow21->SetBinContent(96,1);
   ResoRow21->SetBinContent(101,21);
   ResoRow21->SetEntries(1627);
   
   TF1 *ResoRowFit21 = new TF1("ResoRowFit21","gaus",-1,1);
   ResoRowFit21->SetFillColor(19);
   ResoRowFit21->SetFillStyle(0);
   ResoRowFit21->SetLineWidth(3);
   ResoRowFit21->SetChisquare(91.38518);
   ResoRowFit21->SetNDF(78);
   ResoRowFit21->SetParameter(0,57.99458);
   ResoRowFit21->SetParError(0,2.005344);
   ResoRowFit21->SetParLimits(0,0,0);
   ResoRowFit21->SetParameter(1,-0.004026338);
   ResoRowFit21->SetParError(1,0.005361129);
   ResoRowFit21->SetParLimits(1,0,0);
   ResoRowFit21->SetParameter(2,0.205974);
   ResoRowFit21->SetParError(2,0.0047676);
   ResoRowFit21->SetParLimits(2,0,2.335969);
   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 = 1627   ");
   text = ptstats->AddText("Mean  = -0.008177");
   text = ptstats->AddText("RMS   = 0.2334");
   text = ptstats->AddText("#chi^{2} / ndf = 91.39 / 78");
   text = ptstats->AddText("Constant = 57.99 #pm 2.01 ");
   text = ptstats->AddText("Mean     = -0.004026 #pm 0.005361 ");
   text = ptstats->AddText("Sigma    = 0.206 #pm 0.005 ");
   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_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,-10.2375,1.25,92.1375);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow22 = new TH1F("ResoRow22","",100,-1,1);
   ResoRow22->SetBinContent(0,17);
   ResoRow22->SetBinContent(6,1);
   ResoRow22->SetBinContent(7,2);
   ResoRow22->SetBinContent(8,1);
   ResoRow22->SetBinContent(9,1);
   ResoRow22->SetBinContent(10,3);
   ResoRow22->SetBinContent(12,3);
   ResoRow22->SetBinContent(13,2);
   ResoRow22->SetBinContent(14,2);
   ResoRow22->SetBinContent(16,2);
   ResoRow22->SetBinContent(17,1);
   ResoRow22->SetBinContent(18,4);
   ResoRow22->SetBinContent(20,1);
   ResoRow22->SetBinContent(21,2);
   ResoRow22->SetBinContent(22,6);
   ResoRow22->SetBinContent(23,1);
   ResoRow22->SetBinContent(24,4);
   ResoRow22->SetBinContent(25,5);
   ResoRow22->SetBinContent(26,4);
   ResoRow22->SetBinContent(27,2);
   ResoRow22->SetBinContent(28,7);
   ResoRow22->SetBinContent(29,11);
   ResoRow22->SetBinContent(30,10);
   ResoRow22->SetBinContent(31,8);
   ResoRow22->SetBinContent(32,6);
   ResoRow22->SetBinContent(33,16);
   ResoRow22->SetBinContent(34,14);
   ResoRow22->SetBinContent(35,21);
   ResoRow22->SetBinContent(36,23);
   ResoRow22->SetBinContent(37,18);
   ResoRow22->SetBinContent(38,21);
   ResoRow22->SetBinContent(39,19);
   ResoRow22->SetBinContent(40,36);
   ResoRow22->SetBinContent(41,37);
   ResoRow22->SetBinContent(42,45);
   ResoRow22->SetBinContent(43,47);
   ResoRow22->SetBinContent(44,51);
   ResoRow22->SetBinContent(45,49);
   ResoRow22->SetBinContent(46,63);
   ResoRow22->SetBinContent(47,46);
   ResoRow22->SetBinContent(48,63);
   ResoRow22->SetBinContent(49,64);
   ResoRow22->SetBinContent(50,64);
   ResoRow22->SetBinContent(51,78);
   ResoRow22->SetBinContent(52,77);
   ResoRow22->SetBinContent(53,53);
   ResoRow22->SetBinContent(54,50);
   ResoRow22->SetBinContent(55,55);
   ResoRow22->SetBinContent(56,55);
   ResoRow22->SetBinContent(57,41);
   ResoRow22->SetBinContent(58,52);
   ResoRow22->SetBinContent(59,40);
   ResoRow22->SetBinContent(60,30);
   ResoRow22->SetBinContent(61,32);
   ResoRow22->SetBinContent(62,32);
   ResoRow22->SetBinContent(63,22);
   ResoRow22->SetBinContent(64,31);
   ResoRow22->SetBinContent(65,19);
   ResoRow22->SetBinContent(66,13);
   ResoRow22->SetBinContent(67,17);
   ResoRow22->SetBinContent(68,6);
   ResoRow22->SetBinContent(69,16);
   ResoRow22->SetBinContent(70,9);
   ResoRow22->SetBinContent(71,12);
   ResoRow22->SetBinContent(72,3);
   ResoRow22->SetBinContent(73,5);
   ResoRow22->SetBinContent(74,10);
   ResoRow22->SetBinContent(75,2);
   ResoRow22->SetBinContent(76,6);
   ResoRow22->SetBinContent(77,4);
   ResoRow22->SetBinContent(78,4);
   ResoRow22->SetBinContent(79,1);
   ResoRow22->SetBinContent(80,3);
   ResoRow22->SetBinContent(81,4);
   ResoRow22->SetBinContent(82,2);
   ResoRow22->SetBinContent(84,4);
   ResoRow22->SetBinContent(86,1);
   ResoRow22->SetBinContent(87,1);
   ResoRow22->SetBinContent(88,1);
   ResoRow22->SetBinContent(91,1);
   ResoRow22->SetBinContent(92,1);
   ResoRow22->SetBinContent(93,2);
   ResoRow22->SetBinContent(94,1);
   ResoRow22->SetBinContent(96,1);
   ResoRow22->SetBinContent(101,27);
   ResoRow22->SetEntries(1627);
   
   TF1 *ResoRowFit22 = new TF1("ResoRowFit22","gaus",-1,1);
   ResoRowFit22->SetFillColor(19);
   ResoRowFit22->SetFillStyle(0);
   ResoRowFit22->SetLineWidth(3);
   ResoRowFit22->SetChisquare(116.519);
   ResoRowFit22->SetNDF(80);
   ResoRowFit22->SetParameter(0,59.10859);
   ResoRowFit22->SetParError(0,2.07233);
   ResoRowFit22->SetParLimits(0,0,0);
   ResoRowFit22->SetParameter(1,-0.0007797326);
   ResoRowFit22->SetParError(1,0.00519062);
   ResoRowFit22->SetParLimits(1,0,0);
   ResoRowFit22->SetParameter(2,0.1980846);
   ResoRowFit22->SetParError(2,0.004664025);
   ResoRowFit22->SetParLimits(2,0,2.36854);
   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 = 1627   ");
   text = ptstats->AddText("Mean  = -0.001969");
   text = ptstats->AddText("RMS   = 0.2367");
   text = ptstats->AddText("#chi^{2} / ndf = 116.5 / 80");
   text = ptstats->AddText("Constant = 59.11 #pm 2.07 ");
   text = ptstats->AddText("Mean     = -0.0007797 #pm 0.0051906 ");
   text = ptstats->AddText("Sigma    = 0.1981 #pm 0.0047 ");
   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_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,-8.79375,1.25,79.14375);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   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,-10.2375,1.25,92.1375);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   c2_6->Modified();
   c2->cd();
   c2->Modified();
   c2->cd();
   c2->SetSelected(c2);
}
