{
//=========Macro generated from canvas: c2/
//=========  (Fri Jun 11 11:05:13 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,-6.43125,1.25,57.88125);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow13 = new TH1F("ResoRow13","",100,-1,1);
   ResoRow13->SetBinContent(0,2);
   ResoRow13->SetBinContent(16,1);
   ResoRow13->SetBinContent(21,1);
   ResoRow13->SetBinContent(24,1);
   ResoRow13->SetBinContent(25,1);
   ResoRow13->SetBinContent(26,1);
   ResoRow13->SetBinContent(28,2);
   ResoRow13->SetBinContent(29,1);
   ResoRow13->SetBinContent(30,2);
   ResoRow13->SetBinContent(31,1);
   ResoRow13->SetBinContent(32,3);
   ResoRow13->SetBinContent(33,6);
   ResoRow13->SetBinContent(34,2);
   ResoRow13->SetBinContent(35,2);
   ResoRow13->SetBinContent(36,5);
   ResoRow13->SetBinContent(37,2);
   ResoRow13->SetBinContent(38,3);
   ResoRow13->SetBinContent(39,6);
   ResoRow13->SetBinContent(40,10);
   ResoRow13->SetBinContent(41,11);
   ResoRow13->SetBinContent(42,11);
   ResoRow13->SetBinContent(43,21);
   ResoRow13->SetBinContent(44,21);
   ResoRow13->SetBinContent(45,32);
   ResoRow13->SetBinContent(46,38);
   ResoRow13->SetBinContent(47,41);
   ResoRow13->SetBinContent(48,37);
   ResoRow13->SetBinContent(49,30);
   ResoRow13->SetBinContent(50,44);
   ResoRow13->SetBinContent(51,36);
   ResoRow13->SetBinContent(52,36);
   ResoRow13->SetBinContent(53,49);
   ResoRow13->SetBinContent(54,33);
   ResoRow13->SetBinContent(55,32);
   ResoRow13->SetBinContent(56,27);
   ResoRow13->SetBinContent(57,23);
   ResoRow13->SetBinContent(58,17);
   ResoRow13->SetBinContent(59,17);
   ResoRow13->SetBinContent(60,12);
   ResoRow13->SetBinContent(61,11);
   ResoRow13->SetBinContent(62,9);
   ResoRow13->SetBinContent(63,4);
   ResoRow13->SetBinContent(64,6);
   ResoRow13->SetBinContent(65,3);
   ResoRow13->SetBinContent(66,5);
   ResoRow13->SetBinContent(67,1);
   ResoRow13->SetBinContent(68,3);
   ResoRow13->SetBinContent(70,3);
   ResoRow13->SetBinContent(72,1);
   ResoRow13->SetBinContent(82,1);
   ResoRow13->SetBinContent(84,1);
   ResoRow13->SetBinContent(89,1);
   ResoRow13->SetBinContent(101,4);
   ResoRow13->SetEntries(673);
   
   TF1 *ResoRowFit13 = new TF1("ResoRowFit13","gaus",-1,1);
   ResoRowFit13->SetFillColor(19);
   ResoRowFit13->SetFillStyle(0);
   ResoRowFit13->SetLineWidth(3);
   ResoRowFit13->SetChisquare(45.55618);
   ResoRowFit13->SetNDF(48);
   ResoRowFit13->SetParameter(0,39.5927);
   ResoRowFit13->SetParError(0,2.076809);
   ResoRowFit13->SetParLimits(0,0,0);
   ResoRowFit13->SetParameter(1,0.004646603);
   ResoRowFit13->SetParError(1,0.005088103);
   ResoRowFit13->SetParLimits(1,0,0);
   ResoRowFit13->SetParameter(2,0.1254321);
   ResoRowFit13->SetParError(2,0.004300774);
   ResoRowFit13->SetParLimits(2,0,1.541476);
   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 = 673    ");
   text = ptstats->AddText("Mean  = -0.002514");
   text = ptstats->AddText("RMS   = 0.1538");
   text = ptstats->AddText("#chi^{2} / ndf = 45.56 / 48");
   text = ptstats->AddText("Constant = 39.59 #pm 2.08 ");
   text = ptstats->AddText("Mean     = 0.004647 #pm 0.005088 ");
   text = ptstats->AddText("Sigma    = 0.1254 #pm 0.0043 ");
   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,-6.69375,1.25,60.24375);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow15 = new TH1F("ResoRow15","",100,-1,1);
   ResoRow15->SetBinContent(0,1);
   ResoRow15->SetBinContent(19,1);
   ResoRow15->SetBinContent(27,1);
   ResoRow15->SetBinContent(29,3);
   ResoRow15->SetBinContent(31,2);
   ResoRow15->SetBinContent(32,2);
   ResoRow15->SetBinContent(33,2);
   ResoRow15->SetBinContent(34,4);
   ResoRow15->SetBinContent(35,5);
   ResoRow15->SetBinContent(36,2);
   ResoRow15->SetBinContent(37,6);
   ResoRow15->SetBinContent(38,8);
   ResoRow15->SetBinContent(39,11);
   ResoRow15->SetBinContent(40,15);
   ResoRow15->SetBinContent(41,15);
   ResoRow15->SetBinContent(42,16);
   ResoRow15->SetBinContent(43,25);
   ResoRow15->SetBinContent(44,24);
   ResoRow15->SetBinContent(45,28);
   ResoRow15->SetBinContent(46,25);
   ResoRow15->SetBinContent(47,32);
   ResoRow15->SetBinContent(48,41);
   ResoRow15->SetBinContent(49,27);
   ResoRow15->SetBinContent(50,44);
   ResoRow15->SetBinContent(51,42);
   ResoRow15->SetBinContent(52,51);
   ResoRow15->SetBinContent(53,46);
   ResoRow15->SetBinContent(54,34);
   ResoRow15->SetBinContent(55,23);
   ResoRow15->SetBinContent(56,20);
   ResoRow15->SetBinContent(57,22);
   ResoRow15->SetBinContent(58,14);
   ResoRow15->SetBinContent(59,14);
   ResoRow15->SetBinContent(60,10);
   ResoRow15->SetBinContent(61,9);
   ResoRow15->SetBinContent(62,7);
   ResoRow15->SetBinContent(63,9);
   ResoRow15->SetBinContent(64,5);
   ResoRow15->SetBinContent(65,6);
   ResoRow15->SetBinContent(66,3);
   ResoRow15->SetBinContent(67,2);
   ResoRow15->SetBinContent(70,2);
   ResoRow15->SetBinContent(71,1);
   ResoRow15->SetBinContent(72,2);
   ResoRow15->SetBinContent(73,1);
   ResoRow15->SetBinContent(74,1);
   ResoRow15->SetBinContent(75,1);
   ResoRow15->SetBinContent(76,1);
   ResoRow15->SetBinContent(79,1);
   ResoRow15->SetBinContent(80,1);
   ResoRow15->SetBinContent(90,1);
   ResoRow15->SetBinContent(92,1);
   ResoRow15->SetBinContent(101,3);
   ResoRow15->SetEntries(673);
   
   TF1 *ResoRowFit15 = new TF1("ResoRowFit15","gaus",-1,1);
   ResoRowFit15->SetFillColor(19);
   ResoRowFit15->SetFillStyle(0);
   ResoRowFit15->SetLineWidth(3);
   ResoRowFit15->SetChisquare(45.0521);
   ResoRowFit15->SetNDF(48);
   ResoRowFit15->SetParameter(0,36.22914);
   ResoRowFit15->SetParError(0,1.969224);
   ResoRowFit15->SetParLimits(0,0,0);
   ResoRowFit15->SetParameter(1,-0.009756047);
   ResoRowFit15->SetParError(1,0.005645004);
   ResoRowFit15->SetParLimits(1,0,0);
   ResoRowFit15->SetParameter(2,0.1380841);
   ResoRowFit15->SetParError(2,0.005258203);
   ResoRowFit15->SetParLimits(2,0,1.580625);
   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 = 673    ");
   text = ptstats->AddText("Mean  = -0.004809");
   text = ptstats->AddText("RMS   = 0.1576");
   text = ptstats->AddText("#chi^{2} / ndf = 45.05 / 48");
   text = ptstats->AddText("Constant = 36.23 #pm 1.97 ");
   text = ptstats->AddText("Mean     = -0.009756 #pm 0.005645 ");
   text = ptstats->AddText("Sigma    = 0.1381 #pm 0.0053 ");
   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,-6.0375,1.25,54.3375);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow16 = new TH1F("ResoRow16","",100,-1,1);
   ResoRow16->SetBinContent(0,1);
   ResoRow16->SetBinContent(18,1);
   ResoRow16->SetBinContent(26,2);
   ResoRow16->SetBinContent(29,1);
   ResoRow16->SetBinContent(30,1);
   ResoRow16->SetBinContent(31,2);
   ResoRow16->SetBinContent(32,5);
   ResoRow16->SetBinContent(33,1);
   ResoRow16->SetBinContent(34,2);
   ResoRow16->SetBinContent(35,1);
   ResoRow16->SetBinContent(36,3);
   ResoRow16->SetBinContent(37,4);
   ResoRow16->SetBinContent(38,11);
   ResoRow16->SetBinContent(39,15);
   ResoRow16->SetBinContent(40,10);
   ResoRow16->SetBinContent(41,13);
   ResoRow16->SetBinContent(42,10);
   ResoRow16->SetBinContent(43,19);
   ResoRow16->SetBinContent(44,26);
   ResoRow16->SetBinContent(45,32);
   ResoRow16->SetBinContent(46,26);
   ResoRow16->SetBinContent(47,36);
   ResoRow16->SetBinContent(48,27);
   ResoRow16->SetBinContent(49,39);
   ResoRow16->SetBinContent(50,38);
   ResoRow16->SetBinContent(51,46);
   ResoRow16->SetBinContent(52,45);
   ResoRow16->SetBinContent(53,36);
   ResoRow16->SetBinContent(54,40);
   ResoRow16->SetBinContent(55,32);
   ResoRow16->SetBinContent(56,28);
   ResoRow16->SetBinContent(57,24);
   ResoRow16->SetBinContent(58,16);
   ResoRow16->SetBinContent(59,10);
   ResoRow16->SetBinContent(60,18);
   ResoRow16->SetBinContent(61,7);
   ResoRow16->SetBinContent(62,4);
   ResoRow16->SetBinContent(63,9);
   ResoRow16->SetBinContent(64,4);
   ResoRow16->SetBinContent(65,3);
   ResoRow16->SetBinContent(66,1);
   ResoRow16->SetBinContent(67,9);
   ResoRow16->SetBinContent(68,1);
   ResoRow16->SetBinContent(70,1);
   ResoRow16->SetBinContent(71,1);
   ResoRow16->SetBinContent(72,1);
   ResoRow16->SetBinContent(76,1);
   ResoRow16->SetBinContent(84,1);
   ResoRow16->SetBinContent(86,1);
   ResoRow16->SetBinContent(88,1);
   ResoRow16->SetBinContent(91,1);
   ResoRow16->SetBinContent(101,6);
   ResoRow16->SetEntries(673);
   
   TF1 *ResoRowFit16 = new TF1("ResoRowFit16","gaus",-1,1);
   ResoRowFit16->SetFillColor(19);
   ResoRowFit16->SetFillStyle(0);
   ResoRowFit16->SetLineWidth(3);
   ResoRowFit16->SetChisquare(54.33557);
   ResoRowFit16->SetNDF(47);
   ResoRowFit16->SetParameter(0,38.91449);
   ResoRowFit16->SetParError(0,2.048382);
   ResoRowFit16->SetParLimits(0,0,0);
   ResoRowFit16->SetParameter(1,-0.003395267);
   ResoRowFit16->SetParError(1,0.005130478);
   ResoRowFit16->SetParLimits(1,0,0);
   ResoRowFit16->SetParameter(2,0.1255594);
   ResoRowFit16->SetParError(2,0.004277085);
   ResoRowFit16->SetParLimits(2,0,1.552287);
   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 = 673    ");
   text = ptstats->AddText("Mean  = -0.0003851");
   text = ptstats->AddText("RMS   =  0.155");
   text = ptstats->AddText("#chi^{2} / ndf = 54.34 / 47");
   text = ptstats->AddText("Constant = 38.91 #pm 2.05 ");
   text = ptstats->AddText("Mean     = -0.003395 #pm 0.005130 ");
   text = ptstats->AddText("Sigma    = 0.1256 #pm 0.0043 ");
   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,-6.43125,1.25,57.88125);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow17 = new TH1F("ResoRow17","",100,-1,1);
   ResoRow17->SetBinContent(27,1);
   ResoRow17->SetBinContent(28,1);
   ResoRow17->SetBinContent(29,1);
   ResoRow17->SetBinContent(30,1);
   ResoRow17->SetBinContent(32,3);
   ResoRow17->SetBinContent(33,1);
   ResoRow17->SetBinContent(34,7);
   ResoRow17->SetBinContent(35,5);
   ResoRow17->SetBinContent(36,8);
   ResoRow17->SetBinContent(37,3);
   ResoRow17->SetBinContent(38,8);
   ResoRow17->SetBinContent(39,10);
   ResoRow17->SetBinContent(40,12);
   ResoRow17->SetBinContent(41,11);
   ResoRow17->SetBinContent(42,18);
   ResoRow17->SetBinContent(43,13);
   ResoRow17->SetBinContent(44,28);
   ResoRow17->SetBinContent(45,25);
   ResoRow17->SetBinContent(46,29);
   ResoRow17->SetBinContent(47,39);
   ResoRow17->SetBinContent(48,46);
   ResoRow17->SetBinContent(49,35);
   ResoRow17->SetBinContent(50,49);
   ResoRow17->SetBinContent(51,33);
   ResoRow17->SetBinContent(52,30);
   ResoRow17->SetBinContent(53,31);
   ResoRow17->SetBinContent(54,31);
   ResoRow17->SetBinContent(55,25);
   ResoRow17->SetBinContent(56,31);
   ResoRow17->SetBinContent(57,32);
   ResoRow17->SetBinContent(58,20);
   ResoRow17->SetBinContent(59,22);
   ResoRow17->SetBinContent(60,17);
   ResoRow17->SetBinContent(61,6);
   ResoRow17->SetBinContent(62,5);
   ResoRow17->SetBinContent(63,4);
   ResoRow17->SetBinContent(64,5);
   ResoRow17->SetBinContent(65,1);
   ResoRow17->SetBinContent(66,8);
   ResoRow17->SetBinContent(69,2);
   ResoRow17->SetBinContent(70,5);
   ResoRow17->SetBinContent(76,2);
   ResoRow17->SetBinContent(79,1);
   ResoRow17->SetBinContent(89,1);
   ResoRow17->SetBinContent(96,1);
   ResoRow17->SetBinContent(101,6);
   ResoRow17->SetEntries(673);
   
   TF1 *ResoRowFit17 = new TF1("ResoRowFit17","gaus",-1,1);
   ResoRowFit17->SetFillColor(19);
   ResoRowFit17->SetFillStyle(0);
   ResoRowFit17->SetLineWidth(3);
   ResoRowFit17->SetChisquare(58.54336);
   ResoRowFit17->SetNDF(42);
   ResoRowFit17->SetParameter(0,37.38114);
   ResoRowFit17->SetParError(0,1.97551);
   ResoRowFit17->SetParLimits(0,0,0);
   ResoRowFit17->SetParameter(1,-0.007812031);
   ResoRowFit17->SetParError(1,0.005468513);
   ResoRowFit17->SetParLimits(1,0,0);
   ResoRowFit17->SetParameter(2,0.1305818);
   ResoRowFit17->SetParError(2,0.004597424);
   ResoRowFit17->SetParLimits(2,0,1.545718);
   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 = 673    ");
   text = ptstats->AddText("Mean  = -0.002355");
   text = ptstats->AddText("RMS   = 0.1543");
   text = ptstats->AddText("#chi^{2} / ndf = 58.54 / 42");
   text = ptstats->AddText("Constant = 37.38 #pm 1.98 ");
   text = ptstats->AddText("Mean     = -0.007812 #pm 0.005469 ");
   text = ptstats->AddText("Sigma    = 0.1306 #pm 0.0046 ");
   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,-6.3,1.25,56.7);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow18 = new TH1F("ResoRow18","",100,-1,1);
   ResoRow18->SetBinContent(0,2);
   ResoRow18->SetBinContent(24,1);
   ResoRow18->SetBinContent(28,3);
   ResoRow18->SetBinContent(29,2);
   ResoRow18->SetBinContent(30,3);
   ResoRow18->SetBinContent(31,2);
   ResoRow18->SetBinContent(33,1);
   ResoRow18->SetBinContent(34,1);
   ResoRow18->SetBinContent(35,1);
   ResoRow18->SetBinContent(36,4);
   ResoRow18->SetBinContent(37,4);
   ResoRow18->SetBinContent(38,6);
   ResoRow18->SetBinContent(39,15);
   ResoRow18->SetBinContent(40,11);
   ResoRow18->SetBinContent(41,15);
   ResoRow18->SetBinContent(42,13);
   ResoRow18->SetBinContent(43,25);
   ResoRow18->SetBinContent(44,16);
   ResoRow18->SetBinContent(45,27);
   ResoRow18->SetBinContent(46,32);
   ResoRow18->SetBinContent(47,46);
   ResoRow18->SetBinContent(48,36);
   ResoRow18->SetBinContent(49,41);
   ResoRow18->SetBinContent(50,36);
   ResoRow18->SetBinContent(51,41);
   ResoRow18->SetBinContent(52,32);
   ResoRow18->SetBinContent(53,34);
   ResoRow18->SetBinContent(54,48);
   ResoRow18->SetBinContent(55,29);
   ResoRow18->SetBinContent(56,24);
   ResoRow18->SetBinContent(57,17);
   ResoRow18->SetBinContent(58,18);
   ResoRow18->SetBinContent(59,16);
   ResoRow18->SetBinContent(60,14);
   ResoRow18->SetBinContent(61,8);
   ResoRow18->SetBinContent(62,14);
   ResoRow18->SetBinContent(63,6);
   ResoRow18->SetBinContent(64,7);
   ResoRow18->SetBinContent(65,5);
   ResoRow18->SetBinContent(66,7);
   ResoRow18->SetBinContent(67,2);
   ResoRow18->SetBinContent(69,1);
   ResoRow18->SetBinContent(72,1);
   ResoRow18->SetBinContent(101,6);
   ResoRow18->SetEntries(673);
   
   TF1 *ResoRowFit18 = new TF1("ResoRowFit18","gaus",-1,1);
   ResoRowFit18->SetFillColor(19);
   ResoRowFit18->SetFillStyle(0);
   ResoRowFit18->SetLineWidth(3);
   ResoRowFit18->SetChisquare(41.51808);
   ResoRowFit18->SetNDF(39);
   ResoRowFit18->SetParameter(0,37.75639);
   ResoRowFit18->SetParError(0,1.959826);
   ResoRowFit18->SetParLimits(0,0,0);
   ResoRowFit18->SetParameter(1,0.001206812);
   ResoRowFit18->SetParError(1,0.005534355);
   ResoRowFit18->SetParLimits(1,0,0);
   ResoRowFit18->SetParameter(2,0.132428);
   ResoRowFit18->SetParError(2,0.004553327);
   ResoRowFit18->SetParLimits(2,0,1.424903);
   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 = 673    ");
   text = ptstats->AddText("Mean  = -0.005061");
   text = ptstats->AddText("RMS   = 0.1425");
   text = ptstats->AddText("#chi^{2} / ndf = 41.52 / 39");
   text = ptstats->AddText("Constant = 37.76 #pm 1.96 ");
   text = ptstats->AddText("Mean     = 0.001207 #pm 0.005534 ");
   text = ptstats->AddText("Sigma    = 0.1324 #pm 0.0046 ");
   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,-6.0375,1.25,54.3375);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow19 = new TH1F("ResoRow19","",100,-1,1);
   ResoRow19->SetBinContent(0,4);
   ResoRow19->SetBinContent(13,1);
   ResoRow19->SetBinContent(19,1);
   ResoRow19->SetBinContent(25,1);
   ResoRow19->SetBinContent(28,1);
   ResoRow19->SetBinContent(29,1);
   ResoRow19->SetBinContent(30,2);
   ResoRow19->SetBinContent(31,1);
   ResoRow19->SetBinContent(32,2);
   ResoRow19->SetBinContent(33,4);
   ResoRow19->SetBinContent(34,1);
   ResoRow19->SetBinContent(35,3);
   ResoRow19->SetBinContent(36,4);
   ResoRow19->SetBinContent(37,7);
   ResoRow19->SetBinContent(38,5);
   ResoRow19->SetBinContent(39,11);
   ResoRow19->SetBinContent(40,11);
   ResoRow19->SetBinContent(41,13);
   ResoRow19->SetBinContent(42,16);
   ResoRow19->SetBinContent(43,18);
   ResoRow19->SetBinContent(44,18);
   ResoRow19->SetBinContent(45,23);
   ResoRow19->SetBinContent(46,37);
   ResoRow19->SetBinContent(47,41);
   ResoRow19->SetBinContent(48,39);
   ResoRow19->SetBinContent(49,46);
   ResoRow19->SetBinContent(50,37);
   ResoRow19->SetBinContent(51,41);
   ResoRow19->SetBinContent(52,42);
   ResoRow19->SetBinContent(53,39);
   ResoRow19->SetBinContent(54,38);
   ResoRow19->SetBinContent(55,22);
   ResoRow19->SetBinContent(56,22);
   ResoRow19->SetBinContent(57,26);
   ResoRow19->SetBinContent(58,19);
   ResoRow19->SetBinContent(59,13);
   ResoRow19->SetBinContent(60,9);
   ResoRow19->SetBinContent(61,14);
   ResoRow19->SetBinContent(62,11);
   ResoRow19->SetBinContent(63,5);
   ResoRow19->SetBinContent(64,4);
   ResoRow19->SetBinContent(65,1);
   ResoRow19->SetBinContent(66,2);
   ResoRow19->SetBinContent(67,5);
   ResoRow19->SetBinContent(70,2);
   ResoRow19->SetBinContent(72,1);
   ResoRow19->SetBinContent(74,1);
   ResoRow19->SetBinContent(75,1);
   ResoRow19->SetBinContent(78,1);
   ResoRow19->SetBinContent(101,6);
   ResoRow19->SetEntries(673);
   
   TF1 *ResoRowFit19 = new TF1("ResoRowFit19","gaus",-1,1);
   ResoRowFit19->SetFillColor(19);
   ResoRowFit19->SetFillStyle(0);
   ResoRowFit19->SetLineWidth(3);
   ResoRowFit19->SetChisquare(39.46042);
   ResoRowFit19->SetNDF(45);
   ResoRowFit19->SetParameter(0,39.18441);
   ResoRowFit19->SetParError(0,2.065692);
   ResoRowFit19->SetParLimits(0,0,0);
   ResoRowFit19->SetParameter(1,-0.007110379);
   ResoRowFit19->SetParError(1,0.005167079);
   ResoRowFit19->SetParLimits(1,0,0);
   ResoRowFit19->SetParameter(2,0.1272958);
   ResoRowFit19->SetParError(2,0.004454249);
   ResoRowFit19->SetParLimits(2,0,1.464369);
   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 = 673    ");
   text = ptstats->AddText("Mean  = -0.008146");
   text = ptstats->AddText("RMS   = 0.1462");
   text = ptstats->AddText("#chi^{2} / ndf = 39.46 / 45");
   text = ptstats->AddText("Constant = 39.18 #pm 2.07 ");
   text = ptstats->AddText("Mean     = -0.00711 #pm 0.00517 ");
   text = ptstats->AddText("Sigma    = 0.1273 #pm 0.0045 ");
   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);
}
