{
//=========Macro generated from canvas: c2/
//=========  (Tue Jun  8 20:52:45 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.25625,1.25,119.3063);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow18 = new TH1F("ResoRow18","",100,-1,1);
   ResoRow18->SetBinContent(0,1);
   ResoRow18->SetBinContent(19,1);
   ResoRow18->SetBinContent(20,1);
   ResoRow18->SetBinContent(24,3);
   ResoRow18->SetBinContent(26,1);
   ResoRow18->SetBinContent(31,1);
   ResoRow18->SetBinContent(32,3);
   ResoRow18->SetBinContent(34,2);
   ResoRow18->SetBinContent(35,2);
   ResoRow18->SetBinContent(36,3);
   ResoRow18->SetBinContent(37,8);
   ResoRow18->SetBinContent(38,5);
   ResoRow18->SetBinContent(39,13);
   ResoRow18->SetBinContent(40,12);
   ResoRow18->SetBinContent(41,13);
   ResoRow18->SetBinContent(42,24);
   ResoRow18->SetBinContent(43,35);
   ResoRow18->SetBinContent(44,33);
   ResoRow18->SetBinContent(45,58);
   ResoRow18->SetBinContent(46,49);
   ResoRow18->SetBinContent(47,60);
   ResoRow18->SetBinContent(48,80);
   ResoRow18->SetBinContent(49,77);
   ResoRow18->SetBinContent(50,81);
   ResoRow18->SetBinContent(51,101);
   ResoRow18->SetBinContent(52,76);
   ResoRow18->SetBinContent(53,65);
   ResoRow18->SetBinContent(54,68);
   ResoRow18->SetBinContent(55,55);
   ResoRow18->SetBinContent(56,47);
   ResoRow18->SetBinContent(57,42);
   ResoRow18->SetBinContent(58,28);
   ResoRow18->SetBinContent(59,18);
   ResoRow18->SetBinContent(60,17);
   ResoRow18->SetBinContent(61,16);
   ResoRow18->SetBinContent(62,10);
   ResoRow18->SetBinContent(63,8);
   ResoRow18->SetBinContent(64,3);
   ResoRow18->SetBinContent(65,6);
   ResoRow18->SetBinContent(66,4);
   ResoRow18->SetBinContent(67,1);
   ResoRow18->SetBinContent(68,2);
   ResoRow18->SetBinContent(70,1);
   ResoRow18->SetBinContent(71,1);
   ResoRow18->SetBinContent(73,1);
   ResoRow18->SetBinContent(87,1);
   ResoRow18->SetBinContent(94,1);
   ResoRow18->SetBinContent(101,1);
   ResoRow18->SetEntries(1139);
   
   TF1 *ResoRowFit18 = new TF1("ResoRowFit18","gaus",-1,1);
   ResoRowFit18->SetFillColor(19);
   ResoRowFit18->SetFillStyle(0);
   ResoRowFit18->SetLineWidth(3);
   ResoRowFit18->SetChisquare(40.37676);
   ResoRowFit18->SetNDF(43);
   ResoRowFit18->SetParameter(0,78.82487);
   ResoRowFit18->SetParError(0,3.1187);
   ResoRowFit18->SetParLimits(0,0,0);
   ResoRowFit18->SetParameter(1,0.0001091033);
   ResoRowFit18->SetParError(1,0.003372878);
   ResoRowFit18->SetParLimits(1,0,0);
   ResoRowFit18->SetParameter(2,0.111113);
   ResoRowFit18->SetParError(2,0.002869112);
   ResoRowFit18->SetParLimits(2,0,1.273393);
   ResoRow18->GetListOfFunctions()->Add(ResoRowFit18);
   
   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("ResoRow18");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1139   ");
   text = ptstats->AddText("Mean  = -0.001015");
   text = ptstats->AddText("RMS   = 0.1275");
   text = ptstats->AddText("#chi^{2} / ndf = 40.38 / 43");
   text = ptstats->AddText("Constant = 78.82 #pm 3.12 ");
   text = ptstats->AddText("Mean     = 0.0001091 #pm 0.0033729 ");
   text = ptstats->AddText("Sigma    = 0.1111 #pm 0.0029 ");
   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_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 *ResoRow19 = new TH1F("ResoRow19","",100,-1,1);
   ResoRow19->SetBinContent(0,2);
   ResoRow19->SetBinContent(8,1);
   ResoRow19->SetBinContent(11,1);
   ResoRow19->SetBinContent(17,1);
   ResoRow19->SetBinContent(27,1);
   ResoRow19->SetBinContent(28,1);
   ResoRow19->SetBinContent(29,3);
   ResoRow19->SetBinContent(30,1);
   ResoRow19->SetBinContent(31,1);
   ResoRow19->SetBinContent(32,1);
   ResoRow19->SetBinContent(33,3);
   ResoRow19->SetBinContent(34,6);
   ResoRow19->SetBinContent(35,2);
   ResoRow19->SetBinContent(36,1);
   ResoRow19->SetBinContent(37,8);
   ResoRow19->SetBinContent(38,11);
   ResoRow19->SetBinContent(39,8);
   ResoRow19->SetBinContent(40,20);
   ResoRow19->SetBinContent(41,16);
   ResoRow19->SetBinContent(42,22);
   ResoRow19->SetBinContent(43,27);
   ResoRow19->SetBinContent(44,51);
   ResoRow19->SetBinContent(45,50);
   ResoRow19->SetBinContent(46,57);
   ResoRow19->SetBinContent(47,72);
   ResoRow19->SetBinContent(48,69);
   ResoRow19->SetBinContent(49,96);
   ResoRow19->SetBinContent(50,77);
   ResoRow19->SetBinContent(51,65);
   ResoRow19->SetBinContent(52,71);
   ResoRow19->SetBinContent(53,76);
   ResoRow19->SetBinContent(54,64);
   ResoRow19->SetBinContent(55,50);
   ResoRow19->SetBinContent(56,44);
   ResoRow19->SetBinContent(57,33);
   ResoRow19->SetBinContent(58,25);
   ResoRow19->SetBinContent(59,28);
   ResoRow19->SetBinContent(60,11);
   ResoRow19->SetBinContent(61,18);
   ResoRow19->SetBinContent(62,12);
   ResoRow19->SetBinContent(63,4);
   ResoRow19->SetBinContent(64,7);
   ResoRow19->SetBinContent(65,4);
   ResoRow19->SetBinContent(66,2);
   ResoRow19->SetBinContent(67,2);
   ResoRow19->SetBinContent(68,3);
   ResoRow19->SetBinContent(70,1);
   ResoRow19->SetBinContent(71,1);
   ResoRow19->SetBinContent(73,1);
   ResoRow19->SetBinContent(74,1);
   ResoRow19->SetBinContent(76,1);
   ResoRow19->SetBinContent(83,1);
   ResoRow19->SetBinContent(101,5);
   ResoRow19->SetEntries(1139);
   
   TF1 *ResoRowFit19 = new TF1("ResoRowFit19","gaus",-1,1);
   ResoRowFit19->SetFillColor(19);
   ResoRowFit19->SetFillStyle(0);
   ResoRowFit19->SetLineWidth(3);
   ResoRowFit19->SetChisquare(57.48817);
   ResoRowFit19->SetNDF(48);
   ResoRowFit19->SetParameter(0,76.74196);
   ResoRowFit19->SetParError(0,3.01936);
   ResoRowFit19->SetParLimits(0,0,0);
   ResoRowFit19->SetParameter(1,-0.005000204);
   ResoRowFit19->SetParError(1,0.00343966);
   ResoRowFit19->SetParLimits(1,0,0);
   ResoRowFit19->SetParameter(2,0.1117512);
   ResoRowFit19->SetParError(2,0.002785635);
   ResoRowFit19->SetParLimits(2,0,1.327746);
   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 = 1139   ");
   text = ptstats->AddText("Mean  = -0.008543");
   text = ptstats->AddText("RMS   = 0.1325");
   text = ptstats->AddText("#chi^{2} / ndf = 57.49 / 48");
   text = ptstats->AddText("Constant = 76.74 #pm 3.02 ");
   text = ptstats->AddText("Mean     = -0.005 #pm 0.003 ");
   text = ptstats->AddText("Sigma    = 0.1118 #pm 0.0028 ");
   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_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,-11.41875,1.25,102.7688);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow20 = new TH1F("ResoRow20","",100,-1,1);
   ResoRow20->SetBinContent(0,3);
   ResoRow20->SetBinContent(11,1);
   ResoRow20->SetBinContent(18,2);
   ResoRow20->SetBinContent(27,1);
   ResoRow20->SetBinContent(28,1);
   ResoRow20->SetBinContent(29,2);
   ResoRow20->SetBinContent(30,1);
   ResoRow20->SetBinContent(33,5);
   ResoRow20->SetBinContent(34,5);
   ResoRow20->SetBinContent(35,6);
   ResoRow20->SetBinContent(36,5);
   ResoRow20->SetBinContent(37,5);
   ResoRow20->SetBinContent(38,10);
   ResoRow20->SetBinContent(39,15);
   ResoRow20->SetBinContent(40,11);
   ResoRow20->SetBinContent(41,25);
   ResoRow20->SetBinContent(42,25);
   ResoRow20->SetBinContent(43,31);
   ResoRow20->SetBinContent(44,27);
   ResoRow20->SetBinContent(45,39);
   ResoRow20->SetBinContent(46,51);
   ResoRow20->SetBinContent(47,63);
   ResoRow20->SetBinContent(48,75);
   ResoRow20->SetBinContent(49,75);
   ResoRow20->SetBinContent(50,87);
   ResoRow20->SetBinContent(51,73);
   ResoRow20->SetBinContent(52,84);
   ResoRow20->SetBinContent(53,79);
   ResoRow20->SetBinContent(54,65);
   ResoRow20->SetBinContent(55,62);
   ResoRow20->SetBinContent(56,51);
   ResoRow20->SetBinContent(57,42);
   ResoRow20->SetBinContent(58,20);
   ResoRow20->SetBinContent(59,22);
   ResoRow20->SetBinContent(60,15);
   ResoRow20->SetBinContent(61,13);
   ResoRow20->SetBinContent(62,9);
   ResoRow20->SetBinContent(63,7);
   ResoRow20->SetBinContent(64,4);
   ResoRow20->SetBinContent(65,6);
   ResoRow20->SetBinContent(66,2);
   ResoRow20->SetBinContent(67,2);
   ResoRow20->SetBinContent(68,2);
   ResoRow20->SetBinContent(69,1);
   ResoRow20->SetBinContent(70,3);
   ResoRow20->SetBinContent(73,1);
   ResoRow20->SetBinContent(80,1);
   ResoRow20->SetBinContent(101,4);
   ResoRow20->SetEntries(1139);
   
   TF1 *ResoRowFit20 = new TF1("ResoRowFit20","gaus",-1,1);
   ResoRowFit20->SetFillColor(19);
   ResoRowFit20->SetFillStyle(0);
   ResoRowFit20->SetLineWidth(3);
   ResoRowFit20->SetChisquare(53.31104);
   ResoRowFit20->SetNDF(43);
   ResoRowFit20->SetParameter(0,75.47292);
   ResoRowFit20->SetParError(0,3.161085);
   ResoRowFit20->SetParLimits(0,0,0);
   ResoRowFit20->SetParameter(1,-0.001070617);
   ResoRowFit20->SetParError(1,0.00355676);
   ResoRowFit20->SetParLimits(1,0,0);
   ResoRowFit20->SetParameter(2,0.1141268);
   ResoRowFit20->SetParError(2,0.003310522);
   ResoRowFit20->SetParLimits(2,0,1.302152);
   ResoRow20->GetListOfFunctions()->Add(ResoRowFit20);
   
   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("ResoRow20");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1139   ");
   text = ptstats->AddText("Mean  = -0.00533");
   text = ptstats->AddText("RMS   = 0.1302");
   text = ptstats->AddText("#chi^{2} / ndf = 53.31 / 43");
   text = ptstats->AddText("Constant = 75.47 #pm 3.16 ");
   text = ptstats->AddText("Mean     = -0.001071 #pm 0.003557 ");
   text = ptstats->AddText("Sigma    = 0.1141 #pm 0.0033 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow20->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow20->GetListOfFunctions());
   ResoRow20->GetXaxis()->SetTitle("residual / mm");
   ResoRow20->GetYaxis()->SetTitle("counts");
   ResoRow20->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,-11.68125,1.25,105.1313);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow21 = new TH1F("ResoRow21","",100,-1,1);
   ResoRow21->SetBinContent(0,2);
   ResoRow21->SetBinContent(1,1);
   ResoRow21->SetBinContent(6,1);
   ResoRow21->SetBinContent(8,1);
   ResoRow21->SetBinContent(24,1);
   ResoRow21->SetBinContent(25,1);
   ResoRow21->SetBinContent(31,2);
   ResoRow21->SetBinContent(32,1);
   ResoRow21->SetBinContent(33,3);
   ResoRow21->SetBinContent(34,3);
   ResoRow21->SetBinContent(35,1);
   ResoRow21->SetBinContent(36,6);
   ResoRow21->SetBinContent(37,8);
   ResoRow21->SetBinContent(38,9);
   ResoRow21->SetBinContent(39,10);
   ResoRow21->SetBinContent(40,12);
   ResoRow21->SetBinContent(41,18);
   ResoRow21->SetBinContent(42,32);
   ResoRow21->SetBinContent(43,38);
   ResoRow21->SetBinContent(44,47);
   ResoRow21->SetBinContent(45,55);
   ResoRow21->SetBinContent(46,42);
   ResoRow21->SetBinContent(47,62);
   ResoRow21->SetBinContent(48,81);
   ResoRow21->SetBinContent(49,71);
   ResoRow21->SetBinContent(50,89);
   ResoRow21->SetBinContent(51,81);
   ResoRow21->SetBinContent(52,63);
   ResoRow21->SetBinContent(53,57);
   ResoRow21->SetBinContent(54,57);
   ResoRow21->SetBinContent(55,56);
   ResoRow21->SetBinContent(56,52);
   ResoRow21->SetBinContent(57,45);
   ResoRow21->SetBinContent(58,26);
   ResoRow21->SetBinContent(59,19);
   ResoRow21->SetBinContent(60,19);
   ResoRow21->SetBinContent(61,15);
   ResoRow21->SetBinContent(62,14);
   ResoRow21->SetBinContent(63,8);
   ResoRow21->SetBinContent(65,6);
   ResoRow21->SetBinContent(66,7);
   ResoRow21->SetBinContent(67,8);
   ResoRow21->SetBinContent(68,3);
   ResoRow21->SetBinContent(72,1);
   ResoRow21->SetBinContent(75,1);
   ResoRow21->SetBinContent(84,1);
   ResoRow21->SetBinContent(85,1);
   ResoRow21->SetBinContent(101,2);
   ResoRow21->SetEntries(1139);
   
   TF1 *ResoRowFit21 = new TF1("ResoRowFit21","gaus",-1,1);
   ResoRowFit21->SetFillColor(19);
   ResoRowFit21->SetFillStyle(0);
   ResoRowFit21->SetLineWidth(3);
   ResoRowFit21->SetChisquare(50.56669);
   ResoRowFit21->SetNDF(43);
   ResoRowFit21->SetParameter(0,72.60183);
   ResoRowFit21->SetParError(0,2.874678);
   ResoRowFit21->SetParLimits(0,0,0);
   ResoRowFit21->SetParameter(1,-0.002102937);
   ResoRowFit21->SetParError(1,0.003805669);
   ResoRowFit21->SetParLimits(1,0,0);
   ResoRowFit21->SetParameter(2,0.1199765);
   ResoRowFit21->SetParError(2,0.003177948);
   ResoRowFit21->SetParLimits(2,0,1.37889);
   ResoRow21->GetListOfFunctions()->Add(ResoRowFit21);
   
   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("ResoRow21");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1139   ");
   text = ptstats->AddText("Mean  = -0.004481");
   text = ptstats->AddText("RMS   = 0.1376");
   text = ptstats->AddText("#chi^{2} / ndf = 50.57 / 43");
   text = ptstats->AddText("Constant =  72.6 #pm 2.9 ");
   text = ptstats->AddText("Mean     = -0.002103 #pm 0.003806 ");
   text = ptstats->AddText("Sigma    =  0.12 #pm 0.00 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow21->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow21->GetListOfFunctions());
   ResoRow21->GetXaxis()->SetTitle("residual / mm");
   ResoRow21->GetYaxis()->SetTitle("counts");
   ResoRow21->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,-10.36875,1.25,93.31875);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow22 = new TH1F("ResoRow22","",100,-1,1);
   ResoRow22->SetBinContent(0,3);
   ResoRow22->SetBinContent(5,1);
   ResoRow22->SetBinContent(24,1);
   ResoRow22->SetBinContent(25,2);
   ResoRow22->SetBinContent(27,1);
   ResoRow22->SetBinContent(28,2);
   ResoRow22->SetBinContent(29,1);
   ResoRow22->SetBinContent(31,4);
   ResoRow22->SetBinContent(32,1);
   ResoRow22->SetBinContent(33,5);
   ResoRow22->SetBinContent(34,2);
   ResoRow22->SetBinContent(35,4);
   ResoRow22->SetBinContent(36,4);
   ResoRow22->SetBinContent(37,12);
   ResoRow22->SetBinContent(38,13);
   ResoRow22->SetBinContent(39,11);
   ResoRow22->SetBinContent(40,19);
   ResoRow22->SetBinContent(41,20);
   ResoRow22->SetBinContent(42,30);
   ResoRow22->SetBinContent(43,35);
   ResoRow22->SetBinContent(44,30);
   ResoRow22->SetBinContent(45,51);
   ResoRow22->SetBinContent(46,57);
   ResoRow22->SetBinContent(47,61);
   ResoRow22->SetBinContent(48,78);
   ResoRow22->SetBinContent(49,79);
   ResoRow22->SetBinContent(50,71);
   ResoRow22->SetBinContent(51,77);
   ResoRow22->SetBinContent(52,71);
   ResoRow22->SetBinContent(53,67);
   ResoRow22->SetBinContent(54,60);
   ResoRow22->SetBinContent(55,52);
   ResoRow22->SetBinContent(56,40);
   ResoRow22->SetBinContent(57,32);
   ResoRow22->SetBinContent(58,35);
   ResoRow22->SetBinContent(59,21);
   ResoRow22->SetBinContent(60,24);
   ResoRow22->SetBinContent(61,11);
   ResoRow22->SetBinContent(62,8);
   ResoRow22->SetBinContent(63,9);
   ResoRow22->SetBinContent(64,5);
   ResoRow22->SetBinContent(65,6);
   ResoRow22->SetBinContent(66,6);
   ResoRow22->SetBinContent(67,2);
   ResoRow22->SetBinContent(68,3);
   ResoRow22->SetBinContent(69,2);
   ResoRow22->SetBinContent(71,1);
   ResoRow22->SetBinContent(73,2);
   ResoRow22->SetBinContent(74,1);
   ResoRow22->SetBinContent(76,1);
   ResoRow22->SetBinContent(101,5);
   ResoRow22->SetEntries(1139);
   
   TF1 *ResoRowFit22 = new TF1("ResoRowFit22","gaus",-1,1);
   ResoRowFit22->SetFillColor(19);
   ResoRowFit22->SetFillStyle(0);
   ResoRowFit22->SetLineWidth(3);
   ResoRowFit22->SetChisquare(42.36909);
   ResoRowFit22->SetNDF(46);
   ResoRowFit22->SetParameter(0,70.90629);
   ResoRowFit22->SetParError(0,2.85527);
   ResoRowFit22->SetParLimits(0,0,0);
   ResoRowFit22->SetParameter(1,-0.007139264);
   ResoRowFit22->SetParError(1,0.003731876);
   ResoRowFit22->SetParLimits(1,0,0);
   ResoRowFit22->SetParameter(2,0.1225993);
   ResoRowFit22->SetParError(2,0.003277245);
   ResoRowFit22->SetParLimits(2,0,1.373703);
   ResoRow22->GetListOfFunctions()->Add(ResoRowFit22);
   
   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("ResoRow22");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1139   ");
   text = ptstats->AddText("Mean  = -0.009552");
   text = ptstats->AddText("RMS   = 0.1373");
   text = ptstats->AddText("#chi^{2} / ndf = 42.37 / 46");
   text = ptstats->AddText("Constant = 70.91 #pm 2.86 ");
   text = ptstats->AddText("Mean     = -0.007139 #pm 0.003732 ");
   text = ptstats->AddText("Sigma    = 0.1226 #pm 0.0033 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow22->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow22->GetListOfFunctions());
   ResoRow22->GetXaxis()->SetTitle("residual / mm");
   ResoRow22->GetYaxis()->SetTitle("counts");
   ResoRow22->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,-11.15625,1.25,100.4063);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   c2_6->Modified();
   c2->cd();
   c2->Modified();
   c2->cd();
   c2->SetSelected(c2);
}
