{
//=========Macro generated from canvas: c2/
//=========  (Tue Jun  8 22:08:07 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,-12.20625,1.25,109.8563);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow18 = new TH1F("ResoRow18","",100,-1,1);
   ResoRow18->SetBinContent(0,4);
   ResoRow18->SetBinContent(14,1);
   ResoRow18->SetBinContent(15,1);
   ResoRow18->SetBinContent(23,1);
   ResoRow18->SetBinContent(24,1);
   ResoRow18->SetBinContent(26,1);
   ResoRow18->SetBinContent(27,1);
   ResoRow18->SetBinContent(30,1);
   ResoRow18->SetBinContent(31,2);
   ResoRow18->SetBinContent(32,2);
   ResoRow18->SetBinContent(33,2);
   ResoRow18->SetBinContent(34,7);
   ResoRow18->SetBinContent(35,5);
   ResoRow18->SetBinContent(36,5);
   ResoRow18->SetBinContent(37,11);
   ResoRow18->SetBinContent(38,9);
   ResoRow18->SetBinContent(39,8);
   ResoRow18->SetBinContent(40,19);
   ResoRow18->SetBinContent(41,28);
   ResoRow18->SetBinContent(42,40);
   ResoRow18->SetBinContent(43,37);
   ResoRow18->SetBinContent(44,56);
   ResoRow18->SetBinContent(45,58);
   ResoRow18->SetBinContent(46,79);
   ResoRow18->SetBinContent(47,71);
   ResoRow18->SetBinContent(48,78);
   ResoRow18->SetBinContent(49,93);
   ResoRow18->SetBinContent(50,84);
   ResoRow18->SetBinContent(51,88);
   ResoRow18->SetBinContent(52,90);
   ResoRow18->SetBinContent(53,89);
   ResoRow18->SetBinContent(54,74);
   ResoRow18->SetBinContent(55,59);
   ResoRow18->SetBinContent(56,41);
   ResoRow18->SetBinContent(57,47);
   ResoRow18->SetBinContent(58,41);
   ResoRow18->SetBinContent(59,30);
   ResoRow18->SetBinContent(60,20);
   ResoRow18->SetBinContent(61,15);
   ResoRow18->SetBinContent(62,17);
   ResoRow18->SetBinContent(63,11);
   ResoRow18->SetBinContent(64,10);
   ResoRow18->SetBinContent(65,4);
   ResoRow18->SetBinContent(66,5);
   ResoRow18->SetBinContent(67,9);
   ResoRow18->SetBinContent(68,2);
   ResoRow18->SetBinContent(69,6);
   ResoRow18->SetBinContent(70,2);
   ResoRow18->SetBinContent(71,2);
   ResoRow18->SetBinContent(72,2);
   ResoRow18->SetBinContent(75,1);
   ResoRow18->SetBinContent(77,1);
   ResoRow18->SetBinContent(81,1);
   ResoRow18->SetBinContent(82,1);
   ResoRow18->SetBinContent(83,1);
   ResoRow18->SetBinContent(89,1);
   ResoRow18->SetBinContent(93,1);
   ResoRow18->SetBinContent(101,3);
   ResoRow18->SetEntries(1379);
   
   TF1 *ResoRowFit18 = new TF1("ResoRowFit18","gaus",-1,1);
   ResoRowFit18->SetFillColor(19);
   ResoRowFit18->SetFillStyle(0);
   ResoRowFit18->SetLineWidth(3);
   ResoRowFit18->SetChisquare(58.51117);
   ResoRowFit18->SetNDF(53);
   ResoRowFit18->SetParameter(0,85.74084);
   ResoRowFit18->SetParError(0,3.13831);
   ResoRowFit18->SetParLimits(0,0,0);
   ResoRowFit18->SetParameter(1,-0.00374531);
   ResoRowFit18->SetParError(1,0.003403164);
   ResoRowFit18->SetParLimits(1,0,0);
   ResoRowFit18->SetParameter(2,0.1222748);
   ResoRowFit18->SetParError(2,0.00295309);
   ResoRowFit18->SetParLimits(2,0,1.431535);
   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 = 1379   ");
   text = ptstats->AddText("Mean  = -0.001008");
   text = ptstats->AddText("RMS   =  0.143");
   text = ptstats->AddText("#chi^{2} / ndf = 58.51 / 53");
   text = ptstats->AddText("Constant = 85.74 #pm 3.14 ");
   text = ptstats->AddText("Mean     = -0.003745 #pm 0.003403 ");
   text = ptstats->AddText("Sigma    = 0.1223 #pm 0.0030 ");
   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.99375,1.25,116.9438);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow19 = new TH1F("ResoRow19","",100,-1,1);
   ResoRow19->SetBinContent(0,2);
   ResoRow19->SetBinContent(2,1);
   ResoRow19->SetBinContent(12,1);
   ResoRow19->SetBinContent(19,1);
   ResoRow19->SetBinContent(23,1);
   ResoRow19->SetBinContent(26,1);
   ResoRow19->SetBinContent(27,1);
   ResoRow19->SetBinContent(29,1);
   ResoRow19->SetBinContent(30,1);
   ResoRow19->SetBinContent(31,2);
   ResoRow19->SetBinContent(32,4);
   ResoRow19->SetBinContent(33,2);
   ResoRow19->SetBinContent(34,3);
   ResoRow19->SetBinContent(35,2);
   ResoRow19->SetBinContent(36,5);
   ResoRow19->SetBinContent(37,9);
   ResoRow19->SetBinContent(38,18);
   ResoRow19->SetBinContent(39,16);
   ResoRow19->SetBinContent(40,21);
   ResoRow19->SetBinContent(41,38);
   ResoRow19->SetBinContent(42,26);
   ResoRow19->SetBinContent(43,51);
   ResoRow19->SetBinContent(44,39);
   ResoRow19->SetBinContent(45,59);
   ResoRow19->SetBinContent(46,72);
   ResoRow19->SetBinContent(47,81);
   ResoRow19->SetBinContent(48,86);
   ResoRow19->SetBinContent(49,86);
   ResoRow19->SetBinContent(50,81);
   ResoRow19->SetBinContent(51,99);
   ResoRow19->SetBinContent(52,87);
   ResoRow19->SetBinContent(53,79);
   ResoRow19->SetBinContent(54,76);
   ResoRow19->SetBinContent(55,50);
   ResoRow19->SetBinContent(56,54);
   ResoRow19->SetBinContent(57,46);
   ResoRow19->SetBinContent(58,39);
   ResoRow19->SetBinContent(59,25);
   ResoRow19->SetBinContent(60,28);
   ResoRow19->SetBinContent(61,18);
   ResoRow19->SetBinContent(62,14);
   ResoRow19->SetBinContent(63,10);
   ResoRow19->SetBinContent(64,11);
   ResoRow19->SetBinContent(65,4);
   ResoRow19->SetBinContent(66,2);
   ResoRow19->SetBinContent(67,5);
   ResoRow19->SetBinContent(68,3);
   ResoRow19->SetBinContent(69,3);
   ResoRow19->SetBinContent(70,2);
   ResoRow19->SetBinContent(71,1);
   ResoRow19->SetBinContent(72,3);
   ResoRow19->SetBinContent(78,1);
   ResoRow19->SetBinContent(80,1);
   ResoRow19->SetBinContent(83,1);
   ResoRow19->SetBinContent(87,1);
   ResoRow19->SetBinContent(90,1);
   ResoRow19->SetBinContent(95,1);
   ResoRow19->SetBinContent(101,3);
   ResoRow19->SetEntries(1379);
   
   TF1 *ResoRowFit19 = new TF1("ResoRowFit19","gaus",-1,1);
   ResoRowFit19->SetFillColor(19);
   ResoRowFit19->SetFillStyle(0);
   ResoRowFit19->SetLineWidth(3);
   ResoRowFit19->SetChisquare(51.79828);
   ResoRowFit19->SetNDF(53);
   ResoRowFit19->SetParameter(0,85.5692);
   ResoRowFit19->SetParError(0,3.012385);
   ResoRowFit19->SetParLimits(0,0,0);
   ResoRowFit19->SetParameter(1,-0.005617901);
   ResoRowFit19->SetParError(1,0.003402143);
   ResoRowFit19->SetParLimits(1,0,0);
   ResoRowFit19->SetParameter(2,0.1233212);
   ResoRowFit19->SetParError(2,0.00271943);
   ResoRowFit19->SetParLimits(2,0,1.440022);
   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 = 1379   ");
   text = ptstats->AddText("Mean  = -0.004815");
   text = ptstats->AddText("RMS   = 0.1437");
   text = ptstats->AddText("#chi^{2} / ndf =  51.8 / 53");
   text = ptstats->AddText("Constant = 85.57 #pm 3.01 ");
   text = ptstats->AddText("Mean     = -0.005618 #pm 0.003402 ");
   text = ptstats->AddText("Sigma    = 0.1233 #pm 0.0027 ");
   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,-12.075,1.25,108.675);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow20 = new TH1F("ResoRow20","",100,-1,1);
   ResoRow20->SetBinContent(0,3);
   ResoRow20->SetBinContent(6,1);
   ResoRow20->SetBinContent(12,1);
   ResoRow20->SetBinContent(14,1);
   ResoRow20->SetBinContent(16,2);
   ResoRow20->SetBinContent(18,1);
   ResoRow20->SetBinContent(22,1);
   ResoRow20->SetBinContent(25,2);
   ResoRow20->SetBinContent(28,1);
   ResoRow20->SetBinContent(29,1);
   ResoRow20->SetBinContent(32,4);
   ResoRow20->SetBinContent(33,2);
   ResoRow20->SetBinContent(34,4);
   ResoRow20->SetBinContent(35,6);
   ResoRow20->SetBinContent(36,5);
   ResoRow20->SetBinContent(37,13);
   ResoRow20->SetBinContent(38,12);
   ResoRow20->SetBinContent(39,20);
   ResoRow20->SetBinContent(40,14);
   ResoRow20->SetBinContent(41,27);
   ResoRow20->SetBinContent(42,32);
   ResoRow20->SetBinContent(43,41);
   ResoRow20->SetBinContent(44,43);
   ResoRow20->SetBinContent(45,53);
   ResoRow20->SetBinContent(46,71);
   ResoRow20->SetBinContent(47,71);
   ResoRow20->SetBinContent(48,88);
   ResoRow20->SetBinContent(49,86);
   ResoRow20->SetBinContent(50,90);
   ResoRow20->SetBinContent(51,85);
   ResoRow20->SetBinContent(52,84);
   ResoRow20->SetBinContent(53,92);
   ResoRow20->SetBinContent(54,71);
   ResoRow20->SetBinContent(55,65);
   ResoRow20->SetBinContent(56,57);
   ResoRow20->SetBinContent(57,45);
   ResoRow20->SetBinContent(58,39);
   ResoRow20->SetBinContent(59,26);
   ResoRow20->SetBinContent(60,22);
   ResoRow20->SetBinContent(61,18);
   ResoRow20->SetBinContent(62,15);
   ResoRow20->SetBinContent(63,10);
   ResoRow20->SetBinContent(64,12);
   ResoRow20->SetBinContent(65,9);
   ResoRow20->SetBinContent(66,8);
   ResoRow20->SetBinContent(67,5);
   ResoRow20->SetBinContent(68,3);
   ResoRow20->SetBinContent(69,1);
   ResoRow20->SetBinContent(70,3);
   ResoRow20->SetBinContent(71,3);
   ResoRow20->SetBinContent(72,1);
   ResoRow20->SetBinContent(73,1);
   ResoRow20->SetBinContent(74,3);
   ResoRow20->SetBinContent(75,1);
   ResoRow20->SetBinContent(81,1);
   ResoRow20->SetBinContent(101,3);
   ResoRow20->SetEntries(1379);
   
   TF1 *ResoRowFit20 = new TF1("ResoRowFit20","gaus",-1,1);
   ResoRowFit20->SetFillColor(19);
   ResoRowFit20->SetFillStyle(0);
   ResoRowFit20->SetLineWidth(3);
   ResoRowFit20->SetChisquare(45.91436);
   ResoRowFit20->SetNDF(51);
   ResoRowFit20->SetParameter(0,83.82954);
   ResoRowFit20->SetParError(0,3.088257);
   ResoRowFit20->SetParLimits(0,0,0);
   ResoRowFit20->SetParameter(1,-0.0009451945);
   ResoRowFit20->SetParError(1,0.003490309);
   ResoRowFit20->SetParLimits(1,0,0);
   ResoRowFit20->SetParameter(2,0.1264434);
   ResoRowFit20->SetParError(2,0.003137196);
   ResoRowFit20->SetParLimits(2,0,1.450403);
   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 = 1379   ");
   text = ptstats->AddText("Mean  = -0.002098");
   text = ptstats->AddText("RMS   = 0.1451");
   text = ptstats->AddText("#chi^{2} / ndf = 45.91 / 51");
   text = ptstats->AddText("Constant = 83.83 #pm 3.09 ");
   text = ptstats->AddText("Mean     = -0.0009452 #pm 0.0034903 ");
   text = ptstats->AddText("Sigma    = 0.1264 #pm 0.0031 ");
   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.15625,1.25,100.4063);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow21 = new TH1F("ResoRow21","",100,-1,1);
   ResoRow21->SetBinContent(0,6);
   ResoRow21->SetBinContent(7,1);
   ResoRow21->SetBinContent(13,1);
   ResoRow21->SetBinContent(20,2);
   ResoRow21->SetBinContent(25,1);
   ResoRow21->SetBinContent(28,1);
   ResoRow21->SetBinContent(29,1);
   ResoRow21->SetBinContent(30,3);
   ResoRow21->SetBinContent(31,3);
   ResoRow21->SetBinContent(32,3);
   ResoRow21->SetBinContent(33,5);
   ResoRow21->SetBinContent(34,3);
   ResoRow21->SetBinContent(35,6);
   ResoRow21->SetBinContent(36,7);
   ResoRow21->SetBinContent(37,15);
   ResoRow21->SetBinContent(38,15);
   ResoRow21->SetBinContent(39,16);
   ResoRow21->SetBinContent(40,12);
   ResoRow21->SetBinContent(41,23);
   ResoRow21->SetBinContent(42,39);
   ResoRow21->SetBinContent(43,36);
   ResoRow21->SetBinContent(44,65);
   ResoRow21->SetBinContent(45,58);
   ResoRow21->SetBinContent(46,69);
   ResoRow21->SetBinContent(47,83);
   ResoRow21->SetBinContent(48,73);
   ResoRow21->SetBinContent(49,85);
   ResoRow21->SetBinContent(50,76);
   ResoRow21->SetBinContent(51,81);
   ResoRow21->SetBinContent(52,73);
   ResoRow21->SetBinContent(53,74);
   ResoRow21->SetBinContent(54,85);
   ResoRow21->SetBinContent(55,58);
   ResoRow21->SetBinContent(56,42);
   ResoRow21->SetBinContent(57,47);
   ResoRow21->SetBinContent(58,43);
   ResoRow21->SetBinContent(59,30);
   ResoRow21->SetBinContent(60,33);
   ResoRow21->SetBinContent(61,21);
   ResoRow21->SetBinContent(62,18);
   ResoRow21->SetBinContent(63,17);
   ResoRow21->SetBinContent(64,10);
   ResoRow21->SetBinContent(65,10);
   ResoRow21->SetBinContent(66,7);
   ResoRow21->SetBinContent(67,2);
   ResoRow21->SetBinContent(68,6);
   ResoRow21->SetBinContent(69,3);
   ResoRow21->SetBinContent(70,2);
   ResoRow21->SetBinContent(71,1);
   ResoRow21->SetBinContent(72,2);
   ResoRow21->SetBinContent(76,1);
   ResoRow21->SetBinContent(101,5);
   ResoRow21->SetEntries(1379);
   
   TF1 *ResoRowFit21 = new TF1("ResoRowFit21","gaus",-1,1);
   ResoRowFit21->SetFillColor(19);
   ResoRowFit21->SetFillStyle(0);
   ResoRowFit21->SetLineWidth(3);
   ResoRowFit21->SetChisquare(51.71861);
   ResoRowFit21->SetNDF(47);
   ResoRowFit21->SetParameter(0,78.62464);
   ResoRowFit21->SetParError(0,2.827228);
   ResoRowFit21->SetParLimits(0,0,0);
   ResoRowFit21->SetParameter(1,0.0001712065);
   ResoRowFit21->SetParError(1,0.003705447);
   ResoRowFit21->SetParLimits(1,0,0);
   ResoRowFit21->SetParameter(2,0.1336694);
   ResoRowFit21->SetParError(2,0.003111998);
   ResoRowFit21->SetParLimits(2,0,1.443288);
   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 = 1379   ");
   text = ptstats->AddText("Mean  = -0.00367");
   text = ptstats->AddText("RMS   =  0.144");
   text = ptstats->AddText("#chi^{2} / ndf = 51.72 / 47");
   text = ptstats->AddText("Constant = 78.62 #pm 2.83 ");
   text = ptstats->AddText("Mean     = 0.0001712 #pm 0.0037054 ");
   text = ptstats->AddText("Sigma    = 0.1337 #pm 0.0031 ");
   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,-13.51875,1.25,121.6688);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow22 = new TH1F("ResoRow22","",100,-1,1);
   ResoRow22->SetBinContent(0,5);
   ResoRow22->SetBinContent(2,1);
   ResoRow22->SetBinContent(15,1);
   ResoRow22->SetBinContent(16,1);
   ResoRow22->SetBinContent(21,1);
   ResoRow22->SetBinContent(23,2);
   ResoRow22->SetBinContent(24,3);
   ResoRow22->SetBinContent(25,2);
   ResoRow22->SetBinContent(26,1);
   ResoRow22->SetBinContent(27,1);
   ResoRow22->SetBinContent(28,2);
   ResoRow22->SetBinContent(29,2);
   ResoRow22->SetBinContent(30,1);
   ResoRow22->SetBinContent(31,2);
   ResoRow22->SetBinContent(33,3);
   ResoRow22->SetBinContent(34,5);
   ResoRow22->SetBinContent(35,6);
   ResoRow22->SetBinContent(36,9);
   ResoRow22->SetBinContent(37,9);
   ResoRow22->SetBinContent(38,10);
   ResoRow22->SetBinContent(39,22);
   ResoRow22->SetBinContent(40,19);
   ResoRow22->SetBinContent(41,32);
   ResoRow22->SetBinContent(42,28);
   ResoRow22->SetBinContent(43,31);
   ResoRow22->SetBinContent(44,45);
   ResoRow22->SetBinContent(45,67);
   ResoRow22->SetBinContent(46,71);
   ResoRow22->SetBinContent(47,63);
   ResoRow22->SetBinContent(48,94);
   ResoRow22->SetBinContent(49,89);
   ResoRow22->SetBinContent(50,103);
   ResoRow22->SetBinContent(51,99);
   ResoRow22->SetBinContent(52,87);
   ResoRow22->SetBinContent(53,77);
   ResoRow22->SetBinContent(54,67);
   ResoRow22->SetBinContent(55,59);
   ResoRow22->SetBinContent(56,47);
   ResoRow22->SetBinContent(57,39);
   ResoRow22->SetBinContent(58,29);
   ResoRow22->SetBinContent(59,27);
   ResoRow22->SetBinContent(60,24);
   ResoRow22->SetBinContent(61,21);
   ResoRow22->SetBinContent(62,20);
   ResoRow22->SetBinContent(63,8);
   ResoRow22->SetBinContent(64,9);
   ResoRow22->SetBinContent(65,6);
   ResoRow22->SetBinContent(66,5);
   ResoRow22->SetBinContent(67,6);
   ResoRow22->SetBinContent(68,4);
   ResoRow22->SetBinContent(69,1);
   ResoRow22->SetBinContent(70,3);
   ResoRow22->SetBinContent(73,2);
   ResoRow22->SetBinContent(79,1);
   ResoRow22->SetBinContent(82,1);
   ResoRow22->SetBinContent(83,1);
   ResoRow22->SetBinContent(88,1);
   ResoRow22->SetBinContent(101,4);
   ResoRow22->SetEntries(1379);
   
   TF1 *ResoRowFit22 = new TF1("ResoRowFit22","gaus",-1,1);
   ResoRowFit22->SetFillColor(19);
   ResoRowFit22->SetFillStyle(0);
   ResoRowFit22->SetLineWidth(3);
   ResoRowFit22->SetChisquare(64.17712);
   ResoRowFit22->SetNDF(53);
   ResoRowFit22->SetParameter(0,83.05937);
   ResoRowFit22->SetParError(0,3.147584);
   ResoRowFit22->SetParLimits(0,0,0);
   ResoRowFit22->SetParameter(1,-0.006523477);
   ResoRowFit22->SetParError(1,0.003499547);
   ResoRowFit22->SetParLimits(1,0,0);
   ResoRowFit22->SetParameter(2,0.1256259);
   ResoRowFit22->SetParError(2,0.003294039);
   ResoRowFit22->SetParLimits(2,0,1.464277);
   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 = 1379   ");
   text = ptstats->AddText("Mean  = -0.009529");
   text = ptstats->AddText("RMS   = 0.1461");
   text = ptstats->AddText("#chi^{2} / ndf = 64.18 / 53");
   text = ptstats->AddText("Constant = 83.06 #pm 3.15 ");
   text = ptstats->AddText("Mean     = -0.006523 #pm 0.003500 ");
   text = ptstats->AddText("Sigma    = 0.1256 #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,-12.99375,1.25,116.9438);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   c2_6->Modified();
   c2->cd();
   c2->Modified();
   c2->cd();
   c2->SetSelected(c2);
}
