{
//=========Macro generated from canvas: c2/
//=========  (Fri Jun 11 13:02:06 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.40625,1.25,147.6563);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow13 = new TH1F("ResoRow13","",100,-1,1);
   ResoRow13->SetBinContent(4,1);
   ResoRow13->SetBinContent(7,1);
   ResoRow13->SetBinContent(17,1);
   ResoRow13->SetBinContent(19,1);
   ResoRow13->SetBinContent(21,1);
   ResoRow13->SetBinContent(22,1);
   ResoRow13->SetBinContent(28,2);
   ResoRow13->SetBinContent(29,3);
   ResoRow13->SetBinContent(30,2);
   ResoRow13->SetBinContent(31,3);
   ResoRow13->SetBinContent(33,1);
   ResoRow13->SetBinContent(34,1);
   ResoRow13->SetBinContent(36,1);
   ResoRow13->SetBinContent(37,2);
   ResoRow13->SetBinContent(38,1);
   ResoRow13->SetBinContent(39,7);
   ResoRow13->SetBinContent(40,7);
   ResoRow13->SetBinContent(41,8);
   ResoRow13->SetBinContent(42,13);
   ResoRow13->SetBinContent(43,19);
   ResoRow13->SetBinContent(44,24);
   ResoRow13->SetBinContent(45,28);
   ResoRow13->SetBinContent(46,40);
   ResoRow13->SetBinContent(47,47);
   ResoRow13->SetBinContent(48,83);
   ResoRow13->SetBinContent(49,81);
   ResoRow13->SetBinContent(50,110);
   ResoRow13->SetBinContent(51,91);
   ResoRow13->SetBinContent(52,125);
   ResoRow13->SetBinContent(53,67);
   ResoRow13->SetBinContent(54,68);
   ResoRow13->SetBinContent(55,45);
   ResoRow13->SetBinContent(56,45);
   ResoRow13->SetBinContent(57,33);
   ResoRow13->SetBinContent(58,17);
   ResoRow13->SetBinContent(59,12);
   ResoRow13->SetBinContent(60,4);
   ResoRow13->SetBinContent(61,11);
   ResoRow13->SetBinContent(62,2);
   ResoRow13->SetBinContent(63,4);
   ResoRow13->SetBinContent(64,1);
   ResoRow13->SetBinContent(66,2);
   ResoRow13->SetBinContent(67,1);
   ResoRow13->SetBinContent(70,2);
   ResoRow13->SetBinContent(71,1);
   ResoRow13->SetBinContent(72,1);
   ResoRow13->SetBinContent(73,1);
   ResoRow13->SetBinContent(74,1);
   ResoRow13->SetBinContent(80,1);
   ResoRow13->SetBinContent(90,2);
   ResoRow13->SetBinContent(95,1);
   ResoRow13->SetBinContent(101,7);
   ResoRow13->SetEntries(1034);
   
   TF1 *ResoRowFit13 = new TF1("ResoRowFit13","gaus",-1,1);
   ResoRowFit13->SetFillColor(19);
   ResoRowFit13->SetFillStyle(0);
   ResoRowFit13->SetLineWidth(3);
   ResoRowFit13->SetChisquare(78.78847);
   ResoRowFit13->SetNDF(48);
   ResoRowFit13->SetParameter(0,91.28438);
   ResoRowFit13->SetParError(0,3.98939);
   ResoRowFit13->SetParLimits(0,0,0);
   ResoRowFit13->SetParameter(1,0.004447244);
   ResoRowFit13->SetParError(1,0.002746885);
   ResoRowFit13->SetParLimits(1,0,0);
   ResoRowFit13->SetParameter(2,0.08290912);
   ResoRowFit13->SetParError(2,0.002433738);
   ResoRowFit13->SetParLimits(2,0,1.264544);
   ResoRow13->GetListOfFunctions()->Add(ResoRowFit13);
   
   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("ResoRow13");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1034   ");
   text = ptstats->AddText("Mean  = 0.001367");
   text = ptstats->AddText("RMS   = 0.1261");
   text = ptstats->AddText("#chi^{2} / ndf = 78.79 / 48");
   text = ptstats->AddText("Constant = 91.28 #pm 3.99 ");
   text = ptstats->AddText("Mean     = 0.004447 #pm 0.002747 ");
   text = ptstats->AddText("Sigma    = 0.08291 #pm 0.00243 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow13->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow13->GetListOfFunctions());
   ResoRow13->GetXaxis()->SetTitle("residual / mm");
   ResoRow13->GetYaxis()->SetTitle("counts");
   ResoRow13->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,-12.46875,1.25,112.2188);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow15 = new TH1F("ResoRow15","",100,-1,1);
   ResoRow15->SetBinContent(0,2);
   ResoRow15->SetBinContent(4,1);
   ResoRow15->SetBinContent(6,1);
   ResoRow15->SetBinContent(14,1);
   ResoRow15->SetBinContent(21,2);
   ResoRow15->SetBinContent(24,1);
   ResoRow15->SetBinContent(26,1);
   ResoRow15->SetBinContent(28,1);
   ResoRow15->SetBinContent(30,1);
   ResoRow15->SetBinContent(31,1);
   ResoRow15->SetBinContent(32,2);
   ResoRow15->SetBinContent(33,1);
   ResoRow15->SetBinContent(34,1);
   ResoRow15->SetBinContent(35,3);
   ResoRow15->SetBinContent(36,4);
   ResoRow15->SetBinContent(37,5);
   ResoRow15->SetBinContent(38,1);
   ResoRow15->SetBinContent(39,7);
   ResoRow15->SetBinContent(40,9);
   ResoRow15->SetBinContent(41,15);
   ResoRow15->SetBinContent(42,16);
   ResoRow15->SetBinContent(43,23);
   ResoRow15->SetBinContent(44,23);
   ResoRow15->SetBinContent(45,43);
   ResoRow15->SetBinContent(46,43);
   ResoRow15->SetBinContent(47,72);
   ResoRow15->SetBinContent(48,82);
   ResoRow15->SetBinContent(49,85);
   ResoRow15->SetBinContent(50,94);
   ResoRow15->SetBinContent(51,95);
   ResoRow15->SetBinContent(52,78);
   ResoRow15->SetBinContent(53,66);
   ResoRow15->SetBinContent(54,51);
   ResoRow15->SetBinContent(55,42);
   ResoRow15->SetBinContent(56,27);
   ResoRow15->SetBinContent(57,11);
   ResoRow15->SetBinContent(58,16);
   ResoRow15->SetBinContent(59,17);
   ResoRow15->SetBinContent(60,16);
   ResoRow15->SetBinContent(61,18);
   ResoRow15->SetBinContent(62,10);
   ResoRow15->SetBinContent(63,6);
   ResoRow15->SetBinContent(64,5);
   ResoRow15->SetBinContent(65,6);
   ResoRow15->SetBinContent(66,1);
   ResoRow15->SetBinContent(67,2);
   ResoRow15->SetBinContent(68,1);
   ResoRow15->SetBinContent(69,4);
   ResoRow15->SetBinContent(70,2);
   ResoRow15->SetBinContent(71,1);
   ResoRow15->SetBinContent(72,2);
   ResoRow15->SetBinContent(77,1);
   ResoRow15->SetBinContent(84,1);
   ResoRow15->SetBinContent(86,1);
   ResoRow15->SetBinContent(101,13);
   ResoRow15->SetEntries(1034);
   
   TF1 *ResoRowFit15 = new TF1("ResoRowFit15","gaus",-1,1);
   ResoRowFit15->SetFillColor(19);
   ResoRowFit15->SetFillStyle(0);
   ResoRowFit15->SetLineWidth(3);
   ResoRowFit15->SetChisquare(110.6199);
   ResoRowFit15->SetNDF(50);
   ResoRowFit15->SetParameter(0,81.53644);
   ResoRowFit15->SetParError(0,4.007326);
   ResoRowFit15->SetParLimits(0,0,0);
   ResoRowFit15->SetParameter(1,-0.01061643);
   ResoRowFit15->SetParError(1,0.002982472);
   ResoRowFit15->SetParLimits(1,0,0);
   ResoRowFit15->SetParameter(2,0.08889076);
   ResoRowFit15->SetParError(2,0.003221581);
   ResoRowFit15->SetParLimits(2,0,1.331497);
   ResoRow15->GetListOfFunctions()->Add(ResoRowFit15);
   
   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("ResoRow15");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1034   ");
   text = ptstats->AddText("Mean  = -0.003605");
   text = ptstats->AddText("RMS   = 0.1333");
   text = ptstats->AddText("#chi^{2} / ndf = 110.6 / 50");
   text = ptstats->AddText("Constant = 81.54 #pm 4.01 ");
   text = ptstats->AddText("Mean     = -0.01062 #pm 0.00298 ");
   text = ptstats->AddText("Sigma    = 0.08889 #pm 0.00322 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow15->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow15->GetListOfFunctions());
   ResoRow15->GetXaxis()->SetTitle("residual / mm");
   ResoRow15->GetYaxis()->SetTitle("counts");
   ResoRow15->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,-15.35625,1.25,138.2063);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow16 = new TH1F("ResoRow16","",100,-1,1);
   ResoRow16->SetBinContent(0,3);
   ResoRow16->SetBinContent(7,1);
   ResoRow16->SetBinContent(9,1);
   ResoRow16->SetBinContent(17,1);
   ResoRow16->SetBinContent(24,1);
   ResoRow16->SetBinContent(25,2);
   ResoRow16->SetBinContent(26,2);
   ResoRow16->SetBinContent(29,1);
   ResoRow16->SetBinContent(32,1);
   ResoRow16->SetBinContent(33,2);
   ResoRow16->SetBinContent(34,1);
   ResoRow16->SetBinContent(35,2);
   ResoRow16->SetBinContent(36,1);
   ResoRow16->SetBinContent(37,3);
   ResoRow16->SetBinContent(38,1);
   ResoRow16->SetBinContent(39,2);
   ResoRow16->SetBinContent(40,6);
   ResoRow16->SetBinContent(41,6);
   ResoRow16->SetBinContent(42,12);
   ResoRow16->SetBinContent(43,21);
   ResoRow16->SetBinContent(44,28);
   ResoRow16->SetBinContent(45,26);
   ResoRow16->SetBinContent(46,34);
   ResoRow16->SetBinContent(47,55);
   ResoRow16->SetBinContent(48,69);
   ResoRow16->SetBinContent(49,108);
   ResoRow16->SetBinContent(50,104);
   ResoRow16->SetBinContent(51,107);
   ResoRow16->SetBinContent(52,117);
   ResoRow16->SetBinContent(53,92);
   ResoRow16->SetBinContent(54,63);
   ResoRow16->SetBinContent(55,43);
   ResoRow16->SetBinContent(56,28);
   ResoRow16->SetBinContent(57,19);
   ResoRow16->SetBinContent(58,18);
   ResoRow16->SetBinContent(59,12);
   ResoRow16->SetBinContent(60,8);
   ResoRow16->SetBinContent(61,6);
   ResoRow16->SetBinContent(62,3);
   ResoRow16->SetBinContent(63,7);
   ResoRow16->SetBinContent(64,2);
   ResoRow16->SetBinContent(65,4);
   ResoRow16->SetBinContent(66,1);
   ResoRow16->SetBinContent(67,3);
   ResoRow16->SetBinContent(69,1);
   ResoRow16->SetBinContent(70,2);
   ResoRow16->SetBinContent(75,1);
   ResoRow16->SetBinContent(101,3);
   ResoRow16->SetEntries(1034);
   
   TF1 *ResoRowFit16 = new TF1("ResoRowFit16","gaus",-1,1);
   ResoRowFit16->SetFillColor(19);
   ResoRowFit16->SetFillStyle(0);
   ResoRowFit16->SetLineWidth(3);
   ResoRowFit16->SetChisquare(78.70505);
   ResoRowFit16->SetNDF(43);
   ResoRowFit16->SetParameter(0,96.61209);
   ResoRowFit16->SetParError(0,4.616624);
   ResoRowFit16->SetParLimits(0,0,0);
   ResoRowFit16->SetParameter(1,0.002672701);
   ResoRowFit16->SetParError(1,0.002555878);
   ResoRowFit16->SetParLimits(1,0,0);
   ResoRowFit16->SetParameter(2,0.07839936);
   ResoRowFit16->SetParError(2,0.002748909);
   ResoRowFit16->SetParLimits(2,0,1.10617);
   ResoRow16->GetListOfFunctions()->Add(ResoRowFit16);
   
   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("ResoRow16");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1034   ");
   text = ptstats->AddText("Mean  = -0.000401");
   text = ptstats->AddText("RMS   = 0.1105");
   text = ptstats->AddText("#chi^{2} / ndf = 78.71 / 43");
   text = ptstats->AddText("Constant = 96.61 #pm 4.62 ");
   text = ptstats->AddText("Mean     = 0.002673 #pm 0.002556 ");
   text = ptstats->AddText("Sigma    = 0.0784 #pm 0.0027 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow16->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow16->GetListOfFunctions());
   ResoRow16->GetXaxis()->SetTitle("residual / mm");
   ResoRow16->GetYaxis()->SetTitle("counts");
   ResoRow16->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.8,1.25,151.2);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow17 = new TH1F("ResoRow17","",100,-1,1);
   ResoRow17->SetBinContent(0,2);
   ResoRow17->SetBinContent(4,1);
   ResoRow17->SetBinContent(9,1);
   ResoRow17->SetBinContent(12,1);
   ResoRow17->SetBinContent(21,1);
   ResoRow17->SetBinContent(22,1);
   ResoRow17->SetBinContent(23,1);
   ResoRow17->SetBinContent(25,2);
   ResoRow17->SetBinContent(27,1);
   ResoRow17->SetBinContent(28,1);
   ResoRow17->SetBinContent(31,2);
   ResoRow17->SetBinContent(32,1);
   ResoRow17->SetBinContent(33,1);
   ResoRow17->SetBinContent(34,2);
   ResoRow17->SetBinContent(35,1);
   ResoRow17->SetBinContent(36,1);
   ResoRow17->SetBinContent(37,4);
   ResoRow17->SetBinContent(38,1);
   ResoRow17->SetBinContent(39,4);
   ResoRow17->SetBinContent(40,4);
   ResoRow17->SetBinContent(41,8);
   ResoRow17->SetBinContent(42,7);
   ResoRow17->SetBinContent(43,15);
   ResoRow17->SetBinContent(44,20);
   ResoRow17->SetBinContent(45,33);
   ResoRow17->SetBinContent(46,48);
   ResoRow17->SetBinContent(47,74);
   ResoRow17->SetBinContent(48,84);
   ResoRow17->SetBinContent(49,111);
   ResoRow17->SetBinContent(50,128);
   ResoRow17->SetBinContent(51,99);
   ResoRow17->SetBinContent(52,98);
   ResoRow17->SetBinContent(53,78);
   ResoRow17->SetBinContent(54,55);
   ResoRow17->SetBinContent(55,38);
   ResoRow17->SetBinContent(56,14);
   ResoRow17->SetBinContent(57,16);
   ResoRow17->SetBinContent(58,16);
   ResoRow17->SetBinContent(59,8);
   ResoRow17->SetBinContent(60,18);
   ResoRow17->SetBinContent(61,5);
   ResoRow17->SetBinContent(62,6);
   ResoRow17->SetBinContent(63,9);
   ResoRow17->SetBinContent(64,2);
   ResoRow17->SetBinContent(65,3);
   ResoRow17->SetBinContent(66,2);
   ResoRow17->SetBinContent(67,1);
   ResoRow17->SetBinContent(70,1);
   ResoRow17->SetBinContent(101,4);
   ResoRow17->SetEntries(1034);
   
   TF1 *ResoRowFit17 = new TF1("ResoRowFit17","gaus",-1,1);
   ResoRowFit17->SetFillColor(19);
   ResoRowFit17->SetFillStyle(0);
   ResoRowFit17->SetLineWidth(3);
   ResoRowFit17->SetChisquare(92.2104);
   ResoRowFit17->SetNDF(44);
   ResoRowFit17->SetParameter(0,106.4044);
   ResoRowFit17->SetParError(0,4.949396);
   ResoRowFit17->SetParLimits(0,0,0);
   ResoRowFit17->SetParameter(1,-0.008587656);
   ResoRowFit17->SetParError(1,0.002295481);
   ResoRowFit17->SetParLimits(1,0,0);
   ResoRowFit17->SetParameter(2,0.07017122);
   ResoRowFit17->SetParError(2,0.002321106);
   ResoRowFit17->SetParLimits(2,0,1.117903);
   ResoRow17->GetListOfFunctions()->Add(ResoRowFit17);
   
   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("ResoRow17");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1034   ");
   text = ptstats->AddText("Mean  = -0.00794");
   text = ptstats->AddText("RMS   = 0.1116");
   text = ptstats->AddText("#chi^{2} / ndf = 92.21 / 44");
   text = ptstats->AddText("Constant = 106.4 #pm 4.9 ");
   text = ptstats->AddText("Mean     = -0.008588 #pm 0.002295 ");
   text = ptstats->AddText("Sigma    = 0.07017 #pm 0.00232 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow17->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow17->GetListOfFunctions());
   ResoRow17->GetXaxis()->SetTitle("residual / mm");
   ResoRow17->GetYaxis()->SetTitle("counts");
   ResoRow17->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,-16.93125,1.25,152.3813);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow18 = new TH1F("ResoRow18","",100,-1,1);
   ResoRow18->SetBinContent(0,2);
   ResoRow18->SetBinContent(6,1);
   ResoRow18->SetBinContent(14,1);
   ResoRow18->SetBinContent(19,1);
   ResoRow18->SetBinContent(21,1);
   ResoRow18->SetBinContent(22,1);
   ResoRow18->SetBinContent(23,1);
   ResoRow18->SetBinContent(26,2);
   ResoRow18->SetBinContent(28,3);
   ResoRow18->SetBinContent(29,2);
   ResoRow18->SetBinContent(32,1);
   ResoRow18->SetBinContent(33,1);
   ResoRow18->SetBinContent(34,1);
   ResoRow18->SetBinContent(35,1);
   ResoRow18->SetBinContent(38,1);
   ResoRow18->SetBinContent(39,7);
   ResoRow18->SetBinContent(40,1);
   ResoRow18->SetBinContent(41,3);
   ResoRow18->SetBinContent(42,12);
   ResoRow18->SetBinContent(43,14);
   ResoRow18->SetBinContent(44,17);
   ResoRow18->SetBinContent(45,29);
   ResoRow18->SetBinContent(46,46);
   ResoRow18->SetBinContent(47,73);
   ResoRow18->SetBinContent(48,81);
   ResoRow18->SetBinContent(49,99);
   ResoRow18->SetBinContent(50,106);
   ResoRow18->SetBinContent(51,129);
   ResoRow18->SetBinContent(52,105);
   ResoRow18->SetBinContent(53,93);
   ResoRow18->SetBinContent(54,64);
   ResoRow18->SetBinContent(55,37);
   ResoRow18->SetBinContent(56,27);
   ResoRow18->SetBinContent(57,15);
   ResoRow18->SetBinContent(58,17);
   ResoRow18->SetBinContent(59,7);
   ResoRow18->SetBinContent(60,5);
   ResoRow18->SetBinContent(61,7);
   ResoRow18->SetBinContent(62,4);
   ResoRow18->SetBinContent(63,3);
   ResoRow18->SetBinContent(64,2);
   ResoRow18->SetBinContent(68,1);
   ResoRow18->SetBinContent(80,1);
   ResoRow18->SetBinContent(93,1);
   ResoRow18->SetBinContent(101,8);
   ResoRow18->SetEntries(1034);
   
   TF1 *ResoRowFit18 = new TF1("ResoRowFit18","gaus",-1,1);
   ResoRowFit18->SetFillColor(19);
   ResoRowFit18->SetFillStyle(0);
   ResoRowFit18->SetLineWidth(3);
   ResoRowFit18->SetChisquare(57.42967);
   ResoRowFit18->SetNDF(40);
   ResoRowFit18->SetParameter(0,109.6453);
   ResoRowFit18->SetParError(0,4.712491);
   ResoRowFit18->SetParLimits(0,0,0);
   ResoRowFit18->SetParameter(1,-0.001100564);
   ResoRowFit18->SetParError(1,0.002266537);
   ResoRowFit18->SetParLimits(1,0,0);
   ResoRowFit18->SetParameter(2,0.07034617);
   ResoRowFit18->SetParError(2,0.002008558);
   ResoRowFit18->SetParLimits(2,0,1.075598);
   ResoRow18->GetListOfFunctions()->Add(ResoRowFit18);
   
   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("ResoRow18");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1034   ");
   text = ptstats->AddText("Mean  = -0.005668");
   text = ptstats->AddText("RMS   = 0.1072");
   text = ptstats->AddText("#chi^{2} / ndf = 57.43 / 40");
   text = ptstats->AddText("Constant = 109.6 #pm 4.7 ");
   text = ptstats->AddText("Mean     = -0.001101 #pm 0.002267 ");
   text = ptstats->AddText("Sigma    = 0.07035 #pm 0.00201 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow18->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow18->GetListOfFunctions());
   ResoRow18->GetXaxis()->SetTitle("residual / mm");
   ResoRow18->GetYaxis()->SetTitle("counts");
   ResoRow18->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.09375,1.25,135.8438);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow19 = new TH1F("ResoRow19","",100,-1,1);
   ResoRow19->SetBinContent(0,1);
   ResoRow19->SetBinContent(7,1);
   ResoRow19->SetBinContent(12,1);
   ResoRow19->SetBinContent(13,1);
   ResoRow19->SetBinContent(16,1);
   ResoRow19->SetBinContent(17,1);
   ResoRow19->SetBinContent(26,1);
   ResoRow19->SetBinContent(27,2);
   ResoRow19->SetBinContent(29,2);
   ResoRow19->SetBinContent(31,2);
   ResoRow19->SetBinContent(33,2);
   ResoRow19->SetBinContent(35,1);
   ResoRow19->SetBinContent(37,5);
   ResoRow19->SetBinContent(38,4);
   ResoRow19->SetBinContent(39,5);
   ResoRow19->SetBinContent(40,10);
   ResoRow19->SetBinContent(41,10);
   ResoRow19->SetBinContent(42,17);
   ResoRow19->SetBinContent(43,19);
   ResoRow19->SetBinContent(44,24);
   ResoRow19->SetBinContent(45,31);
   ResoRow19->SetBinContent(46,56);
   ResoRow19->SetBinContent(47,70);
   ResoRow19->SetBinContent(48,84);
   ResoRow19->SetBinContent(49,111);
   ResoRow19->SetBinContent(50,97);
   ResoRow19->SetBinContent(51,115);
   ResoRow19->SetBinContent(52,91);
   ResoRow19->SetBinContent(53,70);
   ResoRow19->SetBinContent(54,63);
   ResoRow19->SetBinContent(55,29);
   ResoRow19->SetBinContent(56,27);
   ResoRow19->SetBinContent(57,14);
   ResoRow19->SetBinContent(58,18);
   ResoRow19->SetBinContent(59,6);
   ResoRow19->SetBinContent(60,7);
   ResoRow19->SetBinContent(61,6);
   ResoRow19->SetBinContent(62,3);
   ResoRow19->SetBinContent(63,6);
   ResoRow19->SetBinContent(64,3);
   ResoRow19->SetBinContent(65,2);
   ResoRow19->SetBinContent(66,1);
   ResoRow19->SetBinContent(67,1);
   ResoRow19->SetBinContent(69,3);
   ResoRow19->SetBinContent(70,1);
   ResoRow19->SetBinContent(74,2);
   ResoRow19->SetBinContent(101,7);
   ResoRow19->SetEntries(1034);
   
   TF1 *ResoRowFit19 = new TF1("ResoRowFit19","gaus",-1,1);
   ResoRowFit19->SetFillColor(19);
   ResoRowFit19->SetFillStyle(0);
   ResoRowFit19->SetLineWidth(3);
   ResoRowFit19->SetChisquare(78.39654);
   ResoRowFit19->SetNDF(42);
   ResoRowFit19->SetParameter(0,96.12439);
   ResoRowFit19->SetParError(0,4.560531);
   ResoRowFit19->SetParLimits(0,0,0);
   ResoRowFit19->SetParameter(1,-0.01070477);
   ResoRowFit19->SetParError(1,0.00257603);
   ResoRowFit19->SetParLimits(1,0,0);
   ResoRowFit19->SetParameter(2,0.07867334);
   ResoRowFit19->SetParError(2,0.002726986);
   ResoRowFit19->SetParLimits(2,0,1.144715);
   ResoRow19->GetListOfFunctions()->Add(ResoRowFit19);
   
   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("ResoRow19");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1034   ");
   text = ptstats->AddText("Mean  = -0.01344");
   text = ptstats->AddText("RMS   =  0.114");
   text = ptstats->AddText("#chi^{2} / ndf =  78.4 / 42");
   text = ptstats->AddText("Constant = 96.12 #pm 4.56 ");
   text = ptstats->AddText("Mean     = -0.0107 #pm 0.0026 ");
   text = ptstats->AddText("Sigma    = 0.07867 #pm 0.00273 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow19->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow19->GetListOfFunctions());
   ResoRow19->GetXaxis()->SetTitle("residual / mm");
   ResoRow19->GetYaxis()->SetTitle("counts");
   ResoRow19->Draw("");
   c2_6->Modified();
   c2->cd();
   c2->Modified();
   c2->cd();
   c2->SetSelected(c2);
}
