{
//=========Macro generated from canvas: c2/
//=========  (Thu Jun 10 21:03:09 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,-5.25,1.25,47.25);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow13 = new TH1F("ResoRow13","",100,-1,1);
   ResoRow13->SetBinContent(0,27);
   ResoRow13->SetBinContent(2,2);
   ResoRow13->SetBinContent(3,2);
   ResoRow13->SetBinContent(4,1);
   ResoRow13->SetBinContent(5,4);
   ResoRow13->SetBinContent(6,3);
   ResoRow13->SetBinContent(7,3);
   ResoRow13->SetBinContent(8,3);
   ResoRow13->SetBinContent(9,3);
   ResoRow13->SetBinContent(11,4);
   ResoRow13->SetBinContent(12,3);
   ResoRow13->SetBinContent(13,1);
   ResoRow13->SetBinContent(14,2);
   ResoRow13->SetBinContent(15,10);
   ResoRow13->SetBinContent(16,11);
   ResoRow13->SetBinContent(17,1);
   ResoRow13->SetBinContent(18,3);
   ResoRow13->SetBinContent(19,8);
   ResoRow13->SetBinContent(20,7);
   ResoRow13->SetBinContent(21,11);
   ResoRow13->SetBinContent(22,3);
   ResoRow13->SetBinContent(23,6);
   ResoRow13->SetBinContent(24,3);
   ResoRow13->SetBinContent(25,20);
   ResoRow13->SetBinContent(26,11);
   ResoRow13->SetBinContent(27,11);
   ResoRow13->SetBinContent(28,10);
   ResoRow13->SetBinContent(29,12);
   ResoRow13->SetBinContent(30,17);
   ResoRow13->SetBinContent(31,24);
   ResoRow13->SetBinContent(32,20);
   ResoRow13->SetBinContent(33,21);
   ResoRow13->SetBinContent(34,14);
   ResoRow13->SetBinContent(35,22);
   ResoRow13->SetBinContent(36,23);
   ResoRow13->SetBinContent(37,26);
   ResoRow13->SetBinContent(38,25);
   ResoRow13->SetBinContent(39,34);
   ResoRow13->SetBinContent(40,22);
   ResoRow13->SetBinContent(41,34);
   ResoRow13->SetBinContent(42,32);
   ResoRow13->SetBinContent(43,31);
   ResoRow13->SetBinContent(44,25);
   ResoRow13->SetBinContent(45,30);
   ResoRow13->SetBinContent(46,27);
   ResoRow13->SetBinContent(47,29);
   ResoRow13->SetBinContent(48,35);
   ResoRow13->SetBinContent(49,27);
   ResoRow13->SetBinContent(50,40);
   ResoRow13->SetBinContent(51,36);
   ResoRow13->SetBinContent(52,37);
   ResoRow13->SetBinContent(53,35);
   ResoRow13->SetBinContent(54,35);
   ResoRow13->SetBinContent(55,39);
   ResoRow13->SetBinContent(56,30);
   ResoRow13->SetBinContent(57,32);
   ResoRow13->SetBinContent(58,39);
   ResoRow13->SetBinContent(59,26);
   ResoRow13->SetBinContent(60,37);
   ResoRow13->SetBinContent(61,26);
   ResoRow13->SetBinContent(62,33);
   ResoRow13->SetBinContent(63,23);
   ResoRow13->SetBinContent(64,29);
   ResoRow13->SetBinContent(65,25);
   ResoRow13->SetBinContent(66,20);
   ResoRow13->SetBinContent(67,20);
   ResoRow13->SetBinContent(68,13);
   ResoRow13->SetBinContent(69,14);
   ResoRow13->SetBinContent(70,14);
   ResoRow13->SetBinContent(71,17);
   ResoRow13->SetBinContent(72,17);
   ResoRow13->SetBinContent(73,12);
   ResoRow13->SetBinContent(74,9);
   ResoRow13->SetBinContent(75,11);
   ResoRow13->SetBinContent(76,7);
   ResoRow13->SetBinContent(77,5);
   ResoRow13->SetBinContent(78,6);
   ResoRow13->SetBinContent(79,10);
   ResoRow13->SetBinContent(80,2);
   ResoRow13->SetBinContent(81,5);
   ResoRow13->SetBinContent(82,4);
   ResoRow13->SetBinContent(83,10);
   ResoRow13->SetBinContent(84,2);
   ResoRow13->SetBinContent(85,4);
   ResoRow13->SetBinContent(86,3);
   ResoRow13->SetBinContent(87,1);
   ResoRow13->SetBinContent(88,7);
   ResoRow13->SetBinContent(89,3);
   ResoRow13->SetBinContent(90,2);
   ResoRow13->SetBinContent(91,2);
   ResoRow13->SetBinContent(92,3);
   ResoRow13->SetBinContent(93,3);
   ResoRow13->SetBinContent(94,2);
   ResoRow13->SetBinContent(95,1);
   ResoRow13->SetBinContent(96,3);
   ResoRow13->SetBinContent(97,4);
   ResoRow13->SetBinContent(98,2);
   ResoRow13->SetBinContent(99,2);
   ResoRow13->SetBinContent(100,1);
   ResoRow13->SetBinContent(101,32);
   ResoRow13->SetEntries(1498);
   
   TF1 *ResoRowFit13 = new TF1("ResoRowFit13","gaus",-1,1);
   ResoRowFit13->SetFillColor(19);
   ResoRowFit13->SetFillStyle(0);
   ResoRowFit13->SetLineWidth(3);
   ResoRowFit13->SetChisquare(123.2188);
   ResoRowFit13->SetNDF(95);
   ResoRowFit13->SetParameter(0,34.16211);
   ResoRowFit13->SetParError(0,1.227492);
   ResoRowFit13->SetParLimits(0,0,0);
   ResoRowFit13->SetParameter(1,0.0006422115);
   ResoRowFit13->SetParError(1,0.008576107);
   ResoRowFit13->SetParLimits(1,0,0);
   ResoRowFit13->SetParameter(2,0.3079648);
   ResoRowFit13->SetParError(2,0.007235667);
   ResoRowFit13->SetParLimits(2,0,3.465255);
   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 = 1498   ");
   text = ptstats->AddText("Mean  = -0.008143");
   text = ptstats->AddText("RMS   = 0.3463");
   text = ptstats->AddText("#chi^{2} / ndf = 123.2 / 95");
   text = ptstats->AddText("Constant = 34.16 #pm 1.23 ");
   text = ptstats->AddText("Mean     = 0.0006422 #pm 0.0085761 ");
   text = ptstats->AddText("Sigma    = 0.308 #pm 0.007 ");
   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,-6.16875,1.25,55.51875);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow14 = new TH1F("ResoRow14","",100,-1,1);
   ResoRow14->SetBinContent(0,24);
   ResoRow14->SetBinContent(2,1);
   ResoRow14->SetBinContent(3,2);
   ResoRow14->SetBinContent(4,5);
   ResoRow14->SetBinContent(9,2);
   ResoRow14->SetBinContent(10,7);
   ResoRow14->SetBinContent(11,2);
   ResoRow14->SetBinContent(12,5);
   ResoRow14->SetBinContent(13,3);
   ResoRow14->SetBinContent(15,6);
   ResoRow14->SetBinContent(16,9);
   ResoRow14->SetBinContent(17,4);
   ResoRow14->SetBinContent(18,10);
   ResoRow14->SetBinContent(19,8);
   ResoRow14->SetBinContent(20,3);
   ResoRow14->SetBinContent(21,7);
   ResoRow14->SetBinContent(22,5);
   ResoRow14->SetBinContent(23,3);
   ResoRow14->SetBinContent(24,9);
   ResoRow14->SetBinContent(25,9);
   ResoRow14->SetBinContent(26,10);
   ResoRow14->SetBinContent(27,13);
   ResoRow14->SetBinContent(28,14);
   ResoRow14->SetBinContent(29,14);
   ResoRow14->SetBinContent(30,18);
   ResoRow14->SetBinContent(31,20);
   ResoRow14->SetBinContent(32,19);
   ResoRow14->SetBinContent(33,20);
   ResoRow14->SetBinContent(34,22);
   ResoRow14->SetBinContent(35,15);
   ResoRow14->SetBinContent(36,25);
   ResoRow14->SetBinContent(37,30);
   ResoRow14->SetBinContent(38,21);
   ResoRow14->SetBinContent(39,24);
   ResoRow14->SetBinContent(40,36);
   ResoRow14->SetBinContent(41,34);
   ResoRow14->SetBinContent(42,30);
   ResoRow14->SetBinContent(43,25);
   ResoRow14->SetBinContent(44,33);
   ResoRow14->SetBinContent(45,33);
   ResoRow14->SetBinContent(46,36);
   ResoRow14->SetBinContent(47,28);
   ResoRow14->SetBinContent(48,38);
   ResoRow14->SetBinContent(49,43);
   ResoRow14->SetBinContent(50,43);
   ResoRow14->SetBinContent(51,47);
   ResoRow14->SetBinContent(52,37);
   ResoRow14->SetBinContent(53,30);
   ResoRow14->SetBinContent(54,34);
   ResoRow14->SetBinContent(55,32);
   ResoRow14->SetBinContent(56,30);
   ResoRow14->SetBinContent(57,28);
   ResoRow14->SetBinContent(58,38);
   ResoRow14->SetBinContent(59,22);
   ResoRow14->SetBinContent(60,27);
   ResoRow14->SetBinContent(61,27);
   ResoRow14->SetBinContent(62,32);
   ResoRow14->SetBinContent(63,16);
   ResoRow14->SetBinContent(64,27);
   ResoRow14->SetBinContent(65,20);
   ResoRow14->SetBinContent(66,27);
   ResoRow14->SetBinContent(67,14);
   ResoRow14->SetBinContent(68,18);
   ResoRow14->SetBinContent(69,13);
   ResoRow14->SetBinContent(70,20);
   ResoRow14->SetBinContent(71,12);
   ResoRow14->SetBinContent(72,13);
   ResoRow14->SetBinContent(73,4);
   ResoRow14->SetBinContent(74,16);
   ResoRow14->SetBinContent(75,15);
   ResoRow14->SetBinContent(76,15);
   ResoRow14->SetBinContent(77,8);
   ResoRow14->SetBinContent(78,7);
   ResoRow14->SetBinContent(79,7);
   ResoRow14->SetBinContent(80,8);
   ResoRow14->SetBinContent(81,1);
   ResoRow14->SetBinContent(82,7);
   ResoRow14->SetBinContent(83,5);
   ResoRow14->SetBinContent(84,8);
   ResoRow14->SetBinContent(85,5);
   ResoRow14->SetBinContent(86,7);
   ResoRow14->SetBinContent(87,2);
   ResoRow14->SetBinContent(88,4);
   ResoRow14->SetBinContent(89,2);
   ResoRow14->SetBinContent(90,1);
   ResoRow14->SetBinContent(92,3);
   ResoRow14->SetBinContent(94,2);
   ResoRow14->SetBinContent(97,2);
   ResoRow14->SetBinContent(98,1);
   ResoRow14->SetBinContent(99,1);
   ResoRow14->SetBinContent(101,35);
   ResoRow14->SetEntries(1498);
   
   TF1 *ResoRowFit14 = new TF1("ResoRowFit14","gaus",-1,1);
   ResoRowFit14->SetFillColor(19);
   ResoRowFit14->SetFillStyle(0);
   ResoRowFit14->SetLineWidth(3);
   ResoRowFit14->SetChisquare(120.4079);
   ResoRowFit14->SetNDF(86);
   ResoRowFit14->SetParameter(0,34.00639);
   ResoRowFit14->SetParError(0,1.253952);
   ResoRowFit14->SetParLimits(0,0,0);
   ResoRowFit14->SetParameter(1,-0.01992654);
   ResoRowFit14->SetParError(1,0.008844256);
   ResoRowFit14->SetParLimits(1,0,0);
   ResoRowFit14->SetParameter(2,0.3118319);
   ResoRowFit14->SetParError(2,0.0080909);
   ResoRowFit14->SetParLimits(2,0,3.331887);
   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 = 1498   ");
   text = ptstats->AddText("Mean  = -0.01152");
   text = ptstats->AddText("RMS   = 0.3332");
   text = ptstats->AddText("#chi^{2} / ndf = 120.4 / 86");
   text = ptstats->AddText("Constant = 34.01 #pm 1.25 ");
   text = ptstats->AddText("Mean     = -0.01993 #pm 0.00884 ");
   text = ptstats->AddText("Sigma    = 0.3118 #pm 0.0081 ");
   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_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,-5.64375,1.25,50.79375);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow15 = new TH1F("ResoRow15","",100,-1,1);
   ResoRow15->SetBinContent(0,37);
   ResoRow15->SetBinContent(1,2);
   ResoRow15->SetBinContent(3,3);
   ResoRow15->SetBinContent(4,2);
   ResoRow15->SetBinContent(6,3);
   ResoRow15->SetBinContent(7,2);
   ResoRow15->SetBinContent(8,5);
   ResoRow15->SetBinContent(9,3);
   ResoRow15->SetBinContent(10,4);
   ResoRow15->SetBinContent(11,4);
   ResoRow15->SetBinContent(12,2);
   ResoRow15->SetBinContent(13,5);
   ResoRow15->SetBinContent(14,4);
   ResoRow15->SetBinContent(15,6);
   ResoRow15->SetBinContent(16,8);
   ResoRow15->SetBinContent(17,10);
   ResoRow15->SetBinContent(18,6);
   ResoRow15->SetBinContent(19,4);
   ResoRow15->SetBinContent(20,4);
   ResoRow15->SetBinContent(21,13);
   ResoRow15->SetBinContent(22,5);
   ResoRow15->SetBinContent(23,13);
   ResoRow15->SetBinContent(24,13);
   ResoRow15->SetBinContent(25,11);
   ResoRow15->SetBinContent(26,9);
   ResoRow15->SetBinContent(27,15);
   ResoRow15->SetBinContent(28,16);
   ResoRow15->SetBinContent(29,17);
   ResoRow15->SetBinContent(30,20);
   ResoRow15->SetBinContent(31,10);
   ResoRow15->SetBinContent(32,17);
   ResoRow15->SetBinContent(33,16);
   ResoRow15->SetBinContent(34,28);
   ResoRow15->SetBinContent(35,9);
   ResoRow15->SetBinContent(36,21);
   ResoRow15->SetBinContent(37,18);
   ResoRow15->SetBinContent(38,28);
   ResoRow15->SetBinContent(39,23);
   ResoRow15->SetBinContent(40,33);
   ResoRow15->SetBinContent(41,30);
   ResoRow15->SetBinContent(42,24);
   ResoRow15->SetBinContent(43,30);
   ResoRow15->SetBinContent(44,32);
   ResoRow15->SetBinContent(45,32);
   ResoRow15->SetBinContent(46,30);
   ResoRow15->SetBinContent(47,34);
   ResoRow15->SetBinContent(48,35);
   ResoRow15->SetBinContent(49,34);
   ResoRow15->SetBinContent(50,34);
   ResoRow15->SetBinContent(51,38);
   ResoRow15->SetBinContent(52,28);
   ResoRow15->SetBinContent(53,25);
   ResoRow15->SetBinContent(54,36);
   ResoRow15->SetBinContent(55,16);
   ResoRow15->SetBinContent(56,43);
   ResoRow15->SetBinContent(57,43);
   ResoRow15->SetBinContent(58,36);
   ResoRow15->SetBinContent(59,35);
   ResoRow15->SetBinContent(60,28);
   ResoRow15->SetBinContent(61,17);
   ResoRow15->SetBinContent(62,23);
   ResoRow15->SetBinContent(63,25);
   ResoRow15->SetBinContent(64,18);
   ResoRow15->SetBinContent(65,23);
   ResoRow15->SetBinContent(66,21);
   ResoRow15->SetBinContent(67,19);
   ResoRow15->SetBinContent(68,19);
   ResoRow15->SetBinContent(69,8);
   ResoRow15->SetBinContent(70,13);
   ResoRow15->SetBinContent(71,14);
   ResoRow15->SetBinContent(72,16);
   ResoRow15->SetBinContent(73,14);
   ResoRow15->SetBinContent(74,14);
   ResoRow15->SetBinContent(75,5);
   ResoRow15->SetBinContent(76,11);
   ResoRow15->SetBinContent(77,8);
   ResoRow15->SetBinContent(78,8);
   ResoRow15->SetBinContent(79,9);
   ResoRow15->SetBinContent(80,8);
   ResoRow15->SetBinContent(81,8);
   ResoRow15->SetBinContent(82,5);
   ResoRow15->SetBinContent(83,8);
   ResoRow15->SetBinContent(84,5);
   ResoRow15->SetBinContent(85,7);
   ResoRow15->SetBinContent(86,3);
   ResoRow15->SetBinContent(87,4);
   ResoRow15->SetBinContent(88,3);
   ResoRow15->SetBinContent(89,5);
   ResoRow15->SetBinContent(90,4);
   ResoRow15->SetBinContent(91,2);
   ResoRow15->SetBinContent(92,3);
   ResoRow15->SetBinContent(93,2);
   ResoRow15->SetBinContent(94,4);
   ResoRow15->SetBinContent(95,3);
   ResoRow15->SetBinContent(96,3);
   ResoRow15->SetBinContent(97,3);
   ResoRow15->SetBinContent(98,1);
   ResoRow15->SetBinContent(99,1);
   ResoRow15->SetBinContent(101,39);
   ResoRow15->SetEntries(1498);
   
   TF1 *ResoRowFit15 = new TF1("ResoRowFit15","gaus",-1,1);
   ResoRowFit15->SetFillColor(19);
   ResoRowFit15->SetFillStyle(0);
   ResoRowFit15->SetLineWidth(3);
   ResoRowFit15->SetChisquare(119.7564);
   ResoRowFit15->SetNDF(94);
   ResoRowFit15->SetParameter(0,28.89624);
   ResoRowFit15->SetParError(0,1.088149);
   ResoRowFit15->SetParLimits(0,0,0);
   ResoRowFit15->SetParameter(1,-0.009551851);
   ResoRowFit15->SetParError(1,0.01037273);
   ResoRowFit15->SetParLimits(1,0,0);
   ResoRowFit15->SetParameter(2,0.362463);
   ResoRowFit15->SetParError(2,0.009849198);
   ResoRowFit15->SetParLimits(2,0,3.608923);
   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 = 1498   ");
   text = ptstats->AddText("Mean  = -0.01094");
   text = ptstats->AddText("RMS   = 0.3608");
   text = ptstats->AddText("#chi^{2} / ndf = 119.8 / 94");
   text = ptstats->AddText("Constant =  28.9 #pm 1.1 ");
   text = ptstats->AddText("Mean     = -0.009552 #pm 0.010373 ");
   text = ptstats->AddText("Sigma    = 0.3625 #pm 0.0098 ");
   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_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,-5.90625,1.25,53.15625);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow16 = new TH1F("ResoRow16","",100,-1,1);
   ResoRow16->SetBinContent(0,23);
   ResoRow16->SetBinContent(1,1);
   ResoRow16->SetBinContent(2,1);
   ResoRow16->SetBinContent(4,2);
   ResoRow16->SetBinContent(6,3);
   ResoRow16->SetBinContent(7,2);
   ResoRow16->SetBinContent(8,5);
   ResoRow16->SetBinContent(9,2);
   ResoRow16->SetBinContent(10,2);
   ResoRow16->SetBinContent(11,6);
   ResoRow16->SetBinContent(12,3);
   ResoRow16->SetBinContent(13,3);
   ResoRow16->SetBinContent(14,6);
   ResoRow16->SetBinContent(15,7);
   ResoRow16->SetBinContent(16,6);
   ResoRow16->SetBinContent(17,5);
   ResoRow16->SetBinContent(18,4);
   ResoRow16->SetBinContent(19,5);
   ResoRow16->SetBinContent(20,6);
   ResoRow16->SetBinContent(21,6);
   ResoRow16->SetBinContent(22,8);
   ResoRow16->SetBinContent(23,11);
   ResoRow16->SetBinContent(24,4);
   ResoRow16->SetBinContent(25,6);
   ResoRow16->SetBinContent(26,12);
   ResoRow16->SetBinContent(27,15);
   ResoRow16->SetBinContent(28,16);
   ResoRow16->SetBinContent(29,12);
   ResoRow16->SetBinContent(30,21);
   ResoRow16->SetBinContent(31,22);
   ResoRow16->SetBinContent(32,14);
   ResoRow16->SetBinContent(33,25);
   ResoRow16->SetBinContent(34,18);
   ResoRow16->SetBinContent(35,24);
   ResoRow16->SetBinContent(36,21);
   ResoRow16->SetBinContent(37,22);
   ResoRow16->SetBinContent(38,32);
   ResoRow16->SetBinContent(39,22);
   ResoRow16->SetBinContent(40,35);
   ResoRow16->SetBinContent(41,25);
   ResoRow16->SetBinContent(42,38);
   ResoRow16->SetBinContent(43,28);
   ResoRow16->SetBinContent(44,25);
   ResoRow16->SetBinContent(45,27);
   ResoRow16->SetBinContent(46,45);
   ResoRow16->SetBinContent(47,36);
   ResoRow16->SetBinContent(48,29);
   ResoRow16->SetBinContent(49,41);
   ResoRow16->SetBinContent(50,27);
   ResoRow16->SetBinContent(51,33);
   ResoRow16->SetBinContent(52,31);
   ResoRow16->SetBinContent(53,37);
   ResoRow16->SetBinContent(54,30);
   ResoRow16->SetBinContent(55,31);
   ResoRow16->SetBinContent(56,29);
   ResoRow16->SetBinContent(57,27);
   ResoRow16->SetBinContent(58,39);
   ResoRow16->SetBinContent(59,31);
   ResoRow16->SetBinContent(60,21);
   ResoRow16->SetBinContent(61,31);
   ResoRow16->SetBinContent(62,26);
   ResoRow16->SetBinContent(63,23);
   ResoRow16->SetBinContent(64,22);
   ResoRow16->SetBinContent(65,18);
   ResoRow16->SetBinContent(66,28);
   ResoRow16->SetBinContent(67,26);
   ResoRow16->SetBinContent(68,16);
   ResoRow16->SetBinContent(69,17);
   ResoRow16->SetBinContent(70,21);
   ResoRow16->SetBinContent(71,12);
   ResoRow16->SetBinContent(72,13);
   ResoRow16->SetBinContent(73,17);
   ResoRow16->SetBinContent(74,9);
   ResoRow16->SetBinContent(75,5);
   ResoRow16->SetBinContent(76,12);
   ResoRow16->SetBinContent(77,7);
   ResoRow16->SetBinContent(78,11);
   ResoRow16->SetBinContent(79,10);
   ResoRow16->SetBinContent(80,5);
   ResoRow16->SetBinContent(81,6);
   ResoRow16->SetBinContent(82,8);
   ResoRow16->SetBinContent(85,8);
   ResoRow16->SetBinContent(86,4);
   ResoRow16->SetBinContent(87,7);
   ResoRow16->SetBinContent(88,5);
   ResoRow16->SetBinContent(89,5);
   ResoRow16->SetBinContent(90,5);
   ResoRow16->SetBinContent(91,3);
   ResoRow16->SetBinContent(92,1);
   ResoRow16->SetBinContent(93,1);
   ResoRow16->SetBinContent(94,4);
   ResoRow16->SetBinContent(95,1);
   ResoRow16->SetBinContent(96,1);
   ResoRow16->SetBinContent(97,3);
   ResoRow16->SetBinContent(99,4);
   ResoRow16->SetBinContent(100,2);
   ResoRow16->SetBinContent(101,33);
   ResoRow16->SetEntries(1498);
   
   TF1 *ResoRowFit16 = new TF1("ResoRowFit16","gaus",-1,1);
   ResoRowFit16->SetFillColor(19);
   ResoRowFit16->SetFillStyle(0);
   ResoRowFit16->SetLineWidth(3);
   ResoRowFit16->SetChisquare(91.15979);
   ResoRowFit16->SetNDF(92);
   ResoRowFit16->SetParameter(0,31.63809);
   ResoRowFit16->SetParError(0,1.142396);
   ResoRowFit16->SetParLimits(0,0,0);
   ResoRowFit16->SetParameter(1,-0.003057861);
   ResoRowFit16->SetParError(1,0.009733367);
   ResoRowFit16->SetParLimits(1,0,0);
   ResoRowFit16->SetParameter(2,0.3451021);
   ResoRowFit16->SetParError(2,0.008777922);
   ResoRowFit16->SetParLimits(2,0,3.515083);
   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 = 1498   ");
   text = ptstats->AddText("Mean  = -0.00421");
   text = ptstats->AddText("RMS   = 0.3516");
   text = ptstats->AddText("#chi^{2} / ndf = 91.16 / 92");
   text = ptstats->AddText("Constant = 31.64 #pm 1.14 ");
   text = ptstats->AddText("Mean     = -0.003058 #pm 0.009733 ");
   text = ptstats->AddText("Sigma    = 0.3451 #pm 0.0088 ");
   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_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,-5.5125,1.25,49.6125);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow17 = new TH1F("ResoRow17","",100,-1,1);
   ResoRow17->SetBinContent(0,31);
   ResoRow17->SetBinContent(1,1);
   ResoRow17->SetBinContent(3,2);
   ResoRow17->SetBinContent(4,1);
   ResoRow17->SetBinContent(5,4);
   ResoRow17->SetBinContent(6,3);
   ResoRow17->SetBinContent(8,3);
   ResoRow17->SetBinContent(9,5);
   ResoRow17->SetBinContent(10,1);
   ResoRow17->SetBinContent(11,2);
   ResoRow17->SetBinContent(12,4);
   ResoRow17->SetBinContent(13,7);
   ResoRow17->SetBinContent(14,2);
   ResoRow17->SetBinContent(15,4);
   ResoRow17->SetBinContent(16,8);
   ResoRow17->SetBinContent(17,2);
   ResoRow17->SetBinContent(18,9);
   ResoRow17->SetBinContent(19,5);
   ResoRow17->SetBinContent(20,6);
   ResoRow17->SetBinContent(21,7);
   ResoRow17->SetBinContent(22,11);
   ResoRow17->SetBinContent(23,16);
   ResoRow17->SetBinContent(24,6);
   ResoRow17->SetBinContent(25,16);
   ResoRow17->SetBinContent(26,14);
   ResoRow17->SetBinContent(27,12);
   ResoRow17->SetBinContent(28,18);
   ResoRow17->SetBinContent(29,12);
   ResoRow17->SetBinContent(30,9);
   ResoRow17->SetBinContent(31,11);
   ResoRow17->SetBinContent(32,20);
   ResoRow17->SetBinContent(33,17);
   ResoRow17->SetBinContent(34,20);
   ResoRow17->SetBinContent(35,20);
   ResoRow17->SetBinContent(36,10);
   ResoRow17->SetBinContent(37,26);
   ResoRow17->SetBinContent(38,21);
   ResoRow17->SetBinContent(39,17);
   ResoRow17->SetBinContent(40,30);
   ResoRow17->SetBinContent(41,30);
   ResoRow17->SetBinContent(42,26);
   ResoRow17->SetBinContent(43,32);
   ResoRow17->SetBinContent(44,39);
   ResoRow17->SetBinContent(45,36);
   ResoRow17->SetBinContent(46,35);
   ResoRow17->SetBinContent(47,29);
   ResoRow17->SetBinContent(48,29);
   ResoRow17->SetBinContent(49,28);
   ResoRow17->SetBinContent(50,34);
   ResoRow17->SetBinContent(51,38);
   ResoRow17->SetBinContent(52,42);
   ResoRow17->SetBinContent(53,39);
   ResoRow17->SetBinContent(54,31);
   ResoRow17->SetBinContent(55,37);
   ResoRow17->SetBinContent(56,32);
   ResoRow17->SetBinContent(57,32);
   ResoRow17->SetBinContent(58,25);
   ResoRow17->SetBinContent(59,35);
   ResoRow17->SetBinContent(60,39);
   ResoRow17->SetBinContent(61,27);
   ResoRow17->SetBinContent(62,25);
   ResoRow17->SetBinContent(63,17);
   ResoRow17->SetBinContent(64,20);
   ResoRow17->SetBinContent(65,28);
   ResoRow17->SetBinContent(66,21);
   ResoRow17->SetBinContent(67,22);
   ResoRow17->SetBinContent(68,21);
   ResoRow17->SetBinContent(69,26);
   ResoRow17->SetBinContent(70,19);
   ResoRow17->SetBinContent(71,16);
   ResoRow17->SetBinContent(72,9);
   ResoRow17->SetBinContent(73,12);
   ResoRow17->SetBinContent(74,16);
   ResoRow17->SetBinContent(75,8);
   ResoRow17->SetBinContent(76,16);
   ResoRow17->SetBinContent(77,10);
   ResoRow17->SetBinContent(78,10);
   ResoRow17->SetBinContent(79,6);
   ResoRow17->SetBinContent(80,2);
   ResoRow17->SetBinContent(81,8);
   ResoRow17->SetBinContent(82,2);
   ResoRow17->SetBinContent(83,3);
   ResoRow17->SetBinContent(84,4);
   ResoRow17->SetBinContent(85,9);
   ResoRow17->SetBinContent(86,2);
   ResoRow17->SetBinContent(87,5);
   ResoRow17->SetBinContent(88,2);
   ResoRow17->SetBinContent(89,4);
   ResoRow17->SetBinContent(90,4);
   ResoRow17->SetBinContent(91,3);
   ResoRow17->SetBinContent(93,2);
   ResoRow17->SetBinContent(94,2);
   ResoRow17->SetBinContent(95,1);
   ResoRow17->SetBinContent(96,1);
   ResoRow17->SetBinContent(97,2);
   ResoRow17->SetBinContent(98,3);
   ResoRow17->SetBinContent(100,1);
   ResoRow17->SetBinContent(101,28);
   ResoRow17->SetEntries(1498);
   
   TF1 *ResoRowFit17 = new TF1("ResoRowFit17","gaus",-1,1);
   ResoRowFit17->SetFillColor(19);
   ResoRowFit17->SetFillStyle(0);
   ResoRowFit17->SetLineWidth(3);
   ResoRowFit17->SetChisquare(121.1866);
   ResoRowFit17->SetNDF(93);
   ResoRowFit17->SetParameter(0,32.19662);
   ResoRowFit17->SetParError(0,1.179923);
   ResoRowFit17->SetParLimits(0,0,0);
   ResoRowFit17->SetParameter(1,0.000435095);
   ResoRowFit17->SetParError(1,0.009346724);
   ResoRowFit17->SetParLimits(1,0,0);
   ResoRowFit17->SetParameter(2,0.3280951);
   ResoRowFit17->SetParError(2,0.00823935);
   ResoRowFit17->SetParLimits(2,0,3.467749);
   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 = 1498   ");
   text = ptstats->AddText("Mean  = -0.002611");
   text = ptstats->AddText("RMS   = 0.3468");
   text = ptstats->AddText("#chi^{2} / ndf = 121.2 / 93");
   text = ptstats->AddText("Constant =  32.2 #pm 1.2 ");
   text = ptstats->AddText("Mean     = 0.0004351 #pm 0.0093467 ");
   text = ptstats->AddText("Sigma    = 0.3281 #pm 0.0082 ");
   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_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,-5.64375,1.25,50.79375);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow18 = new TH1F("ResoRow18","",100,-1,1);
   ResoRow18->SetBinContent(0,23);
   ResoRow18->SetBinContent(1,1);
   ResoRow18->SetBinContent(3,1);
   ResoRow18->SetBinContent(4,4);
   ResoRow18->SetBinContent(5,5);
   ResoRow18->SetBinContent(6,2);
   ResoRow18->SetBinContent(7,1);
   ResoRow18->SetBinContent(8,4);
   ResoRow18->SetBinContent(9,4);
   ResoRow18->SetBinContent(10,1);
   ResoRow18->SetBinContent(11,2);
   ResoRow18->SetBinContent(12,1);
   ResoRow18->SetBinContent(13,4);
   ResoRow18->SetBinContent(14,7);
   ResoRow18->SetBinContent(15,2);
   ResoRow18->SetBinContent(16,4);
   ResoRow18->SetBinContent(17,4);
   ResoRow18->SetBinContent(18,3);
   ResoRow18->SetBinContent(19,8);
   ResoRow18->SetBinContent(20,12);
   ResoRow18->SetBinContent(21,7);
   ResoRow18->SetBinContent(22,10);
   ResoRow18->SetBinContent(23,12);
   ResoRow18->SetBinContent(24,6);
   ResoRow18->SetBinContent(25,15);
   ResoRow18->SetBinContent(26,10);
   ResoRow18->SetBinContent(27,7);
   ResoRow18->SetBinContent(28,18);
   ResoRow18->SetBinContent(29,8);
   ResoRow18->SetBinContent(30,23);
   ResoRow18->SetBinContent(31,19);
   ResoRow18->SetBinContent(32,16);
   ResoRow18->SetBinContent(33,14);
   ResoRow18->SetBinContent(34,22);
   ResoRow18->SetBinContent(35,21);
   ResoRow18->SetBinContent(36,19);
   ResoRow18->SetBinContent(37,27);
   ResoRow18->SetBinContent(38,23);
   ResoRow18->SetBinContent(39,34);
   ResoRow18->SetBinContent(40,26);
   ResoRow18->SetBinContent(41,39);
   ResoRow18->SetBinContent(42,26);
   ResoRow18->SetBinContent(43,23);
   ResoRow18->SetBinContent(44,32);
   ResoRow18->SetBinContent(45,33);
   ResoRow18->SetBinContent(46,43);
   ResoRow18->SetBinContent(47,27);
   ResoRow18->SetBinContent(48,37);
   ResoRow18->SetBinContent(49,27);
   ResoRow18->SetBinContent(50,30);
   ResoRow18->SetBinContent(51,34);
   ResoRow18->SetBinContent(52,33);
   ResoRow18->SetBinContent(53,42);
   ResoRow18->SetBinContent(54,31);
   ResoRow18->SetBinContent(55,32);
   ResoRow18->SetBinContent(56,32);
   ResoRow18->SetBinContent(57,32);
   ResoRow18->SetBinContent(58,32);
   ResoRow18->SetBinContent(59,34);
   ResoRow18->SetBinContent(60,30);
   ResoRow18->SetBinContent(61,29);
   ResoRow18->SetBinContent(62,24);
   ResoRow18->SetBinContent(63,23);
   ResoRow18->SetBinContent(64,20);
   ResoRow18->SetBinContent(65,21);
   ResoRow18->SetBinContent(66,22);
   ResoRow18->SetBinContent(67,26);
   ResoRow18->SetBinContent(68,22);
   ResoRow18->SetBinContent(69,12);
   ResoRow18->SetBinContent(70,24);
   ResoRow18->SetBinContent(71,12);
   ResoRow18->SetBinContent(72,15);
   ResoRow18->SetBinContent(73,17);
   ResoRow18->SetBinContent(74,12);
   ResoRow18->SetBinContent(75,15);
   ResoRow18->SetBinContent(76,15);
   ResoRow18->SetBinContent(77,8);
   ResoRow18->SetBinContent(78,4);
   ResoRow18->SetBinContent(79,9);
   ResoRow18->SetBinContent(80,8);
   ResoRow18->SetBinContent(81,5);
   ResoRow18->SetBinContent(82,4);
   ResoRow18->SetBinContent(83,3);
   ResoRow18->SetBinContent(84,5);
   ResoRow18->SetBinContent(85,6);
   ResoRow18->SetBinContent(86,2);
   ResoRow18->SetBinContent(87,1);
   ResoRow18->SetBinContent(88,4);
   ResoRow18->SetBinContent(89,1);
   ResoRow18->SetBinContent(90,3);
   ResoRow18->SetBinContent(91,3);
   ResoRow18->SetBinContent(92,3);
   ResoRow18->SetBinContent(93,1);
   ResoRow18->SetBinContent(94,3);
   ResoRow18->SetBinContent(95,3);
   ResoRow18->SetBinContent(97,2);
   ResoRow18->SetBinContent(98,1);
   ResoRow18->SetBinContent(99,1);
   ResoRow18->SetBinContent(100,1);
   ResoRow18->SetBinContent(101,29);
   ResoRow18->SetEntries(1498);
   
   TF1 *ResoRowFit18 = new TF1("ResoRowFit18","gaus",-1,1);
   ResoRowFit18->SetFillColor(19);
   ResoRowFit18->SetFillStyle(0);
   ResoRowFit18->SetLineWidth(3);
   ResoRowFit18->SetChisquare(92.83416);
   ResoRowFit18->SetNDF(95);
   ResoRowFit18->SetParameter(0,33.12314);
   ResoRowFit18->SetParError(0,1.15192);
   ResoRowFit18->SetParLimits(0,0,0);
   ResoRowFit18->SetParameter(1,-0.001427561);
   ResoRowFit18->SetParError(1,0.009038609);
   ResoRowFit18->SetParLimits(1,0,0);
   ResoRowFit18->SetParameter(2,0.3269453);
   ResoRowFit18->SetParError(2,0.00729662);
   ResoRowFit18->SetParLimits(2,0,3.455794);
   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 = 1498   ");
   text = ptstats->AddText("Mean  = -0.007307");
   text = ptstats->AddText("RMS   = 0.3458");
   text = ptstats->AddText("#chi^{2} / ndf = 92.83 / 95");
   text = ptstats->AddText("Constant = 33.12 #pm 1.15 ");
   text = ptstats->AddText("Mean     = -0.001428 #pm 0.009039 ");
   text = ptstats->AddText("Sigma    = 0.3269 #pm 0.0073 ");
   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_6->Modified();
   c2->cd();
   c2->Modified();
   c2->cd();
   c2->SetSelected(c2);
}
