{
//=========Macro generated from canvas: c2/
//=========  (Tue Jun  8 17:54:54 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,-13.125,1.25,118.125);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow12 = new TH1F("ResoRow12","",100,-1,1);
   ResoRow12->SetBinContent(0,3);
   ResoRow12->SetBinContent(15,1);
   ResoRow12->SetBinContent(18,1);
   ResoRow12->SetBinContent(26,1);
   ResoRow12->SetBinContent(28,1);
   ResoRow12->SetBinContent(30,1);
   ResoRow12->SetBinContent(31,2);
   ResoRow12->SetBinContent(32,4);
   ResoRow12->SetBinContent(33,2);
   ResoRow12->SetBinContent(34,5);
   ResoRow12->SetBinContent(35,3);
   ResoRow12->SetBinContent(36,5);
   ResoRow12->SetBinContent(37,5);
   ResoRow12->SetBinContent(38,6);
   ResoRow12->SetBinContent(39,6);
   ResoRow12->SetBinContent(40,13);
   ResoRow12->SetBinContent(41,13);
   ResoRow12->SetBinContent(42,25);
   ResoRow12->SetBinContent(43,31);
   ResoRow12->SetBinContent(44,46);
   ResoRow12->SetBinContent(45,44);
   ResoRow12->SetBinContent(46,52);
   ResoRow12->SetBinContent(47,60);
   ResoRow12->SetBinContent(48,77);
   ResoRow12->SetBinContent(49,84);
   ResoRow12->SetBinContent(50,100);
   ResoRow12->SetBinContent(51,90);
   ResoRow12->SetBinContent(52,74);
   ResoRow12->SetBinContent(53,93);
   ResoRow12->SetBinContent(54,67);
   ResoRow12->SetBinContent(55,63);
   ResoRow12->SetBinContent(56,52);
   ResoRow12->SetBinContent(57,38);
   ResoRow12->SetBinContent(58,39);
   ResoRow12->SetBinContent(59,24);
   ResoRow12->SetBinContent(60,15);
   ResoRow12->SetBinContent(61,11);
   ResoRow12->SetBinContent(62,4);
   ResoRow12->SetBinContent(63,3);
   ResoRow12->SetBinContent(64,2);
   ResoRow12->SetBinContent(65,6);
   ResoRow12->SetBinContent(67,1);
   ResoRow12->SetBinContent(68,2);
   ResoRow12->SetBinContent(69,1);
   ResoRow12->SetBinContent(70,2);
   ResoRow12->SetBinContent(72,1);
   ResoRow12->SetBinContent(73,1);
   ResoRow12->SetBinContent(76,2);
   ResoRow12->SetBinContent(77,1);
   ResoRow12->SetBinContent(79,1);
   ResoRow12->SetBinContent(88,1);
   ResoRow12->SetBinContent(93,1);
   ResoRow12->SetBinContent(101,1);
   ResoRow12->SetEntries(1187);
   
   TF1 *ResoRowFit12 = new TF1("ResoRowFit12","gaus",-1,1);
   ResoRowFit12->SetFillColor(19);
   ResoRowFit12->SetFillStyle(0);
   ResoRowFit12->SetLineWidth(3);
   ResoRowFit12->SetChisquare(54.03317);
   ResoRowFit12->SetNDF(48);
   ResoRowFit12->SetParameter(0,87.0433);
   ResoRowFit12->SetParError(0,3.31922);
   ResoRowFit12->SetParLimits(0,0,0);
   ResoRowFit12->SetParameter(1,-8.041875e-05);
   ResoRowFit12->SetParError(1,0.003150868);
   ResoRowFit12->SetParLimits(1,0,0);
   ResoRowFit12->SetParameter(2,0.1035827);
   ResoRowFit12->SetParError(2,0.002486474);
   ResoRowFit12->SetParLimits(2,0,1.279545);
   ResoRow12->GetListOfFunctions()->Add(ResoRowFit12);
   
   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("ResoRow12");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1187   ");
   text = ptstats->AddText("Mean  = -0.0004689");
   text = ptstats->AddText("RMS   = 0.1277");
   text = ptstats->AddText("#chi^{2} / ndf = 54.03 / 48");
   text = ptstats->AddText("Constant = 87.04 #pm 3.32 ");
   text = ptstats->AddText("Mean     = -8.042e-05 #pm 3.151e-03 ");
   text = ptstats->AddText("Sigma    = 0.1036 #pm 0.0025 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow12->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow12->GetListOfFunctions());
   ResoRow12->GetXaxis()->SetTitle("residual / mm");
   ResoRow12->GetYaxis()->SetTitle("counts");
   ResoRow12->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.41875,1.25,102.7688);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow13 = new TH1F("ResoRow13","",100,-1,1);
   ResoRow13->SetBinContent(0,2);
   ResoRow13->SetBinContent(4,1);
   ResoRow13->SetBinContent(22,1);
   ResoRow13->SetBinContent(25,1);
   ResoRow13->SetBinContent(26,1);
   ResoRow13->SetBinContent(31,2);
   ResoRow13->SetBinContent(32,2);
   ResoRow13->SetBinContent(33,2);
   ResoRow13->SetBinContent(34,4);
   ResoRow13->SetBinContent(35,9);
   ResoRow13->SetBinContent(36,7);
   ResoRow13->SetBinContent(37,7);
   ResoRow13->SetBinContent(38,9);
   ResoRow13->SetBinContent(39,8);
   ResoRow13->SetBinContent(40,16);
   ResoRow13->SetBinContent(41,25);
   ResoRow13->SetBinContent(42,28);
   ResoRow13->SetBinContent(43,39);
   ResoRow13->SetBinContent(44,44);
   ResoRow13->SetBinContent(45,47);
   ResoRow13->SetBinContent(46,59);
   ResoRow13->SetBinContent(47,68);
   ResoRow13->SetBinContent(48,69);
   ResoRow13->SetBinContent(49,80);
   ResoRow13->SetBinContent(50,87);
   ResoRow13->SetBinContent(51,81);
   ResoRow13->SetBinContent(52,85);
   ResoRow13->SetBinContent(53,63);
   ResoRow13->SetBinContent(54,73);
   ResoRow13->SetBinContent(55,58);
   ResoRow13->SetBinContent(56,48);
   ResoRow13->SetBinContent(57,32);
   ResoRow13->SetBinContent(58,25);
   ResoRow13->SetBinContent(59,24);
   ResoRow13->SetBinContent(60,16);
   ResoRow13->SetBinContent(61,12);
   ResoRow13->SetBinContent(62,8);
   ResoRow13->SetBinContent(63,6);
   ResoRow13->SetBinContent(64,5);
   ResoRow13->SetBinContent(65,3);
   ResoRow13->SetBinContent(66,3);
   ResoRow13->SetBinContent(67,3);
   ResoRow13->SetBinContent(68,4);
   ResoRow13->SetBinContent(69,1);
   ResoRow13->SetBinContent(70,4);
   ResoRow13->SetBinContent(71,2);
   ResoRow13->SetBinContent(72,1);
   ResoRow13->SetBinContent(73,1);
   ResoRow13->SetBinContent(76,2);
   ResoRow13->SetBinContent(77,1);
   ResoRow13->SetBinContent(82,1);
   ResoRow13->SetBinContent(84,1);
   ResoRow13->SetBinContent(89,1);
   ResoRow13->SetBinContent(101,5);
   ResoRow13->SetEntries(1187);
   
   TF1 *ResoRowFit13 = new TF1("ResoRowFit13","gaus",-1,1);
   ResoRowFit13->SetFillColor(19);
   ResoRowFit13->SetFillStyle(0);
   ResoRowFit13->SetLineWidth(3);
   ResoRowFit13->SetChisquare(44.60591);
   ResoRowFit13->SetNDF(49);
   ResoRowFit13->SetParameter(0,78.01226);
   ResoRowFit13->SetParError(0,3.082568);
   ResoRowFit13->SetParLimits(0,0,0);
   ResoRowFit13->SetParameter(1,-0.008801529);
   ResoRowFit13->SetParError(1,0.003464998);
   ResoRowFit13->SetParLimits(1,0,0);
   ResoRowFit13->SetParameter(2,0.1161682);
   ResoRowFit13->SetParError(2,0.003044208);
   ResoRowFit13->SetParLimits(2,0,1.37488);
   ResoRow13->GetListOfFunctions()->Add(ResoRowFit13);
   
   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("ResoRow13");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1187   ");
   text = ptstats->AddText("Mean  = -0.006375");
   text = ptstats->AddText("RMS   = 0.1374");
   text = ptstats->AddText("#chi^{2} / ndf = 44.61 / 49");
   text = ptstats->AddText("Constant = 78.01 #pm 3.08 ");
   text = ptstats->AddText("Mean     = -0.008802 #pm 0.003465 ");
   text = ptstats->AddText("Sigma    = 0.1162 #pm 0.0030 ");
   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_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.25625,1.25,119.3063);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow14 = new TH1F("ResoRow14","",100,-1,1);
   ResoRow14->SetBinContent(0,2);
   ResoRow14->SetBinContent(1,1);
   ResoRow14->SetBinContent(3,1);
   ResoRow14->SetBinContent(21,1);
   ResoRow14->SetBinContent(22,1);
   ResoRow14->SetBinContent(29,1);
   ResoRow14->SetBinContent(31,4);
   ResoRow14->SetBinContent(32,2);
   ResoRow14->SetBinContent(33,1);
   ResoRow14->SetBinContent(34,3);
   ResoRow14->SetBinContent(35,4);
   ResoRow14->SetBinContent(36,4);
   ResoRow14->SetBinContent(37,6);
   ResoRow14->SetBinContent(38,3);
   ResoRow14->SetBinContent(39,5);
   ResoRow14->SetBinContent(40,12);
   ResoRow14->SetBinContent(41,20);
   ResoRow14->SetBinContent(42,23);
   ResoRow14->SetBinContent(43,24);
   ResoRow14->SetBinContent(44,42);
   ResoRow14->SetBinContent(45,45);
   ResoRow14->SetBinContent(46,59);
   ResoRow14->SetBinContent(47,78);
   ResoRow14->SetBinContent(48,84);
   ResoRow14->SetBinContent(49,82);
   ResoRow14->SetBinContent(50,101);
   ResoRow14->SetBinContent(51,92);
   ResoRow14->SetBinContent(52,80);
   ResoRow14->SetBinContent(53,81);
   ResoRow14->SetBinContent(54,58);
   ResoRow14->SetBinContent(55,61);
   ResoRow14->SetBinContent(56,45);
   ResoRow14->SetBinContent(57,39);
   ResoRow14->SetBinContent(58,23);
   ResoRow14->SetBinContent(59,24);
   ResoRow14->SetBinContent(60,13);
   ResoRow14->SetBinContent(61,12);
   ResoRow14->SetBinContent(62,17);
   ResoRow14->SetBinContent(63,6);
   ResoRow14->SetBinContent(64,6);
   ResoRow14->SetBinContent(65,7);
   ResoRow14->SetBinContent(66,2);
   ResoRow14->SetBinContent(69,2);
   ResoRow14->SetBinContent(70,3);
   ResoRow14->SetBinContent(71,1);
   ResoRow14->SetBinContent(72,2);
   ResoRow14->SetBinContent(76,1);
   ResoRow14->SetBinContent(80,1);
   ResoRow14->SetBinContent(87,1);
   ResoRow14->SetBinContent(101,1);
   ResoRow14->SetEntries(1187);
   
   TF1 *ResoRowFit14 = new TF1("ResoRowFit14","gaus",-1,1);
   ResoRowFit14->SetFillColor(19);
   ResoRowFit14->SetFillStyle(0);
   ResoRowFit14->SetLineWidth(3);
   ResoRowFit14->SetChisquare(55.69988);
   ResoRowFit14->SetNDF(45);
   ResoRowFit14->SetParameter(0,85.95574);
   ResoRowFit14->SetParError(0,3.429466);
   ResoRowFit14->SetParLimits(0,0,0);
   ResoRowFit14->SetParameter(1,-0.0005824218);
   ResoRowFit14->SetParError(1,0.003171159);
   ResoRowFit14->SetParLimits(1,0,0);
   ResoRowFit14->SetParameter(2,0.104826);
   ResoRowFit14->SetParError(2,0.002808924);
   ResoRowFit14->SetParLimits(2,0,1.297118);
   ResoRow14->GetListOfFunctions()->Add(ResoRowFit14);
   
   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("ResoRow14");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1187   ");
   text = ptstats->AddText("Mean  = -0.001424");
   text = ptstats->AddText("RMS   = 0.1295");
   text = ptstats->AddText("#chi^{2} / ndf =  55.7 / 45");
   text = ptstats->AddText("Constant = 85.96 #pm 3.43 ");
   text = ptstats->AddText("Mean     = -0.0005824 #pm 0.0031712 ");
   text = ptstats->AddText("Sigma    = 0.1048 #pm 0.0028 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow14->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow14->GetListOfFunctions());
   ResoRow14->GetXaxis()->SetTitle("residual / mm");
   ResoRow14->GetYaxis()->SetTitle("counts");
   ResoRow14->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,-13.65,1.25,122.85);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow15 = new TH1F("ResoRow15","",100,-1,1);
   ResoRow15->SetBinContent(0,2);
   ResoRow15->SetBinContent(1,1);
   ResoRow15->SetBinContent(5,1);
   ResoRow15->SetBinContent(17,1);
   ResoRow15->SetBinContent(18,1);
   ResoRow15->SetBinContent(20,1);
   ResoRow15->SetBinContent(27,1);
   ResoRow15->SetBinContent(30,1);
   ResoRow15->SetBinContent(32,1);
   ResoRow15->SetBinContent(33,2);
   ResoRow15->SetBinContent(34,2);
   ResoRow15->SetBinContent(35,1);
   ResoRow15->SetBinContent(36,3);
   ResoRow15->SetBinContent(37,5);
   ResoRow15->SetBinContent(38,8);
   ResoRow15->SetBinContent(39,9);
   ResoRow15->SetBinContent(40,11);
   ResoRow15->SetBinContent(41,22);
   ResoRow15->SetBinContent(42,32);
   ResoRow15->SetBinContent(43,20);
   ResoRow15->SetBinContent(44,43);
   ResoRow15->SetBinContent(45,56);
   ResoRow15->SetBinContent(46,56);
   ResoRow15->SetBinContent(47,78);
   ResoRow15->SetBinContent(48,92);
   ResoRow15->SetBinContent(49,88);
   ResoRow15->SetBinContent(50,104);
   ResoRow15->SetBinContent(51,71);
   ResoRow15->SetBinContent(52,71);
   ResoRow15->SetBinContent(53,74);
   ResoRow15->SetBinContent(54,75);
   ResoRow15->SetBinContent(55,53);
   ResoRow15->SetBinContent(56,48);
   ResoRow15->SetBinContent(57,34);
   ResoRow15->SetBinContent(58,31);
   ResoRow15->SetBinContent(59,21);
   ResoRow15->SetBinContent(60,21);
   ResoRow15->SetBinContent(61,8);
   ResoRow15->SetBinContent(62,11);
   ResoRow15->SetBinContent(63,4);
   ResoRow15->SetBinContent(64,4);
   ResoRow15->SetBinContent(65,3);
   ResoRow15->SetBinContent(66,2);
   ResoRow15->SetBinContent(68,2);
   ResoRow15->SetBinContent(69,3);
   ResoRow15->SetBinContent(70,2);
   ResoRow15->SetBinContent(72,1);
   ResoRow15->SetBinContent(75,2);
   ResoRow15->SetBinContent(76,1);
   ResoRow15->SetBinContent(77,1);
   ResoRow15->SetBinContent(79,1);
   ResoRow15->SetBinContent(85,1);
   ResoRow15->SetEntries(1187);
   
   TF1 *ResoRowFit15 = new TF1("ResoRowFit15","gaus",-1,1);
   ResoRowFit15->SetFillColor(19);
   ResoRowFit15->SetFillStyle(0);
   ResoRowFit15->SetLineWidth(3);
   ResoRowFit15->SetChisquare(52.81621);
   ResoRowFit15->SetNDF(48);
   ResoRowFit15->SetParameter(0,84.27977);
   ResoRowFit15->SetParError(0,3.23191);
   ResoRowFit15->SetParLimits(0,0,0);
   ResoRowFit15->SetParameter(1,-0.004484678);
   ResoRowFit15->SetParError(1,0.003203335);
   ResoRowFit15->SetParLimits(1,0,0);
   ResoRowFit15->SetParameter(2,0.1072702);
   ResoRowFit15->SetParError(2,0.002619862);
   ResoRowFit15->SetParLimits(2,0,1.30147);
   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 = 1187   ");
   text = ptstats->AddText("Mean  = -0.004954");
   text = ptstats->AddText("RMS   =   0.13");
   text = ptstats->AddText("#chi^{2} / ndf = 52.82 / 48");
   text = ptstats->AddText("Constant = 84.28 #pm 3.23 ");
   text = ptstats->AddText("Mean     = -0.004485 #pm 0.003203 ");
   text = ptstats->AddText("Sigma    = 0.1073 #pm 0.0026 ");
   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_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.8625,1.25,115.7625);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow16 = new TH1F("ResoRow16","",100,-1,1);
   ResoRow16->SetBinContent(0,6);
   ResoRow16->SetBinContent(16,1);
   ResoRow16->SetBinContent(20,1);
   ResoRow16->SetBinContent(22,2);
   ResoRow16->SetBinContent(26,1);
   ResoRow16->SetBinContent(28,1);
   ResoRow16->SetBinContent(30,1);
   ResoRow16->SetBinContent(31,2);
   ResoRow16->SetBinContent(32,1);
   ResoRow16->SetBinContent(33,3);
   ResoRow16->SetBinContent(34,1);
   ResoRow16->SetBinContent(35,1);
   ResoRow16->SetBinContent(37,6);
   ResoRow16->SetBinContent(38,8);
   ResoRow16->SetBinContent(39,13);
   ResoRow16->SetBinContent(40,10);
   ResoRow16->SetBinContent(41,23);
   ResoRow16->SetBinContent(42,30);
   ResoRow16->SetBinContent(43,27);
   ResoRow16->SetBinContent(44,39);
   ResoRow16->SetBinContent(45,52);
   ResoRow16->SetBinContent(46,48);
   ResoRow16->SetBinContent(47,57);
   ResoRow16->SetBinContent(48,86);
   ResoRow16->SetBinContent(49,73);
   ResoRow16->SetBinContent(50,93);
   ResoRow16->SetBinContent(51,90);
   ResoRow16->SetBinContent(52,98);
   ResoRow16->SetBinContent(53,85);
   ResoRow16->SetBinContent(54,67);
   ResoRow16->SetBinContent(55,66);
   ResoRow16->SetBinContent(56,45);
   ResoRow16->SetBinContent(57,41);
   ResoRow16->SetBinContent(58,35);
   ResoRow16->SetBinContent(59,14);
   ResoRow16->SetBinContent(60,18);
   ResoRow16->SetBinContent(61,10);
   ResoRow16->SetBinContent(62,4);
   ResoRow16->SetBinContent(63,5);
   ResoRow16->SetBinContent(64,8);
   ResoRow16->SetBinContent(66,3);
   ResoRow16->SetBinContent(67,1);
   ResoRow16->SetBinContent(68,3);
   ResoRow16->SetBinContent(73,1);
   ResoRow16->SetBinContent(75,1);
   ResoRow16->SetBinContent(77,1);
   ResoRow16->SetBinContent(78,2);
   ResoRow16->SetBinContent(79,1);
   ResoRow16->SetBinContent(81,1);
   ResoRow16->SetBinContent(101,1);
   ResoRow16->SetEntries(1187);
   
   TF1 *ResoRowFit16 = new TF1("ResoRowFit16","gaus",-1,1);
   ResoRowFit16->SetFillColor(19);
   ResoRowFit16->SetFillStyle(0);
   ResoRowFit16->SetLineWidth(3);
   ResoRowFit16->SetChisquare(56.84503);
   ResoRowFit16->SetNDF(45);
   ResoRowFit16->SetParameter(0,85.32253);
   ResoRowFit16->SetParError(0,3.335785);
   ResoRowFit16->SetParLimits(0,0,0);
   ResoRowFit16->SetParameter(1,-0.002624423);
   ResoRowFit16->SetParError(1,0.003248221);
   ResoRowFit16->SetParLimits(1,0,0);
   ResoRowFit16->SetParameter(2,0.1054262);
   ResoRowFit16->SetParError(2,0.002735132);
   ResoRowFit16->SetParLimits(2,0,1.246118);
   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 = 1187   ");
   text = ptstats->AddText("Mean  = -0.00248");
   text = ptstats->AddText("RMS   = 0.1245");
   text = ptstats->AddText("#chi^{2} / ndf = 56.85 / 45");
   text = ptstats->AddText("Constant = 85.32 #pm 3.34 ");
   text = ptstats->AddText("Mean     = -0.002624 #pm 0.003248 ");
   text = ptstats->AddText("Sigma    = 0.1054 #pm 0.0027 ");
   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_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.125,1.25,118.125);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow17 = new TH1F("ResoRow17","",100,-1,1);
   ResoRow17->SetBinContent(0,5);
   ResoRow17->SetBinContent(2,1);
   ResoRow17->SetBinContent(10,1);
   ResoRow17->SetBinContent(17,2);
   ResoRow17->SetBinContent(22,1);
   ResoRow17->SetBinContent(29,1);
   ResoRow17->SetBinContent(32,2);
   ResoRow17->SetBinContent(33,3);
   ResoRow17->SetBinContent(34,2);
   ResoRow17->SetBinContent(35,1);
   ResoRow17->SetBinContent(36,3);
   ResoRow17->SetBinContent(37,6);
   ResoRow17->SetBinContent(38,5);
   ResoRow17->SetBinContent(39,8);
   ResoRow17->SetBinContent(40,9);
   ResoRow17->SetBinContent(41,20);
   ResoRow17->SetBinContent(42,23);
   ResoRow17->SetBinContent(43,32);
   ResoRow17->SetBinContent(44,37);
   ResoRow17->SetBinContent(45,49);
   ResoRow17->SetBinContent(46,64);
   ResoRow17->SetBinContent(47,80);
   ResoRow17->SetBinContent(48,79);
   ResoRow17->SetBinContent(49,95);
   ResoRow17->SetBinContent(50,93);
   ResoRow17->SetBinContent(51,100);
   ResoRow17->SetBinContent(52,93);
   ResoRow17->SetBinContent(53,75);
   ResoRow17->SetBinContent(54,60);
   ResoRow17->SetBinContent(55,59);
   ResoRow17->SetBinContent(56,45);
   ResoRow17->SetBinContent(57,26);
   ResoRow17->SetBinContent(58,30);
   ResoRow17->SetBinContent(59,18);
   ResoRow17->SetBinContent(60,14);
   ResoRow17->SetBinContent(61,12);
   ResoRow17->SetBinContent(62,6);
   ResoRow17->SetBinContent(63,5);
   ResoRow17->SetBinContent(64,5);
   ResoRow17->SetBinContent(65,1);
   ResoRow17->SetBinContent(66,2);
   ResoRow17->SetBinContent(67,3);
   ResoRow17->SetBinContent(68,1);
   ResoRow17->SetBinContent(69,2);
   ResoRow17->SetBinContent(70,1);
   ResoRow17->SetBinContent(71,2);
   ResoRow17->SetBinContent(75,1);
   ResoRow17->SetBinContent(90,1);
   ResoRow17->SetBinContent(101,3);
   ResoRow17->SetEntries(1187);
   
   TF1 *ResoRowFit17 = new TF1("ResoRowFit17","gaus",-1,1);
   ResoRowFit17->SetFillColor(19);
   ResoRowFit17->SetFillStyle(0);
   ResoRowFit17->SetLineWidth(3);
   ResoRowFit17->SetChisquare(38.05171);
   ResoRowFit17->SetNDF(44);
   ResoRowFit17->SetParameter(0,89.61077);
   ResoRowFit17->SetParError(0,3.488112);
   ResoRowFit17->SetParLimits(0,0,0);
   ResoRowFit17->SetParameter(1,-0.006472492);
   ResoRowFit17->SetParError(1,0.003012672);
   ResoRowFit17->SetParLimits(1,0,0);
   ResoRowFit17->SetParameter(2,0.1016004);
   ResoRowFit17->SetParError(2,0.002571351);
   ResoRowFit17->SetParLimits(2,0,1.230804);
   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 = 1187   ");
   text = ptstats->AddText("Mean  = -0.007292");
   text = ptstats->AddText("RMS   = 0.1231");
   text = ptstats->AddText("#chi^{2} / ndf = 38.05 / 44");
   text = ptstats->AddText("Constant = 89.61 #pm 3.49 ");
   text = ptstats->AddText("Mean     = -0.006472 #pm 0.003013 ");
   text = ptstats->AddText("Sigma    = 0.1016 #pm 0.0026 ");
   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_6->Modified();
   c2->cd();
   c2->Modified();
   c2->cd();
   c2->SetSelected(c2);
}
