{
//=========Macro generated from canvas: c2/
//=========  (Fri Jun 11 09:52:05 2010) by ROOT version5.25/04
   TCanvas *c2 = new TCanvas("c2", "",0,0,900,600);
   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.8625,1.25,115.7625);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow01 = new TH1F("ResoRow01","",100,-1,1);
   ResoRow01->SetBinContent(0,3);
   ResoRow01->SetBinContent(6,2);
   ResoRow01->SetBinContent(7,1);
   ResoRow01->SetBinContent(8,1);
   ResoRow01->SetBinContent(10,1);
   ResoRow01->SetBinContent(14,1);
   ResoRow01->SetBinContent(15,1);
   ResoRow01->SetBinContent(19,1);
   ResoRow01->SetBinContent(20,1);
   ResoRow01->SetBinContent(23,1);
   ResoRow01->SetBinContent(25,2);
   ResoRow01->SetBinContent(26,1);
   ResoRow01->SetBinContent(27,2);
   ResoRow01->SetBinContent(28,1);
   ResoRow01->SetBinContent(31,5);
   ResoRow01->SetBinContent(32,3);
   ResoRow01->SetBinContent(33,4);
   ResoRow01->SetBinContent(34,5);
   ResoRow01->SetBinContent(35,2);
   ResoRow01->SetBinContent(36,1);
   ResoRow01->SetBinContent(37,6);
   ResoRow01->SetBinContent(38,7);
   ResoRow01->SetBinContent(39,9);
   ResoRow01->SetBinContent(40,8);
   ResoRow01->SetBinContent(41,19);
   ResoRow01->SetBinContent(42,24);
   ResoRow01->SetBinContent(43,23);
   ResoRow01->SetBinContent(44,27);
   ResoRow01->SetBinContent(45,42);
   ResoRow01->SetBinContent(46,63);
   ResoRow01->SetBinContent(47,70);
   ResoRow01->SetBinContent(48,60);
   ResoRow01->SetBinContent(49,88);
   ResoRow01->SetBinContent(50,98);
   ResoRow01->SetBinContent(51,87);
   ResoRow01->SetBinContent(52,75);
   ResoRow01->SetBinContent(53,54);
   ResoRow01->SetBinContent(54,58);
   ResoRow01->SetBinContent(55,51);
   ResoRow01->SetBinContent(56,56);
   ResoRow01->SetBinContent(57,31);
   ResoRow01->SetBinContent(58,29);
   ResoRow01->SetBinContent(59,17);
   ResoRow01->SetBinContent(60,17);
   ResoRow01->SetBinContent(61,13);
   ResoRow01->SetBinContent(62,17);
   ResoRow01->SetBinContent(63,12);
   ResoRow01->SetBinContent(64,7);
   ResoRow01->SetBinContent(65,5);
   ResoRow01->SetBinContent(66,3);
   ResoRow01->SetBinContent(67,4);
   ResoRow01->SetBinContent(69,1);
   ResoRow01->SetBinContent(70,1);
   ResoRow01->SetBinContent(74,1);
   ResoRow01->SetBinContent(77,1);
   ResoRow01->SetBinContent(78,1);
   ResoRow01->SetBinContent(80,2);
   ResoRow01->SetBinContent(83,1);
   ResoRow01->SetBinContent(84,1);
   ResoRow01->SetBinContent(85,1);
   ResoRow01->SetBinContent(86,1);
   ResoRow01->SetBinContent(91,1);
   ResoRow01->SetBinContent(101,5);
   ResoRow01->SetEntries(1136);
   
   TF1 *ResoRowFit01 = new TF1("ResoRowFit01","gaus",-1,1);
   ResoRowFit01->SetFillColor(19);
   ResoRowFit01->SetFillStyle(0);
   ResoRowFit01->SetLineWidth(3);
   ResoRowFit01->SetChisquare(88.35441);
   ResoRowFit01->SetNDF(58);
   ResoRowFit01->SetParameter(0,74.6105);
   ResoRowFit01->SetParError(0,3.141925);
   ResoRowFit01->SetParLimits(0,0,0);
   ResoRowFit01->SetParameter(1,0.003385213);
   ResoRowFit01->SetParError(1,0.003549119);
   ResoRowFit01->SetParLimits(1,0,0);
   ResoRowFit01->SetParameter(2,0.1112728);
   ResoRowFit01->SetParError(2,0.003197352);
   ResoRowFit01->SetParLimits(2,0,1.558622);
   ResoRow01->GetListOfFunctions()->Add(ResoRowFit01);
   
   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("ResoRow01");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1136   ");
   text = ptstats->AddText("Mean  = -0.003411");
   text = ptstats->AddText("RMS   = 0.1561");
   text = ptstats->AddText("#chi^{2} / ndf = 88.35 / 58");
   text = ptstats->AddText("Constant = 74.61 #pm 3.14 ");
   text = ptstats->AddText("Mean     = 0.003385 #pm 0.003549 ");
   text = ptstats->AddText("Sigma    = 0.1113 #pm 0.0032 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow01->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow01->GetListOfFunctions());
   ResoRow01->GetXaxis()->SetTitle("residual / mm");
   ResoRow01->GetYaxis()->SetTitle("counts");
   ResoRow01->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.3375,1.25,111.0375);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow02 = new TH1F("ResoRow02","",100,-1,1);
   ResoRow02->SetBinContent(0,1);
   ResoRow02->SetBinContent(9,1);
   ResoRow02->SetBinContent(19,2);
   ResoRow02->SetBinContent(20,2);
   ResoRow02->SetBinContent(22,2);
   ResoRow02->SetBinContent(24,1);
   ResoRow02->SetBinContent(25,2);
   ResoRow02->SetBinContent(29,1);
   ResoRow02->SetBinContent(30,1);
   ResoRow02->SetBinContent(32,2);
   ResoRow02->SetBinContent(33,2);
   ResoRow02->SetBinContent(34,3);
   ResoRow02->SetBinContent(35,3);
   ResoRow02->SetBinContent(36,9);
   ResoRow02->SetBinContent(37,4);
   ResoRow02->SetBinContent(38,7);
   ResoRow02->SetBinContent(39,6);
   ResoRow02->SetBinContent(40,13);
   ResoRow02->SetBinContent(41,16);
   ResoRow02->SetBinContent(42,24);
   ResoRow02->SetBinContent(43,22);
   ResoRow02->SetBinContent(44,37);
   ResoRow02->SetBinContent(45,45);
   ResoRow02->SetBinContent(46,56);
   ResoRow02->SetBinContent(47,76);
   ResoRow02->SetBinContent(48,73);
   ResoRow02->SetBinContent(49,89);
   ResoRow02->SetBinContent(50,77);
   ResoRow02->SetBinContent(51,94);
   ResoRow02->SetBinContent(52,72);
   ResoRow02->SetBinContent(53,77);
   ResoRow02->SetBinContent(54,59);
   ResoRow02->SetBinContent(55,52);
   ResoRow02->SetBinContent(56,35);
   ResoRow02->SetBinContent(57,27);
   ResoRow02->SetBinContent(58,40);
   ResoRow02->SetBinContent(59,22);
   ResoRow02->SetBinContent(60,23);
   ResoRow02->SetBinContent(61,11);
   ResoRow02->SetBinContent(62,5);
   ResoRow02->SetBinContent(63,6);
   ResoRow02->SetBinContent(64,3);
   ResoRow02->SetBinContent(65,6);
   ResoRow02->SetBinContent(66,3);
   ResoRow02->SetBinContent(67,3);
   ResoRow02->SetBinContent(68,4);
   ResoRow02->SetBinContent(69,1);
   ResoRow02->SetBinContent(70,1);
   ResoRow02->SetBinContent(71,2);
   ResoRow02->SetBinContent(72,2);
   ResoRow02->SetBinContent(73,2);
   ResoRow02->SetBinContent(75,1);
   ResoRow02->SetBinContent(82,3);
   ResoRow02->SetBinContent(85,1);
   ResoRow02->SetBinContent(91,1);
   ResoRow02->SetBinContent(101,3);
   ResoRow02->SetEntries(1136);
   
   TF1 *ResoRowFit02 = new TF1("ResoRowFit02","gaus",-1,1);
   ResoRowFit02->SetFillColor(19);
   ResoRowFit02->SetFillStyle(0);
   ResoRowFit02->SetLineWidth(3);
   ResoRowFit02->SetChisquare(70.86629);
   ResoRowFit02->SetNDF(51);
   ResoRowFit02->SetParameter(0,78.31315);
   ResoRowFit02->SetParError(0,3.244378);
   ResoRowFit02->SetParLimits(0,0,0);
   ResoRowFit02->SetParameter(1,-0.002787666);
   ResoRowFit02->SetParError(1,0.003325164);
   ResoRowFit02->SetParLimits(1,0,0);
   ResoRowFit02->SetParameter(2,0.1081288);
   ResoRowFit02->SetParError(2,0.003012878);
   ResoRowFit02->SetParLimits(2,0,1.416352);
   ResoRow02->GetListOfFunctions()->Add(ResoRowFit02);
   
   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("ResoRow02");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1136   ");
   text = ptstats->AddText("Mean  = -0.001827");
   text = ptstats->AddText("RMS   = 0.1415");
   text = ptstats->AddText("#chi^{2} / ndf = 70.87 / 51");
   text = ptstats->AddText("Constant = 78.31 #pm 3.24 ");
   text = ptstats->AddText("Mean     = -0.002788 #pm 0.003325 ");
   text = ptstats->AddText("Sigma    = 0.1081 #pm 0.0030 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow02->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow02->GetListOfFunctions());
   ResoRow02->GetXaxis()->SetTitle("residual / mm");
   ResoRow02->GetYaxis()->SetTitle("counts");
   ResoRow02->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.3875,1.25,120.4875);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow03 = new TH1F("ResoRow03","",100,-1,1);
   ResoRow03->SetBinContent(0,3);
   ResoRow03->SetBinContent(6,1);
   ResoRow03->SetBinContent(15,1);
   ResoRow03->SetBinContent(25,1);
   ResoRow03->SetBinContent(26,3);
   ResoRow03->SetBinContent(28,1);
   ResoRow03->SetBinContent(29,1);
   ResoRow03->SetBinContent(31,1);
   ResoRow03->SetBinContent(32,2);
   ResoRow03->SetBinContent(33,3);
   ResoRow03->SetBinContent(34,4);
   ResoRow03->SetBinContent(35,6);
   ResoRow03->SetBinContent(36,8);
   ResoRow03->SetBinContent(37,5);
   ResoRow03->SetBinContent(38,7);
   ResoRow03->SetBinContent(39,13);
   ResoRow03->SetBinContent(40,13);
   ResoRow03->SetBinContent(41,24);
   ResoRow03->SetBinContent(42,24);
   ResoRow03->SetBinContent(43,19);
   ResoRow03->SetBinContent(44,26);
   ResoRow03->SetBinContent(45,43);
   ResoRow03->SetBinContent(46,44);
   ResoRow03->SetBinContent(47,61);
   ResoRow03->SetBinContent(48,62);
   ResoRow03->SetBinContent(49,77);
   ResoRow03->SetBinContent(50,102);
   ResoRow03->SetBinContent(51,90);
   ResoRow03->SetBinContent(52,91);
   ResoRow03->SetBinContent(53,65);
   ResoRow03->SetBinContent(54,74);
   ResoRow03->SetBinContent(55,55);
   ResoRow03->SetBinContent(56,48);
   ResoRow03->SetBinContent(57,37);
   ResoRow03->SetBinContent(58,25);
   ResoRow03->SetBinContent(59,23);
   ResoRow03->SetBinContent(60,11);
   ResoRow03->SetBinContent(61,9);
   ResoRow03->SetBinContent(62,10);
   ResoRow03->SetBinContent(63,6);
   ResoRow03->SetBinContent(64,7);
   ResoRow03->SetBinContent(65,4);
   ResoRow03->SetBinContent(66,3);
   ResoRow03->SetBinContent(67,2);
   ResoRow03->SetBinContent(68,1);
   ResoRow03->SetBinContent(69,3);
   ResoRow03->SetBinContent(70,2);
   ResoRow03->SetBinContent(71,1);
   ResoRow03->SetBinContent(72,2);
   ResoRow03->SetBinContent(74,2);
   ResoRow03->SetBinContent(77,1);
   ResoRow03->SetBinContent(84,1);
   ResoRow03->SetBinContent(101,8);
   ResoRow03->SetEntries(1136);
   
   TF1 *ResoRowFit03 = new TF1("ResoRowFit03","gaus",-1,1);
   ResoRowFit03->SetFillColor(19);
   ResoRowFit03->SetFillStyle(0);
   ResoRowFit03->SetLineWidth(3);
   ResoRowFit03->SetChisquare(76.76529);
   ResoRowFit03->SetNDF(48);
   ResoRowFit03->SetParameter(0,76.28888);
   ResoRowFit03->SetParError(0,3.433745);
   ResoRowFit03->SetParLimits(0,0,0);
   ResoRowFit03->SetParameter(1,0.002050473);
   ResoRowFit03->SetParError(1,0.003484838);
   ResoRowFit03->SetParLimits(1,0,0);
   ResoRowFit03->SetParameter(2,0.1096422);
   ResoRowFit03->SetParError(2,0.003593471);
   ResoRowFit03->SetParLimits(2,0,1.337654);
   ResoRow03->GetListOfFunctions()->Add(ResoRowFit03);
   
   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("ResoRow03");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1136   ");
   text = ptstats->AddText("Mean  = -0.002037");
   text = ptstats->AddText("RMS   = 0.1339");
   text = ptstats->AddText("#chi^{2} / ndf = 76.77 / 48");
   text = ptstats->AddText("Constant = 76.29 #pm 3.43 ");
   text = ptstats->AddText("Mean     = 0.00205 #pm 0.00348 ");
   text = ptstats->AddText("Sigma    = 0.1096 #pm 0.0036 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow03->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow03->GetListOfFunctions());
   ResoRow03->GetXaxis()->SetTitle("residual / mm");
   ResoRow03->GetYaxis()->SetTitle("counts");
   ResoRow03->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.2875,1.25,101.5875);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow04 = new TH1F("ResoRow04","",100,-1,1);
   ResoRow04->SetBinContent(0,3);
   ResoRow04->SetBinContent(25,1);
   ResoRow04->SetBinContent(26,1);
   ResoRow04->SetBinContent(27,4);
   ResoRow04->SetBinContent(28,2);
   ResoRow04->SetBinContent(30,3);
   ResoRow04->SetBinContent(31,3);
   ResoRow04->SetBinContent(32,2);
   ResoRow04->SetBinContent(34,2);
   ResoRow04->SetBinContent(35,3);
   ResoRow04->SetBinContent(36,3);
   ResoRow04->SetBinContent(37,5);
   ResoRow04->SetBinContent(38,9);
   ResoRow04->SetBinContent(39,11);
   ResoRow04->SetBinContent(40,17);
   ResoRow04->SetBinContent(41,13);
   ResoRow04->SetBinContent(42,22);
   ResoRow04->SetBinContent(43,28);
   ResoRow04->SetBinContent(44,38);
   ResoRow04->SetBinContent(45,48);
   ResoRow04->SetBinContent(46,46);
   ResoRow04->SetBinContent(47,63);
   ResoRow04->SetBinContent(48,59);
   ResoRow04->SetBinContent(49,84);
   ResoRow04->SetBinContent(50,85);
   ResoRow04->SetBinContent(51,74);
   ResoRow04->SetBinContent(52,81);
   ResoRow04->SetBinContent(53,86);
   ResoRow04->SetBinContent(54,60);
   ResoRow04->SetBinContent(55,65);
   ResoRow04->SetBinContent(56,37);
   ResoRow04->SetBinContent(57,42);
   ResoRow04->SetBinContent(58,32);
   ResoRow04->SetBinContent(59,26);
   ResoRow04->SetBinContent(60,9);
   ResoRow04->SetBinContent(61,14);
   ResoRow04->SetBinContent(62,11);
   ResoRow04->SetBinContent(63,13);
   ResoRow04->SetBinContent(64,5);
   ResoRow04->SetBinContent(65,3);
   ResoRow04->SetBinContent(66,3);
   ResoRow04->SetBinContent(67,6);
   ResoRow04->SetBinContent(68,3);
   ResoRow04->SetBinContent(69,2);
   ResoRow04->SetBinContent(71,1);
   ResoRow04->SetBinContent(73,1);
   ResoRow04->SetBinContent(74,2);
   ResoRow04->SetBinContent(75,1);
   ResoRow04->SetBinContent(76,1);
   ResoRow04->SetBinContent(101,3);
   ResoRow04->SetEntries(1136);
   
   TF1 *ResoRowFit04 = new TF1("ResoRowFit04","gaus",-1,1);
   ResoRowFit04->SetFillColor(19);
   ResoRowFit04->SetFillStyle(0);
   ResoRowFit04->SetLineWidth(3);
   ResoRowFit04->SetChisquare(61.96725);
   ResoRowFit04->SetNDF(45);
   ResoRowFit04->SetParameter(0,75.25189);
   ResoRowFit04->SetParError(0,3.116394);
   ResoRowFit04->SetParLimits(0,0,0);
   ResoRowFit04->SetParameter(1,0.0007970094);
   ResoRowFit04->SetParError(1,0.003487731);
   ResoRowFit04->SetParLimits(1,0,0);
   ResoRowFit04->SetParameter(2,0.1133427);
   ResoRowFit04->SetParError(2,0.003189618);
   ResoRowFit04->SetParLimits(2,0,1.313713);
   ResoRow04->GetListOfFunctions()->Add(ResoRowFit04);
   
   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("ResoRow04");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1136   ");
   text = ptstats->AddText("Mean  = 0.001408");
   text = ptstats->AddText("RMS   =  0.131");
   text = ptstats->AddText("#chi^{2} / ndf = 61.97 / 45");
   text = ptstats->AddText("Constant = 75.25 #pm 3.12 ");
   text = ptstats->AddText("Mean     = 0.000797 #pm 0.003488 ");
   text = ptstats->AddText("Sigma    = 0.1133 #pm 0.0032 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow04->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow04->GetListOfFunctions());
   ResoRow04->GetXaxis()->SetTitle("residual / mm");
   ResoRow04->GetYaxis()->SetTitle("counts");
   ResoRow04->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,-12.3375,1.25,111.0375);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow05 = new TH1F("ResoRow05","",100,-1,1);
   ResoRow05->SetBinContent(0,2);
   ResoRow05->SetBinContent(17,1);
   ResoRow05->SetBinContent(23,1);
   ResoRow05->SetBinContent(25,2);
   ResoRow05->SetBinContent(26,1);
   ResoRow05->SetBinContent(28,1);
   ResoRow05->SetBinContent(31,3);
   ResoRow05->SetBinContent(32,2);
   ResoRow05->SetBinContent(33,4);
   ResoRow05->SetBinContent(34,4);
   ResoRow05->SetBinContent(35,3);
   ResoRow05->SetBinContent(36,4);
   ResoRow05->SetBinContent(37,4);
   ResoRow05->SetBinContent(38,11);
   ResoRow05->SetBinContent(39,9);
   ResoRow05->SetBinContent(40,12);
   ResoRow05->SetBinContent(41,21);
   ResoRow05->SetBinContent(42,22);
   ResoRow05->SetBinContent(43,27);
   ResoRow05->SetBinContent(44,40);
   ResoRow05->SetBinContent(45,38);
   ResoRow05->SetBinContent(46,54);
   ResoRow05->SetBinContent(47,46);
   ResoRow05->SetBinContent(48,69);
   ResoRow05->SetBinContent(49,80);
   ResoRow05->SetBinContent(50,94);
   ResoRow05->SetBinContent(51,91);
   ResoRow05->SetBinContent(52,72);
   ResoRow05->SetBinContent(53,75);
   ResoRow05->SetBinContent(54,65);
   ResoRow05->SetBinContent(55,53);
   ResoRow05->SetBinContent(56,50);
   ResoRow05->SetBinContent(57,36);
   ResoRow05->SetBinContent(58,30);
   ResoRow05->SetBinContent(59,32);
   ResoRow05->SetBinContent(60,23);
   ResoRow05->SetBinContent(61,11);
   ResoRow05->SetBinContent(62,11);
   ResoRow05->SetBinContent(63,13);
   ResoRow05->SetBinContent(64,1);
   ResoRow05->SetBinContent(65,2);
   ResoRow05->SetBinContent(66,5);
   ResoRow05->SetBinContent(69,1);
   ResoRow05->SetBinContent(71,1);
   ResoRow05->SetBinContent(72,2);
   ResoRow05->SetBinContent(74,2);
   ResoRow05->SetBinContent(83,1);
   ResoRow05->SetBinContent(101,4);
   ResoRow05->SetEntries(1136);
   
   TF1 *ResoRowFit05 = new TF1("ResoRowFit05","gaus",-1,1);
   ResoRowFit05->SetFillColor(19);
   ResoRowFit05->SetFillStyle(0);
   ResoRowFit05->SetLineWidth(3);
   ResoRowFit05->SetChisquare(60.80413);
   ResoRowFit05->SetNDF(43);
   ResoRowFit05->SetParameter(0,77.57587);
   ResoRowFit05->SetParError(0,3.053304);
   ResoRowFit05->SetParLimits(0,0,0);
   ResoRowFit05->SetParameter(1,0.001255423);
   ResoRowFit05->SetParError(1,0.003497792);
   ResoRowFit05->SetParLimits(1,0,0);
   ResoRowFit05->SetParameter(2,0.1101456);
   ResoRowFit05->SetParError(2,0.002764915);
   ResoRowFit05->SetParLimits(2,0,1.290736);
   ResoRow05->GetListOfFunctions()->Add(ResoRowFit05);
   
   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("ResoRow05");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1136   ");
   text = ptstats->AddText("Mean  = 4.8e-05");
   text = ptstats->AddText("RMS   = 0.1288");
   text = ptstats->AddText("#chi^{2} / ndf =  60.8 / 43");
   text = ptstats->AddText("Constant = 77.58 #pm 3.05 ");
   text = ptstats->AddText("Mean     = 0.001255 #pm 0.003498 ");
   text = ptstats->AddText("Sigma    = 0.1101 #pm 0.0028 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow05->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow05->GetListOfFunctions());
   ResoRow05->GetXaxis()->SetTitle("residual / mm");
   ResoRow05->GetYaxis()->SetTitle("counts");
   ResoRow05->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.68125,1.25,105.1313);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow06 = new TH1F("ResoRow06","",100,-1,1);
   ResoRow06->SetBinContent(0,3);
   ResoRow06->SetBinContent(17,2);
   ResoRow06->SetBinContent(24,1);
   ResoRow06->SetBinContent(29,1);
   ResoRow06->SetBinContent(30,1);
   ResoRow06->SetBinContent(31,1);
   ResoRow06->SetBinContent(32,1);
   ResoRow06->SetBinContent(33,2);
   ResoRow06->SetBinContent(34,5);
   ResoRow06->SetBinContent(35,5);
   ResoRow06->SetBinContent(36,5);
   ResoRow06->SetBinContent(37,8);
   ResoRow06->SetBinContent(38,9);
   ResoRow06->SetBinContent(39,13);
   ResoRow06->SetBinContent(40,11);
   ResoRow06->SetBinContent(41,23);
   ResoRow06->SetBinContent(42,21);
   ResoRow06->SetBinContent(43,32);
   ResoRow06->SetBinContent(44,31);
   ResoRow06->SetBinContent(45,33);
   ResoRow06->SetBinContent(46,61);
   ResoRow06->SetBinContent(47,73);
   ResoRow06->SetBinContent(48,73);
   ResoRow06->SetBinContent(49,77);
   ResoRow06->SetBinContent(50,77);
   ResoRow06->SetBinContent(51,68);
   ResoRow06->SetBinContent(52,89);
   ResoRow06->SetBinContent(53,75);
   ResoRow06->SetBinContent(54,56);
   ResoRow06->SetBinContent(55,62);
   ResoRow06->SetBinContent(56,52);
   ResoRow06->SetBinContent(57,33);
   ResoRow06->SetBinContent(58,31);
   ResoRow06->SetBinContent(59,26);
   ResoRow06->SetBinContent(60,20);
   ResoRow06->SetBinContent(61,14);
   ResoRow06->SetBinContent(62,6);
   ResoRow06->SetBinContent(63,6);
   ResoRow06->SetBinContent(64,2);
   ResoRow06->SetBinContent(65,3);
   ResoRow06->SetBinContent(66,1);
   ResoRow06->SetBinContent(67,5);
   ResoRow06->SetBinContent(68,3);
   ResoRow06->SetBinContent(69,2);
   ResoRow06->SetBinContent(70,3);
   ResoRow06->SetBinContent(71,2);
   ResoRow06->SetBinContent(72,1);
   ResoRow06->SetBinContent(75,2);
   ResoRow06->SetBinContent(76,1);
   ResoRow06->SetBinContent(78,1);
   ResoRow06->SetBinContent(84,1);
   ResoRow06->SetBinContent(101,2);
   ResoRow06->SetEntries(1136);
   
   TF1 *ResoRowFit06 = new TF1("ResoRowFit06","gaus",-1,1);
   ResoRowFit06->SetFillColor(19);
   ResoRowFit06->SetFillStyle(0);
   ResoRowFit06->SetLineWidth(3);
   ResoRowFit06->SetChisquare(58.21065);
   ResoRowFit06->SetNDF(47);
   ResoRowFit06->SetParameter(0,75.82931);
   ResoRowFit06->SetParError(0,3.053146);
   ResoRowFit06->SetParLimits(0,0,0);
   ResoRowFit06->SetParameter(1,-0.001830068);
   ResoRowFit06->SetParError(1,0.003559156);
   ResoRowFit06->SetParLimits(1,0,0);
   ResoRowFit06->SetParameter(2,0.1128898);
   ResoRowFit06->SetParError(2,0.002966442);
   ResoRowFit06->SetParLimits(2,0,1.326087);
   ResoRow06->GetListOfFunctions()->Add(ResoRowFit06);
   
   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("ResoRow06");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1136   ");
   text = ptstats->AddText("Mean  = -0.0007414");
   text = ptstats->AddText("RMS   = 0.1323");
   text = ptstats->AddText("#chi^{2} / ndf = 58.21 / 47");
   text = ptstats->AddText("Constant = 75.83 #pm 3.05 ");
   text = ptstats->AddText("Mean     = -0.00183 #pm 0.00356 ");
   text = ptstats->AddText("Sigma    = 0.1129 #pm 0.0030 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow06->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow06->GetListOfFunctions());
   ResoRow06->GetXaxis()->SetTitle("residual / mm");
   ResoRow06->GetYaxis()->SetTitle("counts");
   ResoRow06->Draw("");
   c2_6->Modified();
   c2->cd();
   c2->Modified();
   c2->cd();
   c2->SetSelected(c2);
}
