{
//=========Macro generated from canvas: c2/
//=========  (Mon Jun  7 21:53:18 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,-9.58125,1.25,86.23125);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow13 = new TH1F("ResoRow13","",100,-1,1);
   ResoRow13->SetBinContent(0,15);
   ResoRow13->SetBinContent(3,1);
   ResoRow13->SetBinContent(4,1);
   ResoRow13->SetBinContent(6,1);
   ResoRow13->SetBinContent(12,1);
   ResoRow13->SetBinContent(13,1);
   ResoRow13->SetBinContent(15,1);
   ResoRow13->SetBinContent(18,1);
   ResoRow13->SetBinContent(19,3);
   ResoRow13->SetBinContent(20,1);
   ResoRow13->SetBinContent(21,1);
   ResoRow13->SetBinContent(22,1);
   ResoRow13->SetBinContent(23,1);
   ResoRow13->SetBinContent(24,2);
   ResoRow13->SetBinContent(25,4);
   ResoRow13->SetBinContent(26,4);
   ResoRow13->SetBinContent(27,3);
   ResoRow13->SetBinContent(28,3);
   ResoRow13->SetBinContent(29,2);
   ResoRow13->SetBinContent(30,4);
   ResoRow13->SetBinContent(31,7);
   ResoRow13->SetBinContent(32,7);
   ResoRow13->SetBinContent(33,8);
   ResoRow13->SetBinContent(34,14);
   ResoRow13->SetBinContent(35,15);
   ResoRow13->SetBinContent(36,14);
   ResoRow13->SetBinContent(37,26);
   ResoRow13->SetBinContent(38,27);
   ResoRow13->SetBinContent(39,21);
   ResoRow13->SetBinContent(40,36);
   ResoRow13->SetBinContent(41,30);
   ResoRow13->SetBinContent(42,33);
   ResoRow13->SetBinContent(43,41);
   ResoRow13->SetBinContent(44,57);
   ResoRow13->SetBinContent(45,65);
   ResoRow13->SetBinContent(46,49);
   ResoRow13->SetBinContent(47,55);
   ResoRow13->SetBinContent(48,62);
   ResoRow13->SetBinContent(49,67);
   ResoRow13->SetBinContent(50,69);
   ResoRow13->SetBinContent(51,66);
   ResoRow13->SetBinContent(52,72);
   ResoRow13->SetBinContent(53,73);
   ResoRow13->SetBinContent(54,59);
   ResoRow13->SetBinContent(55,62);
   ResoRow13->SetBinContent(56,52);
   ResoRow13->SetBinContent(57,50);
   ResoRow13->SetBinContent(58,39);
   ResoRow13->SetBinContent(59,33);
   ResoRow13->SetBinContent(60,36);
   ResoRow13->SetBinContent(61,25);
   ResoRow13->SetBinContent(62,20);
   ResoRow13->SetBinContent(63,20);
   ResoRow13->SetBinContent(64,12);
   ResoRow13->SetBinContent(65,13);
   ResoRow13->SetBinContent(66,14);
   ResoRow13->SetBinContent(67,9);
   ResoRow13->SetBinContent(68,11);
   ResoRow13->SetBinContent(69,3);
   ResoRow13->SetBinContent(70,4);
   ResoRow13->SetBinContent(71,10);
   ResoRow13->SetBinContent(72,6);
   ResoRow13->SetBinContent(73,4);
   ResoRow13->SetBinContent(74,3);
   ResoRow13->SetBinContent(75,1);
   ResoRow13->SetBinContent(76,1);
   ResoRow13->SetBinContent(77,2);
   ResoRow13->SetBinContent(78,1);
   ResoRow13->SetBinContent(79,2);
   ResoRow13->SetBinContent(80,1);
   ResoRow13->SetBinContent(81,1);
   ResoRow13->SetBinContent(82,2);
   ResoRow13->SetBinContent(83,1);
   ResoRow13->SetBinContent(84,1);
   ResoRow13->SetBinContent(85,2);
   ResoRow13->SetBinContent(86,1);
   ResoRow13->SetBinContent(88,1);
   ResoRow13->SetBinContent(93,1);
   ResoRow13->SetBinContent(94,1);
   ResoRow13->SetBinContent(96,2);
   ResoRow13->SetBinContent(101,22);
   ResoRow13->SetEntries(1493);
   
   TF1 *ResoRowFit13 = new TF1("ResoRowFit13","gaus",-1,1);
   ResoRowFit13->SetFillColor(19);
   ResoRowFit13->SetFillStyle(0);
   ResoRowFit13->SetLineWidth(3);
   ResoRowFit13->SetChisquare(72.55995);
   ResoRowFit13->SetNDF(76);
   ResoRowFit13->SetParameter(0,63.73882);
   ResoRowFit13->SetParError(0,2.271978);
   ResoRowFit13->SetParLimits(0,0,0);
   ResoRowFit13->SetParameter(1,-0.008168224);
   ResoRowFit13->SetParError(1,0.00466305);
   ResoRowFit13->SetParLimits(1,0,0);
   ResoRowFit13->SetParameter(2,0.173192);
   ResoRowFit13->SetParError(2,0.004056606);
   ResoRowFit13->SetParLimits(2,0,2.039747);
   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 = 1493   ");
   text = ptstats->AddText("Mean  = -0.005018");
   text = ptstats->AddText("RMS   =  0.204");
   text = ptstats->AddText("#chi^{2} / ndf = 72.56 / 76");
   text = ptstats->AddText("Constant = 63.74 #pm 2.27 ");
   text = ptstats->AddText("Mean     = -0.008168 #pm 0.004663 ");
   text = ptstats->AddText("Sigma    = 0.1732 #pm 0.0041 ");
   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,-11.15625,1.25,100.4063);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow14 = new TH1F("ResoRow14","",100,-1,1);
   ResoRow14->SetBinContent(0,13);
   ResoRow14->SetBinContent(5,1);
   ResoRow14->SetBinContent(6,2);
   ResoRow14->SetBinContent(7,1);
   ResoRow14->SetBinContent(8,1);
   ResoRow14->SetBinContent(9,2);
   ResoRow14->SetBinContent(10,1);
   ResoRow14->SetBinContent(12,2);
   ResoRow14->SetBinContent(13,1);
   ResoRow14->SetBinContent(14,2);
   ResoRow14->SetBinContent(15,2);
   ResoRow14->SetBinContent(17,2);
   ResoRow14->SetBinContent(18,1);
   ResoRow14->SetBinContent(19,2);
   ResoRow14->SetBinContent(20,1);
   ResoRow14->SetBinContent(21,2);
   ResoRow14->SetBinContent(22,1);
   ResoRow14->SetBinContent(23,3);
   ResoRow14->SetBinContent(25,3);
   ResoRow14->SetBinContent(26,1);
   ResoRow14->SetBinContent(27,1);
   ResoRow14->SetBinContent(28,5);
   ResoRow14->SetBinContent(29,2);
   ResoRow14->SetBinContent(30,8);
   ResoRow14->SetBinContent(31,6);
   ResoRow14->SetBinContent(32,6);
   ResoRow14->SetBinContent(33,9);
   ResoRow14->SetBinContent(34,9);
   ResoRow14->SetBinContent(35,9);
   ResoRow14->SetBinContent(36,19);
   ResoRow14->SetBinContent(37,23);
   ResoRow14->SetBinContent(38,27);
   ResoRow14->SetBinContent(39,28);
   ResoRow14->SetBinContent(40,29);
   ResoRow14->SetBinContent(41,31);
   ResoRow14->SetBinContent(42,32);
   ResoRow14->SetBinContent(43,40);
   ResoRow14->SetBinContent(44,40);
   ResoRow14->SetBinContent(45,58);
   ResoRow14->SetBinContent(46,55);
   ResoRow14->SetBinContent(47,60);
   ResoRow14->SetBinContent(48,62);
   ResoRow14->SetBinContent(49,58);
   ResoRow14->SetBinContent(50,74);
   ResoRow14->SetBinContent(51,85);
   ResoRow14->SetBinContent(52,68);
   ResoRow14->SetBinContent(53,70);
   ResoRow14->SetBinContent(54,58);
   ResoRow14->SetBinContent(55,56);
   ResoRow14->SetBinContent(56,53);
   ResoRow14->SetBinContent(57,51);
   ResoRow14->SetBinContent(58,38);
   ResoRow14->SetBinContent(59,39);
   ResoRow14->SetBinContent(60,31);
   ResoRow14->SetBinContent(61,29);
   ResoRow14->SetBinContent(62,20);
   ResoRow14->SetBinContent(63,15);
   ResoRow14->SetBinContent(64,15);
   ResoRow14->SetBinContent(65,16);
   ResoRow14->SetBinContent(66,19);
   ResoRow14->SetBinContent(67,9);
   ResoRow14->SetBinContent(68,12);
   ResoRow14->SetBinContent(69,8);
   ResoRow14->SetBinContent(70,6);
   ResoRow14->SetBinContent(71,7);
   ResoRow14->SetBinContent(72,6);
   ResoRow14->SetBinContent(73,4);
   ResoRow14->SetBinContent(74,2);
   ResoRow14->SetBinContent(75,2);
   ResoRow14->SetBinContent(76,4);
   ResoRow14->SetBinContent(77,3);
   ResoRow14->SetBinContent(78,2);
   ResoRow14->SetBinContent(79,1);
   ResoRow14->SetBinContent(82,1);
   ResoRow14->SetBinContent(84,1);
   ResoRow14->SetBinContent(85,2);
   ResoRow14->SetBinContent(88,1);
   ResoRow14->SetBinContent(89,2);
   ResoRow14->SetBinContent(101,22);
   ResoRow14->SetEntries(1493);
   
   TF1 *ResoRowFit14 = new TF1("ResoRowFit14","gaus",-1,1);
   ResoRowFit14->SetFillColor(19);
   ResoRowFit14->SetFillStyle(0);
   ResoRowFit14->SetLineWidth(3);
   ResoRowFit14->SetChisquare(77.80581);
   ResoRowFit14->SetNDF(74);
   ResoRowFit14->SetParameter(0,62.73358);
   ResoRowFit14->SetParError(0,2.254801);
   ResoRowFit14->SetParLimits(0,0,0);
   ResoRowFit14->SetParameter(1,0.0004170851);
   ResoRowFit14->SetParError(1,0.004767607);
   ResoRowFit14->SetParLimits(1,0,0);
   ResoRowFit14->SetParameter(2,0.1756903);
   ResoRowFit14->SetParError(2,0.004217507);
   ResoRowFit14->SetParLimits(2,0,2.090447);
   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 = 1493   ");
   text = ptstats->AddText("Mean  = -0.006347");
   text = ptstats->AddText("RMS   =  0.209");
   text = ptstats->AddText("#chi^{2} / ndf = 77.81 / 74");
   text = ptstats->AddText("Constant = 62.73 #pm 2.25 ");
   text = ptstats->AddText("Mean     = 0.0004171 #pm 0.0047676 ");
   text = ptstats->AddText("Sigma    = 0.1757 #pm 0.0042 ");
   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,-10.7625,1.25,96.8625);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow15 = new TH1F("ResoRow15","",100,-1,1);
   ResoRow15->SetBinContent(0,12);
   ResoRow15->SetBinContent(3,1);
   ResoRow15->SetBinContent(6,1);
   ResoRow15->SetBinContent(8,1);
   ResoRow15->SetBinContent(16,4);
   ResoRow15->SetBinContent(17,1);
   ResoRow15->SetBinContent(18,3);
   ResoRow15->SetBinContent(19,1);
   ResoRow15->SetBinContent(20,2);
   ResoRow15->SetBinContent(21,2);
   ResoRow15->SetBinContent(23,2);
   ResoRow15->SetBinContent(24,2);
   ResoRow15->SetBinContent(25,3);
   ResoRow15->SetBinContent(26,2);
   ResoRow15->SetBinContent(27,2);
   ResoRow15->SetBinContent(28,5);
   ResoRow15->SetBinContent(29,2);
   ResoRow15->SetBinContent(30,1);
   ResoRow15->SetBinContent(31,3);
   ResoRow15->SetBinContent(32,11);
   ResoRow15->SetBinContent(33,5);
   ResoRow15->SetBinContent(34,16);
   ResoRow15->SetBinContent(35,21);
   ResoRow15->SetBinContent(36,20);
   ResoRow15->SetBinContent(37,17);
   ResoRow15->SetBinContent(38,24);
   ResoRow15->SetBinContent(39,22);
   ResoRow15->SetBinContent(40,28);
   ResoRow15->SetBinContent(41,33);
   ResoRow15->SetBinContent(42,37);
   ResoRow15->SetBinContent(43,43);
   ResoRow15->SetBinContent(44,41);
   ResoRow15->SetBinContent(45,61);
   ResoRow15->SetBinContent(46,82);
   ResoRow15->SetBinContent(47,45);
   ResoRow15->SetBinContent(48,49);
   ResoRow15->SetBinContent(49,65);
   ResoRow15->SetBinContent(50,62);
   ResoRow15->SetBinContent(51,66);
   ResoRow15->SetBinContent(52,64);
   ResoRow15->SetBinContent(53,67);
   ResoRow15->SetBinContent(54,65);
   ResoRow15->SetBinContent(55,53);
   ResoRow15->SetBinContent(56,57);
   ResoRow15->SetBinContent(57,52);
   ResoRow15->SetBinContent(58,35);
   ResoRow15->SetBinContent(59,40);
   ResoRow15->SetBinContent(60,22);
   ResoRow15->SetBinContent(61,39);
   ResoRow15->SetBinContent(62,28);
   ResoRow15->SetBinContent(63,27);
   ResoRow15->SetBinContent(64,16);
   ResoRow15->SetBinContent(65,12);
   ResoRow15->SetBinContent(66,16);
   ResoRow15->SetBinContent(67,14);
   ResoRow15->SetBinContent(68,9);
   ResoRow15->SetBinContent(69,6);
   ResoRow15->SetBinContent(70,4);
   ResoRow15->SetBinContent(71,6);
   ResoRow15->SetBinContent(72,4);
   ResoRow15->SetBinContent(73,5);
   ResoRow15->SetBinContent(74,2);
   ResoRow15->SetBinContent(75,1);
   ResoRow15->SetBinContent(76,2);
   ResoRow15->SetBinContent(77,4);
   ResoRow15->SetBinContent(78,4);
   ResoRow15->SetBinContent(79,1);
   ResoRow15->SetBinContent(81,2);
   ResoRow15->SetBinContent(83,1);
   ResoRow15->SetBinContent(84,2);
   ResoRow15->SetBinContent(88,1);
   ResoRow15->SetBinContent(89,1);
   ResoRow15->SetBinContent(91,1);
   ResoRow15->SetBinContent(92,2);
   ResoRow15->SetBinContent(93,1);
   ResoRow15->SetBinContent(95,1);
   ResoRow15->SetBinContent(101,28);
   ResoRow15->SetEntries(1493);
   
   TF1 *ResoRowFit15 = new TF1("ResoRowFit15","gaus",-1,1);
   ResoRowFit15->SetFillColor(19);
   ResoRowFit15->SetFillStyle(0);
   ResoRowFit15->SetLineWidth(3);
   ResoRowFit15->SetChisquare(99.36346);
   ResoRowFit15->SetNDF(72);
   ResoRowFit15->SetParameter(0,62.16166);
   ResoRowFit15->SetParError(0,2.152156);
   ResoRowFit15->SetParLimits(0,0,0);
   ResoRowFit15->SetParameter(1,0.003869733);
   ResoRowFit15->SetParError(1,0.004766271);
   ResoRowFit15->SetParLimits(1,0,0);
   ResoRowFit15->SetParameter(2,0.1738329);
   ResoRowFit15->SetParError(2,0.003747138);
   ResoRowFit15->SetParLimits(2,0,2.07424);
   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 = 1493   ");
   text = ptstats->AddText("Mean  = -0.000412");
   text = ptstats->AddText("RMS   = 0.2075");
   text = ptstats->AddText("#chi^{2} / ndf = 99.36 / 72");
   text = ptstats->AddText("Constant = 62.16 #pm 2.15 ");
   text = ptstats->AddText("Mean     = 0.00387 #pm 0.00477 ");
   text = ptstats->AddText("Sigma    = 0.1738 #pm 0.0037 ");
   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,-10.7625,1.25,96.8625);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow16 = new TH1F("ResoRow16","",100,-1,1);
   ResoRow16->SetBinContent(0,14);
   ResoRow16->SetBinContent(1,1);
   ResoRow16->SetBinContent(3,2);
   ResoRow16->SetBinContent(4,1);
   ResoRow16->SetBinContent(7,1);
   ResoRow16->SetBinContent(9,1);
   ResoRow16->SetBinContent(13,1);
   ResoRow16->SetBinContent(14,3);
   ResoRow16->SetBinContent(15,1);
   ResoRow16->SetBinContent(17,1);
   ResoRow16->SetBinContent(19,1);
   ResoRow16->SetBinContent(21,3);
   ResoRow16->SetBinContent(23,1);
   ResoRow16->SetBinContent(24,3);
   ResoRow16->SetBinContent(25,2);
   ResoRow16->SetBinContent(26,5);
   ResoRow16->SetBinContent(27,5);
   ResoRow16->SetBinContent(28,4);
   ResoRow16->SetBinContent(29,3);
   ResoRow16->SetBinContent(30,4);
   ResoRow16->SetBinContent(31,10);
   ResoRow16->SetBinContent(32,9);
   ResoRow16->SetBinContent(33,8);
   ResoRow16->SetBinContent(34,13);
   ResoRow16->SetBinContent(35,13);
   ResoRow16->SetBinContent(36,13);
   ResoRow16->SetBinContent(37,21);
   ResoRow16->SetBinContent(38,21);
   ResoRow16->SetBinContent(39,32);
   ResoRow16->SetBinContent(40,22);
   ResoRow16->SetBinContent(41,33);
   ResoRow16->SetBinContent(42,48);
   ResoRow16->SetBinContent(43,36);
   ResoRow16->SetBinContent(44,45);
   ResoRow16->SetBinContent(45,47);
   ResoRow16->SetBinContent(46,47);
   ResoRow16->SetBinContent(47,66);
   ResoRow16->SetBinContent(48,69);
   ResoRow16->SetBinContent(49,67);
   ResoRow16->SetBinContent(50,82);
   ResoRow16->SetBinContent(51,73);
   ResoRow16->SetBinContent(52,56);
   ResoRow16->SetBinContent(53,62);
   ResoRow16->SetBinContent(54,64);
   ResoRow16->SetBinContent(55,47);
   ResoRow16->SetBinContent(56,61);
   ResoRow16->SetBinContent(57,41);
   ResoRow16->SetBinContent(58,48);
   ResoRow16->SetBinContent(59,34);
   ResoRow16->SetBinContent(60,31);
   ResoRow16->SetBinContent(61,23);
   ResoRow16->SetBinContent(62,26);
   ResoRow16->SetBinContent(63,19);
   ResoRow16->SetBinContent(64,15);
   ResoRow16->SetBinContent(65,13);
   ResoRow16->SetBinContent(66,16);
   ResoRow16->SetBinContent(67,7);
   ResoRow16->SetBinContent(68,13);
   ResoRow16->SetBinContent(69,15);
   ResoRow16->SetBinContent(70,9);
   ResoRow16->SetBinContent(71,6);
   ResoRow16->SetBinContent(72,5);
   ResoRow16->SetBinContent(73,1);
   ResoRow16->SetBinContent(74,1);
   ResoRow16->SetBinContent(75,1);
   ResoRow16->SetBinContent(76,1);
   ResoRow16->SetBinContent(77,2);
   ResoRow16->SetBinContent(79,1);
   ResoRow16->SetBinContent(80,2);
   ResoRow16->SetBinContent(81,1);
   ResoRow16->SetBinContent(84,2);
   ResoRow16->SetBinContent(86,1);
   ResoRow16->SetBinContent(91,1);
   ResoRow16->SetBinContent(92,1);
   ResoRow16->SetBinContent(94,1);
   ResoRow16->SetBinContent(95,1);
   ResoRow16->SetBinContent(96,1);
   ResoRow16->SetBinContent(100,4);
   ResoRow16->SetBinContent(101,28);
   ResoRow16->SetEntries(1493);
   
   TF1 *ResoRowFit16 = new TF1("ResoRowFit16","gaus",-1,1);
   ResoRowFit16->SetFillColor(19);
   ResoRowFit16->SetFillStyle(0);
   ResoRowFit16->SetLineWidth(3);
   ResoRowFit16->SetChisquare(85.83486);
   ResoRowFit16->SetNDF(74);
   ResoRowFit16->SetParameter(0,61.66326);
   ResoRowFit16->SetParError(0,2.196573);
   ResoRowFit16->SetParLimits(0,0,0);
   ResoRowFit16->SetParameter(1,-0.005055245);
   ResoRowFit16->SetParError(1,0.004831087);
   ResoRowFit16->SetParLimits(1,0,0);
   ResoRowFit16->SetParameter(2,0.1768171);
   ResoRowFit16->SetParError(2,0.004135664);
   ResoRowFit16->SetParLimits(2,0,2.144774);
   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 = 1493   ");
   text = ptstats->AddText("Mean  = -0.004526");
   text = ptstats->AddText("RMS   = 0.2144");
   text = ptstats->AddText("#chi^{2} / ndf = 85.83 / 74");
   text = ptstats->AddText("Constant = 61.66 #pm 2.20 ");
   text = ptstats->AddText("Mean     = -0.005055 #pm 0.004831 ");
   text = ptstats->AddText("Sigma    = 0.1768 #pm 0.0041 ");
   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,-9.7125,1.25,87.4125);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow17 = new TH1F("ResoRow17","",100,-1,1);
   ResoRow17->SetBinContent(0,15);
   ResoRow17->SetBinContent(1,1);
   ResoRow17->SetBinContent(3,1);
   ResoRow17->SetBinContent(4,1);
   ResoRow17->SetBinContent(9,1);
   ResoRow17->SetBinContent(10,1);
   ResoRow17->SetBinContent(16,1);
   ResoRow17->SetBinContent(17,1);
   ResoRow17->SetBinContent(18,1);
   ResoRow17->SetBinContent(20,1);
   ResoRow17->SetBinContent(21,1);
   ResoRow17->SetBinContent(22,1);
   ResoRow17->SetBinContent(23,1);
   ResoRow17->SetBinContent(24,2);
   ResoRow17->SetBinContent(25,2);
   ResoRow17->SetBinContent(26,5);
   ResoRow17->SetBinContent(27,5);
   ResoRow17->SetBinContent(28,3);
   ResoRow17->SetBinContent(29,1);
   ResoRow17->SetBinContent(30,10);
   ResoRow17->SetBinContent(31,6);
   ResoRow17->SetBinContent(32,5);
   ResoRow17->SetBinContent(33,8);
   ResoRow17->SetBinContent(34,12);
   ResoRow17->SetBinContent(35,17);
   ResoRow17->SetBinContent(36,12);
   ResoRow17->SetBinContent(37,22);
   ResoRow17->SetBinContent(38,18);
   ResoRow17->SetBinContent(39,25);
   ResoRow17->SetBinContent(40,30);
   ResoRow17->SetBinContent(41,29);
   ResoRow17->SetBinContent(42,39);
   ResoRow17->SetBinContent(43,54);
   ResoRow17->SetBinContent(44,55);
   ResoRow17->SetBinContent(45,39);
   ResoRow17->SetBinContent(46,64);
   ResoRow17->SetBinContent(47,56);
   ResoRow17->SetBinContent(48,74);
   ResoRow17->SetBinContent(49,59);
   ResoRow17->SetBinContent(50,62);
   ResoRow17->SetBinContent(51,74);
   ResoRow17->SetBinContent(52,62);
   ResoRow17->SetBinContent(53,60);
   ResoRow17->SetBinContent(54,69);
   ResoRow17->SetBinContent(55,59);
   ResoRow17->SetBinContent(56,58);
   ResoRow17->SetBinContent(57,50);
   ResoRow17->SetBinContent(58,41);
   ResoRow17->SetBinContent(59,45);
   ResoRow17->SetBinContent(60,37);
   ResoRow17->SetBinContent(61,26);
   ResoRow17->SetBinContent(62,16);
   ResoRow17->SetBinContent(63,17);
   ResoRow17->SetBinContent(64,25);
   ResoRow17->SetBinContent(65,14);
   ResoRow17->SetBinContent(66,14);
   ResoRow17->SetBinContent(67,9);
   ResoRow17->SetBinContent(68,6);
   ResoRow17->SetBinContent(69,2);
   ResoRow17->SetBinContent(70,4);
   ResoRow17->SetBinContent(71,2);
   ResoRow17->SetBinContent(72,5);
   ResoRow17->SetBinContent(74,7);
   ResoRow17->SetBinContent(75,4);
   ResoRow17->SetBinContent(76,2);
   ResoRow17->SetBinContent(77,1);
   ResoRow17->SetBinContent(78,4);
   ResoRow17->SetBinContent(81,1);
   ResoRow17->SetBinContent(82,2);
   ResoRow17->SetBinContent(83,2);
   ResoRow17->SetBinContent(84,2);
   ResoRow17->SetBinContent(86,2);
   ResoRow17->SetBinContent(87,2);
   ResoRow17->SetBinContent(95,1);
   ResoRow17->SetBinContent(97,1);
   ResoRow17->SetBinContent(98,2);
   ResoRow17->SetBinContent(101,24);
   ResoRow17->SetEntries(1493);
   
   TF1 *ResoRowFit17 = new TF1("ResoRowFit17","gaus",-1,1);
   ResoRowFit17->SetFillColor(19);
   ResoRowFit17->SetFillStyle(0);
   ResoRowFit17->SetLineWidth(3);
   ResoRowFit17->SetChisquare(91.08534);
   ResoRowFit17->SetNDF(72);
   ResoRowFit17->SetParameter(0,65.33645);
   ResoRowFit17->SetParError(0,2.282764);
   ResoRowFit17->SetParLimits(0,0,0);
   ResoRowFit17->SetParameter(1,-0.005015318);
   ResoRowFit17->SetParError(1,0.004557707);
   ResoRowFit17->SetParLimits(1,0,0);
   ResoRowFit17->SetParameter(2,0.1666763);
   ResoRowFit17->SetParError(2,0.003715504);
   ResoRowFit17->SetParLimits(2,0,2.043664);
   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 = 1493   ");
   text = ptstats->AddText("Mean  = -0.001752");
   text = ptstats->AddText("RMS   = 0.2043");
   text = ptstats->AddText("#chi^{2} / ndf = 91.09 / 72");
   text = ptstats->AddText("Constant = 65.34 #pm 2.28 ");
   text = ptstats->AddText("Mean     = -0.005015 #pm 0.004558 ");
   text = ptstats->AddText("Sigma    = 0.1667 #pm 0.0037 ");
   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,22);
   ResoRow18->SetBinContent(9,1);
   ResoRow18->SetBinContent(13,1);
   ResoRow18->SetBinContent(15,1);
   ResoRow18->SetBinContent(16,3);
   ResoRow18->SetBinContent(18,1);
   ResoRow18->SetBinContent(21,2);
   ResoRow18->SetBinContent(23,3);
   ResoRow18->SetBinContent(24,1);
   ResoRow18->SetBinContent(25,3);
   ResoRow18->SetBinContent(26,2);
   ResoRow18->SetBinContent(27,3);
   ResoRow18->SetBinContent(28,6);
   ResoRow18->SetBinContent(29,5);
   ResoRow18->SetBinContent(30,9);
   ResoRow18->SetBinContent(31,4);
   ResoRow18->SetBinContent(32,12);
   ResoRow18->SetBinContent(33,8);
   ResoRow18->SetBinContent(34,8);
   ResoRow18->SetBinContent(35,11);
   ResoRow18->SetBinContent(36,17);
   ResoRow18->SetBinContent(37,15);
   ResoRow18->SetBinContent(38,17);
   ResoRow18->SetBinContent(39,23);
   ResoRow18->SetBinContent(40,19);
   ResoRow18->SetBinContent(41,40);
   ResoRow18->SetBinContent(42,41);
   ResoRow18->SetBinContent(43,43);
   ResoRow18->SetBinContent(44,58);
   ResoRow18->SetBinContent(45,53);
   ResoRow18->SetBinContent(46,58);
   ResoRow18->SetBinContent(47,54);
   ResoRow18->SetBinContent(48,50);
   ResoRow18->SetBinContent(49,78);
   ResoRow18->SetBinContent(50,55);
   ResoRow18->SetBinContent(51,65);
   ResoRow18->SetBinContent(52,51);
   ResoRow18->SetBinContent(53,78);
   ResoRow18->SetBinContent(54,67);
   ResoRow18->SetBinContent(55,68);
   ResoRow18->SetBinContent(56,44);
   ResoRow18->SetBinContent(57,59);
   ResoRow18->SetBinContent(58,44);
   ResoRow18->SetBinContent(59,40);
   ResoRow18->SetBinContent(60,44);
   ResoRow18->SetBinContent(61,34);
   ResoRow18->SetBinContent(62,21);
   ResoRow18->SetBinContent(63,15);
   ResoRow18->SetBinContent(64,15);
   ResoRow18->SetBinContent(65,8);
   ResoRow18->SetBinContent(66,11);
   ResoRow18->SetBinContent(67,14);
   ResoRow18->SetBinContent(68,11);
   ResoRow18->SetBinContent(69,5);
   ResoRow18->SetBinContent(70,11);
   ResoRow18->SetBinContent(71,3);
   ResoRow18->SetBinContent(72,2);
   ResoRow18->SetBinContent(73,3);
   ResoRow18->SetBinContent(74,5);
   ResoRow18->SetBinContent(75,2);
   ResoRow18->SetBinContent(77,4);
   ResoRow18->SetBinContent(79,3);
   ResoRow18->SetBinContent(80,1);
   ResoRow18->SetBinContent(81,1);
   ResoRow18->SetBinContent(82,2);
   ResoRow18->SetBinContent(84,2);
   ResoRow18->SetBinContent(85,1);
   ResoRow18->SetBinContent(88,1);
   ResoRow18->SetBinContent(89,1);
   ResoRow18->SetBinContent(90,2);
   ResoRow18->SetBinContent(95,1);
   ResoRow18->SetBinContent(96,1);
   ResoRow18->SetBinContent(98,1);
   ResoRow18->SetBinContent(99,1);
   ResoRow18->SetBinContent(101,24);
   ResoRow18->SetEntries(1493);
   
   TF1 *ResoRowFit18 = new TF1("ResoRowFit18","gaus",-1,1);
   ResoRowFit18->SetFillColor(19);
   ResoRowFit18->SetFillStyle(0);
   ResoRowFit18->SetLineWidth(3);
   ResoRowFit18->SetChisquare(100.1727);
   ResoRowFit18->SetNDF(70);
   ResoRowFit18->SetParameter(0,62.51802);
   ResoRowFit18->SetParError(0,2.288753);
   ResoRowFit18->SetParLimits(0,0,0);
   ResoRowFit18->SetParameter(1,-0.0002089937);
   ResoRowFit18->SetParError(1,0.004740928);
   ResoRowFit18->SetParLimits(1,0,0);
   ResoRowFit18->SetParameter(2,0.1721084);
   ResoRowFit18->SetParError(2,0.004256833);
   ResoRowFit18->SetParLimits(2,0,2.034662);
   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 = 1493   ");
   text = ptstats->AddText("Mean  = 0.004449");
   text = ptstats->AddText("RMS   = 0.2033");
   text = ptstats->AddText("#chi^{2} / ndf = 100.2 / 70");
   text = ptstats->AddText("Constant = 62.52 #pm 2.29 ");
   text = ptstats->AddText("Mean     = -0.000209 #pm 0.004741 ");
   text = ptstats->AddText("Sigma    = 0.1721 #pm 0.0043 ");
   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);
}
