{
//=========Macro generated from canvas: c2/
//=========  (Thu Jun 10 10:49:09 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,-8.00625,1.25,72.05625);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow07 = new TH1F("ResoRow07","",100,-1,1);
   ResoRow07->SetBinContent(0,17);
   ResoRow07->SetBinContent(3,3);
   ResoRow07->SetBinContent(6,1);
   ResoRow07->SetBinContent(8,1);
   ResoRow07->SetBinContent(10,4);
   ResoRow07->SetBinContent(11,4);
   ResoRow07->SetBinContent(12,1);
   ResoRow07->SetBinContent(13,5);
   ResoRow07->SetBinContent(14,1);
   ResoRow07->SetBinContent(15,5);
   ResoRow07->SetBinContent(16,1);
   ResoRow07->SetBinContent(17,2);
   ResoRow07->SetBinContent(18,3);
   ResoRow07->SetBinContent(19,4);
   ResoRow07->SetBinContent(20,3);
   ResoRow07->SetBinContent(21,3);
   ResoRow07->SetBinContent(22,2);
   ResoRow07->SetBinContent(23,6);
   ResoRow07->SetBinContent(24,10);
   ResoRow07->SetBinContent(25,9);
   ResoRow07->SetBinContent(26,11);
   ResoRow07->SetBinContent(27,11);
   ResoRow07->SetBinContent(28,12);
   ResoRow07->SetBinContent(29,9);
   ResoRow07->SetBinContent(30,16);
   ResoRow07->SetBinContent(31,8);
   ResoRow07->SetBinContent(32,15);
   ResoRow07->SetBinContent(33,20);
   ResoRow07->SetBinContent(34,15);
   ResoRow07->SetBinContent(35,23);
   ResoRow07->SetBinContent(36,17);
   ResoRow07->SetBinContent(37,16);
   ResoRow07->SetBinContent(38,30);
   ResoRow07->SetBinContent(39,29);
   ResoRow07->SetBinContent(40,39);
   ResoRow07->SetBinContent(41,28);
   ResoRow07->SetBinContent(42,30);
   ResoRow07->SetBinContent(43,34);
   ResoRow07->SetBinContent(44,40);
   ResoRow07->SetBinContent(45,36);
   ResoRow07->SetBinContent(46,40);
   ResoRow07->SetBinContent(47,54);
   ResoRow07->SetBinContent(48,61);
   ResoRow07->SetBinContent(49,41);
   ResoRow07->SetBinContent(50,48);
   ResoRow07->SetBinContent(51,45);
   ResoRow07->SetBinContent(52,32);
   ResoRow07->SetBinContent(53,47);
   ResoRow07->SetBinContent(54,42);
   ResoRow07->SetBinContent(55,39);
   ResoRow07->SetBinContent(56,37);
   ResoRow07->SetBinContent(57,43);
   ResoRow07->SetBinContent(58,31);
   ResoRow07->SetBinContent(59,32);
   ResoRow07->SetBinContent(60,42);
   ResoRow07->SetBinContent(61,34);
   ResoRow07->SetBinContent(62,31);
   ResoRow07->SetBinContent(63,34);
   ResoRow07->SetBinContent(64,21);
   ResoRow07->SetBinContent(65,21);
   ResoRow07->SetBinContent(66,15);
   ResoRow07->SetBinContent(67,17);
   ResoRow07->SetBinContent(68,20);
   ResoRow07->SetBinContent(69,7);
   ResoRow07->SetBinContent(70,18);
   ResoRow07->SetBinContent(71,11);
   ResoRow07->SetBinContent(72,10);
   ResoRow07->SetBinContent(73,11);
   ResoRow07->SetBinContent(74,11);
   ResoRow07->SetBinContent(75,1);
   ResoRow07->SetBinContent(76,6);
   ResoRow07->SetBinContent(77,6);
   ResoRow07->SetBinContent(78,4);
   ResoRow07->SetBinContent(79,3);
   ResoRow07->SetBinContent(80,6);
   ResoRow07->SetBinContent(81,5);
   ResoRow07->SetBinContent(82,2);
   ResoRow07->SetBinContent(83,2);
   ResoRow07->SetBinContent(84,4);
   ResoRow07->SetBinContent(86,3);
   ResoRow07->SetBinContent(87,1);
   ResoRow07->SetBinContent(88,2);
   ResoRow07->SetBinContent(89,2);
   ResoRow07->SetBinContent(90,4);
   ResoRow07->SetBinContent(91,2);
   ResoRow07->SetBinContent(92,3);
   ResoRow07->SetBinContent(94,2);
   ResoRow07->SetBinContent(95,2);
   ResoRow07->SetBinContent(97,1);
   ResoRow07->SetBinContent(101,28);
   ResoRow07->SetEntries(1508);
   
   TF1 *ResoRowFit07 = new TF1("ResoRowFit07","gaus",-1,1);
   ResoRowFit07->SetFillColor(19);
   ResoRowFit07->SetFillStyle(0);
   ResoRowFit07->SetLineWidth(3);
   ResoRowFit07->SetChisquare(129.2357);
   ResoRowFit07->SetNDF(85);
   ResoRowFit07->SetParameter(0,42.42593);
   ResoRowFit07->SetParError(0,1.548058);
   ResoRowFit07->SetParLimits(0,0,0);
   ResoRowFit07->SetParameter(1,-0.01339998);
   ResoRowFit07->SetParError(1,0.007001051);
   ResoRowFit07->SetParLimits(1,0,0);
   ResoRowFit07->SetParameter(2,0.2511508);
   ResoRowFit07->SetParError(2,0.006125738);
   ResoRowFit07->SetParLimits(2,0,2.888071);
   ResoRow07->GetListOfFunctions()->Add(ResoRowFit07);
   
   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("ResoRow07");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1508   ");
   text = ptstats->AddText("Mean  = -0.005954");
   text = ptstats->AddText("RMS   =  0.289");
   text = ptstats->AddText("#chi^{2} / ndf = 129.2 / 85");
   text = ptstats->AddText("Constant = 42.43 #pm 1.55 ");
   text = ptstats->AddText("Mean     = -0.0134 #pm 0.0070 ");
   text = ptstats->AddText("Sigma    = 0.2512 #pm 0.0061 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow07->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow07->GetListOfFunctions());
   ResoRow07->GetXaxis()->SetTitle("residual / mm");
   ResoRow07->GetYaxis()->SetTitle("counts");
   ResoRow07->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,-7.875,1.25,70.875);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow08 = new TH1F("ResoRow08","",100,-1,1);
   ResoRow08->SetBinContent(0,18);
   ResoRow08->SetBinContent(4,1);
   ResoRow08->SetBinContent(5,1);
   ResoRow08->SetBinContent(6,2);
   ResoRow08->SetBinContent(7,1);
   ResoRow08->SetBinContent(8,2);
   ResoRow08->SetBinContent(10,2);
   ResoRow08->SetBinContent(12,2);
   ResoRow08->SetBinContent(13,2);
   ResoRow08->SetBinContent(14,2);
   ResoRow08->SetBinContent(15,1);
   ResoRow08->SetBinContent(16,1);
   ResoRow08->SetBinContent(17,6);
   ResoRow08->SetBinContent(18,4);
   ResoRow08->SetBinContent(19,3);
   ResoRow08->SetBinContent(20,6);
   ResoRow08->SetBinContent(21,2);
   ResoRow08->SetBinContent(22,3);
   ResoRow08->SetBinContent(23,6);
   ResoRow08->SetBinContent(24,3);
   ResoRow08->SetBinContent(25,8);
   ResoRow08->SetBinContent(26,10);
   ResoRow08->SetBinContent(27,7);
   ResoRow08->SetBinContent(28,13);
   ResoRow08->SetBinContent(29,12);
   ResoRow08->SetBinContent(30,9);
   ResoRow08->SetBinContent(31,12);
   ResoRow08->SetBinContent(32,14);
   ResoRow08->SetBinContent(33,14);
   ResoRow08->SetBinContent(34,21);
   ResoRow08->SetBinContent(35,17);
   ResoRow08->SetBinContent(36,34);
   ResoRow08->SetBinContent(37,30);
   ResoRow08->SetBinContent(38,29);
   ResoRow08->SetBinContent(39,22);
   ResoRow08->SetBinContent(40,31);
   ResoRow08->SetBinContent(41,47);
   ResoRow08->SetBinContent(42,30);
   ResoRow08->SetBinContent(43,38);
   ResoRow08->SetBinContent(44,38);
   ResoRow08->SetBinContent(45,40);
   ResoRow08->SetBinContent(46,44);
   ResoRow08->SetBinContent(47,37);
   ResoRow08->SetBinContent(48,48);
   ResoRow08->SetBinContent(49,60);
   ResoRow08->SetBinContent(50,42);
   ResoRow08->SetBinContent(51,46);
   ResoRow08->SetBinContent(52,42);
   ResoRow08->SetBinContent(53,44);
   ResoRow08->SetBinContent(54,33);
   ResoRow08->SetBinContent(55,51);
   ResoRow08->SetBinContent(56,26);
   ResoRow08->SetBinContent(57,31);
   ResoRow08->SetBinContent(58,40);
   ResoRow08->SetBinContent(59,35);
   ResoRow08->SetBinContent(60,33);
   ResoRow08->SetBinContent(61,32);
   ResoRow08->SetBinContent(62,30);
   ResoRow08->SetBinContent(63,24);
   ResoRow08->SetBinContent(64,22);
   ResoRow08->SetBinContent(65,23);
   ResoRow08->SetBinContent(66,24);
   ResoRow08->SetBinContent(67,21);
   ResoRow08->SetBinContent(68,11);
   ResoRow08->SetBinContent(69,11);
   ResoRow08->SetBinContent(70,11);
   ResoRow08->SetBinContent(71,17);
   ResoRow08->SetBinContent(72,10);
   ResoRow08->SetBinContent(73,10);
   ResoRow08->SetBinContent(74,8);
   ResoRow08->SetBinContent(75,7);
   ResoRow08->SetBinContent(76,4);
   ResoRow08->SetBinContent(77,4);
   ResoRow08->SetBinContent(78,3);
   ResoRow08->SetBinContent(79,7);
   ResoRow08->SetBinContent(80,3);
   ResoRow08->SetBinContent(81,1);
   ResoRow08->SetBinContent(82,5);
   ResoRow08->SetBinContent(83,4);
   ResoRow08->SetBinContent(84,4);
   ResoRow08->SetBinContent(85,6);
   ResoRow08->SetBinContent(86,3);
   ResoRow08->SetBinContent(87,4);
   ResoRow08->SetBinContent(88,1);
   ResoRow08->SetBinContent(89,3);
   ResoRow08->SetBinContent(90,1);
   ResoRow08->SetBinContent(91,3);
   ResoRow08->SetBinContent(93,1);
   ResoRow08->SetBinContent(94,1);
   ResoRow08->SetBinContent(95,1);
   ResoRow08->SetBinContent(100,1);
   ResoRow08->SetBinContent(101,31);
   ResoRow08->SetEntries(1508);
   
   TF1 *ResoRowFit08 = new TF1("ResoRowFit08","gaus",-1,1);
   ResoRowFit08->SetFillColor(19);
   ResoRowFit08->SetFillStyle(0);
   ResoRowFit08->SetLineWidth(3);
   ResoRowFit08->SetChisquare(90.95439);
   ResoRowFit08->SetNDF(87);
   ResoRowFit08->SetParameter(0,41.956);
   ResoRowFit08->SetParError(0,1.486712);
   ResoRowFit08->SetParLimits(0,0,0);
   ResoRowFit08->SetParameter(1,-0.007803185);
   ResoRowFit08->SetParError(1,0.007086088);
   ResoRowFit08->SetParLimits(1,0,0);
   ResoRowFit08->SetParameter(2,0.2604548);
   ResoRowFit08->SetParError(2,0.00603295);
   ResoRowFit08->SetParLimits(2,0,2.850995);
   ResoRow08->GetListOfFunctions()->Add(ResoRowFit08);
   
   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("ResoRow08");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1508   ");
   text = ptstats->AddText("Mean  = -0.004989");
   text = ptstats->AddText("RMS   = 0.2853");
   text = ptstats->AddText("#chi^{2} / ndf = 90.95 / 87");
   text = ptstats->AddText("Constant = 41.96 #pm 1.49 ");
   text = ptstats->AddText("Mean     = -0.007803 #pm 0.007086 ");
   text = ptstats->AddText("Sigma    = 0.2605 #pm 0.0060 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow08->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow08->GetListOfFunctions());
   ResoRow08->GetXaxis()->SetTitle("residual / mm");
   ResoRow08->GetYaxis()->SetTitle("counts");
   ResoRow08->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,-7.21875,1.25,64.96875);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow09 = new TH1F("ResoRow09","",100,-1,1);
   ResoRow09->SetBinContent(0,22);
   ResoRow09->SetBinContent(2,1);
   ResoRow09->SetBinContent(6,1);
   ResoRow09->SetBinContent(8,3);
   ResoRow09->SetBinContent(9,1);
   ResoRow09->SetBinContent(10,2);
   ResoRow09->SetBinContent(11,1);
   ResoRow09->SetBinContent(12,1);
   ResoRow09->SetBinContent(13,5);
   ResoRow09->SetBinContent(14,2);
   ResoRow09->SetBinContent(15,1);
   ResoRow09->SetBinContent(16,2);
   ResoRow09->SetBinContent(17,4);
   ResoRow09->SetBinContent(18,2);
   ResoRow09->SetBinContent(19,4);
   ResoRow09->SetBinContent(20,5);
   ResoRow09->SetBinContent(21,9);
   ResoRow09->SetBinContent(22,4);
   ResoRow09->SetBinContent(23,7);
   ResoRow09->SetBinContent(24,7);
   ResoRow09->SetBinContent(25,2);
   ResoRow09->SetBinContent(26,10);
   ResoRow09->SetBinContent(27,13);
   ResoRow09->SetBinContent(28,15);
   ResoRow09->SetBinContent(29,9);
   ResoRow09->SetBinContent(30,12);
   ResoRow09->SetBinContent(31,19);
   ResoRow09->SetBinContent(32,10);
   ResoRow09->SetBinContent(33,15);
   ResoRow09->SetBinContent(34,12);
   ResoRow09->SetBinContent(35,22);
   ResoRow09->SetBinContent(36,13);
   ResoRow09->SetBinContent(37,23);
   ResoRow09->SetBinContent(38,18);
   ResoRow09->SetBinContent(39,27);
   ResoRow09->SetBinContent(40,30);
   ResoRow09->SetBinContent(41,31);
   ResoRow09->SetBinContent(42,35);
   ResoRow09->SetBinContent(43,41);
   ResoRow09->SetBinContent(44,39);
   ResoRow09->SetBinContent(45,38);
   ResoRow09->SetBinContent(46,40);
   ResoRow09->SetBinContent(47,51);
   ResoRow09->SetBinContent(48,42);
   ResoRow09->SetBinContent(49,50);
   ResoRow09->SetBinContent(50,55);
   ResoRow09->SetBinContent(51,39);
   ResoRow09->SetBinContent(52,48);
   ResoRow09->SetBinContent(53,41);
   ResoRow09->SetBinContent(54,51);
   ResoRow09->SetBinContent(55,46);
   ResoRow09->SetBinContent(56,38);
   ResoRow09->SetBinContent(57,31);
   ResoRow09->SetBinContent(58,40);
   ResoRow09->SetBinContent(59,40);
   ResoRow09->SetBinContent(60,38);
   ResoRow09->SetBinContent(61,27);
   ResoRow09->SetBinContent(62,34);
   ResoRow09->SetBinContent(63,26);
   ResoRow09->SetBinContent(64,14);
   ResoRow09->SetBinContent(65,24);
   ResoRow09->SetBinContent(66,19);
   ResoRow09->SetBinContent(67,23);
   ResoRow09->SetBinContent(68,21);
   ResoRow09->SetBinContent(69,11);
   ResoRow09->SetBinContent(70,15);
   ResoRow09->SetBinContent(71,8);
   ResoRow09->SetBinContent(72,8);
   ResoRow09->SetBinContent(73,5);
   ResoRow09->SetBinContent(74,10);
   ResoRow09->SetBinContent(75,4);
   ResoRow09->SetBinContent(76,8);
   ResoRow09->SetBinContent(77,7);
   ResoRow09->SetBinContent(78,5);
   ResoRow09->SetBinContent(79,3);
   ResoRow09->SetBinContent(80,2);
   ResoRow09->SetBinContent(81,2);
   ResoRow09->SetBinContent(82,3);
   ResoRow09->SetBinContent(83,6);
   ResoRow09->SetBinContent(84,3);
   ResoRow09->SetBinContent(85,4);
   ResoRow09->SetBinContent(87,3);
   ResoRow09->SetBinContent(88,3);
   ResoRow09->SetBinContent(89,3);
   ResoRow09->SetBinContent(90,2);
   ResoRow09->SetBinContent(91,1);
   ResoRow09->SetBinContent(96,4);
   ResoRow09->SetBinContent(97,1);
   ResoRow09->SetBinContent(101,31);
   ResoRow09->SetEntries(1508);
   
   TF1 *ResoRowFit09 = new TF1("ResoRowFit09","gaus",-1,1);
   ResoRowFit09->SetFillColor(19);
   ResoRowFit09->SetFillStyle(0);
   ResoRowFit09->SetLineWidth(3);
   ResoRowFit09->SetChisquare(109.1994);
   ResoRowFit09->SetNDF(84);
   ResoRowFit09->SetParameter(0,42.40119);
   ResoRowFit09->SetParError(0,1.595429);
   ResoRowFit09->SetParLimits(0,0,0);
   ResoRowFit09->SetParameter(1,0.0008178951);
   ResoRowFit09->SetParError(1,0.006989243);
   ResoRowFit09->SetParLimits(1,0,0);
   ResoRowFit09->SetParameter(2,0.2536048);
   ResoRowFit09->SetParError(2,0.006663309);
   ResoRowFit09->SetParLimits(2,0,2.838739);
   ResoRow09->GetListOfFunctions()->Add(ResoRowFit09);
   
   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("ResoRow09");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1508   ");
   text = ptstats->AddText("Mean  = -0.003251");
   text = ptstats->AddText("RMS   = 0.2838");
   text = ptstats->AddText("#chi^{2} / ndf = 109.2 / 84");
   text = ptstats->AddText("Constant =  42.4 #pm 1.6 ");
   text = ptstats->AddText("Mean     = 0.0008179 #pm 0.0069892 ");
   text = ptstats->AddText("Sigma    = 0.2536 #pm 0.0067 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow09->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow09->GetListOfFunctions());
   ResoRow09->GetXaxis()->SetTitle("residual / mm");
   ResoRow09->GetYaxis()->SetTitle("counts");
   ResoRow09->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 *ResoRow10 = new TH1F("ResoRow10","",100,-1,1);
   ResoRow10->SetBinContent(0,20);
   ResoRow10->SetBinContent(1,2);
   ResoRow10->SetBinContent(2,1);
   ResoRow10->SetBinContent(4,1);
   ResoRow10->SetBinContent(5,1);
   ResoRow10->SetBinContent(6,1);
   ResoRow10->SetBinContent(7,1);
   ResoRow10->SetBinContent(8,1);
   ResoRow10->SetBinContent(10,4);
   ResoRow10->SetBinContent(11,2);
   ResoRow10->SetBinContent(12,5);
   ResoRow10->SetBinContent(13,3);
   ResoRow10->SetBinContent(14,3);
   ResoRow10->SetBinContent(15,4);
   ResoRow10->SetBinContent(16,4);
   ResoRow10->SetBinContent(17,2);
   ResoRow10->SetBinContent(18,4);
   ResoRow10->SetBinContent(19,5);
   ResoRow10->SetBinContent(20,4);
   ResoRow10->SetBinContent(21,3);
   ResoRow10->SetBinContent(22,8);
   ResoRow10->SetBinContent(23,6);
   ResoRow10->SetBinContent(24,6);
   ResoRow10->SetBinContent(25,8);
   ResoRow10->SetBinContent(26,6);
   ResoRow10->SetBinContent(27,8);
   ResoRow10->SetBinContent(28,10);
   ResoRow10->SetBinContent(29,11);
   ResoRow10->SetBinContent(30,10);
   ResoRow10->SetBinContent(31,15);
   ResoRow10->SetBinContent(32,13);
   ResoRow10->SetBinContent(33,14);
   ResoRow10->SetBinContent(34,18);
   ResoRow10->SetBinContent(35,22);
   ResoRow10->SetBinContent(36,26);
   ResoRow10->SetBinContent(37,25);
   ResoRow10->SetBinContent(38,24);
   ResoRow10->SetBinContent(39,31);
   ResoRow10->SetBinContent(40,30);
   ResoRow10->SetBinContent(41,30);
   ResoRow10->SetBinContent(42,40);
   ResoRow10->SetBinContent(43,35);
   ResoRow10->SetBinContent(44,23);
   ResoRow10->SetBinContent(45,39);
   ResoRow10->SetBinContent(46,44);
   ResoRow10->SetBinContent(47,39);
   ResoRow10->SetBinContent(48,38);
   ResoRow10->SetBinContent(49,46);
   ResoRow10->SetBinContent(50,47);
   ResoRow10->SetBinContent(51,41);
   ResoRow10->SetBinContent(52,43);
   ResoRow10->SetBinContent(53,48);
   ResoRow10->SetBinContent(54,36);
   ResoRow10->SetBinContent(55,43);
   ResoRow10->SetBinContent(56,46);
   ResoRow10->SetBinContent(57,44);
   ResoRow10->SetBinContent(58,42);
   ResoRow10->SetBinContent(59,38);
   ResoRow10->SetBinContent(60,36);
   ResoRow10->SetBinContent(61,27);
   ResoRow10->SetBinContent(62,30);
   ResoRow10->SetBinContent(63,22);
   ResoRow10->SetBinContent(64,19);
   ResoRow10->SetBinContent(65,18);
   ResoRow10->SetBinContent(66,18);
   ResoRow10->SetBinContent(67,21);
   ResoRow10->SetBinContent(68,17);
   ResoRow10->SetBinContent(69,10);
   ResoRow10->SetBinContent(70,10);
   ResoRow10->SetBinContent(71,15);
   ResoRow10->SetBinContent(72,11);
   ResoRow10->SetBinContent(73,17);
   ResoRow10->SetBinContent(74,13);
   ResoRow10->SetBinContent(75,6);
   ResoRow10->SetBinContent(76,5);
   ResoRow10->SetBinContent(77,5);
   ResoRow10->SetBinContent(78,7);
   ResoRow10->SetBinContent(79,2);
   ResoRow10->SetBinContent(80,3);
   ResoRow10->SetBinContent(81,3);
   ResoRow10->SetBinContent(82,4);
   ResoRow10->SetBinContent(83,4);
   ResoRow10->SetBinContent(84,2);
   ResoRow10->SetBinContent(86,3);
   ResoRow10->SetBinContent(87,3);
   ResoRow10->SetBinContent(88,3);
   ResoRow10->SetBinContent(90,3);
   ResoRow10->SetBinContent(91,1);
   ResoRow10->SetBinContent(92,3);
   ResoRow10->SetBinContent(93,1);
   ResoRow10->SetBinContent(94,2);
   ResoRow10->SetBinContent(95,1);
   ResoRow10->SetBinContent(96,2);
   ResoRow10->SetBinContent(98,2);
   ResoRow10->SetBinContent(99,1);
   ResoRow10->SetBinContent(100,1);
   ResoRow10->SetBinContent(101,33);
   ResoRow10->SetEntries(1508);
   
   TF1 *ResoRowFit10 = new TF1("ResoRowFit10","gaus",-1,1);
   ResoRowFit10->SetFillColor(19);
   ResoRowFit10->SetFillStyle(0);
   ResoRowFit10->SetLineWidth(3);
   ResoRowFit10->SetChisquare(83.83752);
   ResoRowFit10->SetNDF(92);
   ResoRowFit10->SetParameter(0,40.07702);
   ResoRowFit10->SetParError(0,1.485378);
   ResoRowFit10->SetParLimits(0,0,0);
   ResoRowFit10->SetParameter(1,-0.005065683);
   ResoRowFit10->SetParError(1,0.00748348);
   ResoRowFit10->SetParLimits(1,0,0);
   ResoRowFit10->SetParameter(2,0.2736422);
   ResoRowFit10->SetParError(2,0.007068849);
   ResoRowFit10->SetParLimits(2,0,3.004171);
   ResoRow10->GetListOfFunctions()->Add(ResoRowFit10);
   
   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("ResoRow10");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1508   ");
   text = ptstats->AddText("Mean  = -0.004072");
   text = ptstats->AddText("RMS   = 0.3003");
   text = ptstats->AddText("#chi^{2} / ndf = 83.84 / 92");
   text = ptstats->AddText("Constant = 40.08 #pm 1.49 ");
   text = ptstats->AddText("Mean     = -0.005066 #pm 0.007483 ");
   text = ptstats->AddText("Sigma    = 0.2736 #pm 0.0071 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow10->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow10->GetListOfFunctions());
   ResoRow10->GetXaxis()->SetTitle("residual / mm");
   ResoRow10->GetYaxis()->SetTitle("counts");
   ResoRow10->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,-6.825,1.25,61.425);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow11 = new TH1F("ResoRow11","",100,-1,1);
   ResoRow11->SetBinContent(0,21);
   ResoRow11->SetBinContent(3,3);
   ResoRow11->SetBinContent(4,1);
   ResoRow11->SetBinContent(8,1);
   ResoRow11->SetBinContent(10,1);
   ResoRow11->SetBinContent(11,4);
   ResoRow11->SetBinContent(12,2);
   ResoRow11->SetBinContent(13,3);
   ResoRow11->SetBinContent(14,1);
   ResoRow11->SetBinContent(15,2);
   ResoRow11->SetBinContent(16,4);
   ResoRow11->SetBinContent(17,3);
   ResoRow11->SetBinContent(18,4);
   ResoRow11->SetBinContent(19,4);
   ResoRow11->SetBinContent(20,3);
   ResoRow11->SetBinContent(21,8);
   ResoRow11->SetBinContent(22,2);
   ResoRow11->SetBinContent(23,3);
   ResoRow11->SetBinContent(24,8);
   ResoRow11->SetBinContent(25,7);
   ResoRow11->SetBinContent(26,10);
   ResoRow11->SetBinContent(27,10);
   ResoRow11->SetBinContent(28,6);
   ResoRow11->SetBinContent(29,12);
   ResoRow11->SetBinContent(30,11);
   ResoRow11->SetBinContent(31,20);
   ResoRow11->SetBinContent(32,20);
   ResoRow11->SetBinContent(33,11);
   ResoRow11->SetBinContent(34,15);
   ResoRow11->SetBinContent(35,26);
   ResoRow11->SetBinContent(36,30);
   ResoRow11->SetBinContent(37,21);
   ResoRow11->SetBinContent(38,24);
   ResoRow11->SetBinContent(39,28);
   ResoRow11->SetBinContent(40,36);
   ResoRow11->SetBinContent(41,40);
   ResoRow11->SetBinContent(42,31);
   ResoRow11->SetBinContent(43,30);
   ResoRow11->SetBinContent(44,38);
   ResoRow11->SetBinContent(45,33);
   ResoRow11->SetBinContent(46,50);
   ResoRow11->SetBinContent(47,38);
   ResoRow11->SetBinContent(48,44);
   ResoRow11->SetBinContent(49,44);
   ResoRow11->SetBinContent(50,48);
   ResoRow11->SetBinContent(51,41);
   ResoRow11->SetBinContent(52,38);
   ResoRow11->SetBinContent(53,52);
   ResoRow11->SetBinContent(54,39);
   ResoRow11->SetBinContent(55,36);
   ResoRow11->SetBinContent(56,51);
   ResoRow11->SetBinContent(57,40);
   ResoRow11->SetBinContent(58,34);
   ResoRow11->SetBinContent(59,33);
   ResoRow11->SetBinContent(60,37);
   ResoRow11->SetBinContent(61,31);
   ResoRow11->SetBinContent(62,25);
   ResoRow11->SetBinContent(63,21);
   ResoRow11->SetBinContent(64,27);
   ResoRow11->SetBinContent(65,20);
   ResoRow11->SetBinContent(66,19);
   ResoRow11->SetBinContent(67,17);
   ResoRow11->SetBinContent(68,11);
   ResoRow11->SetBinContent(69,13);
   ResoRow11->SetBinContent(70,11);
   ResoRow11->SetBinContent(71,12);
   ResoRow11->SetBinContent(72,8);
   ResoRow11->SetBinContent(73,10);
   ResoRow11->SetBinContent(74,10);
   ResoRow11->SetBinContent(75,5);
   ResoRow11->SetBinContent(76,6);
   ResoRow11->SetBinContent(77,6);
   ResoRow11->SetBinContent(78,8);
   ResoRow11->SetBinContent(79,9);
   ResoRow11->SetBinContent(80,3);
   ResoRow11->SetBinContent(81,1);
   ResoRow11->SetBinContent(82,7);
   ResoRow11->SetBinContent(83,3);
   ResoRow11->SetBinContent(84,3);
   ResoRow11->SetBinContent(85,5);
   ResoRow11->SetBinContent(86,3);
   ResoRow11->SetBinContent(87,2);
   ResoRow11->SetBinContent(88,3);
   ResoRow11->SetBinContent(89,2);
   ResoRow11->SetBinContent(90,1);
   ResoRow11->SetBinContent(92,1);
   ResoRow11->SetBinContent(94,3);
   ResoRow11->SetBinContent(96,1);
   ResoRow11->SetBinContent(97,4);
   ResoRow11->SetBinContent(101,35);
   ResoRow11->SetEntries(1508);
   
   TF1 *ResoRowFit11 = new TF1("ResoRowFit11","gaus",-1,1);
   ResoRowFit11->SetFillColor(19);
   ResoRowFit11->SetFillStyle(0);
   ResoRowFit11->SetLineWidth(3);
   ResoRowFit11->SetChisquare(87.72515);
   ResoRowFit11->SetNDF(85);
   ResoRowFit11->SetParameter(0,41.16211);
   ResoRowFit11->SetParError(0,1.488578);
   ResoRowFit11->SetParLimits(0,0,0);
   ResoRowFit11->SetParameter(1,-0.006692968);
   ResoRowFit11->SetParError(1,0.007224477);
   ResoRowFit11->SetParLimits(1,0,0);
   ResoRowFit11->SetParameter(2,0.2648332);
   ResoRowFit11->SetParError(2,0.006444045);
   ResoRowFit11->SetParLimits(2,0,2.917843);
   ResoRow11->GetListOfFunctions()->Add(ResoRowFit11);
   
   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("ResoRow11");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1508   ");
   text = ptstats->AddText("Mean  = -0.004979");
   text = ptstats->AddText("RMS   = 0.2916");
   text = ptstats->AddText("#chi^{2} / ndf = 87.73 / 85");
   text = ptstats->AddText("Constant = 41.16 #pm 1.49 ");
   text = ptstats->AddText("Mean     = -0.006693 #pm 0.007224 ");
   text = ptstats->AddText("Sigma    = 0.2648 #pm 0.0064 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow11->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow11->GetListOfFunctions());
   ResoRow11->GetXaxis()->SetTitle("residual / mm");
   ResoRow11->GetYaxis()->SetTitle("counts");
   ResoRow11->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.95625,1.25,62.60625);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow12 = new TH1F("ResoRow12","",100,-1,1);
   ResoRow12->SetBinContent(0,18);
   ResoRow12->SetBinContent(1,1);
   ResoRow12->SetBinContent(3,1);
   ResoRow12->SetBinContent(5,2);
   ResoRow12->SetBinContent(6,2);
   ResoRow12->SetBinContent(9,1);
   ResoRow12->SetBinContent(10,5);
   ResoRow12->SetBinContent(11,1);
   ResoRow12->SetBinContent(12,2);
   ResoRow12->SetBinContent(13,1);
   ResoRow12->SetBinContent(14,2);
   ResoRow12->SetBinContent(15,6);
   ResoRow12->SetBinContent(16,3);
   ResoRow12->SetBinContent(17,5);
   ResoRow12->SetBinContent(18,3);
   ResoRow12->SetBinContent(19,4);
   ResoRow12->SetBinContent(21,7);
   ResoRow12->SetBinContent(22,3);
   ResoRow12->SetBinContent(23,6);
   ResoRow12->SetBinContent(24,10);
   ResoRow12->SetBinContent(25,6);
   ResoRow12->SetBinContent(26,3);
   ResoRow12->SetBinContent(27,8);
   ResoRow12->SetBinContent(28,12);
   ResoRow12->SetBinContent(29,15);
   ResoRow12->SetBinContent(30,8);
   ResoRow12->SetBinContent(31,6);
   ResoRow12->SetBinContent(32,16);
   ResoRow12->SetBinContent(33,18);
   ResoRow12->SetBinContent(34,13);
   ResoRow12->SetBinContent(35,21);
   ResoRow12->SetBinContent(36,26);
   ResoRow12->SetBinContent(37,33);
   ResoRow12->SetBinContent(38,30);
   ResoRow12->SetBinContent(39,29);
   ResoRow12->SetBinContent(40,20);
   ResoRow12->SetBinContent(41,38);
   ResoRow12->SetBinContent(42,31);
   ResoRow12->SetBinContent(43,40);
   ResoRow12->SetBinContent(44,38);
   ResoRow12->SetBinContent(45,43);
   ResoRow12->SetBinContent(46,43);
   ResoRow12->SetBinContent(47,39);
   ResoRow12->SetBinContent(48,35);
   ResoRow12->SetBinContent(49,38);
   ResoRow12->SetBinContent(50,53);
   ResoRow12->SetBinContent(51,47);
   ResoRow12->SetBinContent(52,45);
   ResoRow12->SetBinContent(53,45);
   ResoRow12->SetBinContent(54,39);
   ResoRow12->SetBinContent(55,39);
   ResoRow12->SetBinContent(56,41);
   ResoRow12->SetBinContent(57,41);
   ResoRow12->SetBinContent(58,46);
   ResoRow12->SetBinContent(59,41);
   ResoRow12->SetBinContent(60,25);
   ResoRow12->SetBinContent(61,32);
   ResoRow12->SetBinContent(62,27);
   ResoRow12->SetBinContent(63,19);
   ResoRow12->SetBinContent(64,20);
   ResoRow12->SetBinContent(65,27);
   ResoRow12->SetBinContent(66,23);
   ResoRow12->SetBinContent(67,21);
   ResoRow12->SetBinContent(68,10);
   ResoRow12->SetBinContent(69,20);
   ResoRow12->SetBinContent(70,13);
   ResoRow12->SetBinContent(71,14);
   ResoRow12->SetBinContent(72,10);
   ResoRow12->SetBinContent(73,10);
   ResoRow12->SetBinContent(74,6);
   ResoRow12->SetBinContent(75,3);
   ResoRow12->SetBinContent(76,7);
   ResoRow12->SetBinContent(77,8);
   ResoRow12->SetBinContent(78,4);
   ResoRow12->SetBinContent(79,6);
   ResoRow12->SetBinContent(80,4);
   ResoRow12->SetBinContent(81,8);
   ResoRow12->SetBinContent(82,6);
   ResoRow12->SetBinContent(84,5);
   ResoRow12->SetBinContent(85,3);
   ResoRow12->SetBinContent(86,1);
   ResoRow12->SetBinContent(87,1);
   ResoRow12->SetBinContent(88,2);
   ResoRow12->SetBinContent(89,3);
   ResoRow12->SetBinContent(90,2);
   ResoRow12->SetBinContent(91,3);
   ResoRow12->SetBinContent(92,1);
   ResoRow12->SetBinContent(93,2);
   ResoRow12->SetBinContent(94,3);
   ResoRow12->SetBinContent(98,1);
   ResoRow12->SetBinContent(99,1);
   ResoRow12->SetBinContent(101,28);
   ResoRow12->SetEntries(1508);
   
   TF1 *ResoRowFit12 = new TF1("ResoRowFit12","gaus",-1,1);
   ResoRowFit12->SetFillColor(19);
   ResoRowFit12->SetFillStyle(0);
   ResoRowFit12->SetLineWidth(3);
   ResoRowFit12->SetChisquare(112.7224);
   ResoRowFit12->SetNDF(87);
   ResoRowFit12->SetParameter(0,41.19946);
   ResoRowFit12->SetParError(0,1.548775);
   ResoRowFit12->SetParLimits(0,0,0);
   ResoRowFit12->SetParameter(1,0.002841415);
   ResoRowFit12->SetParError(1,0.00723528);
   ResoRowFit12->SetParLimits(1,0,0);
   ResoRowFit12->SetParameter(2,0.2624093);
   ResoRowFit12->SetParError(2,0.006975257);
   ResoRowFit12->SetParLimits(2,0,2.933774);
   ResoRow12->GetListOfFunctions()->Add(ResoRowFit12);
   
   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("ResoRow12");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1508   ");
   text = ptstats->AddText("Mean  = -0.0003428");
   text = ptstats->AddText("RMS   =  0.293");
   text = ptstats->AddText("#chi^{2} / ndf = 112.7 / 87");
   text = ptstats->AddText("Constant =  41.2 #pm 1.5 ");
   text = ptstats->AddText("Mean     = 0.002841 #pm 0.007235 ");
   text = ptstats->AddText("Sigma    = 0.2624 #pm 0.0070 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow12->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow12->GetListOfFunctions());
   ResoRow12->GetXaxis()->SetTitle("residual / mm");
   ResoRow12->GetYaxis()->SetTitle("counts");
   ResoRow12->Draw("");
   c2_6->Modified();
   c2->cd();
   c2->Modified();
   c2->cd();
   c2->SetSelected(c2);
}
