{
//=========Macro generated from canvas: c2/
//=========  (Fri Jun 11 00:42:16 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,-13.78125,1.25,124.0313);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow13 = new TH1F("ResoRow13","",100,-1,1);
   ResoRow13->SetBinContent(0,2);
   ResoRow13->SetBinContent(15,2);
   ResoRow13->SetBinContent(19,1);
   ResoRow13->SetBinContent(21,1);
   ResoRow13->SetBinContent(23,1);
   ResoRow13->SetBinContent(25,4);
   ResoRow13->SetBinContent(27,1);
   ResoRow13->SetBinContent(30,3);
   ResoRow13->SetBinContent(32,1);
   ResoRow13->SetBinContent(33,2);
   ResoRow13->SetBinContent(34,1);
   ResoRow13->SetBinContent(35,1);
   ResoRow13->SetBinContent(36,3);
   ResoRow13->SetBinContent(37,5);
   ResoRow13->SetBinContent(38,5);
   ResoRow13->SetBinContent(39,3);
   ResoRow13->SetBinContent(40,6);
   ResoRow13->SetBinContent(41,15);
   ResoRow13->SetBinContent(42,20);
   ResoRow13->SetBinContent(43,16);
   ResoRow13->SetBinContent(44,24);
   ResoRow13->SetBinContent(45,35);
   ResoRow13->SetBinContent(46,54);
   ResoRow13->SetBinContent(47,75);
   ResoRow13->SetBinContent(48,60);
   ResoRow13->SetBinContent(49,91);
   ResoRow13->SetBinContent(50,80);
   ResoRow13->SetBinContent(51,105);
   ResoRow13->SetBinContent(52,93);
   ResoRow13->SetBinContent(53,59);
   ResoRow13->SetBinContent(54,68);
   ResoRow13->SetBinContent(55,53);
   ResoRow13->SetBinContent(56,34);
   ResoRow13->SetBinContent(57,26);
   ResoRow13->SetBinContent(58,22);
   ResoRow13->SetBinContent(59,27);
   ResoRow13->SetBinContent(60,7);
   ResoRow13->SetBinContent(61,16);
   ResoRow13->SetBinContent(62,10);
   ResoRow13->SetBinContent(63,6);
   ResoRow13->SetBinContent(64,9);
   ResoRow13->SetBinContent(65,5);
   ResoRow13->SetBinContent(66,1);
   ResoRow13->SetBinContent(67,1);
   ResoRow13->SetBinContent(68,3);
   ResoRow13->SetBinContent(70,1);
   ResoRow13->SetBinContent(73,1);
   ResoRow13->SetBinContent(74,1);
   ResoRow13->SetBinContent(80,1);
   ResoRow13->SetBinContent(82,1);
   ResoRow13->SetBinContent(83,1);
   ResoRow13->SetBinContent(101,6);
   ResoRow13->SetEntries(1069);
   
   TF1 *ResoRowFit13 = new TF1("ResoRowFit13","gaus",-1,1);
   ResoRowFit13->SetFillColor(19);
   ResoRowFit13->SetFillStyle(0);
   ResoRowFit13->SetLineWidth(3);
   ResoRowFit13->SetChisquare(87.89293);
   ResoRowFit13->SetNDF(47);
   ResoRowFit13->SetParameter(0,80.68315);
   ResoRowFit13->SetParError(0,3.622731);
   ResoRowFit13->SetParLimits(0,0,0);
   ResoRowFit13->SetParameter(1,0.002752604);
   ResoRowFit13->SetParError(1,0.003114794);
   ResoRowFit13->SetParLimits(1,0,0);
   ResoRowFit13->SetParameter(2,0.09624101);
   ResoRowFit13->SetParError(2,0.003028994);
   ResoRowFit13->SetParLimits(2,0,1.284069);
   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 = 1069   ");
   text = ptstats->AddText("Mean  = 0.002313");
   text = ptstats->AddText("RMS   = 0.1284");
   text = ptstats->AddText("#chi^{2} / ndf = 87.89 / 47");
   text = ptstats->AddText("Constant = 80.68 #pm 3.62 ");
   text = ptstats->AddText("Mean     = 0.002753 #pm 0.003115 ");
   text = ptstats->AddText("Sigma    = 0.09624 #pm 0.00303 ");
   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.6,1.25,113.4);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow15 = new TH1F("ResoRow15","",100,-1,1);
   ResoRow15->SetBinContent(0,2);
   ResoRow15->SetBinContent(9,1);
   ResoRow15->SetBinContent(13,1);
   ResoRow15->SetBinContent(20,1);
   ResoRow15->SetBinContent(21,1);
   ResoRow15->SetBinContent(23,1);
   ResoRow15->SetBinContent(27,1);
   ResoRow15->SetBinContent(30,1);
   ResoRow15->SetBinContent(32,2);
   ResoRow15->SetBinContent(33,3);
   ResoRow15->SetBinContent(34,4);
   ResoRow15->SetBinContent(35,1);
   ResoRow15->SetBinContent(36,2);
   ResoRow15->SetBinContent(37,7);
   ResoRow15->SetBinContent(38,7);
   ResoRow15->SetBinContent(39,9);
   ResoRow15->SetBinContent(40,13);
   ResoRow15->SetBinContent(41,10);
   ResoRow15->SetBinContent(42,15);
   ResoRow15->SetBinContent(43,24);
   ResoRow15->SetBinContent(44,36);
   ResoRow15->SetBinContent(45,59);
   ResoRow15->SetBinContent(46,63);
   ResoRow15->SetBinContent(47,49);
   ResoRow15->SetBinContent(48,90);
   ResoRow15->SetBinContent(49,96);
   ResoRow15->SetBinContent(50,89);
   ResoRow15->SetBinContent(51,91);
   ResoRow15->SetBinContent(52,67);
   ResoRow15->SetBinContent(53,59);
   ResoRow15->SetBinContent(54,42);
   ResoRow15->SetBinContent(55,41);
   ResoRow15->SetBinContent(56,34);
   ResoRow15->SetBinContent(57,25);
   ResoRow15->SetBinContent(58,21);
   ResoRow15->SetBinContent(59,20);
   ResoRow15->SetBinContent(60,15);
   ResoRow15->SetBinContent(61,11);
   ResoRow15->SetBinContent(62,8);
   ResoRow15->SetBinContent(63,6);
   ResoRow15->SetBinContent(64,7);
   ResoRow15->SetBinContent(65,3);
   ResoRow15->SetBinContent(66,3);
   ResoRow15->SetBinContent(67,5);
   ResoRow15->SetBinContent(68,1);
   ResoRow15->SetBinContent(69,1);
   ResoRow15->SetBinContent(70,1);
   ResoRow15->SetBinContent(71,3);
   ResoRow15->SetBinContent(72,1);
   ResoRow15->SetBinContent(73,1);
   ResoRow15->SetBinContent(75,1);
   ResoRow15->SetBinContent(76,1);
   ResoRow15->SetBinContent(82,1);
   ResoRow15->SetBinContent(89,1);
   ResoRow15->SetBinContent(101,11);
   ResoRow15->SetEntries(1069);
   
   TF1 *ResoRowFit15 = new TF1("ResoRowFit15","gaus",-1,1);
   ResoRowFit15->SetFillColor(19);
   ResoRowFit15->SetFillStyle(0);
   ResoRowFit15->SetLineWidth(3);
   ResoRowFit15->SetChisquare(83.57472);
   ResoRowFit15->SetNDF(50);
   ResoRowFit15->SetParameter(0,74.10614);
   ResoRowFit15->SetParError(0,3.421033);
   ResoRowFit15->SetParLimits(0,0,0);
   ResoRowFit15->SetParameter(1,-0.007974127);
   ResoRowFit15->SetParError(1,0.00348302);
   ResoRowFit15->SetParLimits(1,0,0);
   ResoRowFit15->SetParameter(2,0.1047132);
   ResoRowFit15->SetParError(2,0.003481773);
   ResoRowFit15->SetParLimits(2,0,1.324481);
   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 = 1069   ");
   text = ptstats->AddText("Mean  = -0.007182");
   text = ptstats->AddText("RMS   = 0.1324");
   text = ptstats->AddText("#chi^{2} / ndf = 83.57 / 50");
   text = ptstats->AddText("Constant = 74.11 #pm 3.42 ");
   text = ptstats->AddText("Mean     = -0.007974 #pm 0.003483 ");
   text = ptstats->AddText("Sigma    = 0.1047 #pm 0.0035 ");
   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,-13.9125,1.25,125.2125);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow16 = new TH1F("ResoRow16","",100,-1,1);
   ResoRow16->SetBinContent(0,1);
   ResoRow16->SetBinContent(9,1);
   ResoRow16->SetBinContent(13,1);
   ResoRow16->SetBinContent(18,2);
   ResoRow16->SetBinContent(27,1);
   ResoRow16->SetBinContent(29,2);
   ResoRow16->SetBinContent(34,2);
   ResoRow16->SetBinContent(35,3);
   ResoRow16->SetBinContent(36,4);
   ResoRow16->SetBinContent(37,7);
   ResoRow16->SetBinContent(38,8);
   ResoRow16->SetBinContent(39,6);
   ResoRow16->SetBinContent(40,9);
   ResoRow16->SetBinContent(41,9);
   ResoRow16->SetBinContent(42,7);
   ResoRow16->SetBinContent(43,25);
   ResoRow16->SetBinContent(44,25);
   ResoRow16->SetBinContent(45,48);
   ResoRow16->SetBinContent(46,48);
   ResoRow16->SetBinContent(47,75);
   ResoRow16->SetBinContent(48,77);
   ResoRow16->SetBinContent(49,74);
   ResoRow16->SetBinContent(50,102);
   ResoRow16->SetBinContent(51,87);
   ResoRow16->SetBinContent(52,106);
   ResoRow16->SetBinContent(53,80);
   ResoRow16->SetBinContent(54,58);
   ResoRow16->SetBinContent(55,46);
   ResoRow16->SetBinContent(56,36);
   ResoRow16->SetBinContent(57,25);
   ResoRow16->SetBinContent(58,25);
   ResoRow16->SetBinContent(59,15);
   ResoRow16->SetBinContent(60,8);
   ResoRow16->SetBinContent(61,14);
   ResoRow16->SetBinContent(62,4);
   ResoRow16->SetBinContent(63,2);
   ResoRow16->SetBinContent(64,1);
   ResoRow16->SetBinContent(65,3);
   ResoRow16->SetBinContent(66,2);
   ResoRow16->SetBinContent(67,2);
   ResoRow16->SetBinContent(69,1);
   ResoRow16->SetBinContent(70,2);
   ResoRow16->SetBinContent(71,2);
   ResoRow16->SetBinContent(73,1);
   ResoRow16->SetBinContent(74,1);
   ResoRow16->SetBinContent(78,2);
   ResoRow16->SetBinContent(89,1);
   ResoRow16->SetBinContent(101,8);
   ResoRow16->SetEntries(1069);
   
   TF1 *ResoRowFit16 = new TF1("ResoRowFit16","gaus",-1,1);
   ResoRowFit16->SetFillColor(19);
   ResoRowFit16->SetFillStyle(0);
   ResoRowFit16->SetLineWidth(3);
   ResoRowFit16->SetChisquare(73.5022);
   ResoRowFit16->SetNDF(43);
   ResoRowFit16->SetParameter(0,88.2666);
   ResoRowFit16->SetParError(0,3.792384);
   ResoRowFit16->SetParLimits(0,0,0);
   ResoRowFit16->SetParameter(1,0.0002212547);
   ResoRowFit16->SetParError(1,0.002843334);
   ResoRowFit16->SetParLimits(1,0,0);
   ResoRowFit16->SetParameter(2,0.08918383);
   ResoRowFit16->SetParError(2,0.002576137);
   ResoRowFit16->SetParLimits(2,0,1.211389);
   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 = 1069   ");
   text = ptstats->AddText("Mean  = -0.002796");
   text = ptstats->AddText("RMS   = 0.1212");
   text = ptstats->AddText("#chi^{2} / ndf =  73.5 / 43");
   text = ptstats->AddText("Constant = 88.27 #pm 3.79 ");
   text = ptstats->AddText("Mean     = 0.0002213 #pm 0.0028433 ");
   text = ptstats->AddText("Sigma    = 0.08918 #pm 0.00258 ");
   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,-13.78125,1.25,124.0313);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow17 = new TH1F("ResoRow17","",100,-1,1);
   ResoRow17->SetBinContent(0,2);
   ResoRow17->SetBinContent(23,1);
   ResoRow17->SetBinContent(25,1);
   ResoRow17->SetBinContent(27,1);
   ResoRow17->SetBinContent(29,1);
   ResoRow17->SetBinContent(30,1);
   ResoRow17->SetBinContent(34,3);
   ResoRow17->SetBinContent(35,2);
   ResoRow17->SetBinContent(36,2);
   ResoRow17->SetBinContent(37,4);
   ResoRow17->SetBinContent(38,9);
   ResoRow17->SetBinContent(39,9);
   ResoRow17->SetBinContent(40,11);
   ResoRow17->SetBinContent(41,12);
   ResoRow17->SetBinContent(42,16);
   ResoRow17->SetBinContent(43,14);
   ResoRow17->SetBinContent(44,35);
   ResoRow17->SetBinContent(45,49);
   ResoRow17->SetBinContent(46,43);
   ResoRow17->SetBinContent(47,66);
   ResoRow17->SetBinContent(48,79);
   ResoRow17->SetBinContent(49,87);
   ResoRow17->SetBinContent(50,105);
   ResoRow17->SetBinContent(51,91);
   ResoRow17->SetBinContent(52,93);
   ResoRow17->SetBinContent(53,77);
   ResoRow17->SetBinContent(54,61);
   ResoRow17->SetBinContent(55,49);
   ResoRow17->SetBinContent(56,31);
   ResoRow17->SetBinContent(57,27);
   ResoRow17->SetBinContent(58,22);
   ResoRow17->SetBinContent(59,10);
   ResoRow17->SetBinContent(60,10);
   ResoRow17->SetBinContent(61,7);
   ResoRow17->SetBinContent(62,6);
   ResoRow17->SetBinContent(63,4);
   ResoRow17->SetBinContent(64,5);
   ResoRow17->SetBinContent(65,2);
   ResoRow17->SetBinContent(66,2);
   ResoRow17->SetBinContent(67,4);
   ResoRow17->SetBinContent(68,1);
   ResoRow17->SetBinContent(69,1);
   ResoRow17->SetBinContent(71,1);
   ResoRow17->SetBinContent(74,1);
   ResoRow17->SetBinContent(75,1);
   ResoRow17->SetBinContent(88,1);
   ResoRow17->SetBinContent(101,9);
   ResoRow17->SetEntries(1069);
   
   TF1 *ResoRowFit17 = new TF1("ResoRowFit17","gaus",-1,1);
   ResoRowFit17->SetFillColor(19);
   ResoRowFit17->SetFillStyle(0);
   ResoRowFit17->SetLineWidth(3);
   ResoRowFit17->SetChisquare(61.58677);
   ResoRowFit17->SetNDF(42);
   ResoRowFit17->SetParameter(0,86.6466);
   ResoRowFit17->SetParError(0,3.925522);
   ResoRowFit17->SetParLimits(0,0,0);
   ResoRowFit17->SetParameter(1,-0.003699226);
   ResoRowFit17->SetParError(1,0.002918069);
   ResoRowFit17->SetParLimits(1,0,0);
   ResoRowFit17->SetParameter(2,0.09176596);
   ResoRowFit17->SetParError(2,0.002976532);
   ResoRowFit17->SetParLimits(2,0,1.126046);
   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 = 1069   ");
   text = ptstats->AddText("Mean  = -0.004611");
   text = ptstats->AddText("RMS   = 0.1126");
   text = ptstats->AddText("#chi^{2} / ndf = 61.59 / 42");
   text = ptstats->AddText("Constant = 86.65 #pm 3.93 ");
   text = ptstats->AddText("Mean     = -0.003699 #pm 0.002918 ");
   text = ptstats->AddText("Sigma    = 0.09177 #pm 0.00298 ");
   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,-14.4375,1.25,129.9375);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow18 = new TH1F("ResoRow18","",100,-1,1);
   ResoRow18->SetBinContent(0,1);
   ResoRow18->SetBinContent(11,1);
   ResoRow18->SetBinContent(16,1);
   ResoRow18->SetBinContent(18,1);
   ResoRow18->SetBinContent(23,1);
   ResoRow18->SetBinContent(25,2);
   ResoRow18->SetBinContent(26,1);
   ResoRow18->SetBinContent(28,1);
   ResoRow18->SetBinContent(30,2);
   ResoRow18->SetBinContent(33,1);
   ResoRow18->SetBinContent(34,3);
   ResoRow18->SetBinContent(36,4);
   ResoRow18->SetBinContent(37,6);
   ResoRow18->SetBinContent(38,7);
   ResoRow18->SetBinContent(39,5);
   ResoRow18->SetBinContent(40,13);
   ResoRow18->SetBinContent(41,10);
   ResoRow18->SetBinContent(42,16);
   ResoRow18->SetBinContent(43,20);
   ResoRow18->SetBinContent(44,23);
   ResoRow18->SetBinContent(45,35);
   ResoRow18->SetBinContent(46,48);
   ResoRow18->SetBinContent(47,56);
   ResoRow18->SetBinContent(48,77);
   ResoRow18->SetBinContent(49,98);
   ResoRow18->SetBinContent(50,110);
   ResoRow18->SetBinContent(51,103);
   ResoRow18->SetBinContent(52,89);
   ResoRow18->SetBinContent(53,83);
   ResoRow18->SetBinContent(54,69);
   ResoRow18->SetBinContent(55,58);
   ResoRow18->SetBinContent(56,34);
   ResoRow18->SetBinContent(57,26);
   ResoRow18->SetBinContent(58,16);
   ResoRow18->SetBinContent(59,6);
   ResoRow18->SetBinContent(60,12);
   ResoRow18->SetBinContent(61,9);
   ResoRow18->SetBinContent(62,4);
   ResoRow18->SetBinContent(63,4);
   ResoRow18->SetBinContent(64,1);
   ResoRow18->SetBinContent(65,2);
   ResoRow18->SetBinContent(66,1);
   ResoRow18->SetBinContent(67,2);
   ResoRow18->SetBinContent(69,1);
   ResoRow18->SetBinContent(73,1);
   ResoRow18->SetBinContent(74,1);
   ResoRow18->SetBinContent(97,1);
   ResoRow18->SetBinContent(101,3);
   ResoRow18->SetEntries(1069);
   
   TF1 *ResoRowFit18 = new TF1("ResoRowFit18","gaus",-1,1);
   ResoRowFit18->SetFillColor(19);
   ResoRowFit18->SetFillStyle(0);
   ResoRowFit18->SetLineWidth(3);
   ResoRowFit18->SetChisquare(69.94657);
   ResoRowFit18->SetNDF(43);
   ResoRowFit18->SetParameter(0,94.0245);
   ResoRowFit18->SetParError(0,4.235326);
   ResoRowFit18->SetParLimits(0,0,0);
   ResoRowFit18->SetParameter(1,-0.00118375);
   ResoRowFit18->SetParError(1,0.002747018);
   ResoRowFit18->SetParLimits(1,0,0);
   ResoRowFit18->SetParameter(2,0.08445193);
   ResoRowFit18->SetParError(2,0.002707269);
   ResoRowFit18->SetParLimits(2,0,1.161827);
   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 = 1069   ");
   text = ptstats->AddText("Mean  = -0.006863");
   text = ptstats->AddText("RMS   = 0.1162");
   text = ptstats->AddText("#chi^{2} / ndf = 69.95 / 43");
   text = ptstats->AddText("Constant = 94.02 #pm 4.24 ");
   text = ptstats->AddText("Mean     = -0.001184 #pm 0.002747 ");
   text = ptstats->AddText("Sigma    = 0.08445 #pm 0.00271 ");
   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,-12.8625,1.25,115.7625);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow19 = new TH1F("ResoRow19","",100,-1,1);
   ResoRow19->SetBinContent(0,1);
   ResoRow19->SetBinContent(8,1);
   ResoRow19->SetBinContent(14,1);
   ResoRow19->SetBinContent(24,3);
   ResoRow19->SetBinContent(28,1);
   ResoRow19->SetBinContent(29,2);
   ResoRow19->SetBinContent(32,1);
   ResoRow19->SetBinContent(33,2);
   ResoRow19->SetBinContent(34,1);
   ResoRow19->SetBinContent(35,7);
   ResoRow19->SetBinContent(36,2);
   ResoRow19->SetBinContent(37,5);
   ResoRow19->SetBinContent(38,3);
   ResoRow19->SetBinContent(39,11);
   ResoRow19->SetBinContent(40,9);
   ResoRow19->SetBinContent(41,6);
   ResoRow19->SetBinContent(42,16);
   ResoRow19->SetBinContent(43,19);
   ResoRow19->SetBinContent(44,35);
   ResoRow19->SetBinContent(45,45);
   ResoRow19->SetBinContent(46,59);
   ResoRow19->SetBinContent(47,66);
   ResoRow19->SetBinContent(48,78);
   ResoRow19->SetBinContent(49,96);
   ResoRow19->SetBinContent(50,98);
   ResoRow19->SetBinContent(51,88);
   ResoRow19->SetBinContent(52,86);
   ResoRow19->SetBinContent(53,76);
   ResoRow19->SetBinContent(54,67);
   ResoRow19->SetBinContent(55,53);
   ResoRow19->SetBinContent(56,33);
   ResoRow19->SetBinContent(57,21);
   ResoRow19->SetBinContent(58,19);
   ResoRow19->SetBinContent(59,13);
   ResoRow19->SetBinContent(60,9);
   ResoRow19->SetBinContent(61,4);
   ResoRow19->SetBinContent(62,7);
   ResoRow19->SetBinContent(63,3);
   ResoRow19->SetBinContent(64,2);
   ResoRow19->SetBinContent(65,2);
   ResoRow19->SetBinContent(66,2);
   ResoRow19->SetBinContent(67,1);
   ResoRow19->SetBinContent(69,1);
   ResoRow19->SetBinContent(70,2);
   ResoRow19->SetBinContent(71,1);
   ResoRow19->SetBinContent(73,1);
   ResoRow19->SetBinContent(79,1);
   ResoRow19->SetBinContent(83,1);
   ResoRow19->SetBinContent(88,1);
   ResoRow19->SetBinContent(101,7);
   ResoRow19->SetEntries(1069);
   
   TF1 *ResoRowFit19 = new TF1("ResoRowFit19","gaus",-1,1);
   ResoRowFit19->SetFillColor(19);
   ResoRowFit19->SetFillStyle(0);
   ResoRowFit19->SetLineWidth(3);
   ResoRowFit19->SetChisquare(54.96602);
   ResoRowFit19->SetNDF(45);
   ResoRowFit19->SetParameter(0,90.64419);
   ResoRowFit19->SetParError(0,3.828459);
   ResoRowFit19->SetParLimits(0,0,0);
   ResoRowFit19->SetParameter(1,-0.005470964);
   ResoRowFit19->SetParError(1,0.002792953);
   ResoRowFit19->SetParLimits(1,0,0);
   ResoRowFit19->SetParameter(2,0.08855841);
   ResoRowFit19->SetParError(2,0.002489713);
   ResoRowFit19->SetParLimits(2,0,1.195404);
   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 = 1069   ");
   text = ptstats->AddText("Mean  = -0.009117");
   text = ptstats->AddText("RMS   = 0.1195");
   text = ptstats->AddText("#chi^{2} / ndf = 54.97 / 45");
   text = ptstats->AddText("Constant = 90.64 #pm 3.83 ");
   text = ptstats->AddText("Mean     = -0.005471 #pm 0.002793 ");
   text = ptstats->AddText("Sigma    = 0.08856 #pm 0.00249 ");
   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);
}
