{
//=========Macro generated from canvas: c2/
//=========  (Mon Jun  7 22:28:38 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,-8.79375,1.25,79.14375);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow13 = new TH1F("ResoRow13","",100,-1,1);
   ResoRow13->SetBinContent(0,17);
   ResoRow13->SetBinContent(2,1);
   ResoRow13->SetBinContent(6,1);
   ResoRow13->SetBinContent(7,1);
   ResoRow13->SetBinContent(8,1);
   ResoRow13->SetBinContent(11,1);
   ResoRow13->SetBinContent(12,2);
   ResoRow13->SetBinContent(13,2);
   ResoRow13->SetBinContent(14,1);
   ResoRow13->SetBinContent(17,3);
   ResoRow13->SetBinContent(18,1);
   ResoRow13->SetBinContent(19,1);
   ResoRow13->SetBinContent(20,2);
   ResoRow13->SetBinContent(22,1);
   ResoRow13->SetBinContent(23,4);
   ResoRow13->SetBinContent(24,6);
   ResoRow13->SetBinContent(25,6);
   ResoRow13->SetBinContent(26,3);
   ResoRow13->SetBinContent(27,7);
   ResoRow13->SetBinContent(28,8);
   ResoRow13->SetBinContent(29,6);
   ResoRow13->SetBinContent(30,10);
   ResoRow13->SetBinContent(31,13);
   ResoRow13->SetBinContent(32,13);
   ResoRow13->SetBinContent(33,11);
   ResoRow13->SetBinContent(34,12);
   ResoRow13->SetBinContent(35,18);
   ResoRow13->SetBinContent(36,19);
   ResoRow13->SetBinContent(37,21);
   ResoRow13->SetBinContent(38,41);
   ResoRow13->SetBinContent(39,23);
   ResoRow13->SetBinContent(40,27);
   ResoRow13->SetBinContent(41,32);
   ResoRow13->SetBinContent(42,55);
   ResoRow13->SetBinContent(43,42);
   ResoRow13->SetBinContent(44,60);
   ResoRow13->SetBinContent(45,54);
   ResoRow13->SetBinContent(46,55);
   ResoRow13->SetBinContent(47,59);
   ResoRow13->SetBinContent(48,63);
   ResoRow13->SetBinContent(49,66);
   ResoRow13->SetBinContent(50,67);
   ResoRow13->SetBinContent(51,67);
   ResoRow13->SetBinContent(52,51);
   ResoRow13->SetBinContent(53,62);
   ResoRow13->SetBinContent(54,52);
   ResoRow13->SetBinContent(55,46);
   ResoRow13->SetBinContent(56,42);
   ResoRow13->SetBinContent(57,46);
   ResoRow13->SetBinContent(58,45);
   ResoRow13->SetBinContent(59,50);
   ResoRow13->SetBinContent(60,41);
   ResoRow13->SetBinContent(61,27);
   ResoRow13->SetBinContent(62,29);
   ResoRow13->SetBinContent(63,24);
   ResoRow13->SetBinContent(64,26);
   ResoRow13->SetBinContent(65,28);
   ResoRow13->SetBinContent(66,26);
   ResoRow13->SetBinContent(67,14);
   ResoRow13->SetBinContent(68,13);
   ResoRow13->SetBinContent(69,7);
   ResoRow13->SetBinContent(70,8);
   ResoRow13->SetBinContent(71,9);
   ResoRow13->SetBinContent(72,5);
   ResoRow13->SetBinContent(73,5);
   ResoRow13->SetBinContent(74,7);
   ResoRow13->SetBinContent(75,5);
   ResoRow13->SetBinContent(76,1);
   ResoRow13->SetBinContent(77,4);
   ResoRow13->SetBinContent(78,3);
   ResoRow13->SetBinContent(79,5);
   ResoRow13->SetBinContent(80,3);
   ResoRow13->SetBinContent(81,2);
   ResoRow13->SetBinContent(82,2);
   ResoRow13->SetBinContent(83,2);
   ResoRow13->SetBinContent(84,1);
   ResoRow13->SetBinContent(85,1);
   ResoRow13->SetBinContent(86,2);
   ResoRow13->SetBinContent(87,3);
   ResoRow13->SetBinContent(88,2);
   ResoRow13->SetBinContent(91,1);
   ResoRow13->SetBinContent(92,1);
   ResoRow13->SetBinContent(93,1);
   ResoRow13->SetBinContent(97,1);
   ResoRow13->SetBinContent(98,2);
   ResoRow13->SetBinContent(99,1);
   ResoRow13->SetBinContent(100,1);
   ResoRow13->SetBinContent(101,17);
   ResoRow13->SetEntries(1627);
   
   TF1 *ResoRowFit13 = new TF1("ResoRowFit13","gaus",-1,1);
   ResoRowFit13->SetFillColor(19);
   ResoRowFit13->SetFillStyle(0);
   ResoRowFit13->SetLineWidth(3);
   ResoRowFit13->SetChisquare(91.66201);
   ResoRowFit13->SetNDF(83);
   ResoRowFit13->SetParameter(0,57.78655);
   ResoRowFit13->SetParError(0,1.97085);
   ResoRowFit13->SetParLimits(0,0,0);
   ResoRowFit13->SetParameter(1,-0.003481675);
   ResoRowFit13->SetParError(1,0.005387849);
   ResoRowFit13->SetParLimits(1,0,0);
   ResoRowFit13->SetParameter(2,0.2075253);
   ResoRowFit13->SetParError(2,0.004670525);
   ResoRowFit13->SetParLimits(2,0,2.38722);
   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 = 1627   ");
   text = ptstats->AddText("Mean  = 0.0004141");
   text = ptstats->AddText("RMS   = 0.2389");
   text = ptstats->AddText("#chi^{2} / ndf = 91.66 / 83");
   text = ptstats->AddText("Constant = 57.79 #pm 1.97 ");
   text = ptstats->AddText("Mean     = -0.003482 #pm 0.005388 ");
   text = ptstats->AddText("Sigma    = 0.2075 #pm 0.0047 ");
   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,-9.05625,1.25,81.50625);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow14 = new TH1F("ResoRow14","",100,-1,1);
   ResoRow14->SetBinContent(0,17);
   ResoRow14->SetBinContent(1,1);
   ResoRow14->SetBinContent(2,1);
   ResoRow14->SetBinContent(3,2);
   ResoRow14->SetBinContent(4,1);
   ResoRow14->SetBinContent(8,1);
   ResoRow14->SetBinContent(10,2);
   ResoRow14->SetBinContent(16,1);
   ResoRow14->SetBinContent(18,3);
   ResoRow14->SetBinContent(19,1);
   ResoRow14->SetBinContent(20,1);
   ResoRow14->SetBinContent(21,2);
   ResoRow14->SetBinContent(22,2);
   ResoRow14->SetBinContent(23,3);
   ResoRow14->SetBinContent(24,7);
   ResoRow14->SetBinContent(25,5);
   ResoRow14->SetBinContent(26,4);
   ResoRow14->SetBinContent(27,7);
   ResoRow14->SetBinContent(28,9);
   ResoRow14->SetBinContent(29,8);
   ResoRow14->SetBinContent(30,8);
   ResoRow14->SetBinContent(31,15);
   ResoRow14->SetBinContent(32,9);
   ResoRow14->SetBinContent(33,14);
   ResoRow14->SetBinContent(34,16);
   ResoRow14->SetBinContent(35,18);
   ResoRow14->SetBinContent(36,20);
   ResoRow14->SetBinContent(37,23);
   ResoRow14->SetBinContent(38,23);
   ResoRow14->SetBinContent(39,28);
   ResoRow14->SetBinContent(40,33);
   ResoRow14->SetBinContent(41,37);
   ResoRow14->SetBinContent(42,38);
   ResoRow14->SetBinContent(43,36);
   ResoRow14->SetBinContent(44,51);
   ResoRow14->SetBinContent(45,64);
   ResoRow14->SetBinContent(46,52);
   ResoRow14->SetBinContent(47,60);
   ResoRow14->SetBinContent(48,61);
   ResoRow14->SetBinContent(49,58);
   ResoRow14->SetBinContent(50,61);
   ResoRow14->SetBinContent(51,56);
   ResoRow14->SetBinContent(52,69);
   ResoRow14->SetBinContent(53,63);
   ResoRow14->SetBinContent(54,56);
   ResoRow14->SetBinContent(55,64);
   ResoRow14->SetBinContent(56,50);
   ResoRow14->SetBinContent(57,47);
   ResoRow14->SetBinContent(58,53);
   ResoRow14->SetBinContent(59,40);
   ResoRow14->SetBinContent(60,33);
   ResoRow14->SetBinContent(61,37);
   ResoRow14->SetBinContent(62,29);
   ResoRow14->SetBinContent(63,33);
   ResoRow14->SetBinContent(64,20);
   ResoRow14->SetBinContent(65,14);
   ResoRow14->SetBinContent(66,22);
   ResoRow14->SetBinContent(67,20);
   ResoRow14->SetBinContent(68,15);
   ResoRow14->SetBinContent(69,14);
   ResoRow14->SetBinContent(70,9);
   ResoRow14->SetBinContent(71,5);
   ResoRow14->SetBinContent(72,7);
   ResoRow14->SetBinContent(73,9);
   ResoRow14->SetBinContent(74,4);
   ResoRow14->SetBinContent(75,5);
   ResoRow14->SetBinContent(76,3);
   ResoRow14->SetBinContent(78,2);
   ResoRow14->SetBinContent(79,2);
   ResoRow14->SetBinContent(80,2);
   ResoRow14->SetBinContent(81,2);
   ResoRow14->SetBinContent(82,4);
   ResoRow14->SetBinContent(83,1);
   ResoRow14->SetBinContent(85,1);
   ResoRow14->SetBinContent(86,2);
   ResoRow14->SetBinContent(87,1);
   ResoRow14->SetBinContent(91,1);
   ResoRow14->SetBinContent(93,1);
   ResoRow14->SetBinContent(96,1);
   ResoRow14->SetBinContent(98,2);
   ResoRow14->SetBinContent(99,1);
   ResoRow14->SetBinContent(101,24);
   ResoRow14->SetEntries(1627);
   
   TF1 *ResoRowFit14 = new TF1("ResoRowFit14","gaus",-1,1);
   ResoRowFit14->SetFillColor(19);
   ResoRowFit14->SetFillStyle(0);
   ResoRowFit14->SetLineWidth(3);
   ResoRowFit14->SetChisquare(62.17256);
   ResoRowFit14->SetNDF(77);
   ResoRowFit14->SetParameter(0,57.95359);
   ResoRowFit14->SetParError(0,1.980514);
   ResoRowFit14->SetParLimits(0,0,0);
   ResoRowFit14->SetParameter(1,-0.0004624667);
   ResoRowFit14->SetParError(1,0.005455315);
   ResoRowFit14->SetParLimits(1,0,0);
   ResoRowFit14->SetParameter(2,0.2103481);
   ResoRowFit14->SetParError(2,0.004851443);
   ResoRowFit14->SetParLimits(2,0,2.325668);
   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 = 1627   ");
   text = ptstats->AddText("Mean  = -0.001369");
   text = ptstats->AddText("RMS   = 0.2324");
   text = ptstats->AddText("#chi^{2} / ndf = 62.17 / 77");
   text = ptstats->AddText("Constant = 57.95 #pm 1.98 ");
   text = ptstats->AddText("Mean     = -0.0004625 #pm 0.0054553 ");
   text = ptstats->AddText("Sigma    = 0.2103 #pm 0.0049 ");
   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,-9.31875,1.25,83.86875);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow15 = new TH1F("ResoRow15","",100,-1,1);
   ResoRow15->SetBinContent(0,17);
   ResoRow15->SetBinContent(1,1);
   ResoRow15->SetBinContent(5,1);
   ResoRow15->SetBinContent(10,1);
   ResoRow15->SetBinContent(12,2);
   ResoRow15->SetBinContent(13,1);
   ResoRow15->SetBinContent(14,2);
   ResoRow15->SetBinContent(16,2);
   ResoRow15->SetBinContent(17,1);
   ResoRow15->SetBinContent(20,4);
   ResoRow15->SetBinContent(21,3);
   ResoRow15->SetBinContent(22,2);
   ResoRow15->SetBinContent(23,3);
   ResoRow15->SetBinContent(24,6);
   ResoRow15->SetBinContent(25,4);
   ResoRow15->SetBinContent(26,3);
   ResoRow15->SetBinContent(27,5);
   ResoRow15->SetBinContent(28,3);
   ResoRow15->SetBinContent(29,12);
   ResoRow15->SetBinContent(30,6);
   ResoRow15->SetBinContent(31,13);
   ResoRow15->SetBinContent(32,12);
   ResoRow15->SetBinContent(33,14);
   ResoRow15->SetBinContent(34,15);
   ResoRow15->SetBinContent(35,14);
   ResoRow15->SetBinContent(36,24);
   ResoRow15->SetBinContent(37,22);
   ResoRow15->SetBinContent(38,27);
   ResoRow15->SetBinContent(39,32);
   ResoRow15->SetBinContent(40,39);
   ResoRow15->SetBinContent(41,43);
   ResoRow15->SetBinContent(42,34);
   ResoRow15->SetBinContent(43,56);
   ResoRow15->SetBinContent(44,55);
   ResoRow15->SetBinContent(45,50);
   ResoRow15->SetBinContent(46,62);
   ResoRow15->SetBinContent(47,49);
   ResoRow15->SetBinContent(48,68);
   ResoRow15->SetBinContent(49,68);
   ResoRow15->SetBinContent(50,49);
   ResoRow15->SetBinContent(51,58);
   ResoRow15->SetBinContent(52,71);
   ResoRow15->SetBinContent(53,62);
   ResoRow15->SetBinContent(54,62);
   ResoRow15->SetBinContent(55,55);
   ResoRow15->SetBinContent(56,50);
   ResoRow15->SetBinContent(57,41);
   ResoRow15->SetBinContent(58,38);
   ResoRow15->SetBinContent(59,51);
   ResoRow15->SetBinContent(60,44);
   ResoRow15->SetBinContent(61,31);
   ResoRow15->SetBinContent(62,30);
   ResoRow15->SetBinContent(63,34);
   ResoRow15->SetBinContent(64,14);
   ResoRow15->SetBinContent(65,22);
   ResoRow15->SetBinContent(66,12);
   ResoRow15->SetBinContent(67,13);
   ResoRow15->SetBinContent(68,10);
   ResoRow15->SetBinContent(69,9);
   ResoRow15->SetBinContent(70,9);
   ResoRow15->SetBinContent(71,9);
   ResoRow15->SetBinContent(72,7);
   ResoRow15->SetBinContent(73,3);
   ResoRow15->SetBinContent(74,5);
   ResoRow15->SetBinContent(75,10);
   ResoRow15->SetBinContent(76,4);
   ResoRow15->SetBinContent(77,1);
   ResoRow15->SetBinContent(78,2);
   ResoRow15->SetBinContent(79,1);
   ResoRow15->SetBinContent(80,4);
   ResoRow15->SetBinContent(81,3);
   ResoRow15->SetBinContent(82,3);
   ResoRow15->SetBinContent(83,2);
   ResoRow15->SetBinContent(84,2);
   ResoRow15->SetBinContent(85,2);
   ResoRow15->SetBinContent(88,1);
   ResoRow15->SetBinContent(90,2);
   ResoRow15->SetBinContent(91,1);
   ResoRow15->SetBinContent(92,2);
   ResoRow15->SetBinContent(97,2);
   ResoRow15->SetBinContent(98,1);
   ResoRow15->SetBinContent(100,2);
   ResoRow15->SetBinContent(101,17);
   ResoRow15->SetEntries(1627);
   
   TF1 *ResoRowFit15 = new TF1("ResoRowFit15","gaus",-1,1);
   ResoRowFit15->SetFillColor(19);
   ResoRowFit15->SetFillStyle(0);
   ResoRowFit15->SetLineWidth(3);
   ResoRowFit15->SetChisquare(89.76734);
   ResoRowFit15->SetNDF(78);
   ResoRowFit15->SetParameter(0,59.49928);
   ResoRowFit15->SetParError(0,2.020983);
   ResoRowFit15->SetParLimits(0,0,0);
   ResoRowFit15->SetParameter(1,-0.008605989);
   ResoRowFit15->SetParError(1,0.005228429);
   ResoRowFit15->SetParLimits(1,0,0);
   ResoRowFit15->SetParameter(2,0.2017634);
   ResoRowFit15->SetParError(2,0.004498458);
   ResoRowFit15->SetParLimits(2,0,2.337309);
   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 = 1627   ");
   text = ptstats->AddText("Mean  = -0.002672");
   text = ptstats->AddText("RMS   = 0.2335");
   text = ptstats->AddText("#chi^{2} / ndf = 89.77 / 78");
   text = ptstats->AddText("Constant =  59.5 #pm 2.0 ");
   text = ptstats->AddText("Mean     = -0.008606 #pm 0.005228 ");
   text = ptstats->AddText("Sigma    = 0.2018 #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_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,-8.4,1.25,75.6);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow16 = new TH1F("ResoRow16","",100,-1,1);
   ResoRow16->SetBinContent(0,20);
   ResoRow16->SetBinContent(5,1);
   ResoRow16->SetBinContent(6,2);
   ResoRow16->SetBinContent(7,2);
   ResoRow16->SetBinContent(8,1);
   ResoRow16->SetBinContent(9,2);
   ResoRow16->SetBinContent(10,3);
   ResoRow16->SetBinContent(12,1);
   ResoRow16->SetBinContent(14,1);
   ResoRow16->SetBinContent(15,2);
   ResoRow16->SetBinContent(16,1);
   ResoRow16->SetBinContent(17,2);
   ResoRow16->SetBinContent(18,2);
   ResoRow16->SetBinContent(19,1);
   ResoRow16->SetBinContent(20,1);
   ResoRow16->SetBinContent(21,4);
   ResoRow16->SetBinContent(22,2);
   ResoRow16->SetBinContent(23,1);
   ResoRow16->SetBinContent(24,6);
   ResoRow16->SetBinContent(25,5);
   ResoRow16->SetBinContent(26,6);
   ResoRow16->SetBinContent(27,10);
   ResoRow16->SetBinContent(28,8);
   ResoRow16->SetBinContent(29,6);
   ResoRow16->SetBinContent(30,14);
   ResoRow16->SetBinContent(31,8);
   ResoRow16->SetBinContent(32,11);
   ResoRow16->SetBinContent(33,10);
   ResoRow16->SetBinContent(34,17);
   ResoRow16->SetBinContent(35,15);
   ResoRow16->SetBinContent(36,22);
   ResoRow16->SetBinContent(37,24);
   ResoRow16->SetBinContent(38,33);
   ResoRow16->SetBinContent(39,21);
   ResoRow16->SetBinContent(40,33);
   ResoRow16->SetBinContent(41,38);
   ResoRow16->SetBinContent(42,40);
   ResoRow16->SetBinContent(43,52);
   ResoRow16->SetBinContent(44,51);
   ResoRow16->SetBinContent(45,57);
   ResoRow16->SetBinContent(46,47);
   ResoRow16->SetBinContent(47,56);
   ResoRow16->SetBinContent(48,55);
   ResoRow16->SetBinContent(49,62);
   ResoRow16->SetBinContent(50,61);
   ResoRow16->SetBinContent(51,57);
   ResoRow16->SetBinContent(52,64);
   ResoRow16->SetBinContent(53,63);
   ResoRow16->SetBinContent(54,50);
   ResoRow16->SetBinContent(55,55);
   ResoRow16->SetBinContent(56,57);
   ResoRow16->SetBinContent(57,34);
   ResoRow16->SetBinContent(58,52);
   ResoRow16->SetBinContent(59,42);
   ResoRow16->SetBinContent(60,41);
   ResoRow16->SetBinContent(61,29);
   ResoRow16->SetBinContent(62,30);
   ResoRow16->SetBinContent(63,24);
   ResoRow16->SetBinContent(64,21);
   ResoRow16->SetBinContent(65,23);
   ResoRow16->SetBinContent(66,18);
   ResoRow16->SetBinContent(67,20);
   ResoRow16->SetBinContent(68,13);
   ResoRow16->SetBinContent(69,11);
   ResoRow16->SetBinContent(70,12);
   ResoRow16->SetBinContent(71,13);
   ResoRow16->SetBinContent(72,10);
   ResoRow16->SetBinContent(73,7);
   ResoRow16->SetBinContent(74,11);
   ResoRow16->SetBinContent(75,6);
   ResoRow16->SetBinContent(76,5);
   ResoRow16->SetBinContent(77,2);
   ResoRow16->SetBinContent(78,2);
   ResoRow16->SetBinContent(79,3);
   ResoRow16->SetBinContent(80,1);
   ResoRow16->SetBinContent(81,2);
   ResoRow16->SetBinContent(82,4);
   ResoRow16->SetBinContent(83,1);
   ResoRow16->SetBinContent(84,1);
   ResoRow16->SetBinContent(86,2);
   ResoRow16->SetBinContent(88,1);
   ResoRow16->SetBinContent(89,1);
   ResoRow16->SetBinContent(91,1);
   ResoRow16->SetBinContent(92,1);
   ResoRow16->SetBinContent(93,1);
   ResoRow16->SetBinContent(97,1);
   ResoRow16->SetBinContent(99,1);
   ResoRow16->SetBinContent(101,17);
   ResoRow16->SetEntries(1627);
   
   TF1 *ResoRowFit16 = new TF1("ResoRowFit16","gaus",-1,1);
   ResoRowFit16->SetFillColor(19);
   ResoRowFit16->SetFillStyle(0);
   ResoRowFit16->SetLineWidth(3);
   ResoRowFit16->SetChisquare(75.48038);
   ResoRowFit16->SetNDF(83);
   ResoRowFit16->SetParameter(0,55.67026);
   ResoRowFit16->SetParError(0,1.8866);
   ResoRowFit16->SetParLimits(0,0,0);
   ResoRowFit16->SetParameter(1,0.003388447);
   ResoRowFit16->SetParError(1,0.00560351);
   ResoRowFit16->SetParLimits(1,0,0);
   ResoRowFit16->SetParameter(2,0.2172001);
   ResoRowFit16->SetParError(2,0.004829485);
   ResoRowFit16->SetParLimits(2,0,2.428853);
   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 = 1627   ");
   text = ptstats->AddText("Mean  = -0.00222");
   text = ptstats->AddText("RMS   = 0.2427");
   text = ptstats->AddText("#chi^{2} / ndf = 75.48 / 83");
   text = ptstats->AddText("Constant = 55.67 #pm 1.89 ");
   text = ptstats->AddText("Mean     = 0.003388 #pm 0.005604 ");
   text = ptstats->AddText("Sigma    = 0.2172 #pm 0.0048 ");
   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,-8.79375,1.25,79.14375);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow17 = new TH1F("ResoRow17","",100,-1,1);
   ResoRow17->SetBinContent(0,17);
   ResoRow17->SetBinContent(2,3);
   ResoRow17->SetBinContent(3,1);
   ResoRow17->SetBinContent(6,2);
   ResoRow17->SetBinContent(7,1);
   ResoRow17->SetBinContent(9,1);
   ResoRow17->SetBinContent(12,1);
   ResoRow17->SetBinContent(13,1);
   ResoRow17->SetBinContent(14,1);
   ResoRow17->SetBinContent(16,2);
   ResoRow17->SetBinContent(17,4);
   ResoRow17->SetBinContent(18,3);
   ResoRow17->SetBinContent(19,1);
   ResoRow17->SetBinContent(20,3);
   ResoRow17->SetBinContent(21,2);
   ResoRow17->SetBinContent(23,4);
   ResoRow17->SetBinContent(24,4);
   ResoRow17->SetBinContent(25,7);
   ResoRow17->SetBinContent(26,6);
   ResoRow17->SetBinContent(27,8);
   ResoRow17->SetBinContent(28,8);
   ResoRow17->SetBinContent(29,7);
   ResoRow17->SetBinContent(30,6);
   ResoRow17->SetBinContent(31,13);
   ResoRow17->SetBinContent(32,11);
   ResoRow17->SetBinContent(33,11);
   ResoRow17->SetBinContent(34,18);
   ResoRow17->SetBinContent(35,21);
   ResoRow17->SetBinContent(36,21);
   ResoRow17->SetBinContent(37,30);
   ResoRow17->SetBinContent(38,22);
   ResoRow17->SetBinContent(39,27);
   ResoRow17->SetBinContent(40,38);
   ResoRow17->SetBinContent(41,44);
   ResoRow17->SetBinContent(42,39);
   ResoRow17->SetBinContent(43,46);
   ResoRow17->SetBinContent(44,50);
   ResoRow17->SetBinContent(45,60);
   ResoRow17->SetBinContent(46,57);
   ResoRow17->SetBinContent(47,59);
   ResoRow17->SetBinContent(48,67);
   ResoRow17->SetBinContent(49,54);
   ResoRow17->SetBinContent(50,57);
   ResoRow17->SetBinContent(51,59);
   ResoRow17->SetBinContent(52,62);
   ResoRow17->SetBinContent(53,53);
   ResoRow17->SetBinContent(54,57);
   ResoRow17->SetBinContent(55,47);
   ResoRow17->SetBinContent(56,46);
   ResoRow17->SetBinContent(57,53);
   ResoRow17->SetBinContent(58,44);
   ResoRow17->SetBinContent(59,46);
   ResoRow17->SetBinContent(60,30);
   ResoRow17->SetBinContent(61,32);
   ResoRow17->SetBinContent(62,25);
   ResoRow17->SetBinContent(63,21);
   ResoRow17->SetBinContent(64,22);
   ResoRow17->SetBinContent(65,22);
   ResoRow17->SetBinContent(66,24);
   ResoRow17->SetBinContent(67,13);
   ResoRow17->SetBinContent(68,12);
   ResoRow17->SetBinContent(69,11);
   ResoRow17->SetBinContent(70,13);
   ResoRow17->SetBinContent(71,11);
   ResoRow17->SetBinContent(72,7);
   ResoRow17->SetBinContent(73,9);
   ResoRow17->SetBinContent(74,8);
   ResoRow17->SetBinContent(75,4);
   ResoRow17->SetBinContent(76,3);
   ResoRow17->SetBinContent(77,4);
   ResoRow17->SetBinContent(78,6);
   ResoRow17->SetBinContent(79,1);
   ResoRow17->SetBinContent(80,3);
   ResoRow17->SetBinContent(81,4);
   ResoRow17->SetBinContent(82,5);
   ResoRow17->SetBinContent(83,3);
   ResoRow17->SetBinContent(84,2);
   ResoRow17->SetBinContent(87,2);
   ResoRow17->SetBinContent(89,1);
   ResoRow17->SetBinContent(91,1);
   ResoRow17->SetBinContent(93,1);
   ResoRow17->SetBinContent(98,1);
   ResoRow17->SetBinContent(99,1);
   ResoRow17->SetBinContent(100,1);
   ResoRow17->SetBinContent(101,19);
   ResoRow17->SetEntries(1627);
   
   TF1 *ResoRowFit17 = new TF1("ResoRowFit17","gaus",-1,1);
   ResoRowFit17->SetFillColor(19);
   ResoRowFit17->SetFillStyle(0);
   ResoRowFit17->SetLineWidth(3);
   ResoRowFit17->SetChisquare(72.9826);
   ResoRowFit17->SetNDF(80);
   ResoRowFit17->SetParameter(0,55.62218);
   ResoRowFit17->SetParError(0,1.936167);
   ResoRowFit17->SetParLimits(0,0,0);
   ResoRowFit17->SetParameter(1,-0.005942631);
   ResoRowFit17->SetParError(1,0.005652747);
   ResoRowFit17->SetParLimits(1,0,0);
   ResoRowFit17->SetParameter(2,0.2182396);
   ResoRowFit17->SetParError(2,0.005219504);
   ResoRowFit17->SetParLimits(2,0,2.451282);
   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 = 1627   ");
   text = ptstats->AddText("Mean  = -0.005963");
   text = ptstats->AddText("RMS   = 0.2452");
   text = ptstats->AddText("#chi^{2} / ndf = 72.98 / 80");
   text = ptstats->AddText("Constant = 55.62 #pm 1.94 ");
   text = ptstats->AddText("Mean     = -0.005943 #pm 0.005653 ");
   text = ptstats->AddText("Sigma    = 0.2182 #pm 0.0052 ");
   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,-10.2375,1.25,92.1375);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow18 = new TH1F("ResoRow18","",100,-1,1);
   ResoRow18->SetBinContent(0,16);
   ResoRow18->SetBinContent(2,1);
   ResoRow18->SetBinContent(6,1);
   ResoRow18->SetBinContent(7,1);
   ResoRow18->SetBinContent(8,1);
   ResoRow18->SetBinContent(9,1);
   ResoRow18->SetBinContent(10,2);
   ResoRow18->SetBinContent(13,3);
   ResoRow18->SetBinContent(14,1);
   ResoRow18->SetBinContent(15,5);
   ResoRow18->SetBinContent(16,1);
   ResoRow18->SetBinContent(17,1);
   ResoRow18->SetBinContent(18,3);
   ResoRow18->SetBinContent(19,6);
   ResoRow18->SetBinContent(20,1);
   ResoRow18->SetBinContent(22,3);
   ResoRow18->SetBinContent(23,4);
   ResoRow18->SetBinContent(24,2);
   ResoRow18->SetBinContent(25,3);
   ResoRow18->SetBinContent(26,6);
   ResoRow18->SetBinContent(27,5);
   ResoRow18->SetBinContent(28,2);
   ResoRow18->SetBinContent(29,6);
   ResoRow18->SetBinContent(30,9);
   ResoRow18->SetBinContent(31,9);
   ResoRow18->SetBinContent(32,14);
   ResoRow18->SetBinContent(33,12);
   ResoRow18->SetBinContent(34,13);
   ResoRow18->SetBinContent(35,23);
   ResoRow18->SetBinContent(36,18);
   ResoRow18->SetBinContent(37,21);
   ResoRow18->SetBinContent(38,23);
   ResoRow18->SetBinContent(39,36);
   ResoRow18->SetBinContent(40,34);
   ResoRow18->SetBinContent(41,39);
   ResoRow18->SetBinContent(42,33);
   ResoRow18->SetBinContent(43,42);
   ResoRow18->SetBinContent(44,43);
   ResoRow18->SetBinContent(45,56);
   ResoRow18->SetBinContent(46,53);
   ResoRow18->SetBinContent(47,52);
   ResoRow18->SetBinContent(48,61);
   ResoRow18->SetBinContent(49,66);
   ResoRow18->SetBinContent(50,63);
   ResoRow18->SetBinContent(51,78);
   ResoRow18->SetBinContent(52,71);
   ResoRow18->SetBinContent(53,70);
   ResoRow18->SetBinContent(54,69);
   ResoRow18->SetBinContent(55,33);
   ResoRow18->SetBinContent(56,48);
   ResoRow18->SetBinContent(57,64);
   ResoRow18->SetBinContent(58,43);
   ResoRow18->SetBinContent(59,46);
   ResoRow18->SetBinContent(60,24);
   ResoRow18->SetBinContent(61,40);
   ResoRow18->SetBinContent(62,20);
   ResoRow18->SetBinContent(63,23);
   ResoRow18->SetBinContent(64,18);
   ResoRow18->SetBinContent(65,16);
   ResoRow18->SetBinContent(66,19);
   ResoRow18->SetBinContent(67,16);
   ResoRow18->SetBinContent(68,13);
   ResoRow18->SetBinContent(69,13);
   ResoRow18->SetBinContent(70,11);
   ResoRow18->SetBinContent(71,5);
   ResoRow18->SetBinContent(72,8);
   ResoRow18->SetBinContent(73,7);
   ResoRow18->SetBinContent(74,10);
   ResoRow18->SetBinContent(76,3);
   ResoRow18->SetBinContent(77,4);
   ResoRow18->SetBinContent(78,3);
   ResoRow18->SetBinContent(79,2);
   ResoRow18->SetBinContent(80,1);
   ResoRow18->SetBinContent(81,2);
   ResoRow18->SetBinContent(82,3);
   ResoRow18->SetBinContent(83,2);
   ResoRow18->SetBinContent(85,2);
   ResoRow18->SetBinContent(86,3);
   ResoRow18->SetBinContent(87,2);
   ResoRow18->SetBinContent(88,2);
   ResoRow18->SetBinContent(89,1);
   ResoRow18->SetBinContent(91,1);
   ResoRow18->SetBinContent(93,3);
   ResoRow18->SetBinContent(94,1);
   ResoRow18->SetBinContent(99,1);
   ResoRow18->SetBinContent(101,31);
   ResoRow18->SetEntries(1627);
   
   TF1 *ResoRowFit18 = new TF1("ResoRowFit18","gaus",-1,1);
   ResoRowFit18->SetFillColor(19);
   ResoRowFit18->SetFillStyle(0);
   ResoRowFit18->SetLineWidth(3);
   ResoRowFit18->SetChisquare(119.4994);
   ResoRowFit18->SetNDF(81);
   ResoRowFit18->SetParameter(0,57.44446);
   ResoRowFit18->SetParError(0,2.050785);
   ResoRowFit18->SetParLimits(0,0,0);
   ResoRowFit18->SetParameter(1,-0.002343198);
   ResoRowFit18->SetParError(1,0.005409879);
   ResoRowFit18->SetParLimits(1,0,0);
   ResoRowFit18->SetParameter(2,0.203462);
   ResoRowFit18->SetParError(2,0.005030915);
   ResoRowFit18->SetParLimits(2,0,2.378502);
   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 = 1627   ");
   text = ptstats->AddText("Mean  = -0.002512");
   text = ptstats->AddText("RMS   = 0.2375");
   text = ptstats->AddText("#chi^{2} / ndf = 119.5 / 81");
   text = ptstats->AddText("Constant = 57.44 #pm 2.05 ");
   text = ptstats->AddText("Mean     = -0.002343 #pm 0.005410 ");
   text = ptstats->AddText("Sigma    = 0.2035 #pm 0.0050 ");
   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);
}
