{
//=========Macro generated from canvas: c2/
//=========  (Fri Jun 11 00:24:58 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,-14.4375,1.25,129.9375);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow13 = new TH1F("ResoRow13","",100,-1,1);
   ResoRow13->SetBinContent(0,6);
   ResoRow13->SetBinContent(6,1);
   ResoRow13->SetBinContent(16,1);
   ResoRow13->SetBinContent(18,1);
   ResoRow13->SetBinContent(22,1);
   ResoRow13->SetBinContent(32,2);
   ResoRow13->SetBinContent(33,2);
   ResoRow13->SetBinContent(34,3);
   ResoRow13->SetBinContent(35,1);
   ResoRow13->SetBinContent(37,7);
   ResoRow13->SetBinContent(38,5);
   ResoRow13->SetBinContent(39,4);
   ResoRow13->SetBinContent(40,4);
   ResoRow13->SetBinContent(41,5);
   ResoRow13->SetBinContent(42,21);
   ResoRow13->SetBinContent(43,16);
   ResoRow13->SetBinContent(44,17);
   ResoRow13->SetBinContent(45,36);
   ResoRow13->SetBinContent(46,49);
   ResoRow13->SetBinContent(47,52);
   ResoRow13->SetBinContent(48,85);
   ResoRow13->SetBinContent(49,80);
   ResoRow13->SetBinContent(50,110);
   ResoRow13->SetBinContent(51,106);
   ResoRow13->SetBinContent(52,99);
   ResoRow13->SetBinContent(53,94);
   ResoRow13->SetBinContent(54,51);
   ResoRow13->SetBinContent(55,46);
   ResoRow13->SetBinContent(56,41);
   ResoRow13->SetBinContent(57,30);
   ResoRow13->SetBinContent(58,27);
   ResoRow13->SetBinContent(59,7);
   ResoRow13->SetBinContent(60,15);
   ResoRow13->SetBinContent(61,4);
   ResoRow13->SetBinContent(62,6);
   ResoRow13->SetBinContent(63,3);
   ResoRow13->SetBinContent(64,4);
   ResoRow13->SetBinContent(65,4);
   ResoRow13->SetBinContent(66,2);
   ResoRow13->SetBinContent(67,1);
   ResoRow13->SetBinContent(68,2);
   ResoRow13->SetBinContent(71,1);
   ResoRow13->SetBinContent(72,2);
   ResoRow13->SetBinContent(73,1);
   ResoRow13->SetBinContent(75,1);
   ResoRow13->SetBinContent(77,1);
   ResoRow13->SetBinContent(78,1);
   ResoRow13->SetBinContent(80,1);
   ResoRow13->SetBinContent(84,1);
   ResoRow13->SetBinContent(88,1);
   ResoRow13->SetBinContent(98,1);
   ResoRow13->SetBinContent(101,5);
   ResoRow13->SetEntries(1067);
   
   TF1 *ResoRowFit13 = new TF1("ResoRowFit13","gaus",-1,1);
   ResoRowFit13->SetFillColor(19);
   ResoRowFit13->SetFillStyle(0);
   ResoRowFit13->SetLineWidth(3);
   ResoRowFit13->SetChisquare(86.84845);
   ResoRowFit13->SetNDF(47);
   ResoRowFit13->SetParameter(0,93.40051);
   ResoRowFit13->SetParError(0,4.094195);
   ResoRowFit13->SetParLimits(0,0,0);
   ResoRowFit13->SetParameter(1,0.003969285);
   ResoRowFit13->SetParError(1,0.002663023);
   ResoRowFit13->SetParLimits(1,0,0);
   ResoRowFit13->SetParameter(2,0.08280626);
   ResoRowFit13->SetParError(2,0.002474395);
   ResoRowFit13->SetParLimits(2,0,1.228437);
   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 = 1067   ");
   text = ptstats->AddText("Mean  = 0.006299");
   text = ptstats->AddText("RMS   = 0.1226");
   text = ptstats->AddText("#chi^{2} / ndf = 86.85 / 47");
   text = ptstats->AddText("Constant =  93.4 #pm 4.1 ");
   text = ptstats->AddText("Mean     = 0.003969 #pm 0.002663 ");
   text = ptstats->AddText("Sigma    = 0.08281 #pm 0.00247 ");
   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,-14.30625,1.25,128.7563);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow15 = new TH1F("ResoRow15","",100,-1,1);
   ResoRow15->SetBinContent(0,4);
   ResoRow15->SetBinContent(7,2);
   ResoRow15->SetBinContent(15,1);
   ResoRow15->SetBinContent(20,1);
   ResoRow15->SetBinContent(26,1);
   ResoRow15->SetBinContent(27,1);
   ResoRow15->SetBinContent(28,2);
   ResoRow15->SetBinContent(30,2);
   ResoRow15->SetBinContent(31,5);
   ResoRow15->SetBinContent(32,2);
   ResoRow15->SetBinContent(33,4);
   ResoRow15->SetBinContent(34,4);
   ResoRow15->SetBinContent(35,1);
   ResoRow15->SetBinContent(36,2);
   ResoRow15->SetBinContent(37,6);
   ResoRow15->SetBinContent(38,5);
   ResoRow15->SetBinContent(39,6);
   ResoRow15->SetBinContent(40,8);
   ResoRow15->SetBinContent(41,9);
   ResoRow15->SetBinContent(42,15);
   ResoRow15->SetBinContent(43,22);
   ResoRow15->SetBinContent(44,43);
   ResoRow15->SetBinContent(45,36);
   ResoRow15->SetBinContent(46,54);
   ResoRow15->SetBinContent(47,69);
   ResoRow15->SetBinContent(48,90);
   ResoRow15->SetBinContent(49,67);
   ResoRow15->SetBinContent(50,109);
   ResoRow15->SetBinContent(51,96);
   ResoRow15->SetBinContent(52,81);
   ResoRow15->SetBinContent(53,69);
   ResoRow15->SetBinContent(54,61);
   ResoRow15->SetBinContent(55,48);
   ResoRow15->SetBinContent(56,32);
   ResoRow15->SetBinContent(57,21);
   ResoRow15->SetBinContent(58,20);
   ResoRow15->SetBinContent(59,15);
   ResoRow15->SetBinContent(60,14);
   ResoRow15->SetBinContent(61,7);
   ResoRow15->SetBinContent(62,4);
   ResoRow15->SetBinContent(63,3);
   ResoRow15->SetBinContent(64,5);
   ResoRow15->SetBinContent(65,2);
   ResoRow15->SetBinContent(66,3);
   ResoRow15->SetBinContent(69,1);
   ResoRow15->SetBinContent(71,3);
   ResoRow15->SetBinContent(73,1);
   ResoRow15->SetBinContent(80,1);
   ResoRow15->SetBinContent(88,1);
   ResoRow15->SetBinContent(101,8);
   ResoRow15->SetEntries(1067);
   
   TF1 *ResoRowFit15 = new TF1("ResoRowFit15","gaus",-1,1);
   ResoRowFit15->SetFillColor(19);
   ResoRowFit15->SetFillStyle(0);
   ResoRowFit15->SetLineWidth(3);
   ResoRowFit15->SetChisquare(69.88476);
   ResoRowFit15->SetNDF(45);
   ResoRowFit15->SetParameter(0,84.1283);
   ResoRowFit15->SetParError(0,3.662687);
   ResoRowFit15->SetParLimits(0,0,0);
   ResoRowFit15->SetParameter(1,-0.005895815);
   ResoRowFit15->SetParError(1,0.002984216);
   ResoRowFit15->SetParLimits(1,0,0);
   ResoRowFit15->SetParameter(2,0.09344931);
   ResoRowFit15->SetParError(2,0.002779294);
   ResoRowFit15->SetParLimits(2,0,1.266345);
   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 = 1067   ");
   text = ptstats->AddText("Mean  = -0.01233");
   text = ptstats->AddText("RMS   = 0.1264");
   text = ptstats->AddText("#chi^{2} / ndf = 69.88 / 45");
   text = ptstats->AddText("Constant = 84.13 #pm 3.66 ");
   text = ptstats->AddText("Mean     = -0.005896 #pm 0.002984 ");
   text = ptstats->AddText("Sigma    = 0.09345 #pm 0.00278 ");
   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,5);
   ResoRow16->SetBinContent(2,1);
   ResoRow16->SetBinContent(5,1);
   ResoRow16->SetBinContent(13,1);
   ResoRow16->SetBinContent(14,1);
   ResoRow16->SetBinContent(27,1);
   ResoRow16->SetBinContent(29,2);
   ResoRow16->SetBinContent(30,1);
   ResoRow16->SetBinContent(31,2);
   ResoRow16->SetBinContent(32,2);
   ResoRow16->SetBinContent(33,2);
   ResoRow16->SetBinContent(34,3);
   ResoRow16->SetBinContent(35,5);
   ResoRow16->SetBinContent(36,2);
   ResoRow16->SetBinContent(37,2);
   ResoRow16->SetBinContent(38,2);
   ResoRow16->SetBinContent(39,7);
   ResoRow16->SetBinContent(40,5);
   ResoRow16->SetBinContent(41,14);
   ResoRow16->SetBinContent(42,8);
   ResoRow16->SetBinContent(43,23);
   ResoRow16->SetBinContent(44,30);
   ResoRow16->SetBinContent(45,36);
   ResoRow16->SetBinContent(46,49);
   ResoRow16->SetBinContent(47,58);
   ResoRow16->SetBinContent(48,84);
   ResoRow16->SetBinContent(49,87);
   ResoRow16->SetBinContent(50,96);
   ResoRow16->SetBinContent(51,85);
   ResoRow16->SetBinContent(52,100);
   ResoRow16->SetBinContent(53,84);
   ResoRow16->SetBinContent(54,72);
   ResoRow16->SetBinContent(55,39);
   ResoRow16->SetBinContent(56,38);
   ResoRow16->SetBinContent(57,30);
   ResoRow16->SetBinContent(58,17);
   ResoRow16->SetBinContent(59,15);
   ResoRow16->SetBinContent(60,12);
   ResoRow16->SetBinContent(61,7);
   ResoRow16->SetBinContent(62,7);
   ResoRow16->SetBinContent(63,6);
   ResoRow16->SetBinContent(65,4);
   ResoRow16->SetBinContent(66,3);
   ResoRow16->SetBinContent(67,2);
   ResoRow16->SetBinContent(68,1);
   ResoRow16->SetBinContent(69,2);
   ResoRow16->SetBinContent(70,1);
   ResoRow16->SetBinContent(71,1);
   ResoRow16->SetBinContent(72,2);
   ResoRow16->SetBinContent(74,1);
   ResoRow16->SetBinContent(78,1);
   ResoRow16->SetBinContent(101,7);
   ResoRow16->SetEntries(1067);
   
   TF1 *ResoRowFit16 = new TF1("ResoRowFit16","gaus",-1,1);
   ResoRowFit16->SetFillColor(19);
   ResoRowFit16->SetFillStyle(0);
   ResoRowFit16->SetLineWidth(3);
   ResoRowFit16->SetChisquare(69.02335);
   ResoRowFit16->SetNDF(47);
   ResoRowFit16->SetParameter(0,88.29071);
   ResoRowFit16->SetParError(0,3.869756);
   ResoRowFit16->SetParLimits(0,0,0);
   ResoRowFit16->SetParameter(1,0.001463029);
   ResoRowFit16->SetParError(1,0.002863226);
   ResoRowFit16->SetParLimits(1,0,0);
   ResoRowFit16->SetParameter(2,0.0891887);
   ResoRowFit16->SetParError(2,0.002706603);
   ResoRowFit16->SetParLimits(2,0,1.237339);
   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 = 1067   ");
   text = ptstats->AddText("Mean  = -0.002856");
   text = ptstats->AddText("RMS   = 0.1236");
   text = ptstats->AddText("#chi^{2} / ndf = 69.02 / 47");
   text = ptstats->AddText("Constant = 88.29 #pm 3.87 ");
   text = ptstats->AddText("Mean     = 0.001463 #pm 0.002863 ");
   text = ptstats->AddText("Sigma    = 0.08919 #pm 0.00271 ");
   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,-12.99375,1.25,116.9438);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow17 = new TH1F("ResoRow17","",100,-1,1);
   ResoRow17->SetBinContent(0,3);
   ResoRow17->SetBinContent(1,2);
   ResoRow17->SetBinContent(2,1);
   ResoRow17->SetBinContent(14,2);
   ResoRow17->SetBinContent(24,1);
   ResoRow17->SetBinContent(29,1);
   ResoRow17->SetBinContent(32,1);
   ResoRow17->SetBinContent(33,4);
   ResoRow17->SetBinContent(34,1);
   ResoRow17->SetBinContent(35,1);
   ResoRow17->SetBinContent(36,2);
   ResoRow17->SetBinContent(37,6);
   ResoRow17->SetBinContent(38,5);
   ResoRow17->SetBinContent(39,11);
   ResoRow17->SetBinContent(40,12);
   ResoRow17->SetBinContent(41,7);
   ResoRow17->SetBinContent(42,18);
   ResoRow17->SetBinContent(43,21);
   ResoRow17->SetBinContent(44,30);
   ResoRow17->SetBinContent(45,44);
   ResoRow17->SetBinContent(46,45);
   ResoRow17->SetBinContent(47,66);
   ResoRow17->SetBinContent(48,88);
   ResoRow17->SetBinContent(49,89);
   ResoRow17->SetBinContent(50,96);
   ResoRow17->SetBinContent(51,94);
   ResoRow17->SetBinContent(52,99);
   ResoRow17->SetBinContent(53,76);
   ResoRow17->SetBinContent(54,52);
   ResoRow17->SetBinContent(55,48);
   ResoRow17->SetBinContent(56,28);
   ResoRow17->SetBinContent(57,25);
   ResoRow17->SetBinContent(58,20);
   ResoRow17->SetBinContent(59,11);
   ResoRow17->SetBinContent(60,15);
   ResoRow17->SetBinContent(61,6);
   ResoRow17->SetBinContent(62,7);
   ResoRow17->SetBinContent(63,5);
   ResoRow17->SetBinContent(64,1);
   ResoRow17->SetBinContent(65,2);
   ResoRow17->SetBinContent(66,1);
   ResoRow17->SetBinContent(67,2);
   ResoRow17->SetBinContent(68,1);
   ResoRow17->SetBinContent(69,1);
   ResoRow17->SetBinContent(70,3);
   ResoRow17->SetBinContent(71,1);
   ResoRow17->SetBinContent(72,1);
   ResoRow17->SetBinContent(79,1);
   ResoRow17->SetBinContent(86,1);
   ResoRow17->SetBinContent(101,9);
   ResoRow17->SetEntries(1067);
   
   TF1 *ResoRowFit17 = new TF1("ResoRowFit17","gaus",-1,1);
   ResoRowFit17->SetFillColor(19);
   ResoRowFit17->SetFillStyle(0);
   ResoRowFit17->SetLineWidth(3);
   ResoRowFit17->SetChisquare(65.86524);
   ResoRowFit17->SetNDF(45);
   ResoRowFit17->SetParameter(0,86.51134);
   ResoRowFit17->SetParError(0,3.900352);
   ResoRowFit17->SetParLimits(0,0,0);
   ResoRowFit17->SetParameter(1,-0.005747592);
   ResoRowFit17->SetParError(1,0.002901274);
   ResoRowFit17->SetParLimits(1,0,0);
   ResoRowFit17->SetParameter(2,0.09122849);
   ResoRowFit17->SetParError(2,0.002915945);
   ResoRowFit17->SetParLimits(2,0,1.265358);
   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 = 1067   ");
   text = ptstats->AddText("Mean  = -0.009266");
   text = ptstats->AddText("RMS   = 0.1265");
   text = ptstats->AddText("#chi^{2} / ndf = 65.87 / 45");
   text = ptstats->AddText("Constant = 86.51 #pm 3.90 ");
   text = ptstats->AddText("Mean     = -0.005748 #pm 0.002901 ");
   text = ptstats->AddText("Sigma    = 0.09123 #pm 0.00292 ");
   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,-15.09375,1.25,135.8438);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow18 = new TH1F("ResoRow18","",100,-1,1);
   ResoRow18->SetBinContent(0,3);
   ResoRow18->SetBinContent(14,1);
   ResoRow18->SetBinContent(16,1);
   ResoRow18->SetBinContent(19,2);
   ResoRow18->SetBinContent(21,2);
   ResoRow18->SetBinContent(24,1);
   ResoRow18->SetBinContent(29,1);
   ResoRow18->SetBinContent(30,2);
   ResoRow18->SetBinContent(31,2);
   ResoRow18->SetBinContent(32,2);
   ResoRow18->SetBinContent(34,2);
   ResoRow18->SetBinContent(35,1);
   ResoRow18->SetBinContent(36,4);
   ResoRow18->SetBinContent(37,3);
   ResoRow18->SetBinContent(38,3);
   ResoRow18->SetBinContent(39,11);
   ResoRow18->SetBinContent(40,6);
   ResoRow18->SetBinContent(41,13);
   ResoRow18->SetBinContent(42,18);
   ResoRow18->SetBinContent(43,16);
   ResoRow18->SetBinContent(44,23);
   ResoRow18->SetBinContent(45,30);
   ResoRow18->SetBinContent(46,49);
   ResoRow18->SetBinContent(47,61);
   ResoRow18->SetBinContent(48,78);
   ResoRow18->SetBinContent(49,115);
   ResoRow18->SetBinContent(50,96);
   ResoRow18->SetBinContent(51,107);
   ResoRow18->SetBinContent(52,92);
   ResoRow18->SetBinContent(53,73);
   ResoRow18->SetBinContent(54,67);
   ResoRow18->SetBinContent(55,51);
   ResoRow18->SetBinContent(56,33);
   ResoRow18->SetBinContent(57,24);
   ResoRow18->SetBinContent(58,16);
   ResoRow18->SetBinContent(59,7);
   ResoRow18->SetBinContent(60,6);
   ResoRow18->SetBinContent(61,8);
   ResoRow18->SetBinContent(62,6);
   ResoRow18->SetBinContent(63,4);
   ResoRow18->SetBinContent(64,6);
   ResoRow18->SetBinContent(65,2);
   ResoRow18->SetBinContent(66,1);
   ResoRow18->SetBinContent(68,1);
   ResoRow18->SetBinContent(73,1);
   ResoRow18->SetBinContent(75,1);
   ResoRow18->SetBinContent(80,1);
   ResoRow18->SetBinContent(83,1);
   ResoRow18->SetBinContent(84,1);
   ResoRow18->SetBinContent(85,1);
   ResoRow18->SetBinContent(90,2);
   ResoRow18->SetBinContent(91,1);
   ResoRow18->SetBinContent(92,1);
   ResoRow18->SetBinContent(101,7);
   ResoRow18->SetEntries(1067);
   
   TF1 *ResoRowFit18 = new TF1("ResoRowFit18","gaus",-1,1);
   ResoRowFit18->SetFillColor(19);
   ResoRowFit18->SetFillStyle(0);
   ResoRowFit18->SetLineWidth(3);
   ResoRowFit18->SetChisquare(80.45949);
   ResoRowFit18->SetNDF(49);
   ResoRowFit18->SetParameter(0,94.27988);
   ResoRowFit18->SetParError(0,4.303274);
   ResoRowFit18->SetParLimits(0,0,0);
   ResoRowFit18->SetParameter(1,-0.002018216);
   ResoRowFit18->SetParError(1,0.002679341);
   ResoRowFit18->SetParLimits(1,0,0);
   ResoRowFit18->SetParameter(2,0.08264809);
   ResoRowFit18->SetParError(2,0.002689384);
   ResoRowFit18->SetParLimits(2,0,1.303132);
   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 = 1067   ");
   text = ptstats->AddText("Mean  = -0.003589");
   text = ptstats->AddText("RMS   = 0.1302");
   text = ptstats->AddText("#chi^{2} / ndf = 80.46 / 49");
   text = ptstats->AddText("Constant = 94.28 #pm 4.30 ");
   text = ptstats->AddText("Mean     = -0.002018 #pm 0.002679 ");
   text = ptstats->AddText("Sigma    = 0.08265 #pm 0.00269 ");
   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,-13.65,1.25,122.85);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow19 = new TH1F("ResoRow19","",100,-1,1);
   ResoRow19->SetBinContent(0,3);
   ResoRow19->SetBinContent(2,1);
   ResoRow19->SetBinContent(5,1);
   ResoRow19->SetBinContent(6,1);
   ResoRow19->SetBinContent(10,1);
   ResoRow19->SetBinContent(17,1);
   ResoRow19->SetBinContent(24,2);
   ResoRow19->SetBinContent(25,1);
   ResoRow19->SetBinContent(26,3);
   ResoRow19->SetBinContent(27,1);
   ResoRow19->SetBinContent(28,1);
   ResoRow19->SetBinContent(30,1);
   ResoRow19->SetBinContent(31,2);
   ResoRow19->SetBinContent(32,3);
   ResoRow19->SetBinContent(33,1);
   ResoRow19->SetBinContent(34,2);
   ResoRow19->SetBinContent(35,4);
   ResoRow19->SetBinContent(36,3);
   ResoRow19->SetBinContent(37,6);
   ResoRow19->SetBinContent(38,3);
   ResoRow19->SetBinContent(39,5);
   ResoRow19->SetBinContent(40,3);
   ResoRow19->SetBinContent(41,13);
   ResoRow19->SetBinContent(42,20);
   ResoRow19->SetBinContent(43,21);
   ResoRow19->SetBinContent(44,26);
   ResoRow19->SetBinContent(45,50);
   ResoRow19->SetBinContent(46,55);
   ResoRow19->SetBinContent(47,73);
   ResoRow19->SetBinContent(48,63);
   ResoRow19->SetBinContent(49,99);
   ResoRow19->SetBinContent(50,95);
   ResoRow19->SetBinContent(51,104);
   ResoRow19->SetBinContent(52,95);
   ResoRow19->SetBinContent(53,70);
   ResoRow19->SetBinContent(54,53);
   ResoRow19->SetBinContent(55,45);
   ResoRow19->SetBinContent(56,44);
   ResoRow19->SetBinContent(57,29);
   ResoRow19->SetBinContent(58,16);
   ResoRow19->SetBinContent(59,9);
   ResoRow19->SetBinContent(60,5);
   ResoRow19->SetBinContent(61,4);
   ResoRow19->SetBinContent(62,6);
   ResoRow19->SetBinContent(63,4);
   ResoRow19->SetBinContent(64,1);
   ResoRow19->SetBinContent(65,2);
   ResoRow19->SetBinContent(69,1);
   ResoRow19->SetBinContent(70,2);
   ResoRow19->SetBinContent(75,1);
   ResoRow19->SetBinContent(80,1);
   ResoRow19->SetBinContent(82,1);
   ResoRow19->SetBinContent(85,1);
   ResoRow19->SetBinContent(87,1);
   ResoRow19->SetBinContent(89,1);
   ResoRow19->SetBinContent(101,7);
   ResoRow19->SetEntries(1067);
   
   TF1 *ResoRowFit19 = new TF1("ResoRowFit19","gaus",-1,1);
   ResoRowFit19->SetFillColor(19);
   ResoRowFit19->SetFillStyle(0);
   ResoRowFit19->SetLineWidth(3);
   ResoRowFit19->SetChisquare(70.16981);
   ResoRowFit19->SetNDF(51);
   ResoRowFit19->SetParameter(0,91.17145);
   ResoRowFit19->SetParError(0,3.760623);
   ResoRowFit19->SetParLimits(0,0,0);
   ResoRowFit19->SetParameter(1,-0.006167723);
   ResoRowFit19->SetParError(1,0.002757349);
   ResoRowFit19->SetParLimits(1,0,0);
   ResoRowFit19->SetParameter(2,0.08637789);
   ResoRowFit19->SetParError(2,0.002271918);
   ResoRowFit19->SetParLimits(2,0,1.328453);
   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 = 1067   ");
   text = ptstats->AddText("Mean  = -0.01421");
   text = ptstats->AddText("RMS   = 0.1327");
   text = ptstats->AddText("#chi^{2} / ndf = 70.17 / 51");
   text = ptstats->AddText("Constant = 91.17 #pm 3.76 ");
   text = ptstats->AddText("Mean     = -0.006168 #pm 0.002757 ");
   text = ptstats->AddText("Sigma    = 0.08638 #pm 0.00227 ");
   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);
}
