{
//=========Macro generated from canvas: c2/
//=========  (Fri Jun 11 11:34:29 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,-18.9,1.25,170.1);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow07 = new TH1F("ResoRow07","",100,-1,1);
   ResoRow07->SetBinContent(0,2);
   ResoRow07->SetBinContent(5,1);
   ResoRow07->SetBinContent(15,1);
   ResoRow07->SetBinContent(22,1);
   ResoRow07->SetBinContent(24,2);
   ResoRow07->SetBinContent(26,3);
   ResoRow07->SetBinContent(28,1);
   ResoRow07->SetBinContent(30,1);
   ResoRow07->SetBinContent(34,2);
   ResoRow07->SetBinContent(36,1);
   ResoRow07->SetBinContent(37,1);
   ResoRow07->SetBinContent(39,6);
   ResoRow07->SetBinContent(40,5);
   ResoRow07->SetBinContent(41,8);
   ResoRow07->SetBinContent(42,4);
   ResoRow07->SetBinContent(43,9);
   ResoRow07->SetBinContent(44,16);
   ResoRow07->SetBinContent(45,27);
   ResoRow07->SetBinContent(46,26);
   ResoRow07->SetBinContent(47,43);
   ResoRow07->SetBinContent(48,63);
   ResoRow07->SetBinContent(49,106);
   ResoRow07->SetBinContent(50,144);
   ResoRow07->SetBinContent(51,129);
   ResoRow07->SetBinContent(52,94);
   ResoRow07->SetBinContent(53,82);
   ResoRow07->SetBinContent(54,70);
   ResoRow07->SetBinContent(55,41);
   ResoRow07->SetBinContent(56,23);
   ResoRow07->SetBinContent(57,18);
   ResoRow07->SetBinContent(58,12);
   ResoRow07->SetBinContent(59,10);
   ResoRow07->SetBinContent(60,5);
   ResoRow07->SetBinContent(61,2);
   ResoRow07->SetBinContent(62,3);
   ResoRow07->SetBinContent(63,6);
   ResoRow07->SetBinContent(64,3);
   ResoRow07->SetBinContent(65,3);
   ResoRow07->SetBinContent(67,1);
   ResoRow07->SetBinContent(68,2);
   ResoRow07->SetBinContent(69,1);
   ResoRow07->SetBinContent(70,3);
   ResoRow07->SetBinContent(78,1);
   ResoRow07->SetBinContent(82,1);
   ResoRow07->SetBinContent(101,2);
   ResoRow07->SetEntries(985);
   
   TF1 *ResoRowFit07 = new TF1("ResoRowFit07","gaus",-1,1);
   ResoRowFit07->SetFillColor(19);
   ResoRowFit07->SetFillStyle(0);
   ResoRowFit07->SetLineWidth(3);
   ResoRowFit07->SetChisquare(91.1803);
   ResoRowFit07->SetNDF(40);
   ResoRowFit07->SetParameter(0,108.3822);
   ResoRowFit07->SetParError(0,5.316302);
   ResoRowFit07->SetParLimits(0,0,0);
   ResoRowFit07->SetParameter(1,0.006354901);
   ResoRowFit07->SetParError(1,0.002197227);
   ResoRowFit07->SetParLimits(1,0,0);
   ResoRowFit07->SetParameter(2,0.06551045);
   ResoRowFit07->SetParError(2,0.002346964);
   ResoRowFit07->SetParLimits(2,0,1.065806);
   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 = 985    ");
   text = ptstats->AddText("Mean  = 0.003015");
   text = ptstats->AddText("RMS   = 0.1064");
   text = ptstats->AddText("#chi^{2} / ndf = 91.18 / 40");
   text = ptstats->AddText("Constant = 108.4 #pm 5.3 ");
   text = ptstats->AddText("Mean     = 0.006355 #pm 0.002197 ");
   text = ptstats->AddText("Sigma    = 0.06551 #pm 0.00235 ");
   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,-19.81875,1.25,178.3688);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow08 = new TH1F("ResoRow08","",100,-1,1);
   ResoRow08->SetBinContent(0,1);
   ResoRow08->SetBinContent(8,1);
   ResoRow08->SetBinContent(9,1);
   ResoRow08->SetBinContent(21,1);
   ResoRow08->SetBinContent(24,1);
   ResoRow08->SetBinContent(25,1);
   ResoRow08->SetBinContent(26,1);
   ResoRow08->SetBinContent(27,1);
   ResoRow08->SetBinContent(29,1);
   ResoRow08->SetBinContent(30,1);
   ResoRow08->SetBinContent(31,1);
   ResoRow08->SetBinContent(35,1);
   ResoRow08->SetBinContent(36,1);
   ResoRow08->SetBinContent(37,2);
   ResoRow08->SetBinContent(38,3);
   ResoRow08->SetBinContent(39,3);
   ResoRow08->SetBinContent(40,2);
   ResoRow08->SetBinContent(41,6);
   ResoRow08->SetBinContent(42,11);
   ResoRow08->SetBinContent(43,10);
   ResoRow08->SetBinContent(44,16);
   ResoRow08->SetBinContent(45,20);
   ResoRow08->SetBinContent(46,33);
   ResoRow08->SetBinContent(47,27);
   ResoRow08->SetBinContent(48,62);
   ResoRow08->SetBinContent(49,81);
   ResoRow08->SetBinContent(50,112);
   ResoRow08->SetBinContent(51,151);
   ResoRow08->SetBinContent(52,115);
   ResoRow08->SetBinContent(53,94);
   ResoRow08->SetBinContent(54,63);
   ResoRow08->SetBinContent(55,57);
   ResoRow08->SetBinContent(56,37);
   ResoRow08->SetBinContent(57,18);
   ResoRow08->SetBinContent(58,15);
   ResoRow08->SetBinContent(59,6);
   ResoRow08->SetBinContent(60,1);
   ResoRow08->SetBinContent(61,3);
   ResoRow08->SetBinContent(62,3);
   ResoRow08->SetBinContent(63,3);
   ResoRow08->SetBinContent(64,3);
   ResoRow08->SetBinContent(65,1);
   ResoRow08->SetBinContent(67,1);
   ResoRow08->SetBinContent(69,2);
   ResoRow08->SetBinContent(70,2);
   ResoRow08->SetBinContent(72,3);
   ResoRow08->SetBinContent(75,1);
   ResoRow08->SetBinContent(94,1);
   ResoRow08->SetBinContent(101,4);
   ResoRow08->SetEntries(985);
   
   TF1 *ResoRowFit08 = new TF1("ResoRowFit08","gaus",-1,1);
   ResoRowFit08->SetFillColor(19);
   ResoRowFit08->SetFillStyle(0);
   ResoRowFit08->SetLineWidth(3);
   ResoRowFit08->SetChisquare(95.29036);
   ResoRowFit08->SetNDF(44);
   ResoRowFit08->SetParameter(0,111.3774);
   ResoRowFit08->SetParError(0,5.204196);
   ResoRowFit08->SetParLimits(0,0,0);
   ResoRowFit08->SetParameter(1,0.01438133);
   ResoRowFit08->SetParError(1,0.002220303);
   ResoRowFit08->SetParLimits(1,0,0);
   ResoRowFit08->SetParameter(2,0.063379);
   ResoRowFit08->SetParError(2,0.002055223);
   ResoRowFit08->SetParLimits(2,0,1.07457);
   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 = 985    ");
   text = ptstats->AddText("Mean  = 0.00793");
   text = ptstats->AddText("RMS   = 0.1072");
   text = ptstats->AddText("#chi^{2} / ndf = 95.29 / 44");
   text = ptstats->AddText("Constant = 111.4 #pm 5.2 ");
   text = ptstats->AddText("Mean     = 0.01438 #pm 0.00222 ");
   text = ptstats->AddText("Sigma    = 0.06338 #pm 0.00206 ");
   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,-18.6375,1.25,167.7375);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow09 = new TH1F("ResoRow09","",100,-1,1);
   ResoRow09->SetBinContent(0,1);
   ResoRow09->SetBinContent(5,1);
   ResoRow09->SetBinContent(6,1);
   ResoRow09->SetBinContent(22,1);
   ResoRow09->SetBinContent(24,1);
   ResoRow09->SetBinContent(27,1);
   ResoRow09->SetBinContent(28,2);
   ResoRow09->SetBinContent(31,1);
   ResoRow09->SetBinContent(33,2);
   ResoRow09->SetBinContent(34,2);
   ResoRow09->SetBinContent(35,1);
   ResoRow09->SetBinContent(36,2);
   ResoRow09->SetBinContent(37,1);
   ResoRow09->SetBinContent(38,2);
   ResoRow09->SetBinContent(39,2);
   ResoRow09->SetBinContent(40,5);
   ResoRow09->SetBinContent(41,4);
   ResoRow09->SetBinContent(42,3);
   ResoRow09->SetBinContent(43,3);
   ResoRow09->SetBinContent(44,12);
   ResoRow09->SetBinContent(45,28);
   ResoRow09->SetBinContent(46,38);
   ResoRow09->SetBinContent(47,50);
   ResoRow09->SetBinContent(48,65);
   ResoRow09->SetBinContent(49,117);
   ResoRow09->SetBinContent(50,142);
   ResoRow09->SetBinContent(51,105);
   ResoRow09->SetBinContent(52,100);
   ResoRow09->SetBinContent(53,70);
   ResoRow09->SetBinContent(54,47);
   ResoRow09->SetBinContent(55,48);
   ResoRow09->SetBinContent(56,30);
   ResoRow09->SetBinContent(57,20);
   ResoRow09->SetBinContent(58,25);
   ResoRow09->SetBinContent(59,11);
   ResoRow09->SetBinContent(60,8);
   ResoRow09->SetBinContent(61,5);
   ResoRow09->SetBinContent(62,4);
   ResoRow09->SetBinContent(63,2);
   ResoRow09->SetBinContent(64,5);
   ResoRow09->SetBinContent(65,1);
   ResoRow09->SetBinContent(66,1);
   ResoRow09->SetBinContent(67,1);
   ResoRow09->SetBinContent(68,2);
   ResoRow09->SetBinContent(69,1);
   ResoRow09->SetBinContent(71,1);
   ResoRow09->SetBinContent(73,1);
   ResoRow09->SetBinContent(74,1);
   ResoRow09->SetBinContent(76,1);
   ResoRow09->SetBinContent(78,1);
   ResoRow09->SetBinContent(80,1);
   ResoRow09->SetBinContent(94,1);
   ResoRow09->SetBinContent(101,4);
   ResoRow09->SetEntries(985);
   
   TF1 *ResoRowFit09 = new TF1("ResoRowFit09","gaus",-1,1);
   ResoRowFit09->SetFillColor(19);
   ResoRowFit09->SetFillStyle(0);
   ResoRowFit09->SetLineWidth(3);
   ResoRowFit09->SetChisquare(102.689);
   ResoRowFit09->SetNDF(48);
   ResoRowFit09->SetParameter(0,103.6475);
   ResoRowFit09->SetParError(0,4.861569);
   ResoRowFit09->SetParLimits(0,0,0);
   ResoRowFit09->SetParameter(1,0.006382332);
   ResoRowFit09->SetParError(1,0.002554368);
   ResoRowFit09->SetParLimits(1,0,0);
   ResoRowFit09->SetParameter(2,0.06753593);
   ResoRowFit09->SetParError(2,0.002269034);
   ResoRowFit09->SetParLimits(2,0,1.129096);
   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 = 985    ");
   text = ptstats->AddText("Mean  = 0.00732");
   text = ptstats->AddText("RMS   = 0.1129");
   text = ptstats->AddText("#chi^{2} / ndf = 102.7 / 48");
   text = ptstats->AddText("Constant = 103.6 #pm 4.9 ");
   text = ptstats->AddText("Mean     = 0.006382 #pm 0.002554 ");
   text = ptstats->AddText("Sigma    = 0.06754 #pm 0.00227 ");
   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(0,1);
   ResoRow10->SetBinContent(2,1);
   ResoRow10->SetBinContent(6,1);
   ResoRow10->SetBinContent(8,1);
   ResoRow10->SetBinContent(17,1);
   ResoRow10->SetBinContent(23,1);
   ResoRow10->SetBinContent(24,1);
   ResoRow10->SetBinContent(25,1);
   ResoRow10->SetBinContent(27,3);
   ResoRow10->SetBinContent(33,2);
   ResoRow10->SetBinContent(34,3);
   ResoRow10->SetBinContent(35,1);
   ResoRow10->SetBinContent(38,4);
   ResoRow10->SetBinContent(39,4);
   ResoRow10->SetBinContent(40,5);
   ResoRow10->SetBinContent(41,4);
   ResoRow10->SetBinContent(42,3);
   ResoRow10->SetBinContent(43,9);
   ResoRow10->SetBinContent(44,11);
   ResoRow10->SetBinContent(45,19);
   ResoRow10->SetBinContent(46,36);
   ResoRow10->SetBinContent(47,58);
   ResoRow10->SetBinContent(48,87);
   ResoRow10->SetBinContent(49,98);
   ResoRow10->SetBinContent(50,122);
   ResoRow10->SetBinContent(51,105);
   ResoRow10->SetBinContent(52,107);
   ResoRow10->SetBinContent(53,65);
   ResoRow10->SetBinContent(54,49);
   ResoRow10->SetBinContent(55,50);
   ResoRow10->SetBinContent(56,24);
   ResoRow10->SetBinContent(57,26);
   ResoRow10->SetBinContent(58,18);
   ResoRow10->SetBinContent(59,11);
   ResoRow10->SetBinContent(60,12);
   ResoRow10->SetBinContent(61,12);
   ResoRow10->SetBinContent(62,5);
   ResoRow10->SetBinContent(63,5);
   ResoRow10->SetBinContent(64,4);
   ResoRow10->SetBinContent(65,2);
   ResoRow10->SetBinContent(66,1);
   ResoRow10->SetBinContent(67,1);
   ResoRow10->SetBinContent(69,2);
   ResoRow10->SetBinContent(70,1);
   ResoRow10->SetBinContent(74,3);
   ResoRow10->SetBinContent(75,1);
   ResoRow10->SetBinContent(77,1);
   ResoRow10->SetBinContent(78,1);
   ResoRow10->SetBinContent(80,1);
   ResoRow10->SetBinContent(86,1);
   ResoRow10->SetEntries(985);
   
   TF1 *ResoRowFit10 = new TF1("ResoRowFit10","gaus",-1,1);
   ResoRowFit10->SetFillColor(19);
   ResoRowFit10->SetFillStyle(0);
   ResoRowFit10->SetLineWidth(3);
   ResoRowFit10->SetChisquare(103.9603);
   ResoRowFit10->SetNDF(46);
   ResoRowFit10->SetParameter(0,100.6427);
   ResoRowFit10->SetParError(0,4.992004);
   ResoRowFit10->SetParLimits(0,0,0);
   ResoRowFit10->SetParameter(1,0.005243421);
   ResoRowFit10->SetParError(1,0.00260179);
   ResoRowFit10->SetParLimits(1,0,0);
   ResoRowFit10->SetParameter(2,0.069773);
   ResoRowFit10->SetParError(2,0.002525364);
   ResoRowFit10->SetParLimits(2,0,1.225569);
   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 = 985    ");
   text = ptstats->AddText("Mean  = 0.007755");
   text = ptstats->AddText("RMS   = 0.1224");
   text = ptstats->AddText("#chi^{2} / ndf =   104 / 46");
   text = ptstats->AddText("Constant = 100.6 #pm 5.0 ");
   text = ptstats->AddText("Mean     = 0.005243 #pm 0.002602 ");
   text = ptstats->AddText("Sigma    = 0.06977 #pm 0.00253 ");
   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.35625,1.25,138.2063);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow11 = new TH1F("ResoRow11","",100,-1,1);
   ResoRow11->SetBinContent(0,1);
   ResoRow11->SetBinContent(8,1);
   ResoRow11->SetBinContent(12,1);
   ResoRow11->SetBinContent(17,1);
   ResoRow11->SetBinContent(18,1);
   ResoRow11->SetBinContent(21,1);
   ResoRow11->SetBinContent(23,2);
   ResoRow11->SetBinContent(24,1);
   ResoRow11->SetBinContent(28,2);
   ResoRow11->SetBinContent(29,2);
   ResoRow11->SetBinContent(30,1);
   ResoRow11->SetBinContent(33,1);
   ResoRow11->SetBinContent(35,1);
   ResoRow11->SetBinContent(36,1);
   ResoRow11->SetBinContent(37,5);
   ResoRow11->SetBinContent(38,4);
   ResoRow11->SetBinContent(39,3);
   ResoRow11->SetBinContent(40,6);
   ResoRow11->SetBinContent(41,4);
   ResoRow11->SetBinContent(42,5);
   ResoRow11->SetBinContent(43,15);
   ResoRow11->SetBinContent(44,13);
   ResoRow11->SetBinContent(45,21);
   ResoRow11->SetBinContent(46,35);
   ResoRow11->SetBinContent(47,62);
   ResoRow11->SetBinContent(48,66);
   ResoRow11->SetBinContent(49,105);
   ResoRow11->SetBinContent(50,117);
   ResoRow11->SetBinContent(51,110);
   ResoRow11->SetBinContent(52,85);
   ResoRow11->SetBinContent(53,75);
   ResoRow11->SetBinContent(54,59);
   ResoRow11->SetBinContent(55,47);
   ResoRow11->SetBinContent(56,29);
   ResoRow11->SetBinContent(57,20);
   ResoRow11->SetBinContent(58,19);
   ResoRow11->SetBinContent(59,10);
   ResoRow11->SetBinContent(60,11);
   ResoRow11->SetBinContent(61,7);
   ResoRow11->SetBinContent(62,7);
   ResoRow11->SetBinContent(63,7);
   ResoRow11->SetBinContent(64,1);
   ResoRow11->SetBinContent(65,5);
   ResoRow11->SetBinContent(66,2);
   ResoRow11->SetBinContent(67,2);
   ResoRow11->SetBinContent(68,1);
   ResoRow11->SetBinContent(70,2);
   ResoRow11->SetBinContent(71,2);
   ResoRow11->SetBinContent(72,1);
   ResoRow11->SetBinContent(76,1);
   ResoRow11->SetBinContent(79,1);
   ResoRow11->SetBinContent(81,1);
   ResoRow11->SetBinContent(84,1);
   ResoRow11->SetBinContent(88,1);
   ResoRow11->SetEntries(985);
   
   TF1 *ResoRowFit11 = new TF1("ResoRowFit11","gaus",-1,1);
   ResoRowFit11->SetFillColor(19);
   ResoRowFit11->SetFillStyle(0);
   ResoRowFit11->SetLineWidth(3);
   ResoRowFit11->SetChisquare(92.79878);
   ResoRowFit11->SetNDF(50);
   ResoRowFit11->SetParameter(0,95.71252);
   ResoRowFit11->SetParError(0,4.646276);
   ResoRowFit11->SetParLimits(0,0,0);
   ResoRowFit11->SetParameter(1,0.006272237);
   ResoRowFit11->SetParError(1,0.002555496);
   ResoRowFit11->SetParLimits(1,0,0);
   ResoRowFit11->SetParameter(2,0.07429322);
   ResoRowFit11->SetParError(2,0.002609332);
   ResoRowFit11->SetParLimits(2,0,1.247367);
   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 = 985    ");
   text = ptstats->AddText("Mean  = 0.005935");
   text = ptstats->AddText("RMS   = 0.1246");
   text = ptstats->AddText("#chi^{2} / ndf =  92.8 / 50");
   text = ptstats->AddText("Constant = 95.71 #pm 4.65 ");
   text = ptstats->AddText("Mean     = 0.006272 #pm 0.002555 ");
   text = ptstats->AddText("Sigma    = 0.07429 #pm 0.00261 ");
   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,-16.0125,1.25,144.1125);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow12 = new TH1F("ResoRow12","",100,-1,1);
   ResoRow12->SetBinContent(0,2);
   ResoRow12->SetBinContent(12,1);
   ResoRow12->SetBinContent(18,1);
   ResoRow12->SetBinContent(20,1);
   ResoRow12->SetBinContent(21,1);
   ResoRow12->SetBinContent(22,1);
   ResoRow12->SetBinContent(24,1);
   ResoRow12->SetBinContent(31,1);
   ResoRow12->SetBinContent(33,1);
   ResoRow12->SetBinContent(34,1);
   ResoRow12->SetBinContent(35,1);
   ResoRow12->SetBinContent(36,2);
   ResoRow12->SetBinContent(37,4);
   ResoRow12->SetBinContent(38,3);
   ResoRow12->SetBinContent(39,5);
   ResoRow12->SetBinContent(40,3);
   ResoRow12->SetBinContent(41,4);
   ResoRow12->SetBinContent(42,8);
   ResoRow12->SetBinContent(43,13);
   ResoRow12->SetBinContent(44,7);
   ResoRow12->SetBinContent(45,19);
   ResoRow12->SetBinContent(46,32);
   ResoRow12->SetBinContent(47,46);
   ResoRow12->SetBinContent(48,80);
   ResoRow12->SetBinContent(49,86);
   ResoRow12->SetBinContent(50,119);
   ResoRow12->SetBinContent(51,105);
   ResoRow12->SetBinContent(52,122);
   ResoRow12->SetBinContent(53,97);
   ResoRow12->SetBinContent(54,59);
   ResoRow12->SetBinContent(55,34);
   ResoRow12->SetBinContent(56,32);
   ResoRow12->SetBinContent(57,31);
   ResoRow12->SetBinContent(58,14);
   ResoRow12->SetBinContent(59,8);
   ResoRow12->SetBinContent(60,7);
   ResoRow12->SetBinContent(61,5);
   ResoRow12->SetBinContent(62,5);
   ResoRow12->SetBinContent(63,3);
   ResoRow12->SetBinContent(64,2);
   ResoRow12->SetBinContent(65,3);
   ResoRow12->SetBinContent(66,1);
   ResoRow12->SetBinContent(67,1);
   ResoRow12->SetBinContent(69,1);
   ResoRow12->SetBinContent(70,1);
   ResoRow12->SetBinContent(72,2);
   ResoRow12->SetBinContent(74,1);
   ResoRow12->SetBinContent(75,2);
   ResoRow12->SetBinContent(77,1);
   ResoRow12->SetBinContent(81,1);
   ResoRow12->SetBinContent(85,1);
   ResoRow12->SetBinContent(96,1);
   ResoRow12->SetBinContent(101,2);
   ResoRow12->SetEntries(985);
   
   TF1 *ResoRowFit12 = new TF1("ResoRowFit12","gaus",-1,1);
   ResoRowFit12->SetFillColor(19);
   ResoRowFit12->SetFillStyle(0);
   ResoRowFit12->SetLineWidth(3);
   ResoRowFit12->SetChisquare(92.8921);
   ResoRowFit12->SetNDF(48);
   ResoRowFit12->SetParameter(0,104.9871);
   ResoRowFit12->SetParError(0,5.083688);
   ResoRowFit12->SetParLimits(0,0,0);
   ResoRowFit12->SetParameter(1,0.009748353);
   ResoRowFit12->SetParError(1,0.002305843);
   ResoRowFit12->SetParLimits(1,0,0);
   ResoRowFit12->SetParameter(2,0.06749472);
   ResoRowFit12->SetParError(2,0.002355199);
   ResoRowFit12->SetParLimits(2,0,1.141827);
   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 = 985    ");
   text = ptstats->AddText("Mean  = 0.009957");
   text = ptstats->AddText("RMS   = 0.1139");
   text = ptstats->AddText("#chi^{2} / ndf = 92.89 / 48");
   text = ptstats->AddText("Constant =   105 #pm 5.1 ");
   text = ptstats->AddText("Mean     = 0.009748 #pm 0.002306 ");
   text = ptstats->AddText("Sigma    = 0.06749 #pm 0.00236 ");
   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);
}
