{
//=========Macro generated from canvas: c2/
//=========  (Fri Jun 11 07:30:21 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,-10.63125,1.25,95.68125);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow13 = new TH1F("ResoRow13","",100,-1,1);
   ResoRow13->SetBinContent(0,4);
   ResoRow13->SetBinContent(4,1);
   ResoRow13->SetBinContent(19,1);
   ResoRow13->SetBinContent(22,2);
   ResoRow13->SetBinContent(24,2);
   ResoRow13->SetBinContent(26,4);
   ResoRow13->SetBinContent(27,1);
   ResoRow13->SetBinContent(28,1);
   ResoRow13->SetBinContent(29,1);
   ResoRow13->SetBinContent(30,1);
   ResoRow13->SetBinContent(32,1);
   ResoRow13->SetBinContent(33,1);
   ResoRow13->SetBinContent(34,2);
   ResoRow13->SetBinContent(35,2);
   ResoRow13->SetBinContent(36,3);
   ResoRow13->SetBinContent(37,6);
   ResoRow13->SetBinContent(38,5);
   ResoRow13->SetBinContent(39,8);
   ResoRow13->SetBinContent(40,8);
   ResoRow13->SetBinContent(41,23);
   ResoRow13->SetBinContent(42,18);
   ResoRow13->SetBinContent(43,23);
   ResoRow13->SetBinContent(44,33);
   ResoRow13->SetBinContent(45,40);
   ResoRow13->SetBinContent(46,41);
   ResoRow13->SetBinContent(47,56);
   ResoRow13->SetBinContent(48,57);
   ResoRow13->SetBinContent(49,74);
   ResoRow13->SetBinContent(50,75);
   ResoRow13->SetBinContent(51,78);
   ResoRow13->SetBinContent(52,81);
   ResoRow13->SetBinContent(53,76);
   ResoRow13->SetBinContent(54,65);
   ResoRow13->SetBinContent(55,43);
   ResoRow13->SetBinContent(56,37);
   ResoRow13->SetBinContent(57,36);
   ResoRow13->SetBinContent(58,21);
   ResoRow13->SetBinContent(59,20);
   ResoRow13->SetBinContent(60,15);
   ResoRow13->SetBinContent(61,14);
   ResoRow13->SetBinContent(62,7);
   ResoRow13->SetBinContent(63,4);
   ResoRow13->SetBinContent(64,4);
   ResoRow13->SetBinContent(65,2);
   ResoRow13->SetBinContent(66,4);
   ResoRow13->SetBinContent(67,3);
   ResoRow13->SetBinContent(68,2);
   ResoRow13->SetBinContent(69,3);
   ResoRow13->SetBinContent(73,2);
   ResoRow13->SetBinContent(74,1);
   ResoRow13->SetBinContent(75,1);
   ResoRow13->SetBinContent(77,1);
   ResoRow13->SetBinContent(78,1);
   ResoRow13->SetBinContent(80,1);
   ResoRow13->SetBinContent(81,2);
   ResoRow13->SetBinContent(88,1);
   ResoRow13->SetBinContent(91,1);
   ResoRow13->SetBinContent(101,8);
   ResoRow13->SetEntries(1028);
   
   TF1 *ResoRowFit13 = new TF1("ResoRowFit13","gaus",-1,1);
   ResoRowFit13->SetFillColor(19);
   ResoRowFit13->SetFillStyle(0);
   ResoRowFit13->SetLineWidth(3);
   ResoRowFit13->SetChisquare(55.38602);
   ResoRowFit13->SetNDF(53);
   ResoRowFit13->SetParameter(0,70.64312);
   ResoRowFit13->SetParError(0,3.051299);
   ResoRowFit13->SetParLimits(0,0,0);
   ResoRowFit13->SetParameter(1,0.001380775);
   ResoRowFit13->SetParError(1,0.003518948);
   ResoRowFit13->SetParLimits(1,0,0);
   ResoRowFit13->SetParameter(2,0.1085327);
   ResoRowFit13->SetParError(2,0.003128322);
   ResoRowFit13->SetParLimits(2,0,1.430781);
   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 = 1028   ");
   text = ptstats->AddText("Mean  = 0.001228");
   text = ptstats->AddText("RMS   = 0.1428");
   text = ptstats->AddText("#chi^{2} / ndf = 55.39 / 53");
   text = ptstats->AddText("Constant = 70.64 #pm 3.05 ");
   text = ptstats->AddText("Mean     = 0.001381 #pm 0.003519 ");
   text = ptstats->AddText("Sigma    = 0.1085 #pm 0.0031 ");
   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,-10.89375,1.25,98.04375);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow15 = new TH1F("ResoRow15","",100,-1,1);
   ResoRow15->SetBinContent(0,2);
   ResoRow15->SetBinContent(6,1);
   ResoRow15->SetBinContent(10,1);
   ResoRow15->SetBinContent(15,1);
   ResoRow15->SetBinContent(16,1);
   ResoRow15->SetBinContent(25,1);
   ResoRow15->SetBinContent(26,1);
   ResoRow15->SetBinContent(30,2);
   ResoRow15->SetBinContent(31,1);
   ResoRow15->SetBinContent(32,5);
   ResoRow15->SetBinContent(33,2);
   ResoRow15->SetBinContent(34,2);
   ResoRow15->SetBinContent(35,3);
   ResoRow15->SetBinContent(36,5);
   ResoRow15->SetBinContent(37,4);
   ResoRow15->SetBinContent(38,6);
   ResoRow15->SetBinContent(39,9);
   ResoRow15->SetBinContent(40,11);
   ResoRow15->SetBinContent(41,17);
   ResoRow15->SetBinContent(42,17);
   ResoRow15->SetBinContent(43,30);
   ResoRow15->SetBinContent(44,33);
   ResoRow15->SetBinContent(45,47);
   ResoRow15->SetBinContent(46,62);
   ResoRow15->SetBinContent(47,59);
   ResoRow15->SetBinContent(48,77);
   ResoRow15->SetBinContent(49,71);
   ResoRow15->SetBinContent(50,83);
   ResoRow15->SetBinContent(51,67);
   ResoRow15->SetBinContent(52,64);
   ResoRow15->SetBinContent(53,70);
   ResoRow15->SetBinContent(54,55);
   ResoRow15->SetBinContent(55,47);
   ResoRow15->SetBinContent(56,37);
   ResoRow15->SetBinContent(57,27);
   ResoRow15->SetBinContent(58,28);
   ResoRow15->SetBinContent(59,11);
   ResoRow15->SetBinContent(60,13);
   ResoRow15->SetBinContent(61,12);
   ResoRow15->SetBinContent(62,6);
   ResoRow15->SetBinContent(63,11);
   ResoRow15->SetBinContent(64,6);
   ResoRow15->SetBinContent(65,1);
   ResoRow15->SetBinContent(66,2);
   ResoRow15->SetBinContent(67,1);
   ResoRow15->SetBinContent(68,1);
   ResoRow15->SetBinContent(69,1);
   ResoRow15->SetBinContent(71,4);
   ResoRow15->SetBinContent(75,1);
   ResoRow15->SetBinContent(79,1);
   ResoRow15->SetBinContent(82,1);
   ResoRow15->SetBinContent(86,1);
   ResoRow15->SetBinContent(101,6);
   ResoRow15->SetEntries(1028);
   
   TF1 *ResoRowFit15 = new TF1("ResoRowFit15","gaus",-1,1);
   ResoRowFit15->SetFillColor(19);
   ResoRowFit15->SetFillStyle(0);
   ResoRowFit15->SetLineWidth(3);
   ResoRowFit15->SetChisquare(49.26669);
   ResoRowFit15->SetNDF(48);
   ResoRowFit15->SetParameter(0,71.8216);
   ResoRowFit15->SetParError(0,3.073113);
   ResoRowFit15->SetParLimits(0,0,0);
   ResoRowFit15->SetParameter(1,-0.008920699);
   ResoRowFit15->SetParError(1,0.003466275);
   ResoRowFit15->SetParLimits(1,0,0);
   ResoRowFit15->SetParameter(2,0.1078598);
   ResoRowFit15->SetParError(2,0.003058729);
   ResoRowFit15->SetParLimits(2,0,1.355176);
   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 = 1028   ");
   text = ptstats->AddText("Mean  = -0.009666");
   text = ptstats->AddText("RMS   = 0.1356");
   text = ptstats->AddText("#chi^{2} / ndf = 49.27 / 48");
   text = ptstats->AddText("Constant = 71.82 #pm 3.07 ");
   text = ptstats->AddText("Mean     = -0.008921 #pm 0.003466 ");
   text = ptstats->AddText("Sigma    = 0.1079 #pm 0.0031 ");
   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,-12.8625,1.25,115.7625);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow16 = new TH1F("ResoRow16","",100,-1,1);
   ResoRow16->SetBinContent(0,1);
   ResoRow16->SetBinContent(7,1);
   ResoRow16->SetBinContent(8,1);
   ResoRow16->SetBinContent(9,1);
   ResoRow16->SetBinContent(20,1);
   ResoRow16->SetBinContent(22,1);
   ResoRow16->SetBinContent(24,1);
   ResoRow16->SetBinContent(26,1);
   ResoRow16->SetBinContent(28,1);
   ResoRow16->SetBinContent(29,1);
   ResoRow16->SetBinContent(31,1);
   ResoRow16->SetBinContent(32,1);
   ResoRow16->SetBinContent(33,1);
   ResoRow16->SetBinContent(34,1);
   ResoRow16->SetBinContent(36,5);
   ResoRow16->SetBinContent(37,9);
   ResoRow16->SetBinContent(38,4);
   ResoRow16->SetBinContent(39,9);
   ResoRow16->SetBinContent(40,8);
   ResoRow16->SetBinContent(41,7);
   ResoRow16->SetBinContent(42,12);
   ResoRow16->SetBinContent(43,25);
   ResoRow16->SetBinContent(44,34);
   ResoRow16->SetBinContent(45,41);
   ResoRow16->SetBinContent(46,48);
   ResoRow16->SetBinContent(47,50);
   ResoRow16->SetBinContent(48,64);
   ResoRow16->SetBinContent(49,76);
   ResoRow16->SetBinContent(50,98);
   ResoRow16->SetBinContent(51,81);
   ResoRow16->SetBinContent(52,77);
   ResoRow16->SetBinContent(53,64);
   ResoRow16->SetBinContent(54,72);
   ResoRow16->SetBinContent(55,63);
   ResoRow16->SetBinContent(56,45);
   ResoRow16->SetBinContent(57,37);
   ResoRow16->SetBinContent(58,19);
   ResoRow16->SetBinContent(59,15);
   ResoRow16->SetBinContent(60,10);
   ResoRow16->SetBinContent(61,9);
   ResoRow16->SetBinContent(62,1);
   ResoRow16->SetBinContent(63,3);
   ResoRow16->SetBinContent(64,3);
   ResoRow16->SetBinContent(65,9);
   ResoRow16->SetBinContent(67,2);
   ResoRow16->SetBinContent(68,2);
   ResoRow16->SetBinContent(69,3);
   ResoRow16->SetBinContent(70,1);
   ResoRow16->SetBinContent(72,1);
   ResoRow16->SetBinContent(73,2);
   ResoRow16->SetBinContent(101,5);
   ResoRow16->SetEntries(1028);
   
   TF1 *ResoRowFit16 = new TF1("ResoRowFit16","gaus",-1,1);
   ResoRowFit16->SetFillColor(19);
   ResoRowFit16->SetFillStyle(0);
   ResoRowFit16->SetLineWidth(3);
   ResoRowFit16->SetChisquare(71.26736);
   ResoRowFit16->SetNDF(46);
   ResoRowFit16->SetParameter(0,82.32217);
   ResoRowFit16->SetParError(0,3.395237);
   ResoRowFit16->SetParLimits(0,0,0);
   ResoRowFit16->SetParameter(1,0.001156502);
   ResoRowFit16->SetParError(1,0.003099417);
   ResoRowFit16->SetParLimits(1,0,0);
   ResoRowFit16->SetParameter(2,0.09220403);
   ResoRowFit16->SetParError(2,0.002363664);
   ResoRowFit16->SetParLimits(2,0,1.261849);
   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 = 1028   ");
   text = ptstats->AddText("Mean  = -0.001547");
   text = ptstats->AddText("RMS   = 0.1261");
   text = ptstats->AddText("#chi^{2} / ndf = 71.27 / 46");
   text = ptstats->AddText("Constant = 82.32 #pm 3.40 ");
   text = ptstats->AddText("Mean     = 0.001157 #pm 0.003099 ");
   text = ptstats->AddText("Sigma    = 0.0922 #pm 0.0024 ");
   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.2875,1.25,101.5875);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow17 = new TH1F("ResoRow17","",100,-1,1);
   ResoRow17->SetBinContent(0,2);
   ResoRow17->SetBinContent(1,1);
   ResoRow17->SetBinContent(3,2);
   ResoRow17->SetBinContent(12,1);
   ResoRow17->SetBinContent(25,4);
   ResoRow17->SetBinContent(26,1);
   ResoRow17->SetBinContent(31,2);
   ResoRow17->SetBinContent(32,2);
   ResoRow17->SetBinContent(33,1);
   ResoRow17->SetBinContent(34,1);
   ResoRow17->SetBinContent(35,2);
   ResoRow17->SetBinContent(36,7);
   ResoRow17->SetBinContent(37,1);
   ResoRow17->SetBinContent(38,4);
   ResoRow17->SetBinContent(39,7);
   ResoRow17->SetBinContent(40,11);
   ResoRow17->SetBinContent(41,13);
   ResoRow17->SetBinContent(42,10);
   ResoRow17->SetBinContent(43,22);
   ResoRow17->SetBinContent(44,29);
   ResoRow17->SetBinContent(45,50);
   ResoRow17->SetBinContent(46,58);
   ResoRow17->SetBinContent(47,73);
   ResoRow17->SetBinContent(48,76);
   ResoRow17->SetBinContent(49,86);
   ResoRow17->SetBinContent(50,85);
   ResoRow17->SetBinContent(51,69);
   ResoRow17->SetBinContent(52,68);
   ResoRow17->SetBinContent(53,64);
   ResoRow17->SetBinContent(54,67);
   ResoRow17->SetBinContent(55,42);
   ResoRow17->SetBinContent(56,42);
   ResoRow17->SetBinContent(57,22);
   ResoRow17->SetBinContent(58,22);
   ResoRow17->SetBinContent(59,21);
   ResoRow17->SetBinContent(60,15);
   ResoRow17->SetBinContent(61,10);
   ResoRow17->SetBinContent(62,5);
   ResoRow17->SetBinContent(63,4);
   ResoRow17->SetBinContent(64,6);
   ResoRow17->SetBinContent(66,1);
   ResoRow17->SetBinContent(67,4);
   ResoRow17->SetBinContent(68,1);
   ResoRow17->SetBinContent(69,1);
   ResoRow17->SetBinContent(70,2);
   ResoRow17->SetBinContent(71,2);
   ResoRow17->SetBinContent(74,1);
   ResoRow17->SetBinContent(75,2);
   ResoRow17->SetBinContent(77,1);
   ResoRow17->SetBinContent(101,5);
   ResoRow17->SetEntries(1028);
   
   TF1 *ResoRowFit17 = new TF1("ResoRowFit17","gaus",-1,1);
   ResoRowFit17->SetFillColor(19);
   ResoRowFit17->SetFillStyle(0);
   ResoRowFit17->SetLineWidth(3);
   ResoRowFit17->SetChisquare(63.36342);
   ResoRowFit17->SetNDF(45);
   ResoRowFit17->SetParameter(0,77.55357);
   ResoRowFit17->SetParError(0,3.337341);
   ResoRowFit17->SetParLimits(0,0,0);
   ResoRowFit17->SetParameter(1,-0.002432973);
   ResoRowFit17->SetParError(1,0.00327241);
   ResoRowFit17->SetParLimits(1,0,0);
   ResoRowFit17->SetParameter(2,0.09862492);
   ResoRowFit17->SetParError(2,0.002827283);
   ResoRowFit17->SetParLimits(2,0,1.329817);
   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 = 1028   ");
   text = ptstats->AddText("Mean  = -0.00719");
   text = ptstats->AddText("RMS   = 0.1331");
   text = ptstats->AddText("#chi^{2} / ndf = 63.36 / 45");
   text = ptstats->AddText("Constant = 77.55 #pm 3.34 ");
   text = ptstats->AddText("Mean     = -0.002433 #pm 0.003272 ");
   text = ptstats->AddText("Sigma    = 0.09862 #pm 0.00283 ");
   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,-13.125,1.25,118.125);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow18 = new TH1F("ResoRow18","",100,-1,1);
   ResoRow18->SetBinContent(0,1);
   ResoRow18->SetBinContent(2,2);
   ResoRow18->SetBinContent(3,1);
   ResoRow18->SetBinContent(10,1);
   ResoRow18->SetBinContent(14,1);
   ResoRow18->SetBinContent(16,1);
   ResoRow18->SetBinContent(29,1);
   ResoRow18->SetBinContent(30,1);
   ResoRow18->SetBinContent(32,1);
   ResoRow18->SetBinContent(33,2);
   ResoRow18->SetBinContent(34,3);
   ResoRow18->SetBinContent(35,1);
   ResoRow18->SetBinContent(36,3);
   ResoRow18->SetBinContent(37,2);
   ResoRow18->SetBinContent(38,8);
   ResoRow18->SetBinContent(39,8);
   ResoRow18->SetBinContent(40,10);
   ResoRow18->SetBinContent(41,13);
   ResoRow18->SetBinContent(42,23);
   ResoRow18->SetBinContent(43,13);
   ResoRow18->SetBinContent(44,22);
   ResoRow18->SetBinContent(45,40);
   ResoRow18->SetBinContent(46,49);
   ResoRow18->SetBinContent(47,59);
   ResoRow18->SetBinContent(48,70);
   ResoRow18->SetBinContent(49,77);
   ResoRow18->SetBinContent(50,100);
   ResoRow18->SetBinContent(51,80);
   ResoRow18->SetBinContent(52,94);
   ResoRow18->SetBinContent(53,86);
   ResoRow18->SetBinContent(54,55);
   ResoRow18->SetBinContent(55,54);
   ResoRow18->SetBinContent(56,34);
   ResoRow18->SetBinContent(57,29);
   ResoRow18->SetBinContent(58,19);
   ResoRow18->SetBinContent(59,23);
   ResoRow18->SetBinContent(60,10);
   ResoRow18->SetBinContent(61,3);
   ResoRow18->SetBinContent(62,5);
   ResoRow18->SetBinContent(63,5);
   ResoRow18->SetBinContent(64,1);
   ResoRow18->SetBinContent(65,1);
   ResoRow18->SetBinContent(66,1);
   ResoRow18->SetBinContent(67,2);
   ResoRow18->SetBinContent(68,3);
   ResoRow18->SetBinContent(69,1);
   ResoRow18->SetBinContent(70,2);
   ResoRow18->SetBinContent(71,1);
   ResoRow18->SetBinContent(73,1);
   ResoRow18->SetBinContent(78,1);
   ResoRow18->SetBinContent(101,4);
   ResoRow18->SetEntries(1028);
   
   TF1 *ResoRowFit18 = new TF1("ResoRowFit18","gaus",-1,1);
   ResoRowFit18->SetFillColor(19);
   ResoRowFit18->SetFillStyle(0);
   ResoRowFit18->SetLineWidth(3);
   ResoRowFit18->SetChisquare(68.31639);
   ResoRowFit18->SetNDF(46);
   ResoRowFit18->SetParameter(0,83.15932);
   ResoRowFit18->SetParError(0,3.669567);
   ResoRowFit18->SetParLimits(0,0,0);
   ResoRowFit18->SetParameter(1,0.0006571748);
   ResoRowFit18->SetParError(1,0.003026965);
   ResoRowFit18->SetParLimits(1,0,0);
   ResoRowFit18->SetParameter(2,0.09159967);
   ResoRowFit18->SetParError(2,0.002747292);
   ResoRowFit18->SetParLimits(2,0,1.273533);
   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 = 1028   ");
   text = ptstats->AddText("Mean  = -0.005369");
   text = ptstats->AddText("RMS   = 0.1273");
   text = ptstats->AddText("#chi^{2} / ndf = 68.32 / 46");
   text = ptstats->AddText("Constant = 83.16 #pm 3.67 ");
   text = ptstats->AddText("Mean     = 0.0006572 #pm 0.0030270 ");
   text = ptstats->AddText("Sigma    = 0.0916 #pm 0.0027 ");
   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.46875,1.25,112.2188);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow19 = new TH1F("ResoRow19","",100,-1,1);
   ResoRow19->SetBinContent(9,1);
   ResoRow19->SetBinContent(16,1);
   ResoRow19->SetBinContent(17,2);
   ResoRow19->SetBinContent(25,1);
   ResoRow19->SetBinContent(27,1);
   ResoRow19->SetBinContent(30,3);
   ResoRow19->SetBinContent(31,2);
   ResoRow19->SetBinContent(32,4);
   ResoRow19->SetBinContent(33,2);
   ResoRow19->SetBinContent(34,2);
   ResoRow19->SetBinContent(35,4);
   ResoRow19->SetBinContent(36,3);
   ResoRow19->SetBinContent(37,4);
   ResoRow19->SetBinContent(38,5);
   ResoRow19->SetBinContent(39,9);
   ResoRow19->SetBinContent(40,14);
   ResoRow19->SetBinContent(41,6);
   ResoRow19->SetBinContent(42,18);
   ResoRow19->SetBinContent(43,18);
   ResoRow19->SetBinContent(44,34);
   ResoRow19->SetBinContent(45,42);
   ResoRow19->SetBinContent(46,64);
   ResoRow19->SetBinContent(47,69);
   ResoRow19->SetBinContent(48,73);
   ResoRow19->SetBinContent(49,75);
   ResoRow19->SetBinContent(50,95);
   ResoRow19->SetBinContent(51,79);
   ResoRow19->SetBinContent(52,76);
   ResoRow19->SetBinContent(53,69);
   ResoRow19->SetBinContent(54,54);
   ResoRow19->SetBinContent(55,42);
   ResoRow19->SetBinContent(56,29);
   ResoRow19->SetBinContent(57,25);
   ResoRow19->SetBinContent(58,21);
   ResoRow19->SetBinContent(59,15);
   ResoRow19->SetBinContent(60,14);
   ResoRow19->SetBinContent(61,7);
   ResoRow19->SetBinContent(62,9);
   ResoRow19->SetBinContent(63,5);
   ResoRow19->SetBinContent(64,2);
   ResoRow19->SetBinContent(65,3);
   ResoRow19->SetBinContent(66,1);
   ResoRow19->SetBinContent(67,2);
   ResoRow19->SetBinContent(68,2);
   ResoRow19->SetBinContent(69,2);
   ResoRow19->SetBinContent(71,1);
   ResoRow19->SetBinContent(72,1);
   ResoRow19->SetBinContent(74,1);
   ResoRow19->SetBinContent(80,1);
   ResoRow19->SetBinContent(84,1);
   ResoRow19->SetBinContent(88,1);
   ResoRow19->SetBinContent(101,13);
   ResoRow19->SetEntries(1028);
   
   TF1 *ResoRowFit19 = new TF1("ResoRowFit19","gaus",-1,1);
   ResoRowFit19->SetFillColor(19);
   ResoRowFit19->SetFillStyle(0);
   ResoRowFit19->SetLineWidth(3);
   ResoRowFit19->SetChisquare(67.99992);
   ResoRowFit19->SetNDF(48);
   ResoRowFit19->SetParameter(0,77.81094);
   ResoRowFit19->SetParError(0,3.55881);
   ResoRowFit19->SetParLimits(0,0,0);
   ResoRowFit19->SetParameter(1,-0.005445212);
   ResoRowFit19->SetParError(1,0.003186406);
   ResoRowFit19->SetParLimits(1,0,0);
   ResoRowFit19->SetParameter(2,0.09710974);
   ResoRowFit19->SetParError(2,0.003125952);
   ResoRowFit19->SetParLimits(2,0,1.302687);
   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 = 1028   ");
   text = ptstats->AddText("Mean  = -0.01073");
   text = ptstats->AddText("RMS   = 0.1299");
   text = ptstats->AddText("#chi^{2} / ndf =    68 / 48");
   text = ptstats->AddText("Constant = 77.81 #pm 3.56 ");
   text = ptstats->AddText("Mean     = -0.005445 #pm 0.003186 ");
   text = ptstats->AddText("Sigma    = 0.09711 #pm 0.00313 ");
   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);
}
