{
//=========Macro generated from canvas: c2/
//=========  (Wed Jun  9 07:40:27 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,-6.16875,1.25,55.51875);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow12 = new TH1F("ResoRow12","",100,-1,1);
   ResoRow12->SetBinContent(0,1);
   ResoRow12->SetBinContent(3,1);
   ResoRow12->SetBinContent(19,3);
   ResoRow12->SetBinContent(21,2);
   ResoRow12->SetBinContent(22,1);
   ResoRow12->SetBinContent(24,1);
   ResoRow12->SetBinContent(27,1);
   ResoRow12->SetBinContent(28,2);
   ResoRow12->SetBinContent(29,2);
   ResoRow12->SetBinContent(30,1);
   ResoRow12->SetBinContent(32,1);
   ResoRow12->SetBinContent(33,2);
   ResoRow12->SetBinContent(34,4);
   ResoRow12->SetBinContent(35,6);
   ResoRow12->SetBinContent(36,6);
   ResoRow12->SetBinContent(37,10);
   ResoRow12->SetBinContent(38,7);
   ResoRow12->SetBinContent(39,6);
   ResoRow12->SetBinContent(40,14);
   ResoRow12->SetBinContent(41,20);
   ResoRow12->SetBinContent(42,17);
   ResoRow12->SetBinContent(43,19);
   ResoRow12->SetBinContent(44,22);
   ResoRow12->SetBinContent(45,39);
   ResoRow12->SetBinContent(46,21);
   ResoRow12->SetBinContent(47,37);
   ResoRow12->SetBinContent(48,32);
   ResoRow12->SetBinContent(49,47);
   ResoRow12->SetBinContent(50,42);
   ResoRow12->SetBinContent(51,44);
   ResoRow12->SetBinContent(52,46);
   ResoRow12->SetBinContent(53,37);
   ResoRow12->SetBinContent(54,35);
   ResoRow12->SetBinContent(55,32);
   ResoRow12->SetBinContent(56,33);
   ResoRow12->SetBinContent(57,23);
   ResoRow12->SetBinContent(58,28);
   ResoRow12->SetBinContent(59,14);
   ResoRow12->SetBinContent(60,23);
   ResoRow12->SetBinContent(61,10);
   ResoRow12->SetBinContent(62,9);
   ResoRow12->SetBinContent(63,5);
   ResoRow12->SetBinContent(64,7);
   ResoRow12->SetBinContent(65,4);
   ResoRow12->SetBinContent(66,3);
   ResoRow12->SetBinContent(67,1);
   ResoRow12->SetBinContent(68,2);
   ResoRow12->SetBinContent(69,3);
   ResoRow12->SetBinContent(70,3);
   ResoRow12->SetBinContent(71,1);
   ResoRow12->SetBinContent(73,1);
   ResoRow12->SetBinContent(74,2);
   ResoRow12->SetBinContent(75,1);
   ResoRow12->SetBinContent(77,1);
   ResoRow12->SetBinContent(78,1);
   ResoRow12->SetBinContent(83,1);
   ResoRow12->SetBinContent(84,1);
   ResoRow12->SetBinContent(94,1);
   ResoRow12->SetBinContent(101,2);
   ResoRow12->SetEntries(741);
   
   TF1 *ResoRowFit12 = new TF1("ResoRowFit12","gaus",-1,1);
   ResoRowFit12->SetFillColor(19);
   ResoRowFit12->SetFillStyle(0);
   ResoRowFit12->SetLineWidth(3);
   ResoRowFit12->SetChisquare(55.46947);
   ResoRowFit12->SetNDF(54);
   ResoRowFit12->SetParameter(0,39.39765);
   ResoRowFit12->SetParError(0,1.990363);
   ResoRowFit12->SetParLimits(0,0,0);
   ResoRowFit12->SetParameter(1,-0.0009505274);
   ResoRowFit12->SetParError(1,0.00543039);
   ResoRowFit12->SetParLimits(1,0,0);
   ResoRowFit12->SetParameter(2,0.1384848);
   ResoRowFit12->SetParError(2,0.004638063);
   ResoRowFit12->SetParLimits(2,0,1.710242);
   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 = 741    ");
   text = ptstats->AddText("Mean  = -0.002974");
   text = ptstats->AddText("RMS   = 0.1711");
   text = ptstats->AddText("#chi^{2} / ndf = 55.47 / 54");
   text = ptstats->AddText("Constant =  39.4 #pm 2.0 ");
   text = ptstats->AddText("Mean     = -0.0009505 #pm 0.0054304 ");
   text = ptstats->AddText("Sigma    = 0.1385 #pm 0.0046 ");
   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,-7.0875,1.25,63.7875);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow13 = new TH1F("ResoRow13","",100,-1,1);
   ResoRow13->SetBinContent(9,2);
   ResoRow13->SetBinContent(20,1);
   ResoRow13->SetBinContent(24,2);
   ResoRow13->SetBinContent(26,1);
   ResoRow13->SetBinContent(27,1);
   ResoRow13->SetBinContent(29,2);
   ResoRow13->SetBinContent(31,1);
   ResoRow13->SetBinContent(32,2);
   ResoRow13->SetBinContent(33,4);
   ResoRow13->SetBinContent(34,2);
   ResoRow13->SetBinContent(35,3);
   ResoRow13->SetBinContent(36,6);
   ResoRow13->SetBinContent(37,9);
   ResoRow13->SetBinContent(38,5);
   ResoRow13->SetBinContent(39,7);
   ResoRow13->SetBinContent(40,11);
   ResoRow13->SetBinContent(41,16);
   ResoRow13->SetBinContent(42,17);
   ResoRow13->SetBinContent(43,18);
   ResoRow13->SetBinContent(44,24);
   ResoRow13->SetBinContent(45,38);
   ResoRow13->SetBinContent(46,28);
   ResoRow13->SetBinContent(47,30);
   ResoRow13->SetBinContent(48,39);
   ResoRow13->SetBinContent(49,48);
   ResoRow13->SetBinContent(50,54);
   ResoRow13->SetBinContent(51,45);
   ResoRow13->SetBinContent(52,36);
   ResoRow13->SetBinContent(53,42);
   ResoRow13->SetBinContent(54,36);
   ResoRow13->SetBinContent(55,29);
   ResoRow13->SetBinContent(56,29);
   ResoRow13->SetBinContent(57,29);
   ResoRow13->SetBinContent(58,19);
   ResoRow13->SetBinContent(59,18);
   ResoRow13->SetBinContent(60,18);
   ResoRow13->SetBinContent(61,14);
   ResoRow13->SetBinContent(62,8);
   ResoRow13->SetBinContent(63,12);
   ResoRow13->SetBinContent(64,11);
   ResoRow13->SetBinContent(65,2);
   ResoRow13->SetBinContent(66,1);
   ResoRow13->SetBinContent(67,2);
   ResoRow13->SetBinContent(68,4);
   ResoRow13->SetBinContent(69,3);
   ResoRow13->SetBinContent(70,1);
   ResoRow13->SetBinContent(71,1);
   ResoRow13->SetBinContent(73,3);
   ResoRow13->SetBinContent(74,2);
   ResoRow13->SetBinContent(75,1);
   ResoRow13->SetBinContent(81,1);
   ResoRow13->SetBinContent(101,3);
   ResoRow13->SetEntries(741);
   
   TF1 *ResoRowFit13 = new TF1("ResoRowFit13","gaus",-1,1);
   ResoRowFit13->SetFillColor(19);
   ResoRowFit13->SetFillStyle(0);
   ResoRowFit13->SetLineWidth(3);
   ResoRowFit13->SetChisquare(48.03375);
   ResoRowFit13->SetNDF(48);
   ResoRowFit13->SetParameter(0,41.3866);
   ResoRowFit13->SetParError(0,2.046474);
   ResoRowFit13->SetParLimits(0,0,0);
   ResoRowFit13->SetParameter(1,0.0008093679);
   ResoRowFit13->SetParError(1,0.005135464);
   ResoRowFit13->SetParLimits(1,0,0);
   ResoRowFit13->SetParameter(2,0.1331756);
   ResoRowFit13->SetParError(2,0.004251518);
   ResoRowFit13->SetParLimits(2,0,1.591805);
   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 = 741    ");
   text = ptstats->AddText("Mean  = 0.0009156");
   text = ptstats->AddText("RMS   = 0.1592");
   text = ptstats->AddText("#chi^{2} / ndf = 48.03 / 48");
   text = ptstats->AddText("Constant = 41.39 #pm 2.05 ");
   text = ptstats->AddText("Mean     = 0.0008094 #pm 0.0051355 ");
   text = ptstats->AddText("Sigma    = 0.1332 #pm 0.0043 ");
   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,-6.69375,1.25,60.24375);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow14 = new TH1F("ResoRow14","",100,-1,1);
   ResoRow14->SetBinContent(0,1);
   ResoRow14->SetBinContent(9,1);
   ResoRow14->SetBinContent(12,1);
   ResoRow14->SetBinContent(15,1);
   ResoRow14->SetBinContent(18,1);
   ResoRow14->SetBinContent(20,1);
   ResoRow14->SetBinContent(27,1);
   ResoRow14->SetBinContent(28,1);
   ResoRow14->SetBinContent(30,1);
   ResoRow14->SetBinContent(31,2);
   ResoRow14->SetBinContent(32,3);
   ResoRow14->SetBinContent(33,2);
   ResoRow14->SetBinContent(34,3);
   ResoRow14->SetBinContent(35,1);
   ResoRow14->SetBinContent(36,5);
   ResoRow14->SetBinContent(37,4);
   ResoRow14->SetBinContent(38,5);
   ResoRow14->SetBinContent(39,10);
   ResoRow14->SetBinContent(40,7);
   ResoRow14->SetBinContent(41,14);
   ResoRow14->SetBinContent(42,20);
   ResoRow14->SetBinContent(43,28);
   ResoRow14->SetBinContent(44,32);
   ResoRow14->SetBinContent(45,31);
   ResoRow14->SetBinContent(46,29);
   ResoRow14->SetBinContent(47,41);
   ResoRow14->SetBinContent(48,39);
   ResoRow14->SetBinContent(49,38);
   ResoRow14->SetBinContent(50,38);
   ResoRow14->SetBinContent(51,51);
   ResoRow14->SetBinContent(52,44);
   ResoRow14->SetBinContent(53,38);
   ResoRow14->SetBinContent(54,31);
   ResoRow14->SetBinContent(55,26);
   ResoRow14->SetBinContent(56,32);
   ResoRow14->SetBinContent(57,35);
   ResoRow14->SetBinContent(58,22);
   ResoRow14->SetBinContent(59,24);
   ResoRow14->SetBinContent(60,18);
   ResoRow14->SetBinContent(61,14);
   ResoRow14->SetBinContent(62,15);
   ResoRow14->SetBinContent(63,5);
   ResoRow14->SetBinContent(64,8);
   ResoRow14->SetBinContent(65,3);
   ResoRow14->SetBinContent(66,1);
   ResoRow14->SetBinContent(67,6);
   ResoRow14->SetBinContent(68,1);
   ResoRow14->SetBinContent(69,1);
   ResoRow14->SetBinContent(71,1);
   ResoRow14->SetBinContent(72,1);
   ResoRow14->SetBinContent(75,1);
   ResoRow14->SetBinContent(78,1);
   ResoRow14->SetBinContent(93,1);
   ResoRow14->SetEntries(741);
   
   TF1 *ResoRowFit14 = new TF1("ResoRowFit14","gaus",-1,1);
   ResoRowFit14->SetFillColor(19);
   ResoRowFit14->SetFillStyle(0);
   ResoRowFit14->SetLineWidth(3);
   ResoRowFit14->SetChisquare(45.41386);
   ResoRowFit14->SetNDF(49);
   ResoRowFit14->SetParameter(0,42.49485);
   ResoRowFit14->SetParError(0,1.99603);
   ResoRowFit14->SetParLimits(0,0,0);
   ResoRowFit14->SetParameter(1,0.003668476);
   ResoRowFit14->SetParError(1,0.004990828);
   ResoRowFit14->SetParLimits(1,0,0);
   ResoRowFit14->SetParameter(2,0.1306068);
   ResoRowFit14->SetParError(2,0.003666242);
   ResoRowFit14->SetParLimits(2,0,1.564927);
   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 = 741    ");
   text = ptstats->AddText("Mean  = 0.001081");
   text = ptstats->AddText("RMS   = 0.1566");
   text = ptstats->AddText("#chi^{2} / ndf = 45.41 / 49");
   text = ptstats->AddText("Constant = 42.49 #pm 2.00 ");
   text = ptstats->AddText("Mean     = 0.003668 #pm 0.004991 ");
   text = ptstats->AddText("Sigma    = 0.1306 #pm 0.0037 ");
   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,-6.3,1.25,56.7);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow15 = new TH1F("ResoRow15","",100,-1,1);
   ResoRow15->SetBinContent(0,1);
   ResoRow15->SetBinContent(11,1);
   ResoRow15->SetBinContent(22,1);
   ResoRow15->SetBinContent(24,1);
   ResoRow15->SetBinContent(26,2);
   ResoRow15->SetBinContent(28,2);
   ResoRow15->SetBinContent(29,1);
   ResoRow15->SetBinContent(30,2);
   ResoRow15->SetBinContent(31,2);
   ResoRow15->SetBinContent(32,1);
   ResoRow15->SetBinContent(33,3);
   ResoRow15->SetBinContent(34,5);
   ResoRow15->SetBinContent(35,4);
   ResoRow15->SetBinContent(36,5);
   ResoRow15->SetBinContent(37,4);
   ResoRow15->SetBinContent(38,9);
   ResoRow15->SetBinContent(39,9);
   ResoRow15->SetBinContent(40,15);
   ResoRow15->SetBinContent(41,16);
   ResoRow15->SetBinContent(42,15);
   ResoRow15->SetBinContent(43,22);
   ResoRow15->SetBinContent(44,24);
   ResoRow15->SetBinContent(45,33);
   ResoRow15->SetBinContent(46,33);
   ResoRow15->SetBinContent(47,42);
   ResoRow15->SetBinContent(48,27);
   ResoRow15->SetBinContent(49,41);
   ResoRow15->SetBinContent(50,39);
   ResoRow15->SetBinContent(51,46);
   ResoRow15->SetBinContent(52,48);
   ResoRow15->SetBinContent(53,37);
   ResoRow15->SetBinContent(54,36);
   ResoRow15->SetBinContent(55,32);
   ResoRow15->SetBinContent(56,32);
   ResoRow15->SetBinContent(57,28);
   ResoRow15->SetBinContent(58,26);
   ResoRow15->SetBinContent(59,21);
   ResoRow15->SetBinContent(60,14);
   ResoRow15->SetBinContent(61,9);
   ResoRow15->SetBinContent(62,16);
   ResoRow15->SetBinContent(63,8);
   ResoRow15->SetBinContent(64,4);
   ResoRow15->SetBinContent(65,4);
   ResoRow15->SetBinContent(66,4);
   ResoRow15->SetBinContent(67,4);
   ResoRow15->SetBinContent(68,1);
   ResoRow15->SetBinContent(69,3);
   ResoRow15->SetBinContent(71,1);
   ResoRow15->SetBinContent(74,1);
   ResoRow15->SetBinContent(77,1);
   ResoRow15->SetBinContent(78,1);
   ResoRow15->SetBinContent(82,1);
   ResoRow15->SetBinContent(85,1);
   ResoRow15->SetBinContent(89,1);
   ResoRow15->SetBinContent(101,1);
   ResoRow15->SetEntries(741);
   
   TF1 *ResoRowFit15 = new TF1("ResoRowFit15","gaus",-1,1);
   ResoRowFit15->SetFillColor(19);
   ResoRowFit15->SetFillStyle(0);
   ResoRowFit15->SetLineWidth(3);
   ResoRowFit15->SetChisquare(36.15046);
   ResoRowFit15->SetNDF(50);
   ResoRowFit15->SetParameter(0,40.23399);
   ResoRowFit15->SetParError(0,1.973362);
   ResoRowFit15->SetParLimits(0,0,0);
   ResoRowFit15->SetParameter(1,0.0006478438);
   ResoRowFit15->SetParError(1,0.005354097);
   ResoRowFit15->SetParLimits(1,0,0);
   ResoRowFit15->SetParameter(2,0.1397386);
   ResoRowFit15->SetParError(2,0.004473564);
   ResoRowFit15->SetParLimits(2,0,1.602373);
   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 = 741    ");
   text = ptstats->AddText("Mean  = -0.000123");
   text = ptstats->AddText("RMS   = 0.1596");
   text = ptstats->AddText("#chi^{2} / ndf = 36.15 / 50");
   text = ptstats->AddText("Constant = 40.23 #pm 1.97 ");
   text = ptstats->AddText("Mean     = 0.0006478 #pm 0.0053541 ");
   text = ptstats->AddText("Sigma    = 0.1397 #pm 0.0045 ");
   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,-6.69375,1.25,60.24375);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow16 = new TH1F("ResoRow16","",100,-1,1);
   ResoRow16->SetBinContent(0,4);
   ResoRow16->SetBinContent(26,1);
   ResoRow16->SetBinContent(28,3);
   ResoRow16->SetBinContent(29,1);
   ResoRow16->SetBinContent(30,1);
   ResoRow16->SetBinContent(31,1);
   ResoRow16->SetBinContent(32,5);
   ResoRow16->SetBinContent(33,2);
   ResoRow16->SetBinContent(34,2);
   ResoRow16->SetBinContent(35,3);
   ResoRow16->SetBinContent(36,6);
   ResoRow16->SetBinContent(37,4);
   ResoRow16->SetBinContent(38,9);
   ResoRow16->SetBinContent(39,9);
   ResoRow16->SetBinContent(40,7);
   ResoRow16->SetBinContent(41,17);
   ResoRow16->SetBinContent(42,15);
   ResoRow16->SetBinContent(43,23);
   ResoRow16->SetBinContent(44,24);
   ResoRow16->SetBinContent(45,38);
   ResoRow16->SetBinContent(46,37);
   ResoRow16->SetBinContent(47,31);
   ResoRow16->SetBinContent(48,41);
   ResoRow16->SetBinContent(49,43);
   ResoRow16->SetBinContent(50,43);
   ResoRow16->SetBinContent(51,45);
   ResoRow16->SetBinContent(52,51);
   ResoRow16->SetBinContent(53,34);
   ResoRow16->SetBinContent(54,40);
   ResoRow16->SetBinContent(55,35);
   ResoRow16->SetBinContent(56,22);
   ResoRow16->SetBinContent(57,25);
   ResoRow16->SetBinContent(58,23);
   ResoRow16->SetBinContent(59,23);
   ResoRow16->SetBinContent(60,17);
   ResoRow16->SetBinContent(61,8);
   ResoRow16->SetBinContent(62,11);
   ResoRow16->SetBinContent(63,7);
   ResoRow16->SetBinContent(64,9);
   ResoRow16->SetBinContent(65,4);
   ResoRow16->SetBinContent(66,3);
   ResoRow16->SetBinContent(67,3);
   ResoRow16->SetBinContent(68,5);
   ResoRow16->SetBinContent(69,1);
   ResoRow16->SetBinContent(70,1);
   ResoRow16->SetBinContent(71,1);
   ResoRow16->SetBinContent(76,1);
   ResoRow16->SetBinContent(83,1);
   ResoRow16->SetBinContent(88,1);
   ResoRow16->SetEntries(741);
   
   TF1 *ResoRowFit16 = new TF1("ResoRowFit16","gaus",-1,1);
   ResoRowFit16->SetFillColor(19);
   ResoRowFit16->SetFillStyle(0);
   ResoRowFit16->SetLineWidth(3);
   ResoRowFit16->SetChisquare(35.5922);
   ResoRowFit16->SetNDF(45);
   ResoRowFit16->SetParameter(0,41.38095);
   ResoRowFit16->SetParError(0,2.062758);
   ResoRowFit16->SetParLimits(0,0,0);
   ResoRowFit16->SetParameter(1,0.002005283);
   ResoRowFit16->SetParError(1,0.005149356);
   ResoRowFit16->SetParLimits(1,0,0);
   ResoRowFit16->SetParameter(2,0.1354023);
   ResoRowFit16->SetParError(2,0.004462647);
   ResoRowFit16->SetParLimits(2,0,1.489559);
   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 = 741    ");
   text = ptstats->AddText("Mean  = 0.0004499");
   text = ptstats->AddText("RMS   =  0.149");
   text = ptstats->AddText("#chi^{2} / ndf = 35.59 / 45");
   text = ptstats->AddText("Constant = 41.38 #pm 2.06 ");
   text = ptstats->AddText("Mean     = 0.002005 #pm 0.005149 ");
   text = ptstats->AddText("Sigma    = 0.1354 #pm 0.0045 ");
   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,-6.95625,1.25,62.60625);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow17 = new TH1F("ResoRow17","",100,-1,1);
   ResoRow17->SetBinContent(0,2);
   ResoRow17->SetBinContent(17,1);
   ResoRow17->SetBinContent(19,1);
   ResoRow17->SetBinContent(23,1);
   ResoRow17->SetBinContent(25,1);
   ResoRow17->SetBinContent(26,1);
   ResoRow17->SetBinContent(29,3);
   ResoRow17->SetBinContent(31,2);
   ResoRow17->SetBinContent(33,2);
   ResoRow17->SetBinContent(34,2);
   ResoRow17->SetBinContent(35,6);
   ResoRow17->SetBinContent(36,3);
   ResoRow17->SetBinContent(37,12);
   ResoRow17->SetBinContent(38,8);
   ResoRow17->SetBinContent(39,3);
   ResoRow17->SetBinContent(40,14);
   ResoRow17->SetBinContent(41,14);
   ResoRow17->SetBinContent(42,12);
   ResoRow17->SetBinContent(43,22);
   ResoRow17->SetBinContent(44,18);
   ResoRow17->SetBinContent(45,31);
   ResoRow17->SetBinContent(46,44);
   ResoRow17->SetBinContent(47,44);
   ResoRow17->SetBinContent(48,25);
   ResoRow17->SetBinContent(49,47);
   ResoRow17->SetBinContent(50,50);
   ResoRow17->SetBinContent(51,53);
   ResoRow17->SetBinContent(52,36);
   ResoRow17->SetBinContent(53,43);
   ResoRow17->SetBinContent(54,40);
   ResoRow17->SetBinContent(55,33);
   ResoRow17->SetBinContent(56,23);
   ResoRow17->SetBinContent(57,32);
   ResoRow17->SetBinContent(58,22);
   ResoRow17->SetBinContent(59,19);
   ResoRow17->SetBinContent(60,14);
   ResoRow17->SetBinContent(61,7);
   ResoRow17->SetBinContent(62,13);
   ResoRow17->SetBinContent(63,8);
   ResoRow17->SetBinContent(64,3);
   ResoRow17->SetBinContent(65,2);
   ResoRow17->SetBinContent(66,4);
   ResoRow17->SetBinContent(67,2);
   ResoRow17->SetBinContent(69,1);
   ResoRow17->SetBinContent(70,2);
   ResoRow17->SetBinContent(71,3);
   ResoRow17->SetBinContent(72,1);
   ResoRow17->SetBinContent(73,2);
   ResoRow17->SetBinContent(74,2);
   ResoRow17->SetBinContent(77,1);
   ResoRow17->SetBinContent(79,1);
   ResoRow17->SetBinContent(82,2);
   ResoRow17->SetBinContent(87,1);
   ResoRow17->SetBinContent(101,2);
   ResoRow17->SetEntries(741);
   
   TF1 *ResoRowFit17 = new TF1("ResoRowFit17","gaus",-1,1);
   ResoRowFit17->SetFillColor(19);
   ResoRowFit17->SetFillStyle(0);
   ResoRowFit17->SetLineWidth(3);
   ResoRowFit17->SetChisquare(72.59504);
   ResoRowFit17->SetNDF(49);
   ResoRowFit17->SetParameter(0,42.27389);
   ResoRowFit17->SetParError(0,2.182993);
   ResoRowFit17->SetParLimits(0,0,0);
   ResoRowFit17->SetParameter(1,0.004324996);
   ResoRowFit17->SetParError(1,0.004938757);
   ResoRowFit17->SetParLimits(1,0,0);
   ResoRowFit17->SetParameter(2,0.1257407);
   ResoRowFit17->SetParError(2,0.004376085);
   ResoRowFit17->SetParLimits(2,0,1.564053);
   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 = 741    ");
   text = ptstats->AddText("Mean  = 0.001751");
   text = ptstats->AddText("RMS   = 0.1566");
   text = ptstats->AddText("#chi^{2} / ndf =  72.6 / 49");
   text = ptstats->AddText("Constant = 42.27 #pm 2.18 ");
   text = ptstats->AddText("Mean     = 0.004325 #pm 0.004939 ");
   text = ptstats->AddText("Sigma    = 0.1257 #pm 0.0044 ");
   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);
}
