{
//=========Macro generated from canvas: c2/
//=========  (Fri Jun 11 13:02:05 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,-16.8,1.25,151.2);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow07 = new TH1F("ResoRow07","",100,-1,1);
   ResoRow07->SetBinContent(10,1);
   ResoRow07->SetBinContent(14,1);
   ResoRow07->SetBinContent(21,1);
   ResoRow07->SetBinContent(27,1);
   ResoRow07->SetBinContent(29,1);
   ResoRow07->SetBinContent(30,2);
   ResoRow07->SetBinContent(32,1);
   ResoRow07->SetBinContent(33,1);
   ResoRow07->SetBinContent(34,1);
   ResoRow07->SetBinContent(37,1);
   ResoRow07->SetBinContent(38,3);
   ResoRow07->SetBinContent(39,1);
   ResoRow07->SetBinContent(40,6);
   ResoRow07->SetBinContent(41,7);
   ResoRow07->SetBinContent(42,9);
   ResoRow07->SetBinContent(43,7);
   ResoRow07->SetBinContent(44,13);
   ResoRow07->SetBinContent(45,33);
   ResoRow07->SetBinContent(46,55);
   ResoRow07->SetBinContent(47,58);
   ResoRow07->SetBinContent(48,91);
   ResoRow07->SetBinContent(49,117);
   ResoRow07->SetBinContent(50,128);
   ResoRow07->SetBinContent(51,117);
   ResoRow07->SetBinContent(52,91);
   ResoRow07->SetBinContent(53,90);
   ResoRow07->SetBinContent(54,54);
   ResoRow07->SetBinContent(55,32);
   ResoRow07->SetBinContent(56,28);
   ResoRow07->SetBinContent(57,17);
   ResoRow07->SetBinContent(58,20);
   ResoRow07->SetBinContent(59,7);
   ResoRow07->SetBinContent(60,7);
   ResoRow07->SetBinContent(61,6);
   ResoRow07->SetBinContent(63,6);
   ResoRow07->SetBinContent(64,1);
   ResoRow07->SetBinContent(65,1);
   ResoRow07->SetBinContent(66,1);
   ResoRow07->SetBinContent(67,1);
   ResoRow07->SetBinContent(68,2);
   ResoRow07->SetBinContent(69,1);
   ResoRow07->SetBinContent(70,1);
   ResoRow07->SetBinContent(71,2);
   ResoRow07->SetBinContent(75,1);
   ResoRow07->SetBinContent(78,1);
   ResoRow07->SetBinContent(80,1);
   ResoRow07->SetBinContent(81,1);
   ResoRow07->SetBinContent(88,1);
   ResoRow07->SetBinContent(98,1);
   ResoRow07->SetBinContent(101,4);
   ResoRow07->SetEntries(1034);
   
   TF1 *ResoRowFit07 = new TF1("ResoRowFit07","gaus",-1,1);
   ResoRowFit07->SetFillColor(19);
   ResoRowFit07->SetFillStyle(0);
   ResoRowFit07->SetLineWidth(3);
   ResoRowFit07->SetChisquare(78.56692);
   ResoRowFit07->SetNDF(46);
   ResoRowFit07->SetParameter(0,111.9029);
   ResoRowFit07->SetParError(0,5.076927);
   ResoRowFit07->SetParLimits(0,0,0);
   ResoRowFit07->SetParameter(1,-0.002613341);
   ResoRowFit07->SetParError(1,0.002252292);
   ResoRowFit07->SetParLimits(1,0,0);
   ResoRowFit07->SetParameter(2,0.06786232);
   ResoRowFit07->SetParError(2,0.002161828);
   ResoRowFit07->SetParLimits(2,0,1.104356);
   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 = 1034   ");
   text = ptstats->AddText("Mean  = 0.001016");
   text = ptstats->AddText("RMS   = 0.1104");
   text = ptstats->AddText("#chi^{2} / ndf = 78.57 / 46");
   text = ptstats->AddText("Constant = 111.9 #pm 5.1 ");
   text = ptstats->AddText("Mean     = -0.002613 #pm 0.002252 ");
   text = ptstats->AddText("Sigma    = 0.06786 #pm 0.00216 ");
   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,-16.93125,1.25,152.3813);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow08 = new TH1F("ResoRow08","",100,-1,1);
   ResoRow08->SetBinContent(8,1);
   ResoRow08->SetBinContent(15,1);
   ResoRow08->SetBinContent(24,3);
   ResoRow08->SetBinContent(25,1);
   ResoRow08->SetBinContent(27,1);
   ResoRow08->SetBinContent(28,1);
   ResoRow08->SetBinContent(34,4);
   ResoRow08->SetBinContent(35,1);
   ResoRow08->SetBinContent(36,3);
   ResoRow08->SetBinContent(38,5);
   ResoRow08->SetBinContent(39,2);
   ResoRow08->SetBinContent(40,4);
   ResoRow08->SetBinContent(41,8);
   ResoRow08->SetBinContent(42,10);
   ResoRow08->SetBinContent(43,14);
   ResoRow08->SetBinContent(44,20);
   ResoRow08->SetBinContent(45,25);
   ResoRow08->SetBinContent(46,35);
   ResoRow08->SetBinContent(47,67);
   ResoRow08->SetBinContent(48,87);
   ResoRow08->SetBinContent(49,82);
   ResoRow08->SetBinContent(50,115);
   ResoRow08->SetBinContent(51,129);
   ResoRow08->SetBinContent(52,109);
   ResoRow08->SetBinContent(53,78);
   ResoRow08->SetBinContent(54,72);
   ResoRow08->SetBinContent(55,57);
   ResoRow08->SetBinContent(56,28);
   ResoRow08->SetBinContent(57,14);
   ResoRow08->SetBinContent(58,14);
   ResoRow08->SetBinContent(59,6);
   ResoRow08->SetBinContent(60,5);
   ResoRow08->SetBinContent(61,5);
   ResoRow08->SetBinContent(63,6);
   ResoRow08->SetBinContent(65,2);
   ResoRow08->SetBinContent(66,2);
   ResoRow08->SetBinContent(68,2);
   ResoRow08->SetBinContent(69,1);
   ResoRow08->SetBinContent(70,2);
   ResoRow08->SetBinContent(71,1);
   ResoRow08->SetBinContent(73,1);
   ResoRow08->SetBinContent(74,1);
   ResoRow08->SetBinContent(79,2);
   ResoRow08->SetBinContent(80,1);
   ResoRow08->SetBinContent(82,1);
   ResoRow08->SetBinContent(91,1);
   ResoRow08->SetBinContent(93,1);
   ResoRow08->SetBinContent(101,3);
   ResoRow08->SetEntries(1034);
   
   TF1 *ResoRowFit08 = new TF1("ResoRowFit08","gaus",-1,1);
   ResoRowFit08->SetFillColor(19);
   ResoRowFit08->SetFillStyle(0);
   ResoRowFit08->SetLineWidth(3);
   ResoRowFit08->SetChisquare(76.77163);
   ResoRowFit08->SetNDF(44);
   ResoRowFit08->SetParameter(0,107.4081);
   ResoRowFit08->SetParError(0,4.780609);
   ResoRowFit08->SetParLimits(0,0,0);
   ResoRowFit08->SetParameter(1,0.001990204);
   ResoRowFit08->SetParError(1,0.002340139);
   ResoRowFit08->SetParLimits(1,0,0);
   ResoRowFit08->SetParameter(2,0.07094245);
   ResoRowFit08->SetParError(2,0.002183425);
   ResoRowFit08->SetParLimits(2,0,1.163012);
   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 = 1034   ");
   text = ptstats->AddText("Mean  = 0.002474");
   text = ptstats->AddText("RMS   = 0.1163");
   text = ptstats->AddText("#chi^{2} / ndf = 76.77 / 44");
   text = ptstats->AddText("Constant = 107.4 #pm 4.8 ");
   text = ptstats->AddText("Mean     = 0.00199 #pm 0.00234 ");
   text = ptstats->AddText("Sigma    = 0.07094 #pm 0.00218 ");
   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,-16.5375,1.25,148.8375);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow09 = new TH1F("ResoRow09","",100,-1,1);
   ResoRow09->SetBinContent(0,1);
   ResoRow09->SetBinContent(10,1);
   ResoRow09->SetBinContent(13,2);
   ResoRow09->SetBinContent(19,1);
   ResoRow09->SetBinContent(21,1);
   ResoRow09->SetBinContent(24,1);
   ResoRow09->SetBinContent(26,1);
   ResoRow09->SetBinContent(28,1);
   ResoRow09->SetBinContent(30,1);
   ResoRow09->SetBinContent(31,1);
   ResoRow09->SetBinContent(34,2);
   ResoRow09->SetBinContent(35,1);
   ResoRow09->SetBinContent(36,3);
   ResoRow09->SetBinContent(37,3);
   ResoRow09->SetBinContent(38,2);
   ResoRow09->SetBinContent(39,4);
   ResoRow09->SetBinContent(40,5);
   ResoRow09->SetBinContent(41,4);
   ResoRow09->SetBinContent(42,5);
   ResoRow09->SetBinContent(43,7);
   ResoRow09->SetBinContent(44,20);
   ResoRow09->SetBinContent(45,26);
   ResoRow09->SetBinContent(46,30);
   ResoRow09->SetBinContent(47,59);
   ResoRow09->SetBinContent(48,82);
   ResoRow09->SetBinContent(49,97);
   ResoRow09->SetBinContent(50,119);
   ResoRow09->SetBinContent(51,126);
   ResoRow09->SetBinContent(52,122);
   ResoRow09->SetBinContent(53,83);
   ResoRow09->SetBinContent(54,68);
   ResoRow09->SetBinContent(55,40);
   ResoRow09->SetBinContent(56,26);
   ResoRow09->SetBinContent(57,28);
   ResoRow09->SetBinContent(58,13);
   ResoRow09->SetBinContent(59,12);
   ResoRow09->SetBinContent(60,9);
   ResoRow09->SetBinContent(61,5);
   ResoRow09->SetBinContent(62,3);
   ResoRow09->SetBinContent(64,3);
   ResoRow09->SetBinContent(66,1);
   ResoRow09->SetBinContent(68,1);
   ResoRow09->SetBinContent(76,1);
   ResoRow09->SetBinContent(81,1);
   ResoRow09->SetBinContent(82,3);
   ResoRow09->SetBinContent(100,1);
   ResoRow09->SetBinContent(101,8);
   ResoRow09->SetEntries(1034);
   
   TF1 *ResoRowFit09 = new TF1("ResoRowFit09","gaus",-1,1);
   ResoRowFit09->SetFillColor(19);
   ResoRowFit09->SetFillStyle(0);
   ResoRowFit09->SetLineWidth(3);
   ResoRowFit09->SetChisquare(71.81669);
   ResoRowFit09->SetNDF(42);
   ResoRowFit09->SetParameter(0,110.3152);
   ResoRowFit09->SetParError(0,5.071465);
   ResoRowFit09->SetParLimits(0,0,0);
   ResoRowFit09->SetParameter(1,0.005678074);
   ResoRowFit09->SetParError(1,0.002256691);
   ResoRowFit09->SetParLimits(1,0,0);
   ResoRowFit09->SetParameter(2,0.06895831);
   ResoRowFit09->SetParError(2,0.002255769);
   ResoRowFit09->SetParLimits(2,0,1.134738);
   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 = 1034   ");
   text = ptstats->AddText("Mean  = 0.00265");
   text = ptstats->AddText("RMS   = 0.1135");
   text = ptstats->AddText("#chi^{2} / ndf = 71.82 / 42");
   text = ptstats->AddText("Constant = 110.3 #pm 5.1 ");
   text = ptstats->AddText("Mean     = 0.005678 #pm 0.002257 ");
   text = ptstats->AddText("Sigma    = 0.06896 #pm 0.00226 ");
   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,-16.0125,1.25,144.1125);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow10 = new TH1F("ResoRow10","",100,-1,1);
   ResoRow10->SetBinContent(5,1);
   ResoRow10->SetBinContent(9,1);
   ResoRow10->SetBinContent(10,1);
   ResoRow10->SetBinContent(13,1);
   ResoRow10->SetBinContent(19,1);
   ResoRow10->SetBinContent(22,1);
   ResoRow10->SetBinContent(24,2);
   ResoRow10->SetBinContent(27,1);
   ResoRow10->SetBinContent(31,2);
   ResoRow10->SetBinContent(34,4);
   ResoRow10->SetBinContent(35,2);
   ResoRow10->SetBinContent(36,5);
   ResoRow10->SetBinContent(37,3);
   ResoRow10->SetBinContent(38,1);
   ResoRow10->SetBinContent(39,1);
   ResoRow10->SetBinContent(40,4);
   ResoRow10->SetBinContent(41,7);
   ResoRow10->SetBinContent(42,7);
   ResoRow10->SetBinContent(43,14);
   ResoRow10->SetBinContent(44,17);
   ResoRow10->SetBinContent(45,20);
   ResoRow10->SetBinContent(46,37);
   ResoRow10->SetBinContent(47,65);
   ResoRow10->SetBinContent(48,80);
   ResoRow10->SetBinContent(49,92);
   ResoRow10->SetBinContent(50,122);
   ResoRow10->SetBinContent(51,121);
   ResoRow10->SetBinContent(52,121);
   ResoRow10->SetBinContent(53,71);
   ResoRow10->SetBinContent(54,60);
   ResoRow10->SetBinContent(55,47);
   ResoRow10->SetBinContent(56,41);
   ResoRow10->SetBinContent(57,19);
   ResoRow10->SetBinContent(58,13);
   ResoRow10->SetBinContent(59,6);
   ResoRow10->SetBinContent(60,7);
   ResoRow10->SetBinContent(61,7);
   ResoRow10->SetBinContent(62,5);
   ResoRow10->SetBinContent(63,1);
   ResoRow10->SetBinContent(65,1);
   ResoRow10->SetBinContent(66,3);
   ResoRow10->SetBinContent(67,4);
   ResoRow10->SetBinContent(68,1);
   ResoRow10->SetBinContent(69,1);
   ResoRow10->SetBinContent(70,2);
   ResoRow10->SetBinContent(71,2);
   ResoRow10->SetBinContent(72,1);
   ResoRow10->SetBinContent(73,1);
   ResoRow10->SetBinContent(77,1);
   ResoRow10->SetBinContent(78,1);
   ResoRow10->SetBinContent(84,1);
   ResoRow10->SetBinContent(88,1);
   ResoRow10->SetBinContent(90,1);
   ResoRow10->SetBinContent(101,2);
   ResoRow10->SetEntries(1034);
   
   TF1 *ResoRowFit10 = new TF1("ResoRowFit10","gaus",-1,1);
   ResoRowFit10->SetFillColor(19);
   ResoRowFit10->SetFillStyle(0);
   ResoRowFit10->SetLineWidth(3);
   ResoRowFit10->SetChisquare(84.20261);
   ResoRowFit10->SetNDF(50);
   ResoRowFit10->SetParameter(0,106.4633);
   ResoRowFit10->SetParError(0,4.785611);
   ResoRowFit10->SetParLimits(0,0,0);
   ResoRowFit10->SetParameter(1,0.004241741);
   ResoRowFit10->SetParError(1,0.002309341);
   ResoRowFit10->SetParLimits(1,0,0);
   ResoRowFit10->SetParameter(2,0.0710396);
   ResoRowFit10->SetParError(2,0.002209499);
   ResoRowFit10->SetParLimits(2,0,1.236043);
   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 = 1034   ");
   text = ptstats->AddText("Mean  = 0.002912");
   text = ptstats->AddText("RMS   = 0.1233");
   text = ptstats->AddText("#chi^{2} / ndf =  84.2 / 50");
   text = ptstats->AddText("Constant = 106.5 #pm 4.8 ");
   text = ptstats->AddText("Mean     = 0.004242 #pm 0.002309 ");
   text = ptstats->AddText("Sigma    = 0.07104 #pm 0.00221 ");
   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,-15.88125,1.25,142.9313);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow11 = new TH1F("ResoRow11","",100,-1,1);
   ResoRow11->SetBinContent(2,1);
   ResoRow11->SetBinContent(7,1);
   ResoRow11->SetBinContent(17,1);
   ResoRow11->SetBinContent(21,1);
   ResoRow11->SetBinContent(23,1);
   ResoRow11->SetBinContent(26,1);
   ResoRow11->SetBinContent(28,1);
   ResoRow11->SetBinContent(30,1);
   ResoRow11->SetBinContent(31,1);
   ResoRow11->SetBinContent(32,1);
   ResoRow11->SetBinContent(33,1);
   ResoRow11->SetBinContent(34,3);
   ResoRow11->SetBinContent(35,1);
   ResoRow11->SetBinContent(36,2);
   ResoRow11->SetBinContent(38,8);
   ResoRow11->SetBinContent(39,7);
   ResoRow11->SetBinContent(40,3);
   ResoRow11->SetBinContent(41,8);
   ResoRow11->SetBinContent(42,9);
   ResoRow11->SetBinContent(43,9);
   ResoRow11->SetBinContent(44,14);
   ResoRow11->SetBinContent(45,28);
   ResoRow11->SetBinContent(46,35);
   ResoRow11->SetBinContent(47,61);
   ResoRow11->SetBinContent(48,83);
   ResoRow11->SetBinContent(49,97);
   ResoRow11->SetBinContent(50,121);
   ResoRow11->SetBinContent(51,110);
   ResoRow11->SetBinContent(52,84);
   ResoRow11->SetBinContent(53,83);
   ResoRow11->SetBinContent(54,73);
   ResoRow11->SetBinContent(55,47);
   ResoRow11->SetBinContent(56,29);
   ResoRow11->SetBinContent(57,27);
   ResoRow11->SetBinContent(58,23);
   ResoRow11->SetBinContent(59,10);
   ResoRow11->SetBinContent(60,10);
   ResoRow11->SetBinContent(61,6);
   ResoRow11->SetBinContent(62,8);
   ResoRow11->SetBinContent(63,3);
   ResoRow11->SetBinContent(64,2);
   ResoRow11->SetBinContent(65,2);
   ResoRow11->SetBinContent(67,2);
   ResoRow11->SetBinContent(68,1);
   ResoRow11->SetBinContent(69,2);
   ResoRow11->SetBinContent(70,1);
   ResoRow11->SetBinContent(72,1);
   ResoRow11->SetBinContent(76,1);
   ResoRow11->SetBinContent(78,1);
   ResoRow11->SetBinContent(90,1);
   ResoRow11->SetBinContent(93,1);
   ResoRow11->SetBinContent(95,1);
   ResoRow11->SetBinContent(101,5);
   ResoRow11->SetEntries(1034);
   
   TF1 *ResoRowFit11 = new TF1("ResoRowFit11","gaus",-1,1);
   ResoRowFit11->SetFillColor(19);
   ResoRowFit11->SetFillStyle(0);
   ResoRowFit11->SetLineWidth(3);
   ResoRowFit11->SetChisquare(81.40771);
   ResoRowFit11->SetNDF(49);
   ResoRowFit11->SetParameter(0,98.93028);
   ResoRowFit11->SetParError(0,4.561148);
   ResoRowFit11->SetParLimits(0,0,0);
   ResoRowFit11->SetParameter(1,0.00731981);
   ResoRowFit11->SetParError(1,0.002533482);
   ResoRowFit11->SetParLimits(1,0,0);
   ResoRowFit11->SetParameter(2,0.07643866);
   ResoRowFit11->SetParError(2,0.00250549);
   ResoRowFit11->SetParLimits(2,0,1.225577);
   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 = 1034   ");
   text = ptstats->AddText("Mean  = 0.004198");
   text = ptstats->AddText("RMS   = 0.1225");
   text = ptstats->AddText("#chi^{2} / ndf = 81.41 / 49");
   text = ptstats->AddText("Constant = 98.93 #pm 4.56 ");
   text = ptstats->AddText("Mean     = 0.00732 #pm 0.00253 ");
   text = ptstats->AddText("Sigma    = 0.07644 #pm 0.00251 ");
   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,-15.4875,1.25,139.3875);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow12 = new TH1F("ResoRow12","",100,-1,1);
   ResoRow12->SetBinContent(4,2);
   ResoRow12->SetBinContent(19,2);
   ResoRow12->SetBinContent(23,1);
   ResoRow12->SetBinContent(27,2);
   ResoRow12->SetBinContent(28,1);
   ResoRow12->SetBinContent(30,4);
   ResoRow12->SetBinContent(32,2);
   ResoRow12->SetBinContent(33,2);
   ResoRow12->SetBinContent(34,1);
   ResoRow12->SetBinContent(35,1);
   ResoRow12->SetBinContent(36,2);
   ResoRow12->SetBinContent(37,2);
   ResoRow12->SetBinContent(38,1);
   ResoRow12->SetBinContent(39,3);
   ResoRow12->SetBinContent(40,2);
   ResoRow12->SetBinContent(41,9);
   ResoRow12->SetBinContent(42,10);
   ResoRow12->SetBinContent(43,15);
   ResoRow12->SetBinContent(44,20);
   ResoRow12->SetBinContent(45,20);
   ResoRow12->SetBinContent(46,31);
   ResoRow12->SetBinContent(47,60);
   ResoRow12->SetBinContent(48,73);
   ResoRow12->SetBinContent(49,110);
   ResoRow12->SetBinContent(50,118);
   ResoRow12->SetBinContent(51,101);
   ResoRow12->SetBinContent(52,113);
   ResoRow12->SetBinContent(53,101);
   ResoRow12->SetBinContent(54,63);
   ResoRow12->SetBinContent(55,38);
   ResoRow12->SetBinContent(56,25);
   ResoRow12->SetBinContent(57,23);
   ResoRow12->SetBinContent(58,20);
   ResoRow12->SetBinContent(59,14);
   ResoRow12->SetBinContent(60,6);
   ResoRow12->SetBinContent(61,6);
   ResoRow12->SetBinContent(62,6);
   ResoRow12->SetBinContent(63,1);
   ResoRow12->SetBinContent(64,3);
   ResoRow12->SetBinContent(65,1);
   ResoRow12->SetBinContent(66,2);
   ResoRow12->SetBinContent(67,1);
   ResoRow12->SetBinContent(68,1);
   ResoRow12->SetBinContent(69,1);
   ResoRow12->SetBinContent(70,2);
   ResoRow12->SetBinContent(72,1);
   ResoRow12->SetBinContent(74,1);
   ResoRow12->SetBinContent(75,2);
   ResoRow12->SetBinContent(85,1);
   ResoRow12->SetBinContent(94,2);
   ResoRow12->SetBinContent(97,1);
   ResoRow12->SetBinContent(101,4);
   ResoRow12->SetEntries(1034);
   
   TF1 *ResoRowFit12 = new TF1("ResoRowFit12","gaus",-1,1);
   ResoRowFit12->SetFillColor(19);
   ResoRowFit12->SetFillStyle(0);
   ResoRowFit12->SetLineWidth(3);
   ResoRowFit12->SetChisquare(94.65159);
   ResoRowFit12->SetNDF(48);
   ResoRowFit12->SetParameter(0,102.1543);
   ResoRowFit12->SetParError(0,5.05939);
   ResoRowFit12->SetParLimits(0,0,0);
   ResoRowFit12->SetParameter(1,0.005181719);
   ResoRowFit12->SetParError(1,0.00239225);
   ResoRowFit12->SetParLimits(1,0,0);
   ResoRowFit12->SetParameter(2,0.07305615);
   ResoRowFit12->SetParError(2,0.002716528);
   ResoRowFit12->SetParLimits(2,0,1.251685);
   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 = 1034   ");
   text = ptstats->AddText("Mean  = 0.004497");
   text = ptstats->AddText("RMS   = 0.1253");
   text = ptstats->AddText("#chi^{2} / ndf = 94.65 / 48");
   text = ptstats->AddText("Constant = 102.2 #pm 5.1 ");
   text = ptstats->AddText("Mean     = 0.005182 #pm 0.002392 ");
   text = ptstats->AddText("Sigma    = 0.07306 #pm 0.00272 ");
   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);
}
