{
//=========Macro generated from canvas: c2/
//=========  (Fri Jun 11 09:16:24 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,-11.15625,1.25,100.4063);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow13 = new TH1F("ResoRow13","",100,-1,1);
   ResoRow13->SetBinContent(0,3);
   ResoRow13->SetBinContent(7,1);
   ResoRow13->SetBinContent(23,1);
   ResoRow13->SetBinContent(24,1);
   ResoRow13->SetBinContent(31,1);
   ResoRow13->SetBinContent(32,4);
   ResoRow13->SetBinContent(33,4);
   ResoRow13->SetBinContent(34,1);
   ResoRow13->SetBinContent(35,1);
   ResoRow13->SetBinContent(36,6);
   ResoRow13->SetBinContent(37,7);
   ResoRow13->SetBinContent(38,8);
   ResoRow13->SetBinContent(39,16);
   ResoRow13->SetBinContent(40,10);
   ResoRow13->SetBinContent(41,9);
   ResoRow13->SetBinContent(42,16);
   ResoRow13->SetBinContent(43,29);
   ResoRow13->SetBinContent(44,36);
   ResoRow13->SetBinContent(45,27);
   ResoRow13->SetBinContent(46,57);
   ResoRow13->SetBinContent(47,69);
   ResoRow13->SetBinContent(48,82);
   ResoRow13->SetBinContent(49,74);
   ResoRow13->SetBinContent(50,84);
   ResoRow13->SetBinContent(51,79);
   ResoRow13->SetBinContent(52,75);
   ResoRow13->SetBinContent(53,85);
   ResoRow13->SetBinContent(54,56);
   ResoRow13->SetBinContent(55,43);
   ResoRow13->SetBinContent(56,41);
   ResoRow13->SetBinContent(57,47);
   ResoRow13->SetBinContent(58,25);
   ResoRow13->SetBinContent(59,23);
   ResoRow13->SetBinContent(60,14);
   ResoRow13->SetBinContent(61,16);
   ResoRow13->SetBinContent(62,14);
   ResoRow13->SetBinContent(63,6);
   ResoRow13->SetBinContent(64,5);
   ResoRow13->SetBinContent(65,4);
   ResoRow13->SetBinContent(66,2);
   ResoRow13->SetBinContent(67,2);
   ResoRow13->SetBinContent(69,4);
   ResoRow13->SetBinContent(70,1);
   ResoRow13->SetBinContent(71,1);
   ResoRow13->SetBinContent(73,1);
   ResoRow13->SetBinContent(75,1);
   ResoRow13->SetBinContent(78,1);
   ResoRow13->SetBinContent(79,2);
   ResoRow13->SetBinContent(82,1);
   ResoRow13->SetBinContent(87,1);
   ResoRow13->SetBinContent(90,1);
   ResoRow13->SetBinContent(93,1);
   ResoRow13->SetBinContent(95,1);
   ResoRow13->SetBinContent(101,2);
   ResoRow13->SetEntries(1102);
   
   TF1 *ResoRowFit13 = new TF1("ResoRowFit13","gaus",-1,1);
   ResoRowFit13->SetFillColor(19);
   ResoRowFit13->SetFillStyle(0);
   ResoRowFit13->SetLineWidth(3);
   ResoRowFit13->SetChisquare(74.70963);
   ResoRowFit13->SetNDF(49);
   ResoRowFit13->SetParameter(0,74.45475);
   ResoRowFit13->SetParError(0,3.183763);
   ResoRowFit13->SetParLimits(0,0,0);
   ResoRowFit13->SetParameter(1,0.005236076);
   ResoRowFit13->SetParError(1,0.003445957);
   ResoRowFit13->SetParLimits(1,0,0);
   ResoRowFit13->SetParameter(2,0.1096265);
   ResoRowFit13->SetParError(2,0.003218128);
   ResoRowFit13->SetParLimits(2,0,1.388765);
   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 = 1102   ");
   text = ptstats->AddText("Mean  = 0.005155");
   text = ptstats->AddText("RMS   = 0.1391");
   text = ptstats->AddText("#chi^{2} / ndf = 74.71 / 49");
   text = ptstats->AddText("Constant = 74.45 #pm 3.18 ");
   text = ptstats->AddText("Mean     = 0.005236 #pm 0.003446 ");
   text = ptstats->AddText("Sigma    = 0.1096 #pm 0.0032 ");
   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,-11.8125,1.25,106.3125);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow15 = new TH1F("ResoRow15","",100,-1,1);
   ResoRow15->SetBinContent(0,2);
   ResoRow15->SetBinContent(11,1);
   ResoRow15->SetBinContent(14,1);
   ResoRow15->SetBinContent(19,2);
   ResoRow15->SetBinContent(24,1);
   ResoRow15->SetBinContent(28,1);
   ResoRow15->SetBinContent(30,4);
   ResoRow15->SetBinContent(31,1);
   ResoRow15->SetBinContent(32,1);
   ResoRow15->SetBinContent(33,3);
   ResoRow15->SetBinContent(35,4);
   ResoRow15->SetBinContent(36,10);
   ResoRow15->SetBinContent(37,7);
   ResoRow15->SetBinContent(38,4);
   ResoRow15->SetBinContent(39,15);
   ResoRow15->SetBinContent(40,17);
   ResoRow15->SetBinContent(41,18);
   ResoRow15->SetBinContent(42,18);
   ResoRow15->SetBinContent(43,25);
   ResoRow15->SetBinContent(44,27);
   ResoRow15->SetBinContent(45,39);
   ResoRow15->SetBinContent(46,70);
   ResoRow15->SetBinContent(47,52);
   ResoRow15->SetBinContent(48,78);
   ResoRow15->SetBinContent(49,83);
   ResoRow15->SetBinContent(50,87);
   ResoRow15->SetBinContent(51,90);
   ResoRow15->SetBinContent(52,75);
   ResoRow15->SetBinContent(53,61);
   ResoRow15->SetBinContent(54,54);
   ResoRow15->SetBinContent(55,49);
   ResoRow15->SetBinContent(56,37);
   ResoRow15->SetBinContent(57,29);
   ResoRow15->SetBinContent(58,28);
   ResoRow15->SetBinContent(59,21);
   ResoRow15->SetBinContent(60,13);
   ResoRow15->SetBinContent(61,17);
   ResoRow15->SetBinContent(62,5);
   ResoRow15->SetBinContent(63,7);
   ResoRow15->SetBinContent(64,5);
   ResoRow15->SetBinContent(65,5);
   ResoRow15->SetBinContent(66,1);
   ResoRow15->SetBinContent(67,4);
   ResoRow15->SetBinContent(68,5);
   ResoRow15->SetBinContent(70,2);
   ResoRow15->SetBinContent(72,1);
   ResoRow15->SetBinContent(73,2);
   ResoRow15->SetBinContent(74,3);
   ResoRow15->SetBinContent(75,2);
   ResoRow15->SetBinContent(76,1);
   ResoRow15->SetBinContent(81,1);
   ResoRow15->SetBinContent(82,1);
   ResoRow15->SetBinContent(83,1);
   ResoRow15->SetBinContent(86,2);
   ResoRow15->SetBinContent(94,1);
   ResoRow15->SetBinContent(101,8);
   ResoRow15->SetEntries(1102);
   
   TF1 *ResoRowFit15 = new TF1("ResoRowFit15","gaus",-1,1);
   ResoRowFit15->SetFillColor(19);
   ResoRowFit15->SetFillStyle(0);
   ResoRowFit15->SetLineWidth(3);
   ResoRowFit15->SetChisquare(82.3037);
   ResoRowFit15->SetNDF(51);
   ResoRowFit15->SetParameter(0,73.2827);
   ResoRowFit15->SetParError(0,3.196143);
   ResoRowFit15->SetParLimits(0,0,0);
   ResoRowFit15->SetParameter(1,-0.003960748);
   ResoRowFit15->SetParError(1,0.003489731);
   ResoRowFit15->SetParLimits(1,0,0);
   ResoRowFit15->SetParameter(2,0.1100705);
   ResoRowFit15->SetParError(2,0.003360072);
   ResoRowFit15->SetParLimits(2,0,1.458135);
   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 = 1102   ");
   text = ptstats->AddText("Mean  = -0.002146");
   text = ptstats->AddText("RMS   = 0.1458");
   text = ptstats->AddText("#chi^{2} / ndf =  82.3 / 51");
   text = ptstats->AddText("Constant = 73.28 #pm 3.20 ");
   text = ptstats->AddText("Mean     = -0.003961 #pm 0.003490 ");
   text = ptstats->AddText("Sigma    = 0.1101 #pm 0.0034 ");
   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.125,1.25,118.125);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow16 = new TH1F("ResoRow16","",100,-1,1);
   ResoRow16->SetBinContent(0,2);
   ResoRow16->SetBinContent(10,2);
   ResoRow16->SetBinContent(12,1);
   ResoRow16->SetBinContent(20,1);
   ResoRow16->SetBinContent(25,1);
   ResoRow16->SetBinContent(28,2);
   ResoRow16->SetBinContent(32,2);
   ResoRow16->SetBinContent(34,3);
   ResoRow16->SetBinContent(35,2);
   ResoRow16->SetBinContent(36,9);
   ResoRow16->SetBinContent(37,3);
   ResoRow16->SetBinContent(38,8);
   ResoRow16->SetBinContent(39,9);
   ResoRow16->SetBinContent(40,11);
   ResoRow16->SetBinContent(41,25);
   ResoRow16->SetBinContent(42,16);
   ResoRow16->SetBinContent(43,25);
   ResoRow16->SetBinContent(44,26);
   ResoRow16->SetBinContent(45,37);
   ResoRow16->SetBinContent(46,46);
   ResoRow16->SetBinContent(47,64);
   ResoRow16->SetBinContent(48,74);
   ResoRow16->SetBinContent(49,91);
   ResoRow16->SetBinContent(50,100);
   ResoRow16->SetBinContent(51,81);
   ResoRow16->SetBinContent(52,79);
   ResoRow16->SetBinContent(53,69);
   ResoRow16->SetBinContent(54,66);
   ResoRow16->SetBinContent(55,57);
   ResoRow16->SetBinContent(56,33);
   ResoRow16->SetBinContent(57,33);
   ResoRow16->SetBinContent(58,23);
   ResoRow16->SetBinContent(59,18);
   ResoRow16->SetBinContent(60,25);
   ResoRow16->SetBinContent(61,13);
   ResoRow16->SetBinContent(62,14);
   ResoRow16->SetBinContent(63,6);
   ResoRow16->SetBinContent(64,1);
   ResoRow16->SetBinContent(65,5);
   ResoRow16->SetBinContent(67,3);
   ResoRow16->SetBinContent(68,3);
   ResoRow16->SetBinContent(69,2);
   ResoRow16->SetBinContent(70,2);
   ResoRow16->SetBinContent(74,2);
   ResoRow16->SetBinContent(75,1);
   ResoRow16->SetBinContent(79,1);
   ResoRow16->SetBinContent(82,1);
   ResoRow16->SetBinContent(88,1);
   ResoRow16->SetBinContent(91,1);
   ResoRow16->SetBinContent(101,2);
   ResoRow16->SetEntries(1102);
   
   TF1 *ResoRowFit16 = new TF1("ResoRowFit16","gaus",-1,1);
   ResoRowFit16->SetFillColor(19);
   ResoRowFit16->SetFillStyle(0);
   ResoRowFit16->SetLineWidth(3);
   ResoRowFit16->SetChisquare(75.7955);
   ResoRowFit16->SetNDF(45);
   ResoRowFit16->SetParameter(0,78.07626);
   ResoRowFit16->SetParError(0,3.316188);
   ResoRowFit16->SetParLimits(0,0,0);
   ResoRowFit16->SetParameter(1,0.00036118);
   ResoRowFit16->SetParError(1,0.00330767);
   ResoRowFit16->SetParLimits(1,0,0);
   ResoRowFit16->SetParameter(2,0.104611);
   ResoRowFit16->SetParError(2,0.003044077);
   ResoRowFit16->SetParLimits(2,0,1.348239);
   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 = 1102   ");
   text = ptstats->AddText("Mean  = 0.0009331");
   text = ptstats->AddText("RMS   = 0.1345");
   text = ptstats->AddText("#chi^{2} / ndf =  75.8 / 45");
   text = ptstats->AddText("Constant = 78.08 #pm 3.32 ");
   text = ptstats->AddText("Mean     = 0.0003612 #pm 0.0033077 ");
   text = ptstats->AddText("Sigma    = 0.1046 #pm 0.0030 ");
   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,-11.8125,1.25,106.3125);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow17 = new TH1F("ResoRow17","",100,-1,1);
   ResoRow17->SetBinContent(0,4);
   ResoRow17->SetBinContent(9,1);
   ResoRow17->SetBinContent(13,1);
   ResoRow17->SetBinContent(18,1);
   ResoRow17->SetBinContent(23,1);
   ResoRow17->SetBinContent(25,1);
   ResoRow17->SetBinContent(29,1);
   ResoRow17->SetBinContent(30,1);
   ResoRow17->SetBinContent(31,1);
   ResoRow17->SetBinContent(32,1);
   ResoRow17->SetBinContent(33,1);
   ResoRow17->SetBinContent(35,3);
   ResoRow17->SetBinContent(36,3);
   ResoRow17->SetBinContent(37,8);
   ResoRow17->SetBinContent(38,11);
   ResoRow17->SetBinContent(39,13);
   ResoRow17->SetBinContent(40,18);
   ResoRow17->SetBinContent(41,23);
   ResoRow17->SetBinContent(42,22);
   ResoRow17->SetBinContent(43,32);
   ResoRow17->SetBinContent(44,35);
   ResoRow17->SetBinContent(45,37);
   ResoRow17->SetBinContent(46,57);
   ResoRow17->SetBinContent(47,64);
   ResoRow17->SetBinContent(48,62);
   ResoRow17->SetBinContent(49,87);
   ResoRow17->SetBinContent(50,90);
   ResoRow17->SetBinContent(51,76);
   ResoRow17->SetBinContent(52,80);
   ResoRow17->SetBinContent(53,58);
   ResoRow17->SetBinContent(54,53);
   ResoRow17->SetBinContent(55,52);
   ResoRow17->SetBinContent(56,54);
   ResoRow17->SetBinContent(57,26);
   ResoRow17->SetBinContent(58,24);
   ResoRow17->SetBinContent(59,12);
   ResoRow17->SetBinContent(60,15);
   ResoRow17->SetBinContent(61,16);
   ResoRow17->SetBinContent(62,11);
   ResoRow17->SetBinContent(63,10);
   ResoRow17->SetBinContent(64,6);
   ResoRow17->SetBinContent(65,6);
   ResoRow17->SetBinContent(66,2);
   ResoRow17->SetBinContent(67,3);
   ResoRow17->SetBinContent(68,1);
   ResoRow17->SetBinContent(69,4);
   ResoRow17->SetBinContent(70,2);
   ResoRow17->SetBinContent(75,1);
   ResoRow17->SetBinContent(79,1);
   ResoRow17->SetBinContent(82,1);
   ResoRow17->SetBinContent(83,2);
   ResoRow17->SetBinContent(85,1);
   ResoRow17->SetBinContent(94,1);
   ResoRow17->SetBinContent(101,5);
   ResoRow17->SetEntries(1102);
   
   TF1 *ResoRowFit17 = new TF1("ResoRowFit17","gaus",-1,1);
   ResoRowFit17->SetFillColor(19);
   ResoRowFit17->SetFillStyle(0);
   ResoRowFit17->SetLineWidth(3);
   ResoRowFit17->SetChisquare(59.93286);
   ResoRowFit17->SetNDF(49);
   ResoRowFit17->SetParameter(0,70.79643);
   ResoRowFit17->SetParError(0,2.996172);
   ResoRowFit17->SetParLimits(0,0,0);
   ResoRowFit17->SetParameter(1,-0.008837808);
   ResoRowFit17->SetParError(1,0.003655949);
   ResoRowFit17->SetParLimits(1,0,0);
   ResoRowFit17->SetParameter(2,0.1166451);
   ResoRowFit17->SetParError(2,0.003394237);
   ResoRowFit17->SetParLimits(2,0,1.397241);
   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 = 1102   ");
   text = ptstats->AddText("Mean  = -0.003582");
   text = ptstats->AddText("RMS   = 0.1393");
   text = ptstats->AddText("#chi^{2} / ndf = 59.93 / 49");
   text = ptstats->AddText("Constant =  70.8 #pm 3.0 ");
   text = ptstats->AddText("Mean     = -0.008838 #pm 0.003656 ");
   text = ptstats->AddText("Sigma    = 0.1166 #pm 0.0034 ");
   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,-12.20625,1.25,109.8563);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow18 = new TH1F("ResoRow18","",100,-1,1);
   ResoRow18->SetBinContent(0,1);
   ResoRow18->SetBinContent(4,1);
   ResoRow18->SetBinContent(10,1);
   ResoRow18->SetBinContent(12,1);
   ResoRow18->SetBinContent(13,1);
   ResoRow18->SetBinContent(16,1);
   ResoRow18->SetBinContent(22,1);
   ResoRow18->SetBinContent(23,1);
   ResoRow18->SetBinContent(26,1);
   ResoRow18->SetBinContent(29,1);
   ResoRow18->SetBinContent(30,2);
   ResoRow18->SetBinContent(31,1);
   ResoRow18->SetBinContent(32,1);
   ResoRow18->SetBinContent(33,1);
   ResoRow18->SetBinContent(34,1);
   ResoRow18->SetBinContent(35,4);
   ResoRow18->SetBinContent(36,5);
   ResoRow18->SetBinContent(37,6);
   ResoRow18->SetBinContent(38,4);
   ResoRow18->SetBinContent(39,11);
   ResoRow18->SetBinContent(40,16);
   ResoRow18->SetBinContent(41,16);
   ResoRow18->SetBinContent(42,15);
   ResoRow18->SetBinContent(43,27);
   ResoRow18->SetBinContent(44,22);
   ResoRow18->SetBinContent(45,45);
   ResoRow18->SetBinContent(46,47);
   ResoRow18->SetBinContent(47,69);
   ResoRow18->SetBinContent(48,79);
   ResoRow18->SetBinContent(49,78);
   ResoRow18->SetBinContent(50,91);
   ResoRow18->SetBinContent(51,93);
   ResoRow18->SetBinContent(52,63);
   ResoRow18->SetBinContent(53,83);
   ResoRow18->SetBinContent(54,63);
   ResoRow18->SetBinContent(55,54);
   ResoRow18->SetBinContent(56,44);
   ResoRow18->SetBinContent(57,39);
   ResoRow18->SetBinContent(58,26);
   ResoRow18->SetBinContent(59,20);
   ResoRow18->SetBinContent(60,14);
   ResoRow18->SetBinContent(61,14);
   ResoRow18->SetBinContent(62,9);
   ResoRow18->SetBinContent(63,4);
   ResoRow18->SetBinContent(64,5);
   ResoRow18->SetBinContent(65,6);
   ResoRow18->SetBinContent(66,4);
   ResoRow18->SetBinContent(67,1);
   ResoRow18->SetBinContent(68,2);
   ResoRow18->SetBinContent(69,1);
   ResoRow18->SetBinContent(72,1);
   ResoRow18->SetBinContent(73,1);
   ResoRow18->SetBinContent(77,1);
   ResoRow18->SetBinContent(79,1);
   ResoRow18->SetBinContent(101,2);
   ResoRow18->SetEntries(1102);
   
   TF1 *ResoRowFit18 = new TF1("ResoRowFit18","gaus",-1,1);
   ResoRowFit18->SetFillColor(19);
   ResoRowFit18->SetFillStyle(0);
   ResoRowFit18->SetLineWidth(3);
   ResoRowFit18->SetChisquare(58.7287);
   ResoRowFit18->SetNDF(50);
   ResoRowFit18->SetParameter(0,77.57655);
   ResoRowFit18->SetParError(0,3.298844);
   ResoRowFit18->SetParLimits(0,0,0);
   ResoRowFit18->SetParameter(1,0.003462457);
   ResoRowFit18->SetParError(1,0.003326393);
   ResoRowFit18->SetParLimits(1,0,0);
   ResoRowFit18->SetParameter(2,0.1070135);
   ResoRowFit18->SetParError(2,0.003121118);
   ResoRowFit18->SetParLimits(2,0,1.325957);
   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 = 1102   ");
   text = ptstats->AddText("Mean  = -0.00331");
   text = ptstats->AddText("RMS   = 0.1323");
   text = ptstats->AddText("#chi^{2} / ndf = 58.73 / 50");
   text = ptstats->AddText("Constant = 77.58 #pm 3.30 ");
   text = ptstats->AddText("Mean     = 0.003462 #pm 0.003326 ");
   text = ptstats->AddText("Sigma    = 0.107 #pm 0.003 ");
   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.99375,1.25,116.9438);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow19 = new TH1F("ResoRow19","",100,-1,1);
   ResoRow19->SetBinContent(0,3);
   ResoRow19->SetBinContent(7,1);
   ResoRow19->SetBinContent(14,1);
   ResoRow19->SetBinContent(15,1);
   ResoRow19->SetBinContent(19,1);
   ResoRow19->SetBinContent(24,1);
   ResoRow19->SetBinContent(27,1);
   ResoRow19->SetBinContent(29,1);
   ResoRow19->SetBinContent(30,1);
   ResoRow19->SetBinContent(31,6);
   ResoRow19->SetBinContent(32,3);
   ResoRow19->SetBinContent(33,2);
   ResoRow19->SetBinContent(34,4);
   ResoRow19->SetBinContent(35,5);
   ResoRow19->SetBinContent(36,1);
   ResoRow19->SetBinContent(37,9);
   ResoRow19->SetBinContent(38,5);
   ResoRow19->SetBinContent(39,12);
   ResoRow19->SetBinContent(40,16);
   ResoRow19->SetBinContent(41,13);
   ResoRow19->SetBinContent(42,19);
   ResoRow19->SetBinContent(43,27);
   ResoRow19->SetBinContent(44,30);
   ResoRow19->SetBinContent(45,41);
   ResoRow19->SetBinContent(46,51);
   ResoRow19->SetBinContent(47,70);
   ResoRow19->SetBinContent(48,79);
   ResoRow19->SetBinContent(49,72);
   ResoRow19->SetBinContent(50,96);
   ResoRow19->SetBinContent(51,99);
   ResoRow19->SetBinContent(52,79);
   ResoRow19->SetBinContent(53,69);
   ResoRow19->SetBinContent(54,68);
   ResoRow19->SetBinContent(55,47);
   ResoRow19->SetBinContent(56,32);
   ResoRow19->SetBinContent(57,27);
   ResoRow19->SetBinContent(58,23);
   ResoRow19->SetBinContent(59,21);
   ResoRow19->SetBinContent(60,14);
   ResoRow19->SetBinContent(61,8);
   ResoRow19->SetBinContent(62,8);
   ResoRow19->SetBinContent(63,11);
   ResoRow19->SetBinContent(64,2);
   ResoRow19->SetBinContent(65,4);
   ResoRow19->SetBinContent(66,4);
   ResoRow19->SetBinContent(67,1);
   ResoRow19->SetBinContent(69,2);
   ResoRow19->SetBinContent(71,1);
   ResoRow19->SetBinContent(74,1);
   ResoRow19->SetBinContent(82,1);
   ResoRow19->SetBinContent(99,1);
   ResoRow19->SetBinContent(101,7);
   ResoRow19->SetEntries(1102);
   
   TF1 *ResoRowFit19 = new TF1("ResoRowFit19","gaus",-1,1);
   ResoRowFit19->SetFillColor(19);
   ResoRowFit19->SetFillStyle(0);
   ResoRowFit19->SetLineWidth(3);
   ResoRowFit19->SetChisquare(68.86213);
   ResoRowFit19->SetNDF(47);
   ResoRowFit19->SetParameter(0,78.8559);
   ResoRowFit19->SetParError(0,3.390559);
   ResoRowFit19->SetParLimits(0,0,0);
   ResoRowFit19->SetParameter(1,-0.00462336);
   ResoRowFit19->SetParError(1,0.003243245);
   ResoRowFit19->SetParLimits(1,0,0);
   ResoRowFit19->SetParameter(2,0.1035549);
   ResoRowFit19->SetParError(2,0.003066683);
   ResoRowFit19->SetParLimits(2,0,1.330903);
   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 = 1102   ");
   text = ptstats->AddText("Mean  = -0.01054");
   text = ptstats->AddText("RMS   =  0.133");
   text = ptstats->AddText("#chi^{2} / ndf = 68.86 / 47");
   text = ptstats->AddText("Constant = 78.86 #pm 3.39 ");
   text = ptstats->AddText("Mean     = -0.004623 #pm 0.003243 ");
   text = ptstats->AddText("Sigma    = 0.1036 #pm 0.0031 ");
   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);
}
