{
//=========Macro generated from canvas: c2/
//=========  (Thu Jun 10 21:53:02 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.64375,1.25,50.79375);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow13 = new TH1F("ResoRow13","",100,-1,1);
   ResoRow13->SetBinContent(0,48);
   ResoRow13->SetBinContent(1,3);
   ResoRow13->SetBinContent(2,3);
   ResoRow13->SetBinContent(3,3);
   ResoRow13->SetBinContent(4,3);
   ResoRow13->SetBinContent(5,2);
   ResoRow13->SetBinContent(6,2);
   ResoRow13->SetBinContent(7,4);
   ResoRow13->SetBinContent(8,4);
   ResoRow13->SetBinContent(9,4);
   ResoRow13->SetBinContent(10,6);
   ResoRow13->SetBinContent(11,4);
   ResoRow13->SetBinContent(12,5);
   ResoRow13->SetBinContent(13,8);
   ResoRow13->SetBinContent(14,3);
   ResoRow13->SetBinContent(15,10);
   ResoRow13->SetBinContent(16,5);
   ResoRow13->SetBinContent(17,6);
   ResoRow13->SetBinContent(18,7);
   ResoRow13->SetBinContent(19,16);
   ResoRow13->SetBinContent(20,9);
   ResoRow13->SetBinContent(21,8);
   ResoRow13->SetBinContent(22,11);
   ResoRow13->SetBinContent(23,15);
   ResoRow13->SetBinContent(24,8);
   ResoRow13->SetBinContent(25,11);
   ResoRow13->SetBinContent(26,9);
   ResoRow13->SetBinContent(27,13);
   ResoRow13->SetBinContent(28,17);
   ResoRow13->SetBinContent(29,16);
   ResoRow13->SetBinContent(30,22);
   ResoRow13->SetBinContent(31,16);
   ResoRow13->SetBinContent(32,23);
   ResoRow13->SetBinContent(33,18);
   ResoRow13->SetBinContent(34,27);
   ResoRow13->SetBinContent(35,23);
   ResoRow13->SetBinContent(36,29);
   ResoRow13->SetBinContent(37,22);
   ResoRow13->SetBinContent(38,22);
   ResoRow13->SetBinContent(39,31);
   ResoRow13->SetBinContent(40,25);
   ResoRow13->SetBinContent(41,22);
   ResoRow13->SetBinContent(42,26);
   ResoRow13->SetBinContent(43,25);
   ResoRow13->SetBinContent(44,32);
   ResoRow13->SetBinContent(45,32);
   ResoRow13->SetBinContent(46,24);
   ResoRow13->SetBinContent(47,37);
   ResoRow13->SetBinContent(48,37);
   ResoRow13->SetBinContent(49,32);
   ResoRow13->SetBinContent(50,43);
   ResoRow13->SetBinContent(51,42);
   ResoRow13->SetBinContent(52,37);
   ResoRow13->SetBinContent(53,27);
   ResoRow13->SetBinContent(54,40);
   ResoRow13->SetBinContent(55,33);
   ResoRow13->SetBinContent(56,22);
   ResoRow13->SetBinContent(57,28);
   ResoRow13->SetBinContent(58,32);
   ResoRow13->SetBinContent(59,26);
   ResoRow13->SetBinContent(60,26);
   ResoRow13->SetBinContent(61,22);
   ResoRow13->SetBinContent(62,29);
   ResoRow13->SetBinContent(63,25);
   ResoRow13->SetBinContent(64,16);
   ResoRow13->SetBinContent(65,18);
   ResoRow13->SetBinContent(66,19);
   ResoRow13->SetBinContent(67,23);
   ResoRow13->SetBinContent(68,19);
   ResoRow13->SetBinContent(69,20);
   ResoRow13->SetBinContent(70,18);
   ResoRow13->SetBinContent(71,16);
   ResoRow13->SetBinContent(72,9);
   ResoRow13->SetBinContent(73,11);
   ResoRow13->SetBinContent(74,15);
   ResoRow13->SetBinContent(75,12);
   ResoRow13->SetBinContent(76,18);
   ResoRow13->SetBinContent(77,11);
   ResoRow13->SetBinContent(78,8);
   ResoRow13->SetBinContent(79,13);
   ResoRow13->SetBinContent(80,8);
   ResoRow13->SetBinContent(81,1);
   ResoRow13->SetBinContent(82,12);
   ResoRow13->SetBinContent(83,10);
   ResoRow13->SetBinContent(84,8);
   ResoRow13->SetBinContent(85,5);
   ResoRow13->SetBinContent(86,5);
   ResoRow13->SetBinContent(87,5);
   ResoRow13->SetBinContent(88,9);
   ResoRow13->SetBinContent(89,3);
   ResoRow13->SetBinContent(90,4);
   ResoRow13->SetBinContent(91,2);
   ResoRow13->SetBinContent(92,4);
   ResoRow13->SetBinContent(93,3);
   ResoRow13->SetBinContent(94,4);
   ResoRow13->SetBinContent(95,2);
   ResoRow13->SetBinContent(96,3);
   ResoRow13->SetBinContent(97,2);
   ResoRow13->SetBinContent(98,1);
   ResoRow13->SetBinContent(99,4);
   ResoRow13->SetBinContent(100,3);
   ResoRow13->SetBinContent(101,55);
   ResoRow13->SetEntries(1619);
   
   TF1 *ResoRowFit13 = new TF1("ResoRowFit13","gaus",-1,1);
   ResoRowFit13->SetFillColor(19);
   ResoRowFit13->SetFillStyle(0);
   ResoRowFit13->SetLineWidth(3);
   ResoRowFit13->SetChisquare(117.7951);
   ResoRowFit13->SetNDF(97);
   ResoRowFit13->SetParameter(0,30.40238);
   ResoRowFit13->SetParError(0,1.091938);
   ResoRowFit13->SetParLimits(0,0,0);
   ResoRowFit13->SetParameter(1,-0.0351085);
   ResoRowFit13->SetParError(1,0.01021595);
   ResoRowFit13->SetParLimits(1,0,0);
   ResoRowFit13->SetParameter(2,0.3695542);
   ResoRowFit13->SetParError(2,0.009396385);
   ResoRowFit13->SetParLimits(2,0,3.824914);
   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 = 1619   ");
   text = ptstats->AddText("Mean  = -0.01469");
   text = ptstats->AddText("RMS   = 0.3826");
   text = ptstats->AddText("#chi^{2} / ndf = 117.8 / 97");
   text = ptstats->AddText("Constant =  30.4 #pm 1.1 ");
   text = ptstats->AddText("Mean     = -0.03511 #pm 0.01022 ");
   text = ptstats->AddText("Sigma    = 0.3696 #pm 0.0094 ");
   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,-4.9875,1.25,44.8875);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow14 = new TH1F("ResoRow14","",100,-1,1);
   ResoRow14->SetBinContent(0,31);
   ResoRow14->SetBinContent(1,1);
   ResoRow14->SetBinContent(2,4);
   ResoRow14->SetBinContent(3,1);
   ResoRow14->SetBinContent(4,2);
   ResoRow14->SetBinContent(5,2);
   ResoRow14->SetBinContent(6,2);
   ResoRow14->SetBinContent(7,5);
   ResoRow14->SetBinContent(8,4);
   ResoRow14->SetBinContent(9,6);
   ResoRow14->SetBinContent(10,3);
   ResoRow14->SetBinContent(11,1);
   ResoRow14->SetBinContent(12,9);
   ResoRow14->SetBinContent(13,5);
   ResoRow14->SetBinContent(14,4);
   ResoRow14->SetBinContent(15,12);
   ResoRow14->SetBinContent(16,9);
   ResoRow14->SetBinContent(17,9);
   ResoRow14->SetBinContent(18,11);
   ResoRow14->SetBinContent(19,10);
   ResoRow14->SetBinContent(20,7);
   ResoRow14->SetBinContent(21,15);
   ResoRow14->SetBinContent(22,13);
   ResoRow14->SetBinContent(23,8);
   ResoRow14->SetBinContent(24,20);
   ResoRow14->SetBinContent(25,13);
   ResoRow14->SetBinContent(26,12);
   ResoRow14->SetBinContent(27,9);
   ResoRow14->SetBinContent(28,12);
   ResoRow14->SetBinContent(29,15);
   ResoRow14->SetBinContent(30,21);
   ResoRow14->SetBinContent(31,15);
   ResoRow14->SetBinContent(32,19);
   ResoRow14->SetBinContent(33,26);
   ResoRow14->SetBinContent(34,19);
   ResoRow14->SetBinContent(35,17);
   ResoRow14->SetBinContent(36,28);
   ResoRow14->SetBinContent(37,31);
   ResoRow14->SetBinContent(38,20);
   ResoRow14->SetBinContent(39,25);
   ResoRow14->SetBinContent(40,29);
   ResoRow14->SetBinContent(41,27);
   ResoRow14->SetBinContent(42,24);
   ResoRow14->SetBinContent(43,30);
   ResoRow14->SetBinContent(44,32);
   ResoRow14->SetBinContent(45,31);
   ResoRow14->SetBinContent(46,34);
   ResoRow14->SetBinContent(47,31);
   ResoRow14->SetBinContent(48,28);
   ResoRow14->SetBinContent(49,38);
   ResoRow14->SetBinContent(50,28);
   ResoRow14->SetBinContent(51,29);
   ResoRow14->SetBinContent(52,38);
   ResoRow14->SetBinContent(53,32);
   ResoRow14->SetBinContent(54,32);
   ResoRow14->SetBinContent(55,29);
   ResoRow14->SetBinContent(56,32);
   ResoRow14->SetBinContent(57,31);
   ResoRow14->SetBinContent(58,24);
   ResoRow14->SetBinContent(59,28);
   ResoRow14->SetBinContent(60,24);
   ResoRow14->SetBinContent(61,24);
   ResoRow14->SetBinContent(62,24);
   ResoRow14->SetBinContent(63,31);
   ResoRow14->SetBinContent(64,21);
   ResoRow14->SetBinContent(65,25);
   ResoRow14->SetBinContent(66,23);
   ResoRow14->SetBinContent(67,20);
   ResoRow14->SetBinContent(68,19);
   ResoRow14->SetBinContent(69,20);
   ResoRow14->SetBinContent(70,20);
   ResoRow14->SetBinContent(71,20);
   ResoRow14->SetBinContent(72,12);
   ResoRow14->SetBinContent(73,20);
   ResoRow14->SetBinContent(74,14);
   ResoRow14->SetBinContent(75,15);
   ResoRow14->SetBinContent(76,8);
   ResoRow14->SetBinContent(77,12);
   ResoRow14->SetBinContent(78,9);
   ResoRow14->SetBinContent(79,10);
   ResoRow14->SetBinContent(80,10);
   ResoRow14->SetBinContent(81,8);
   ResoRow14->SetBinContent(82,9);
   ResoRow14->SetBinContent(83,16);
   ResoRow14->SetBinContent(84,8);
   ResoRow14->SetBinContent(85,5);
   ResoRow14->SetBinContent(86,3);
   ResoRow14->SetBinContent(87,7);
   ResoRow14->SetBinContent(88,2);
   ResoRow14->SetBinContent(89,5);
   ResoRow14->SetBinContent(90,7);
   ResoRow14->SetBinContent(91,3);
   ResoRow14->SetBinContent(92,3);
   ResoRow14->SetBinContent(93,5);
   ResoRow14->SetBinContent(94,2);
   ResoRow14->SetBinContent(95,2);
   ResoRow14->SetBinContent(96,5);
   ResoRow14->SetBinContent(97,3);
   ResoRow14->SetBinContent(99,1);
   ResoRow14->SetBinContent(100,1);
   ResoRow14->SetBinContent(101,60);
   ResoRow14->SetEntries(1619);
   
   TF1 *ResoRowFit14 = new TF1("ResoRowFit14","gaus",-1,1);
   ResoRowFit14->SetFillColor(19);
   ResoRowFit14->SetFillStyle(0);
   ResoRowFit14->SetLineWidth(3);
   ResoRowFit14->SetChisquare(75.47063);
   ResoRowFit14->SetNDF(96);
   ResoRowFit14->SetParameter(0,30.62776);
   ResoRowFit14->SetParError(0,1.029699);
   ResoRowFit14->SetParLimits(0,0,0);
   ResoRowFit14->SetParameter(1,-0.003057369);
   ResoRowFit14->SetParError(1,0.01041756);
   ResoRowFit14->SetParLimits(1,0,0);
   ResoRowFit14->SetParameter(2,0.3821443);
   ResoRowFit14->SetParError(2,0.008668208);
   ResoRowFit14->SetParLimits(2,0,3.844762);
   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 = 1619   ");
   text = ptstats->AddText("Mean  = -0.01038");
   text = ptstats->AddText("RMS   = 0.3843");
   text = ptstats->AddText("#chi^{2} / ndf = 75.47 / 96");
   text = ptstats->AddText("Constant = 30.63 #pm 1.03 ");
   text = ptstats->AddText("Mean     = -0.003057 #pm 0.010418 ");
   text = ptstats->AddText("Sigma    = 0.3821 #pm 0.0087 ");
   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.11875,1.25,46.06875);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow15 = new TH1F("ResoRow15","",100,-1,1);
   ResoRow15->SetBinContent(0,39);
   ResoRow15->SetBinContent(1,4);
   ResoRow15->SetBinContent(2,2);
   ResoRow15->SetBinContent(3,2);
   ResoRow15->SetBinContent(4,2);
   ResoRow15->SetBinContent(5,1);
   ResoRow15->SetBinContent(6,5);
   ResoRow15->SetBinContent(7,2);
   ResoRow15->SetBinContent(8,3);
   ResoRow15->SetBinContent(9,8);
   ResoRow15->SetBinContent(10,8);
   ResoRow15->SetBinContent(11,3);
   ResoRow15->SetBinContent(12,3);
   ResoRow15->SetBinContent(13,3);
   ResoRow15->SetBinContent(14,10);
   ResoRow15->SetBinContent(15,8);
   ResoRow15->SetBinContent(16,2);
   ResoRow15->SetBinContent(17,9);
   ResoRow15->SetBinContent(18,9);
   ResoRow15->SetBinContent(19,6);
   ResoRow15->SetBinContent(20,16);
   ResoRow15->SetBinContent(21,7);
   ResoRow15->SetBinContent(22,7);
   ResoRow15->SetBinContent(23,12);
   ResoRow15->SetBinContent(24,14);
   ResoRow15->SetBinContent(25,8);
   ResoRow15->SetBinContent(26,16);
   ResoRow15->SetBinContent(27,15);
   ResoRow15->SetBinContent(28,16);
   ResoRow15->SetBinContent(29,16);
   ResoRow15->SetBinContent(30,25);
   ResoRow15->SetBinContent(31,28);
   ResoRow15->SetBinContent(32,23);
   ResoRow15->SetBinContent(33,20);
   ResoRow15->SetBinContent(34,24);
   ResoRow15->SetBinContent(35,17);
   ResoRow15->SetBinContent(36,26);
   ResoRow15->SetBinContent(37,21);
   ResoRow15->SetBinContent(38,30);
   ResoRow15->SetBinContent(39,19);
   ResoRow15->SetBinContent(40,21);
   ResoRow15->SetBinContent(41,36);
   ResoRow15->SetBinContent(42,25);
   ResoRow15->SetBinContent(43,32);
   ResoRow15->SetBinContent(44,37);
   ResoRow15->SetBinContent(45,33);
   ResoRow15->SetBinContent(46,35);
   ResoRow15->SetBinContent(47,36);
   ResoRow15->SetBinContent(48,25);
   ResoRow15->SetBinContent(49,31);
   ResoRow15->SetBinContent(50,27);
   ResoRow15->SetBinContent(51,27);
   ResoRow15->SetBinContent(52,35);
   ResoRow15->SetBinContent(53,39);
   ResoRow15->SetBinContent(54,29);
   ResoRow15->SetBinContent(55,26);
   ResoRow15->SetBinContent(56,35);
   ResoRow15->SetBinContent(57,32);
   ResoRow15->SetBinContent(58,34);
   ResoRow15->SetBinContent(59,22);
   ResoRow15->SetBinContent(60,29);
   ResoRow15->SetBinContent(61,20);
   ResoRow15->SetBinContent(62,16);
   ResoRow15->SetBinContent(63,22);
   ResoRow15->SetBinContent(64,19);
   ResoRow15->SetBinContent(65,27);
   ResoRow15->SetBinContent(66,24);
   ResoRow15->SetBinContent(67,19);
   ResoRow15->SetBinContent(68,15);
   ResoRow15->SetBinContent(69,23);
   ResoRow15->SetBinContent(70,17);
   ResoRow15->SetBinContent(71,29);
   ResoRow15->SetBinContent(72,12);
   ResoRow15->SetBinContent(73,13);
   ResoRow15->SetBinContent(74,15);
   ResoRow15->SetBinContent(75,11);
   ResoRow15->SetBinContent(76,9);
   ResoRow15->SetBinContent(77,13);
   ResoRow15->SetBinContent(78,8);
   ResoRow15->SetBinContent(79,8);
   ResoRow15->SetBinContent(80,12);
   ResoRow15->SetBinContent(81,8);
   ResoRow15->SetBinContent(82,6);
   ResoRow15->SetBinContent(83,5);
   ResoRow15->SetBinContent(84,7);
   ResoRow15->SetBinContent(85,5);
   ResoRow15->SetBinContent(86,7);
   ResoRow15->SetBinContent(87,6);
   ResoRow15->SetBinContent(88,5);
   ResoRow15->SetBinContent(89,8);
   ResoRow15->SetBinContent(90,3);
   ResoRow15->SetBinContent(91,6);
   ResoRow15->SetBinContent(92,4);
   ResoRow15->SetBinContent(93,3);
   ResoRow15->SetBinContent(94,3);
   ResoRow15->SetBinContent(95,4);
   ResoRow15->SetBinContent(96,3);
   ResoRow15->SetBinContent(97,4);
   ResoRow15->SetBinContent(98,3);
   ResoRow15->SetBinContent(99,2);
   ResoRow15->SetBinContent(100,2);
   ResoRow15->SetBinContent(101,58);
   ResoRow15->SetEntries(1619);
   
   TF1 *ResoRowFit15 = new TF1("ResoRowFit15","gaus",-1,1);
   ResoRowFit15->SetFillColor(19);
   ResoRowFit15->SetFillStyle(0);
   ResoRowFit15->SetLineWidth(3);
   ResoRowFit15->SetChisquare(97.42034);
   ResoRowFit15->SetNDF(97);
   ResoRowFit15->SetParameter(0,29.73548);
   ResoRowFit15->SetParError(0,1.038357);
   ResoRowFit15->SetParLimits(0,0,0);
   ResoRowFit15->SetParameter(1,-0.005964608);
   ResoRowFit15->SetParError(1,0.01070681);
   ResoRowFit15->SetParLimits(1,0,0);
   ResoRowFit15->SetParameter(2,0.3859468);
   ResoRowFit15->SetParError(2,0.009462857);
   ResoRowFit15->SetParLimits(2,0,3.865149);
   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 = 1619   ");
   text = ptstats->AddText("Mean  = -0.01403");
   text = ptstats->AddText("RMS   = 0.3865");
   text = ptstats->AddText("#chi^{2} / ndf = 97.42 / 97");
   text = ptstats->AddText("Constant = 29.74 #pm 1.04 ");
   text = ptstats->AddText("Mean     = -0.005965 #pm 0.010707 ");
   text = ptstats->AddText("Sigma    = 0.3859 #pm 0.0095 ");
   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,42);
   ResoRow16->SetBinContent(1,3);
   ResoRow16->SetBinContent(2,1);
   ResoRow16->SetBinContent(3,5);
   ResoRow16->SetBinContent(4,7);
   ResoRow16->SetBinContent(5,3);
   ResoRow16->SetBinContent(6,4);
   ResoRow16->SetBinContent(7,3);
   ResoRow16->SetBinContent(8,7);
   ResoRow16->SetBinContent(9,2);
   ResoRow16->SetBinContent(10,6);
   ResoRow16->SetBinContent(11,9);
   ResoRow16->SetBinContent(12,7);
   ResoRow16->SetBinContent(13,11);
   ResoRow16->SetBinContent(14,6);
   ResoRow16->SetBinContent(15,7);
   ResoRow16->SetBinContent(16,8);
   ResoRow16->SetBinContent(17,2);
   ResoRow16->SetBinContent(18,7);
   ResoRow16->SetBinContent(19,7);
   ResoRow16->SetBinContent(20,6);
   ResoRow16->SetBinContent(21,8);
   ResoRow16->SetBinContent(22,8);
   ResoRow16->SetBinContent(23,7);
   ResoRow16->SetBinContent(24,6);
   ResoRow16->SetBinContent(25,14);
   ResoRow16->SetBinContent(26,9);
   ResoRow16->SetBinContent(27,14);
   ResoRow16->SetBinContent(28,11);
   ResoRow16->SetBinContent(29,11);
   ResoRow16->SetBinContent(30,22);
   ResoRow16->SetBinContent(31,22);
   ResoRow16->SetBinContent(32,18);
   ResoRow16->SetBinContent(33,24);
   ResoRow16->SetBinContent(34,27);
   ResoRow16->SetBinContent(35,17);
   ResoRow16->SetBinContent(36,23);
   ResoRow16->SetBinContent(37,29);
   ResoRow16->SetBinContent(38,21);
   ResoRow16->SetBinContent(39,30);
   ResoRow16->SetBinContent(40,27);
   ResoRow16->SetBinContent(41,35);
   ResoRow16->SetBinContent(42,17);
   ResoRow16->SetBinContent(43,40);
   ResoRow16->SetBinContent(44,29);
   ResoRow16->SetBinContent(45,29);
   ResoRow16->SetBinContent(46,35);
   ResoRow16->SetBinContent(47,25);
   ResoRow16->SetBinContent(48,38);
   ResoRow16->SetBinContent(49,25);
   ResoRow16->SetBinContent(50,28);
   ResoRow16->SetBinContent(51,29);
   ResoRow16->SetBinContent(52,37);
   ResoRow16->SetBinContent(53,30);
   ResoRow16->SetBinContent(54,34);
   ResoRow16->SetBinContent(55,28);
   ResoRow16->SetBinContent(56,45);
   ResoRow16->SetBinContent(57,30);
   ResoRow16->SetBinContent(58,40);
   ResoRow16->SetBinContent(59,30);
   ResoRow16->SetBinContent(60,41);
   ResoRow16->SetBinContent(61,27);
   ResoRow16->SetBinContent(62,22);
   ResoRow16->SetBinContent(63,25);
   ResoRow16->SetBinContent(64,21);
   ResoRow16->SetBinContent(65,15);
   ResoRow16->SetBinContent(66,14);
   ResoRow16->SetBinContent(67,22);
   ResoRow16->SetBinContent(68,17);
   ResoRow16->SetBinContent(69,15);
   ResoRow16->SetBinContent(70,18);
   ResoRow16->SetBinContent(71,19);
   ResoRow16->SetBinContent(72,10);
   ResoRow16->SetBinContent(73,16);
   ResoRow16->SetBinContent(74,18);
   ResoRow16->SetBinContent(75,10);
   ResoRow16->SetBinContent(76,7);
   ResoRow16->SetBinContent(77,9);
   ResoRow16->SetBinContent(78,7);
   ResoRow16->SetBinContent(79,11);
   ResoRow16->SetBinContent(80,9);
   ResoRow16->SetBinContent(81,6);
   ResoRow16->SetBinContent(82,11);
   ResoRow16->SetBinContent(83,9);
   ResoRow16->SetBinContent(84,12);
   ResoRow16->SetBinContent(85,5);
   ResoRow16->SetBinContent(86,5);
   ResoRow16->SetBinContent(87,5);
   ResoRow16->SetBinContent(88,5);
   ResoRow16->SetBinContent(89,3);
   ResoRow16->SetBinContent(90,3);
   ResoRow16->SetBinContent(91,7);
   ResoRow16->SetBinContent(92,2);
   ResoRow16->SetBinContent(94,3);
   ResoRow16->SetBinContent(95,4);
   ResoRow16->SetBinContent(96,3);
   ResoRow16->SetBinContent(97,7);
   ResoRow16->SetBinContent(98,3);
   ResoRow16->SetBinContent(99,2);
   ResoRow16->SetBinContent(100,3);
   ResoRow16->SetBinContent(101,63);
   ResoRow16->SetEntries(1619);
   
   TF1 *ResoRowFit16 = new TF1("ResoRowFit16","gaus",-1,1);
   ResoRowFit16->SetFillColor(19);
   ResoRowFit16->SetFillStyle(0);
   ResoRowFit16->SetLineWidth(3);
   ResoRowFit16->SetChisquare(127.9249);
   ResoRowFit16->SetNDF(96);
   ResoRowFit16->SetParameter(0,29.6216);
   ResoRowFit16->SetParError(0,1.097582);
   ResoRowFit16->SetParLimits(0,0,0);
   ResoRowFit16->SetParameter(1,-0.0003416408);
   ResoRowFit16->SetParError(1,0.01050802);
   ResoRowFit16->SetParLimits(1,0,0);
   ResoRowFit16->SetParameter(2,0.3769869);
   ResoRowFit16->SetParError(2,0.0103464);
   ResoRowFit16->SetParLimits(2,0,3.869559);
   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 = 1619   ");
   text = ptstats->AddText("Mean  = -0.01082");
   text = ptstats->AddText("RMS   = 0.3868");
   text = ptstats->AddText("#chi^{2} / ndf = 127.9 / 96");
   text = ptstats->AddText("Constant = 29.62 #pm 1.10 ");
   text = ptstats->AddText("Mean     = -0.0003416 #pm 0.0105080 ");
   text = ptstats->AddText("Sigma    = 0.377 #pm 0.010 ");
   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.90625,1.25,53.15625);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow17 = new TH1F("ResoRow17","",100,-1,1);
   ResoRow17->SetBinContent(0,50);
   ResoRow17->SetBinContent(1,4);
   ResoRow17->SetBinContent(2,1);
   ResoRow17->SetBinContent(3,3);
   ResoRow17->SetBinContent(4,3);
   ResoRow17->SetBinContent(5,7);
   ResoRow17->SetBinContent(6,6);
   ResoRow17->SetBinContent(7,3);
   ResoRow17->SetBinContent(8,3);
   ResoRow17->SetBinContent(9,2);
   ResoRow17->SetBinContent(10,7);
   ResoRow17->SetBinContent(11,3);
   ResoRow17->SetBinContent(12,9);
   ResoRow17->SetBinContent(13,4);
   ResoRow17->SetBinContent(14,3);
   ResoRow17->SetBinContent(15,7);
   ResoRow17->SetBinContent(17,10);
   ResoRow17->SetBinContent(18,11);
   ResoRow17->SetBinContent(19,8);
   ResoRow17->SetBinContent(20,9);
   ResoRow17->SetBinContent(21,11);
   ResoRow17->SetBinContent(22,14);
   ResoRow17->SetBinContent(23,9);
   ResoRow17->SetBinContent(24,19);
   ResoRow17->SetBinContent(25,12);
   ResoRow17->SetBinContent(26,10);
   ResoRow17->SetBinContent(27,18);
   ResoRow17->SetBinContent(28,18);
   ResoRow17->SetBinContent(29,15);
   ResoRow17->SetBinContent(30,21);
   ResoRow17->SetBinContent(31,12);
   ResoRow17->SetBinContent(32,23);
   ResoRow17->SetBinContent(33,19);
   ResoRow17->SetBinContent(34,16);
   ResoRow17->SetBinContent(35,19);
   ResoRow17->SetBinContent(36,15);
   ResoRow17->SetBinContent(37,25);
   ResoRow17->SetBinContent(38,21);
   ResoRow17->SetBinContent(39,33);
   ResoRow17->SetBinContent(40,34);
   ResoRow17->SetBinContent(41,34);
   ResoRow17->SetBinContent(42,20);
   ResoRow17->SetBinContent(43,26);
   ResoRow17->SetBinContent(44,21);
   ResoRow17->SetBinContent(45,35);
   ResoRow17->SetBinContent(46,28);
   ResoRow17->SetBinContent(47,35);
   ResoRow17->SetBinContent(48,28);
   ResoRow17->SetBinContent(49,22);
   ResoRow17->SetBinContent(50,42);
   ResoRow17->SetBinContent(51,31);
   ResoRow17->SetBinContent(52,45);
   ResoRow17->SetBinContent(53,43);
   ResoRow17->SetBinContent(54,34);
   ResoRow17->SetBinContent(55,35);
   ResoRow17->SetBinContent(56,38);
   ResoRow17->SetBinContent(57,27);
   ResoRow17->SetBinContent(58,36);
   ResoRow17->SetBinContent(59,32);
   ResoRow17->SetBinContent(60,26);
   ResoRow17->SetBinContent(61,24);
   ResoRow17->SetBinContent(62,20);
   ResoRow17->SetBinContent(63,31);
   ResoRow17->SetBinContent(64,21);
   ResoRow17->SetBinContent(65,16);
   ResoRow17->SetBinContent(66,20);
   ResoRow17->SetBinContent(67,18);
   ResoRow17->SetBinContent(68,12);
   ResoRow17->SetBinContent(69,10);
   ResoRow17->SetBinContent(70,17);
   ResoRow17->SetBinContent(71,18);
   ResoRow17->SetBinContent(72,15);
   ResoRow17->SetBinContent(73,16);
   ResoRow17->SetBinContent(74,9);
   ResoRow17->SetBinContent(75,10);
   ResoRow17->SetBinContent(76,11);
   ResoRow17->SetBinContent(77,11);
   ResoRow17->SetBinContent(78,11);
   ResoRow17->SetBinContent(79,8);
   ResoRow17->SetBinContent(80,11);
   ResoRow17->SetBinContent(81,7);
   ResoRow17->SetBinContent(82,9);
   ResoRow17->SetBinContent(83,6);
   ResoRow17->SetBinContent(84,13);
   ResoRow17->SetBinContent(85,7);
   ResoRow17->SetBinContent(86,7);
   ResoRow17->SetBinContent(87,7);
   ResoRow17->SetBinContent(88,11);
   ResoRow17->SetBinContent(89,4);
   ResoRow17->SetBinContent(90,5);
   ResoRow17->SetBinContent(91,2);
   ResoRow17->SetBinContent(92,4);
   ResoRow17->SetBinContent(93,4);
   ResoRow17->SetBinContent(94,4);
   ResoRow17->SetBinContent(95,3);
   ResoRow17->SetBinContent(96,4);
   ResoRow17->SetBinContent(97,2);
   ResoRow17->SetBinContent(98,1);
   ResoRow17->SetBinContent(99,5);
   ResoRow17->SetBinContent(100,1);
   ResoRow17->SetBinContent(101,49);
   ResoRow17->SetEntries(1619);
   
   TF1 *ResoRowFit17 = new TF1("ResoRowFit17","gaus",-1,1);
   ResoRowFit17->SetFillColor(19);
   ResoRowFit17->SetFillStyle(0);
   ResoRowFit17->SetLineWidth(3);
   ResoRowFit17->SetChisquare(110.1045);
   ResoRowFit17->SetNDF(96);
   ResoRowFit17->SetParameter(0,28.84071);
   ResoRowFit17->SetParError(0,1.018809);
   ResoRowFit17->SetParLimits(0,0,0);
   ResoRowFit17->SetParameter(1,-0.0131743);
   ResoRowFit17->SetParError(1,0.0110985);
   ResoRowFit17->SetParLimits(1,0,0);
   ResoRowFit17->SetParameter(2,0.3965563);
   ResoRowFit17->SetParError(2,0.01015809);
   ResoRowFit17->SetParLimits(2,0,3.886932);
   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 = 1619   ");
   text = ptstats->AddText("Mean  = -0.01001");
   text = ptstats->AddText("RMS   = 0.3888");
   text = ptstats->AddText("#chi^{2} / ndf = 110.1 / 96");
   text = ptstats->AddText("Constant = 28.84 #pm 1.02 ");
   text = ptstats->AddText("Mean     = -0.01317 #pm 0.01110 ");
   text = ptstats->AddText("Sigma    = 0.3966 #pm 0.0102 ");
   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,44);
   ResoRow18->SetBinContent(1,2);
   ResoRow18->SetBinContent(2,4);
   ResoRow18->SetBinContent(3,3);
   ResoRow18->SetBinContent(4,1);
   ResoRow18->SetBinContent(5,2);
   ResoRow18->SetBinContent(6,5);
   ResoRow18->SetBinContent(7,6);
   ResoRow18->SetBinContent(8,2);
   ResoRow18->SetBinContent(9,5);
   ResoRow18->SetBinContent(10,4);
   ResoRow18->SetBinContent(11,6);
   ResoRow18->SetBinContent(12,4);
   ResoRow18->SetBinContent(13,3);
   ResoRow18->SetBinContent(14,10);
   ResoRow18->SetBinContent(15,5);
   ResoRow18->SetBinContent(16,7);
   ResoRow18->SetBinContent(17,5);
   ResoRow18->SetBinContent(18,8);
   ResoRow18->SetBinContent(19,9);
   ResoRow18->SetBinContent(20,6);
   ResoRow18->SetBinContent(21,7);
   ResoRow18->SetBinContent(22,16);
   ResoRow18->SetBinContent(23,16);
   ResoRow18->SetBinContent(24,8);
   ResoRow18->SetBinContent(25,10);
   ResoRow18->SetBinContent(26,11);
   ResoRow18->SetBinContent(27,14);
   ResoRow18->SetBinContent(28,10);
   ResoRow18->SetBinContent(29,24);
   ResoRow18->SetBinContent(30,19);
   ResoRow18->SetBinContent(31,14);
   ResoRow18->SetBinContent(32,23);
   ResoRow18->SetBinContent(33,19);
   ResoRow18->SetBinContent(34,16);
   ResoRow18->SetBinContent(35,30);
   ResoRow18->SetBinContent(36,20);
   ResoRow18->SetBinContent(37,28);
   ResoRow18->SetBinContent(38,22);
   ResoRow18->SetBinContent(39,26);
   ResoRow18->SetBinContent(40,23);
   ResoRow18->SetBinContent(41,28);
   ResoRow18->SetBinContent(42,33);
   ResoRow18->SetBinContent(43,27);
   ResoRow18->SetBinContent(44,39);
   ResoRow18->SetBinContent(45,39);
   ResoRow18->SetBinContent(46,32);
   ResoRow18->SetBinContent(47,35);
   ResoRow18->SetBinContent(48,34);
   ResoRow18->SetBinContent(49,26);
   ResoRow18->SetBinContent(50,40);
   ResoRow18->SetBinContent(51,43);
   ResoRow18->SetBinContent(52,33);
   ResoRow18->SetBinContent(53,26);
   ResoRow18->SetBinContent(54,28);
   ResoRow18->SetBinContent(55,34);
   ResoRow18->SetBinContent(56,30);
   ResoRow18->SetBinContent(57,27);
   ResoRow18->SetBinContent(58,30);
   ResoRow18->SetBinContent(59,27);
   ResoRow18->SetBinContent(60,26);
   ResoRow18->SetBinContent(61,25);
   ResoRow18->SetBinContent(62,30);
   ResoRow18->SetBinContent(63,25);
   ResoRow18->SetBinContent(64,21);
   ResoRow18->SetBinContent(65,22);
   ResoRow18->SetBinContent(66,21);
   ResoRow18->SetBinContent(67,11);
   ResoRow18->SetBinContent(68,28);
   ResoRow18->SetBinContent(69,16);
   ResoRow18->SetBinContent(70,19);
   ResoRow18->SetBinContent(71,22);
   ResoRow18->SetBinContent(72,12);
   ResoRow18->SetBinContent(73,13);
   ResoRow18->SetBinContent(74,19);
   ResoRow18->SetBinContent(75,17);
   ResoRow18->SetBinContent(76,12);
   ResoRow18->SetBinContent(77,9);
   ResoRow18->SetBinContent(78,11);
   ResoRow18->SetBinContent(79,11);
   ResoRow18->SetBinContent(80,14);
   ResoRow18->SetBinContent(81,13);
   ResoRow18->SetBinContent(82,8);
   ResoRow18->SetBinContent(83,9);
   ResoRow18->SetBinContent(84,6);
   ResoRow18->SetBinContent(85,9);
   ResoRow18->SetBinContent(86,4);
   ResoRow18->SetBinContent(87,4);
   ResoRow18->SetBinContent(88,2);
   ResoRow18->SetBinContent(89,5);
   ResoRow18->SetBinContent(90,4);
   ResoRow18->SetBinContent(91,1);
   ResoRow18->SetBinContent(92,4);
   ResoRow18->SetBinContent(93,6);
   ResoRow18->SetBinContent(94,2);
   ResoRow18->SetBinContent(95,1);
   ResoRow18->SetBinContent(96,1);
   ResoRow18->SetBinContent(97,3);
   ResoRow18->SetBinContent(98,2);
   ResoRow18->SetBinContent(99,1);
   ResoRow18->SetBinContent(100,1);
   ResoRow18->SetBinContent(101,41);
   ResoRow18->SetEntries(1619);
   
   TF1 *ResoRowFit18 = new TF1("ResoRowFit18","gaus",-1,1);
   ResoRowFit18->SetFillColor(19);
   ResoRowFit18->SetFillStyle(0);
   ResoRowFit18->SetLineWidth(3);
   ResoRowFit18->SetChisquare(87.06172);
   ResoRowFit18->SetNDF(97);
   ResoRowFit18->SetParameter(0,31.1162);
   ResoRowFit18->SetParError(0,1.054281);
   ResoRowFit18->SetParLimits(0,0,0);
   ResoRowFit18->SetParameter(1,-0.007810643);
   ResoRowFit18->SetParError(1,0.01016788);
   ResoRowFit18->SetParLimits(1,0,0);
   ResoRowFit18->SetParameter(2,0.3738206);
   ResoRowFit18->SetParError(2,0.008499554);
   ResoRowFit18->SetParLimits(2,0,3.769856);
   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 = 1619   ");
   text = ptstats->AddText("Mean  = -0.008813");
   text = ptstats->AddText("RMS   = 0.3772");
   text = ptstats->AddText("#chi^{2} / ndf = 87.06 / 97");
   text = ptstats->AddText("Constant = 31.12 #pm 1.05 ");
   text = ptstats->AddText("Mean     = -0.007811 #pm 0.010168 ");
   text = ptstats->AddText("Sigma    = 0.3738 #pm 0.0085 ");
   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);
}
