{
//=========Macro generated from canvas: c2/
//=========  (Thu Jun 10 09:43:04 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.1875,1.25,82.6875);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow07 = new TH1F("ResoRow07","",100,-1,1);
   ResoRow07->SetBinContent(0,11);
   ResoRow07->SetBinContent(4,1);
   ResoRow07->SetBinContent(5,1);
   ResoRow07->SetBinContent(7,1);
   ResoRow07->SetBinContent(8,3);
   ResoRow07->SetBinContent(9,2);
   ResoRow07->SetBinContent(10,3);
   ResoRow07->SetBinContent(11,1);
   ResoRow07->SetBinContent(13,1);
   ResoRow07->SetBinContent(16,2);
   ResoRow07->SetBinContent(17,2);
   ResoRow07->SetBinContent(18,2);
   ResoRow07->SetBinContent(19,2);
   ResoRow07->SetBinContent(20,3);
   ResoRow07->SetBinContent(21,2);
   ResoRow07->SetBinContent(22,3);
   ResoRow07->SetBinContent(23,4);
   ResoRow07->SetBinContent(24,4);
   ResoRow07->SetBinContent(25,3);
   ResoRow07->SetBinContent(26,3);
   ResoRow07->SetBinContent(27,3);
   ResoRow07->SetBinContent(28,3);
   ResoRow07->SetBinContent(29,7);
   ResoRow07->SetBinContent(30,10);
   ResoRow07->SetBinContent(31,9);
   ResoRow07->SetBinContent(32,15);
   ResoRow07->SetBinContent(33,8);
   ResoRow07->SetBinContent(34,16);
   ResoRow07->SetBinContent(35,19);
   ResoRow07->SetBinContent(36,22);
   ResoRow07->SetBinContent(37,22);
   ResoRow07->SetBinContent(38,24);
   ResoRow07->SetBinContent(39,34);
   ResoRow07->SetBinContent(40,25);
   ResoRow07->SetBinContent(41,34);
   ResoRow07->SetBinContent(42,29);
   ResoRow07->SetBinContent(43,39);
   ResoRow07->SetBinContent(44,42);
   ResoRow07->SetBinContent(45,52);
   ResoRow07->SetBinContent(46,63);
   ResoRow07->SetBinContent(47,69);
   ResoRow07->SetBinContent(48,61);
   ResoRow07->SetBinContent(49,57);
   ResoRow07->SetBinContent(50,59);
   ResoRow07->SetBinContent(51,63);
   ResoRow07->SetBinContent(52,59);
   ResoRow07->SetBinContent(53,70);
   ResoRow07->SetBinContent(54,49);
   ResoRow07->SetBinContent(55,58);
   ResoRow07->SetBinContent(56,41);
   ResoRow07->SetBinContent(57,57);
   ResoRow07->SetBinContent(58,45);
   ResoRow07->SetBinContent(59,40);
   ResoRow07->SetBinContent(60,18);
   ResoRow07->SetBinContent(61,33);
   ResoRow07->SetBinContent(62,35);
   ResoRow07->SetBinContent(63,26);
   ResoRow07->SetBinContent(64,17);
   ResoRow07->SetBinContent(65,20);
   ResoRow07->SetBinContent(66,25);
   ResoRow07->SetBinContent(67,15);
   ResoRow07->SetBinContent(68,19);
   ResoRow07->SetBinContent(69,10);
   ResoRow07->SetBinContent(70,8);
   ResoRow07->SetBinContent(71,5);
   ResoRow07->SetBinContent(72,14);
   ResoRow07->SetBinContent(73,7);
   ResoRow07->SetBinContent(74,7);
   ResoRow07->SetBinContent(75,7);
   ResoRow07->SetBinContent(76,4);
   ResoRow07->SetBinContent(77,4);
   ResoRow07->SetBinContent(78,1);
   ResoRow07->SetBinContent(79,2);
   ResoRow07->SetBinContent(80,2);
   ResoRow07->SetBinContent(81,2);
   ResoRow07->SetBinContent(82,4);
   ResoRow07->SetBinContent(83,2);
   ResoRow07->SetBinContent(84,1);
   ResoRow07->SetBinContent(88,3);
   ResoRow07->SetBinContent(89,1);
   ResoRow07->SetBinContent(90,2);
   ResoRow07->SetBinContent(94,2);
   ResoRow07->SetBinContent(101,23);
   ResoRow07->SetEntries(1577);
   
   TF1 *ResoRowFit07 = new TF1("ResoRowFit07","gaus",-1,1);
   ResoRowFit07->SetFillColor(19);
   ResoRowFit07->SetFillStyle(0);
   ResoRowFit07->SetLineWidth(3);
   ResoRowFit07->SetChisquare(107.9885);
   ResoRowFit07->SetNDF(78);
   ResoRowFit07->SetParameter(0,54.9724);
   ResoRowFit07->SetParError(0,1.954351);
   ResoRowFit07->SetParLimits(0,0,0);
   ResoRowFit07->SetParameter(1,0.001950648);
   ResoRowFit07->SetParError(1,0.005534255);
   ResoRowFit07->SetParLimits(1,0,0);
   ResoRowFit07->SetParameter(2,0.2084205);
   ResoRowFit07->SetParError(2,0.004998926);
   ResoRowFit07->SetParLimits(2,0,2.377911);
   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 = 1577   ");
   text = ptstats->AddText("Mean  = 0.001225");
   text = ptstats->AddText("RMS   = 0.2377");
   text = ptstats->AddText("#chi^{2} / ndf =   108 / 78");
   text = ptstats->AddText("Constant = 54.97 #pm 1.95 ");
   text = ptstats->AddText("Mean     = 0.001951 #pm 0.005534 ");
   text = ptstats->AddText("Sigma    = 0.2084 #pm 0.0050 ");
   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,-9.58125,1.25,86.23125);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow08 = new TH1F("ResoRow08","",100,-1,1);
   ResoRow08->SetBinContent(0,12);
   ResoRow08->SetBinContent(1,2);
   ResoRow08->SetBinContent(5,1);
   ResoRow08->SetBinContent(7,1);
   ResoRow08->SetBinContent(10,2);
   ResoRow08->SetBinContent(12,2);
   ResoRow08->SetBinContent(13,2);
   ResoRow08->SetBinContent(14,1);
   ResoRow08->SetBinContent(15,1);
   ResoRow08->SetBinContent(16,2);
   ResoRow08->SetBinContent(17,1);
   ResoRow08->SetBinContent(19,2);
   ResoRow08->SetBinContent(20,3);
   ResoRow08->SetBinContent(21,5);
   ResoRow08->SetBinContent(22,3);
   ResoRow08->SetBinContent(23,1);
   ResoRow08->SetBinContent(24,1);
   ResoRow08->SetBinContent(25,6);
   ResoRow08->SetBinContent(26,6);
   ResoRow08->SetBinContent(27,3);
   ResoRow08->SetBinContent(28,8);
   ResoRow08->SetBinContent(29,8);
   ResoRow08->SetBinContent(30,4);
   ResoRow08->SetBinContent(31,13);
   ResoRow08->SetBinContent(32,6);
   ResoRow08->SetBinContent(33,12);
   ResoRow08->SetBinContent(34,15);
   ResoRow08->SetBinContent(35,18);
   ResoRow08->SetBinContent(36,16);
   ResoRow08->SetBinContent(37,20);
   ResoRow08->SetBinContent(38,30);
   ResoRow08->SetBinContent(39,33);
   ResoRow08->SetBinContent(40,27);
   ResoRow08->SetBinContent(41,37);
   ResoRow08->SetBinContent(42,51);
   ResoRow08->SetBinContent(43,41);
   ResoRow08->SetBinContent(44,41);
   ResoRow08->SetBinContent(45,43);
   ResoRow08->SetBinContent(46,58);
   ResoRow08->SetBinContent(47,61);
   ResoRow08->SetBinContent(48,73);
   ResoRow08->SetBinContent(49,62);
   ResoRow08->SetBinContent(50,66);
   ResoRow08->SetBinContent(51,56);
   ResoRow08->SetBinContent(52,63);
   ResoRow08->SetBinContent(53,56);
   ResoRow08->SetBinContent(54,54);
   ResoRow08->SetBinContent(55,48);
   ResoRow08->SetBinContent(56,53);
   ResoRow08->SetBinContent(57,48);
   ResoRow08->SetBinContent(58,39);
   ResoRow08->SetBinContent(59,32);
   ResoRow08->SetBinContent(60,29);
   ResoRow08->SetBinContent(61,43);
   ResoRow08->SetBinContent(62,32);
   ResoRow08->SetBinContent(63,26);
   ResoRow08->SetBinContent(64,16);
   ResoRow08->SetBinContent(65,14);
   ResoRow08->SetBinContent(66,15);
   ResoRow08->SetBinContent(67,20);
   ResoRow08->SetBinContent(68,18);
   ResoRow08->SetBinContent(69,7);
   ResoRow08->SetBinContent(70,5);
   ResoRow08->SetBinContent(71,11);
   ResoRow08->SetBinContent(72,5);
   ResoRow08->SetBinContent(73,5);
   ResoRow08->SetBinContent(74,3);
   ResoRow08->SetBinContent(75,3);
   ResoRow08->SetBinContent(76,6);
   ResoRow08->SetBinContent(77,7);
   ResoRow08->SetBinContent(78,4);
   ResoRow08->SetBinContent(79,3);
   ResoRow08->SetBinContent(80,1);
   ResoRow08->SetBinContent(81,3);
   ResoRow08->SetBinContent(82,1);
   ResoRow08->SetBinContent(83,4);
   ResoRow08->SetBinContent(84,2);
   ResoRow08->SetBinContent(85,1);
   ResoRow08->SetBinContent(86,1);
   ResoRow08->SetBinContent(87,1);
   ResoRow08->SetBinContent(88,1);
   ResoRow08->SetBinContent(89,1);
   ResoRow08->SetBinContent(90,2);
   ResoRow08->SetBinContent(92,1);
   ResoRow08->SetBinContent(93,1);
   ResoRow08->SetBinContent(94,1);
   ResoRow08->SetBinContent(97,2);
   ResoRow08->SetBinContent(98,1);
   ResoRow08->SetBinContent(99,1);
   ResoRow08->SetBinContent(100,2);
   ResoRow08->SetBinContent(101,29);
   ResoRow08->SetEntries(1577);
   
   TF1 *ResoRowFit08 = new TF1("ResoRowFit08","gaus",-1,1);
   ResoRowFit08->SetFillColor(19);
   ResoRowFit08->SetFillStyle(0);
   ResoRowFit08->SetLineWidth(3);
   ResoRowFit08->SetChisquare(105.9968);
   ResoRowFit08->SetNDF(86);
   ResoRowFit08->SetParameter(0,57.36391);
   ResoRowFit08->SetParError(0,2.030097);
   ResoRowFit08->SetParLimits(0,0,0);
   ResoRowFit08->SetParameter(1,-0.002946273);
   ResoRowFit08->SetParError(1,0.00528103);
   ResoRowFit08->SetParLimits(1,0,0);
   ResoRowFit08->SetParameter(2,0.1989507);
   ResoRowFit08->SetParError(2,0.004689543);
   ResoRowFit08->SetParLimits(2,0,2.429501);
   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 = 1577   ");
   text = ptstats->AddText("Mean  = 0.001067");
   text = ptstats->AddText("RMS   = 0.2427");
   text = ptstats->AddText("#chi^{2} / ndf =   106 / 86");
   text = ptstats->AddText("Constant = 57.36 #pm 2.03 ");
   text = ptstats->AddText("Mean     = -0.002946 #pm 0.005281 ");
   text = ptstats->AddText("Sigma    = 0.199 #pm 0.005 ");
   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,-9.45,1.25,85.05);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow09 = new TH1F("ResoRow09","",100,-1,1);
   ResoRow09->SetBinContent(0,9);
   ResoRow09->SetBinContent(4,2);
   ResoRow09->SetBinContent(10,1);
   ResoRow09->SetBinContent(12,2);
   ResoRow09->SetBinContent(13,2);
   ResoRow09->SetBinContent(14,2);
   ResoRow09->SetBinContent(15,2);
   ResoRow09->SetBinContent(17,2);
   ResoRow09->SetBinContent(18,2);
   ResoRow09->SetBinContent(19,4);
   ResoRow09->SetBinContent(21,2);
   ResoRow09->SetBinContent(22,5);
   ResoRow09->SetBinContent(24,3);
   ResoRow09->SetBinContent(25,5);
   ResoRow09->SetBinContent(26,2);
   ResoRow09->SetBinContent(27,4);
   ResoRow09->SetBinContent(28,8);
   ResoRow09->SetBinContent(29,7);
   ResoRow09->SetBinContent(30,6);
   ResoRow09->SetBinContent(31,13);
   ResoRow09->SetBinContent(32,10);
   ResoRow09->SetBinContent(33,20);
   ResoRow09->SetBinContent(34,15);
   ResoRow09->SetBinContent(35,19);
   ResoRow09->SetBinContent(36,18);
   ResoRow09->SetBinContent(37,21);
   ResoRow09->SetBinContent(38,23);
   ResoRow09->SetBinContent(39,24);
   ResoRow09->SetBinContent(40,35);
   ResoRow09->SetBinContent(41,27);
   ResoRow09->SetBinContent(42,42);
   ResoRow09->SetBinContent(43,31);
   ResoRow09->SetBinContent(44,56);
   ResoRow09->SetBinContent(45,38);
   ResoRow09->SetBinContent(46,53);
   ResoRow09->SetBinContent(47,60);
   ResoRow09->SetBinContent(48,48);
   ResoRow09->SetBinContent(49,65);
   ResoRow09->SetBinContent(50,61);
   ResoRow09->SetBinContent(51,64);
   ResoRow09->SetBinContent(52,62);
   ResoRow09->SetBinContent(53,65);
   ResoRow09->SetBinContent(54,72);
   ResoRow09->SetBinContent(55,59);
   ResoRow09->SetBinContent(56,41);
   ResoRow09->SetBinContent(57,57);
   ResoRow09->SetBinContent(58,36);
   ResoRow09->SetBinContent(59,41);
   ResoRow09->SetBinContent(60,42);
   ResoRow09->SetBinContent(61,44);
   ResoRow09->SetBinContent(62,36);
   ResoRow09->SetBinContent(63,30);
   ResoRow09->SetBinContent(64,17);
   ResoRow09->SetBinContent(65,17);
   ResoRow09->SetBinContent(66,15);
   ResoRow09->SetBinContent(67,19);
   ResoRow09->SetBinContent(68,12);
   ResoRow09->SetBinContent(69,8);
   ResoRow09->SetBinContent(70,8);
   ResoRow09->SetBinContent(71,12);
   ResoRow09->SetBinContent(72,4);
   ResoRow09->SetBinContent(73,3);
   ResoRow09->SetBinContent(74,4);
   ResoRow09->SetBinContent(75,5);
   ResoRow09->SetBinContent(76,3);
   ResoRow09->SetBinContent(77,4);
   ResoRow09->SetBinContent(78,5);
   ResoRow09->SetBinContent(79,3);
   ResoRow09->SetBinContent(80,1);
   ResoRow09->SetBinContent(81,1);
   ResoRow09->SetBinContent(83,1);
   ResoRow09->SetBinContent(84,2);
   ResoRow09->SetBinContent(85,1);
   ResoRow09->SetBinContent(86,1);
   ResoRow09->SetBinContent(87,2);
   ResoRow09->SetBinContent(89,1);
   ResoRow09->SetBinContent(90,1);
   ResoRow09->SetBinContent(91,1);
   ResoRow09->SetBinContent(93,2);
   ResoRow09->SetBinContent(94,1);
   ResoRow09->SetBinContent(96,1);
   ResoRow09->SetBinContent(98,1);
   ResoRow09->SetBinContent(101,23);
   ResoRow09->SetEntries(1577);
   
   TF1 *ResoRowFit09 = new TF1("ResoRowFit09","gaus",-1,1);
   ResoRowFit09->SetFillColor(19);
   ResoRowFit09->SetFillStyle(0);
   ResoRowFit09->SetLineWidth(3);
   ResoRowFit09->SetChisquare(93.59912);
   ResoRowFit09->SetNDF(78);
   ResoRowFit09->SetParameter(0,56.88736);
   ResoRowFit09->SetParError(0,1.998458);
   ResoRowFit09->SetParLimits(0,0,0);
   ResoRowFit09->SetParameter(1,0.003658833);
   ResoRowFit09->SetParError(1,0.005464737);
   ResoRowFit09->SetParLimits(1,0,0);
   ResoRowFit09->SetParameter(2,0.2039746);
   ResoRowFit09->SetParError(2,0.004838816);
   ResoRowFit09->SetParLimits(2,0,2.31814);
   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 = 1577   ");
   text = ptstats->AddText("Mean  = 0.003231");
   text = ptstats->AddText("RMS   = 0.2318");
   text = ptstats->AddText("#chi^{2} / ndf =  93.6 / 78");
   text = ptstats->AddText("Constant = 56.89 #pm 2.00 ");
   text = ptstats->AddText("Mean     = 0.003659 #pm 0.005465 ");
   text = ptstats->AddText("Sigma    = 0.204 #pm 0.005 ");
   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,-9.1875,1.25,82.6875);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow10 = new TH1F("ResoRow10","",100,-1,1);
   ResoRow10->SetBinContent(0,11);
   ResoRow10->SetBinContent(3,1);
   ResoRow10->SetBinContent(9,1);
   ResoRow10->SetBinContent(13,1);
   ResoRow10->SetBinContent(14,2);
   ResoRow10->SetBinContent(15,3);
   ResoRow10->SetBinContent(16,4);
   ResoRow10->SetBinContent(17,3);
   ResoRow10->SetBinContent(19,2);
   ResoRow10->SetBinContent(20,4);
   ResoRow10->SetBinContent(21,3);
   ResoRow10->SetBinContent(22,3);
   ResoRow10->SetBinContent(23,5);
   ResoRow10->SetBinContent(24,5);
   ResoRow10->SetBinContent(25,7);
   ResoRow10->SetBinContent(26,4);
   ResoRow10->SetBinContent(27,6);
   ResoRow10->SetBinContent(28,5);
   ResoRow10->SetBinContent(29,7);
   ResoRow10->SetBinContent(30,6);
   ResoRow10->SetBinContent(31,15);
   ResoRow10->SetBinContent(32,7);
   ResoRow10->SetBinContent(33,14);
   ResoRow10->SetBinContent(34,18);
   ResoRow10->SetBinContent(35,14);
   ResoRow10->SetBinContent(36,10);
   ResoRow10->SetBinContent(37,20);
   ResoRow10->SetBinContent(38,31);
   ResoRow10->SetBinContent(39,31);
   ResoRow10->SetBinContent(40,39);
   ResoRow10->SetBinContent(41,38);
   ResoRow10->SetBinContent(42,35);
   ResoRow10->SetBinContent(43,54);
   ResoRow10->SetBinContent(44,45);
   ResoRow10->SetBinContent(45,39);
   ResoRow10->SetBinContent(46,57);
   ResoRow10->SetBinContent(47,46);
   ResoRow10->SetBinContent(48,61);
   ResoRow10->SetBinContent(49,59);
   ResoRow10->SetBinContent(50,70);
   ResoRow10->SetBinContent(51,69);
   ResoRow10->SetBinContent(52,55);
   ResoRow10->SetBinContent(53,60);
   ResoRow10->SetBinContent(54,70);
   ResoRow10->SetBinContent(55,60);
   ResoRow10->SetBinContent(56,60);
   ResoRow10->SetBinContent(57,52);
   ResoRow10->SetBinContent(58,31);
   ResoRow10->SetBinContent(59,29);
   ResoRow10->SetBinContent(60,28);
   ResoRow10->SetBinContent(61,26);
   ResoRow10->SetBinContent(62,29);
   ResoRow10->SetBinContent(63,24);
   ResoRow10->SetBinContent(64,20);
   ResoRow10->SetBinContent(65,19);
   ResoRow10->SetBinContent(66,11);
   ResoRow10->SetBinContent(67,22);
   ResoRow10->SetBinContent(68,8);
   ResoRow10->SetBinContent(69,6);
   ResoRow10->SetBinContent(70,6);
   ResoRow10->SetBinContent(71,8);
   ResoRow10->SetBinContent(72,8);
   ResoRow10->SetBinContent(73,7);
   ResoRow10->SetBinContent(74,7);
   ResoRow10->SetBinContent(75,8);
   ResoRow10->SetBinContent(76,7);
   ResoRow10->SetBinContent(77,4);
   ResoRow10->SetBinContent(78,5);
   ResoRow10->SetBinContent(80,4);
   ResoRow10->SetBinContent(81,3);
   ResoRow10->SetBinContent(82,2);
   ResoRow10->SetBinContent(83,1);
   ResoRow10->SetBinContent(84,4);
   ResoRow10->SetBinContent(86,2);
   ResoRow10->SetBinContent(87,2);
   ResoRow10->SetBinContent(89,2);
   ResoRow10->SetBinContent(90,1);
   ResoRow10->SetBinContent(91,3);
   ResoRow10->SetBinContent(93,2);
   ResoRow10->SetBinContent(94,1);
   ResoRow10->SetBinContent(98,1);
   ResoRow10->SetBinContent(101,24);
   ResoRow10->SetEntries(1577);
   
   TF1 *ResoRowFit10 = new TF1("ResoRowFit10","gaus",-1,1);
   ResoRowFit10->SetFillColor(19);
   ResoRowFit10->SetFillStyle(0);
   ResoRowFit10->SetLineWidth(3);
   ResoRowFit10->SetChisquare(131.5012);
   ResoRowFit10->SetNDF(77);
   ResoRowFit10->SetParameter(0,55.45257);
   ResoRowFit10->SetParError(0,2.139726);
   ResoRowFit10->SetParLimits(0,0,0);
   ResoRowFit10->SetParameter(1,-0.00596161);
   ResoRowFit10->SetParError(1,0.005439806);
   ResoRowFit10->SetParLimits(1,0,0);
   ResoRowFit10->SetParameter(2,0.2031991);
   ResoRowFit10->SetParError(2,0.005733504);
   ResoRowFit10->SetParLimits(2,0,2.408313);
   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 = 1577   ");
   text = ptstats->AddText("Mean  = -0.002287");
   text = ptstats->AddText("RMS   = 0.2407");
   text = ptstats->AddText("#chi^{2} / ndf = 131.5 / 77");
   text = ptstats->AddText("Constant = 55.45 #pm 2.14 ");
   text = ptstats->AddText("Mean     = -0.005962 #pm 0.005440 ");
   text = ptstats->AddText("Sigma    = 0.2032 #pm 0.0057 ");
   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,-9.975,1.25,89.775);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow11 = new TH1F("ResoRow11","",100,-1,1);
   ResoRow11->SetBinContent(0,11);
   ResoRow11->SetBinContent(2,1);
   ResoRow11->SetBinContent(4,1);
   ResoRow11->SetBinContent(5,2);
   ResoRow11->SetBinContent(7,1);
   ResoRow11->SetBinContent(8,1);
   ResoRow11->SetBinContent(9,1);
   ResoRow11->SetBinContent(12,1);
   ResoRow11->SetBinContent(13,2);
   ResoRow11->SetBinContent(14,1);
   ResoRow11->SetBinContent(15,1);
   ResoRow11->SetBinContent(16,1);
   ResoRow11->SetBinContent(17,1);
   ResoRow11->SetBinContent(18,2);
   ResoRow11->SetBinContent(19,2);
   ResoRow11->SetBinContent(20,3);
   ResoRow11->SetBinContent(21,3);
   ResoRow11->SetBinContent(22,6);
   ResoRow11->SetBinContent(23,3);
   ResoRow11->SetBinContent(24,2);
   ResoRow11->SetBinContent(25,10);
   ResoRow11->SetBinContent(26,4);
   ResoRow11->SetBinContent(27,9);
   ResoRow11->SetBinContent(28,3);
   ResoRow11->SetBinContent(29,7);
   ResoRow11->SetBinContent(30,9);
   ResoRow11->SetBinContent(31,10);
   ResoRow11->SetBinContent(32,13);
   ResoRow11->SetBinContent(33,14);
   ResoRow11->SetBinContent(34,10);
   ResoRow11->SetBinContent(35,16);
   ResoRow11->SetBinContent(36,20);
   ResoRow11->SetBinContent(37,25);
   ResoRow11->SetBinContent(38,23);
   ResoRow11->SetBinContent(39,35);
   ResoRow11->SetBinContent(40,25);
   ResoRow11->SetBinContent(41,35);
   ResoRow11->SetBinContent(42,38);
   ResoRow11->SetBinContent(43,42);
   ResoRow11->SetBinContent(44,47);
   ResoRow11->SetBinContent(45,56);
   ResoRow11->SetBinContent(46,49);
   ResoRow11->SetBinContent(47,72);
   ResoRow11->SetBinContent(48,50);
   ResoRow11->SetBinContent(49,53);
   ResoRow11->SetBinContent(50,76);
   ResoRow11->SetBinContent(51,46);
   ResoRow11->SetBinContent(52,54);
   ResoRow11->SetBinContent(53,47);
   ResoRow11->SetBinContent(54,61);
   ResoRow11->SetBinContent(55,62);
   ResoRow11->SetBinContent(56,62);
   ResoRow11->SetBinContent(57,43);
   ResoRow11->SetBinContent(58,43);
   ResoRow11->SetBinContent(59,36);
   ResoRow11->SetBinContent(60,44);
   ResoRow11->SetBinContent(61,29);
   ResoRow11->SetBinContent(62,24);
   ResoRow11->SetBinContent(63,24);
   ResoRow11->SetBinContent(64,21);
   ResoRow11->SetBinContent(65,27);
   ResoRow11->SetBinContent(66,15);
   ResoRow11->SetBinContent(67,11);
   ResoRow11->SetBinContent(68,11);
   ResoRow11->SetBinContent(69,8);
   ResoRow11->SetBinContent(70,7);
   ResoRow11->SetBinContent(71,9);
   ResoRow11->SetBinContent(72,8);
   ResoRow11->SetBinContent(73,5);
   ResoRow11->SetBinContent(74,9);
   ResoRow11->SetBinContent(75,6);
   ResoRow11->SetBinContent(76,4);
   ResoRow11->SetBinContent(77,5);
   ResoRow11->SetBinContent(78,3);
   ResoRow11->SetBinContent(79,3);
   ResoRow11->SetBinContent(80,1);
   ResoRow11->SetBinContent(81,3);
   ResoRow11->SetBinContent(83,2);
   ResoRow11->SetBinContent(84,2);
   ResoRow11->SetBinContent(85,1);
   ResoRow11->SetBinContent(87,2);
   ResoRow11->SetBinContent(88,1);
   ResoRow11->SetBinContent(89,1);
   ResoRow11->SetBinContent(90,1);
   ResoRow11->SetBinContent(91,1);
   ResoRow11->SetBinContent(93,2);
   ResoRow11->SetBinContent(95,1);
   ResoRow11->SetBinContent(96,1);
   ResoRow11->SetBinContent(98,1);
   ResoRow11->SetBinContent(100,1);
   ResoRow11->SetBinContent(101,32);
   ResoRow11->SetEntries(1577);
   
   TF1 *ResoRowFit11 = new TF1("ResoRowFit11","gaus",-1,1);
   ResoRowFit11->SetFillColor(19);
   ResoRowFit11->SetFillStyle(0);
   ResoRowFit11->SetLineWidth(3);
   ResoRowFit11->SetChisquare(96.69137);
   ResoRowFit11->SetNDF(86);
   ResoRowFit11->SetParameter(0,54.44357);
   ResoRowFit11->SetParError(0,1.968257);
   ResoRowFit11->SetParLimits(0,0,0);
   ResoRowFit11->SetParameter(1,-0.001663101);
   ResoRowFit11->SetParError(1,0.005576772);
   ResoRowFit11->SetParLimits(1,0,0);
   ResoRowFit11->SetParameter(2,0.2107775);
   ResoRowFit11->SetParError(2,0.005241147);
   ResoRowFit11->SetParLimits(2,0,2.430983);
   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 = 1577   ");
   text = ptstats->AddText("Mean  = -0.003647");
   text = ptstats->AddText("RMS   = 0.2428");
   text = ptstats->AddText("#chi^{2} / ndf = 96.69 / 86");
   text = ptstats->AddText("Constant = 54.44 #pm 1.97 ");
   text = ptstats->AddText("Mean     = -0.001663 #pm 0.005577 ");
   text = ptstats->AddText("Sigma    = 0.2108 #pm 0.0052 ");
   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,-8.925,1.25,80.325);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow12 = new TH1F("ResoRow12","",100,-1,1);
   ResoRow12->SetBinContent(0,13);
   ResoRow12->SetBinContent(3,1);
   ResoRow12->SetBinContent(4,1);
   ResoRow12->SetBinContent(6,1);
   ResoRow12->SetBinContent(7,1);
   ResoRow12->SetBinContent(8,2);
   ResoRow12->SetBinContent(10,1);
   ResoRow12->SetBinContent(11,1);
   ResoRow12->SetBinContent(12,1);
   ResoRow12->SetBinContent(13,1);
   ResoRow12->SetBinContent(15,1);
   ResoRow12->SetBinContent(17,1);
   ResoRow12->SetBinContent(18,6);
   ResoRow12->SetBinContent(19,2);
   ResoRow12->SetBinContent(20,1);
   ResoRow12->SetBinContent(21,5);
   ResoRow12->SetBinContent(23,3);
   ResoRow12->SetBinContent(24,4);
   ResoRow12->SetBinContent(26,6);
   ResoRow12->SetBinContent(27,4);
   ResoRow12->SetBinContent(28,8);
   ResoRow12->SetBinContent(29,12);
   ResoRow12->SetBinContent(30,6);
   ResoRow12->SetBinContent(31,12);
   ResoRow12->SetBinContent(32,14);
   ResoRow12->SetBinContent(33,8);
   ResoRow12->SetBinContent(34,6);
   ResoRow12->SetBinContent(35,14);
   ResoRow12->SetBinContent(36,22);
   ResoRow12->SetBinContent(37,24);
   ResoRow12->SetBinContent(38,25);
   ResoRow12->SetBinContent(39,27);
   ResoRow12->SetBinContent(40,37);
   ResoRow12->SetBinContent(41,36);
   ResoRow12->SetBinContent(42,47);
   ResoRow12->SetBinContent(43,35);
   ResoRow12->SetBinContent(44,50);
   ResoRow12->SetBinContent(45,39);
   ResoRow12->SetBinContent(46,46);
   ResoRow12->SetBinContent(47,46);
   ResoRow12->SetBinContent(48,65);
   ResoRow12->SetBinContent(49,68);
   ResoRow12->SetBinContent(50,54);
   ResoRow12->SetBinContent(51,61);
   ResoRow12->SetBinContent(52,59);
   ResoRow12->SetBinContent(53,64);
   ResoRow12->SetBinContent(54,59);
   ResoRow12->SetBinContent(55,65);
   ResoRow12->SetBinContent(56,53);
   ResoRow12->SetBinContent(57,51);
   ResoRow12->SetBinContent(58,47);
   ResoRow12->SetBinContent(59,53);
   ResoRow12->SetBinContent(60,37);
   ResoRow12->SetBinContent(61,24);
   ResoRow12->SetBinContent(62,21);
   ResoRow12->SetBinContent(63,20);
   ResoRow12->SetBinContent(64,17);
   ResoRow12->SetBinContent(65,24);
   ResoRow12->SetBinContent(66,25);
   ResoRow12->SetBinContent(67,17);
   ResoRow12->SetBinContent(68,11);
   ResoRow12->SetBinContent(69,11);
   ResoRow12->SetBinContent(70,4);
   ResoRow12->SetBinContent(71,5);
   ResoRow12->SetBinContent(72,15);
   ResoRow12->SetBinContent(73,2);
   ResoRow12->SetBinContent(74,5);
   ResoRow12->SetBinContent(75,5);
   ResoRow12->SetBinContent(76,3);
   ResoRow12->SetBinContent(77,2);
   ResoRow12->SetBinContent(78,3);
   ResoRow12->SetBinContent(80,1);
   ResoRow12->SetBinContent(81,3);
   ResoRow12->SetBinContent(82,1);
   ResoRow12->SetBinContent(83,1);
   ResoRow12->SetBinContent(84,4);
   ResoRow12->SetBinContent(85,4);
   ResoRow12->SetBinContent(86,1);
   ResoRow12->SetBinContent(87,5);
   ResoRow12->SetBinContent(89,1);
   ResoRow12->SetBinContent(93,1);
   ResoRow12->SetBinContent(95,2);
   ResoRow12->SetBinContent(96,2);
   ResoRow12->SetBinContent(97,1);
   ResoRow12->SetBinContent(101,30);
   ResoRow12->SetEntries(1577);
   
   TF1 *ResoRowFit12 = new TF1("ResoRowFit12","gaus",-1,1);
   ResoRowFit12->SetFillColor(19);
   ResoRowFit12->SetFillStyle(0);
   ResoRowFit12->SetLineWidth(3);
   ResoRowFit12->SetChisquare(123.6403);
   ResoRowFit12->SetNDF(80);
   ResoRowFit12->SetParameter(0,57.43668);
   ResoRowFit12->SetParError(0,2.072571);
   ResoRowFit12->SetParLimits(0,0,0);
   ResoRowFit12->SetParameter(1,0.001079011);
   ResoRowFit12->SetParError(1,0.005332348);
   ResoRowFit12->SetParLimits(1,0,0);
   ResoRowFit12->SetParameter(2,0.1964657);
   ResoRowFit12->SetParError(2,0.004880095);
   ResoRowFit12->SetParLimits(2,0,2.385834);
   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 = 1577   ");
   text = ptstats->AddText("Mean  = 0.002542");
   text = ptstats->AddText("RMS   = 0.2382");
   text = ptstats->AddText("#chi^{2} / ndf = 123.6 / 80");
   text = ptstats->AddText("Constant = 57.44 #pm 2.07 ");
   text = ptstats->AddText("Mean     = 0.001079 #pm 0.005332 ");
   text = ptstats->AddText("Sigma    = 0.1965 #pm 0.0049 ");
   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);
}
