{
//=========Macro generated from canvas: c2/
//=========  (Mon Jun  7 21:20:11 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,-12.8625,1.25,115.7625);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow13 = new TH1F("ResoRow13","",100,-1,1);
   ResoRow13->SetBinContent(0,8);
   ResoRow13->SetBinContent(3,1);
   ResoRow13->SetBinContent(6,1);
   ResoRow13->SetBinContent(8,3);
   ResoRow13->SetBinContent(9,1);
   ResoRow13->SetBinContent(10,2);
   ResoRow13->SetBinContent(13,1);
   ResoRow13->SetBinContent(15,1);
   ResoRow13->SetBinContent(16,1);
   ResoRow13->SetBinContent(17,2);
   ResoRow13->SetBinContent(23,4);
   ResoRow13->SetBinContent(24,2);
   ResoRow13->SetBinContent(25,2);
   ResoRow13->SetBinContent(26,1);
   ResoRow13->SetBinContent(28,4);
   ResoRow13->SetBinContent(29,4);
   ResoRow13->SetBinContent(30,2);
   ResoRow13->SetBinContent(31,3);
   ResoRow13->SetBinContent(32,7);
   ResoRow13->SetBinContent(33,5);
   ResoRow13->SetBinContent(34,4);
   ResoRow13->SetBinContent(35,9);
   ResoRow13->SetBinContent(36,6);
   ResoRow13->SetBinContent(37,11);
   ResoRow13->SetBinContent(38,20);
   ResoRow13->SetBinContent(39,25);
   ResoRow13->SetBinContent(40,19);
   ResoRow13->SetBinContent(41,30);
   ResoRow13->SetBinContent(42,34);
   ResoRow13->SetBinContent(43,32);
   ResoRow13->SetBinContent(44,60);
   ResoRow13->SetBinContent(45,70);
   ResoRow13->SetBinContent(46,70);
   ResoRow13->SetBinContent(47,68);
   ResoRow13->SetBinContent(48,70);
   ResoRow13->SetBinContent(49,90);
   ResoRow13->SetBinContent(50,86);
   ResoRow13->SetBinContent(51,85);
   ResoRow13->SetBinContent(52,98);
   ResoRow13->SetBinContent(53,88);
   ResoRow13->SetBinContent(54,77);
   ResoRow13->SetBinContent(55,67);
   ResoRow13->SetBinContent(56,52);
   ResoRow13->SetBinContent(57,48);
   ResoRow13->SetBinContent(58,34);
   ResoRow13->SetBinContent(59,34);
   ResoRow13->SetBinContent(60,23);
   ResoRow13->SetBinContent(61,27);
   ResoRow13->SetBinContent(62,15);
   ResoRow13->SetBinContent(63,19);
   ResoRow13->SetBinContent(64,5);
   ResoRow13->SetBinContent(65,11);
   ResoRow13->SetBinContent(66,10);
   ResoRow13->SetBinContent(67,5);
   ResoRow13->SetBinContent(68,5);
   ResoRow13->SetBinContent(69,4);
   ResoRow13->SetBinContent(70,6);
   ResoRow13->SetBinContent(71,3);
   ResoRow13->SetBinContent(72,1);
   ResoRow13->SetBinContent(73,6);
   ResoRow13->SetBinContent(74,1);
   ResoRow13->SetBinContent(75,2);
   ResoRow13->SetBinContent(76,3);
   ResoRow13->SetBinContent(77,2);
   ResoRow13->SetBinContent(78,1);
   ResoRow13->SetBinContent(80,1);
   ResoRow13->SetBinContent(83,1);
   ResoRow13->SetBinContent(84,1);
   ResoRow13->SetBinContent(85,1);
   ResoRow13->SetBinContent(86,1);
   ResoRow13->SetBinContent(88,2);
   ResoRow13->SetBinContent(97,1);
   ResoRow13->SetBinContent(99,2);
   ResoRow13->SetBinContent(101,23);
   ResoRow13->SetEntries(1524);
   
   TF1 *ResoRowFit13 = new TF1("ResoRowFit13","gaus",-1,1);
   ResoRowFit13->SetFillColor(19);
   ResoRowFit13->SetFillStyle(0);
   ResoRowFit13->SetLineWidth(3);
   ResoRowFit13->SetChisquare(105.4106);
   ResoRowFit13->SetNDF(69);
   ResoRowFit13->SetParameter(0,81.9511);
   ResoRowFit13->SetParError(0,3.005568);
   ResoRowFit13->SetParLimits(0,0,0);
   ResoRowFit13->SetParameter(1,-0.003902076);
   ResoRowFit13->SetParError(1,0.003631883);
   ResoRowFit13->SetParLimits(1,0,0);
   ResoRowFit13->SetParameter(2,0.1351219);
   ResoRowFit13->SetParError(2,0.00338262);
   ResoRowFit13->SetParLimits(2,0,1.833076);
   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 = 1524   ");
   text = ptstats->AddText("Mean  = -0.004382");
   text = ptstats->AddText("RMS   = 0.1834");
   text = ptstats->AddText("#chi^{2} / ndf = 105.4 / 69");
   text = ptstats->AddText("Constant = 81.95 #pm 3.01 ");
   text = ptstats->AddText("Mean     = -0.003902 #pm 0.003632 ");
   text = ptstats->AddText("Sigma    = 0.1351 #pm 0.0034 ");
   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,-12.73125,1.25,114.5813);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow14 = new TH1F("ResoRow14","",100,-1,1);
   ResoRow14->SetBinContent(0,5);
   ResoRow14->SetBinContent(1,1);
   ResoRow14->SetBinContent(3,1);
   ResoRow14->SetBinContent(4,1);
   ResoRow14->SetBinContent(6,3);
   ResoRow14->SetBinContent(8,1);
   ResoRow14->SetBinContent(12,1);
   ResoRow14->SetBinContent(14,1);
   ResoRow14->SetBinContent(15,2);
   ResoRow14->SetBinContent(16,1);
   ResoRow14->SetBinContent(18,1);
   ResoRow14->SetBinContent(22,1);
   ResoRow14->SetBinContent(23,2);
   ResoRow14->SetBinContent(25,3);
   ResoRow14->SetBinContent(26,2);
   ResoRow14->SetBinContent(27,2);
   ResoRow14->SetBinContent(28,4);
   ResoRow14->SetBinContent(30,3);
   ResoRow14->SetBinContent(31,4);
   ResoRow14->SetBinContent(32,3);
   ResoRow14->SetBinContent(33,6);
   ResoRow14->SetBinContent(34,5);
   ResoRow14->SetBinContent(35,8);
   ResoRow14->SetBinContent(36,7);
   ResoRow14->SetBinContent(37,9);
   ResoRow14->SetBinContent(38,15);
   ResoRow14->SetBinContent(39,25);
   ResoRow14->SetBinContent(40,24);
   ResoRow14->SetBinContent(41,30);
   ResoRow14->SetBinContent(42,36);
   ResoRow14->SetBinContent(43,58);
   ResoRow14->SetBinContent(44,46);
   ResoRow14->SetBinContent(45,63);
   ResoRow14->SetBinContent(46,82);
   ResoRow14->SetBinContent(47,76);
   ResoRow14->SetBinContent(48,97);
   ResoRow14->SetBinContent(49,93);
   ResoRow14->SetBinContent(50,75);
   ResoRow14->SetBinContent(51,85);
   ResoRow14->SetBinContent(52,84);
   ResoRow14->SetBinContent(53,76);
   ResoRow14->SetBinContent(54,84);
   ResoRow14->SetBinContent(55,61);
   ResoRow14->SetBinContent(56,62);
   ResoRow14->SetBinContent(57,44);
   ResoRow14->SetBinContent(58,48);
   ResoRow14->SetBinContent(59,28);
   ResoRow14->SetBinContent(60,17);
   ResoRow14->SetBinContent(61,27);
   ResoRow14->SetBinContent(62,15);
   ResoRow14->SetBinContent(63,11);
   ResoRow14->SetBinContent(64,8);
   ResoRow14->SetBinContent(65,8);
   ResoRow14->SetBinContent(66,6);
   ResoRow14->SetBinContent(67,1);
   ResoRow14->SetBinContent(68,8);
   ResoRow14->SetBinContent(69,2);
   ResoRow14->SetBinContent(70,6);
   ResoRow14->SetBinContent(71,2);
   ResoRow14->SetBinContent(72,1);
   ResoRow14->SetBinContent(73,2);
   ResoRow14->SetBinContent(74,2);
   ResoRow14->SetBinContent(75,3);
   ResoRow14->SetBinContent(76,2);
   ResoRow14->SetBinContent(77,2);
   ResoRow14->SetBinContent(78,2);
   ResoRow14->SetBinContent(79,1);
   ResoRow14->SetBinContent(80,2);
   ResoRow14->SetBinContent(81,2);
   ResoRow14->SetBinContent(82,1);
   ResoRow14->SetBinContent(84,2);
   ResoRow14->SetBinContent(85,1);
   ResoRow14->SetBinContent(86,1);
   ResoRow14->SetBinContent(88,1);
   ResoRow14->SetBinContent(95,1);
   ResoRow14->SetBinContent(97,1);
   ResoRow14->SetBinContent(101,17);
   ResoRow14->SetEntries(1524);
   
   TF1 *ResoRowFit14 = new TF1("ResoRowFit14","gaus",-1,1);
   ResoRowFit14->SetFillColor(19);
   ResoRowFit14->SetFillStyle(0);
   ResoRowFit14->SetLineWidth(3);
   ResoRowFit14->SetChisquare(97.95159);
   ResoRowFit14->SetNDF(72);
   ResoRowFit14->SetParameter(0,86.16569);
   ResoRowFit14->SetParError(0,2.988716);
   ResoRowFit14->SetParLimits(0,0,0);
   ResoRowFit14->SetParameter(1,-0.01128239);
   ResoRowFit14->SetParError(1,0.003484814);
   ResoRowFit14->SetParLimits(1,0,0);
   ResoRowFit14->SetParameter(2,0.1300617);
   ResoRowFit14->SetParError(2,0.002891458);
   ResoRowFit14->SetParLimits(2,0,1.799858);
   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 = 1524   ");
   text = ptstats->AddText("Mean  = -0.009466");
   text = ptstats->AddText("RMS   =   0.18");
   text = ptstats->AddText("#chi^{2} / ndf = 97.95 / 72");
   text = ptstats->AddText("Constant = 86.17 #pm 2.99 ");
   text = ptstats->AddText("Mean     = -0.01128 #pm 0.00348 ");
   text = ptstats->AddText("Sigma    = 0.1301 #pm 0.0029 ");
   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,-13.65,1.25,122.85);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow15 = new TH1F("ResoRow15","",100,-1,1);
   ResoRow15->SetBinContent(0,13);
   ResoRow15->SetBinContent(4,2);
   ResoRow15->SetBinContent(5,1);
   ResoRow15->SetBinContent(6,1);
   ResoRow15->SetBinContent(10,1);
   ResoRow15->SetBinContent(13,1);
   ResoRow15->SetBinContent(16,1);
   ResoRow15->SetBinContent(18,1);
   ResoRow15->SetBinContent(19,2);
   ResoRow15->SetBinContent(20,3);
   ResoRow15->SetBinContent(22,2);
   ResoRow15->SetBinContent(23,2);
   ResoRow15->SetBinContent(26,1);
   ResoRow15->SetBinContent(27,2);
   ResoRow15->SetBinContent(28,3);
   ResoRow15->SetBinContent(29,5);
   ResoRow15->SetBinContent(30,1);
   ResoRow15->SetBinContent(31,6);
   ResoRow15->SetBinContent(32,2);
   ResoRow15->SetBinContent(33,7);
   ResoRow15->SetBinContent(34,10);
   ResoRow15->SetBinContent(35,3);
   ResoRow15->SetBinContent(36,6);
   ResoRow15->SetBinContent(37,10);
   ResoRow15->SetBinContent(38,13);
   ResoRow15->SetBinContent(39,17);
   ResoRow15->SetBinContent(40,26);
   ResoRow15->SetBinContent(41,23);
   ResoRow15->SetBinContent(42,32);
   ResoRow15->SetBinContent(43,46);
   ResoRow15->SetBinContent(44,39);
   ResoRow15->SetBinContent(45,62);
   ResoRow15->SetBinContent(46,73);
   ResoRow15->SetBinContent(47,79);
   ResoRow15->SetBinContent(48,79);
   ResoRow15->SetBinContent(49,94);
   ResoRow15->SetBinContent(50,104);
   ResoRow15->SetBinContent(51,96);
   ResoRow15->SetBinContent(52,95);
   ResoRow15->SetBinContent(53,86);
   ResoRow15->SetBinContent(54,84);
   ResoRow15->SetBinContent(55,65);
   ResoRow15->SetBinContent(56,56);
   ResoRow15->SetBinContent(57,36);
   ResoRow15->SetBinContent(58,37);
   ResoRow15->SetBinContent(59,31);
   ResoRow15->SetBinContent(60,29);
   ResoRow15->SetBinContent(61,18);
   ResoRow15->SetBinContent(62,17);
   ResoRow15->SetBinContent(63,10);
   ResoRow15->SetBinContent(64,13);
   ResoRow15->SetBinContent(65,6);
   ResoRow15->SetBinContent(66,6);
   ResoRow15->SetBinContent(67,9);
   ResoRow15->SetBinContent(68,4);
   ResoRow15->SetBinContent(69,3);
   ResoRow15->SetBinContent(70,4);
   ResoRow15->SetBinContent(71,1);
   ResoRow15->SetBinContent(73,3);
   ResoRow15->SetBinContent(74,3);
   ResoRow15->SetBinContent(75,3);
   ResoRow15->SetBinContent(76,1);
   ResoRow15->SetBinContent(77,3);
   ResoRow15->SetBinContent(78,1);
   ResoRow15->SetBinContent(81,2);
   ResoRow15->SetBinContent(82,1);
   ResoRow15->SetBinContent(85,1);
   ResoRow15->SetBinContent(87,3);
   ResoRow15->SetBinContent(90,2);
   ResoRow15->SetBinContent(91,1);
   ResoRow15->SetBinContent(99,1);
   ResoRow15->SetBinContent(101,20);
   ResoRow15->SetEntries(1524);
   
   TF1 *ResoRowFit15 = new TF1("ResoRowFit15","gaus",-1,1);
   ResoRowFit15->SetFillColor(19);
   ResoRowFit15->SetFillStyle(0);
   ResoRowFit15->SetLineWidth(3);
   ResoRowFit15->SetChisquare(100.4792);
   ResoRowFit15->SetNDF(67);
   ResoRowFit15->SetParameter(0,87.52822);
   ResoRowFit15->SetParError(0,3.221857);
   ResoRowFit15->SetParLimits(0,0,0);
   ResoRowFit15->SetParameter(1,-0.002319829);
   ResoRowFit15->SetParError(1,0.003408704);
   ResoRowFit15->SetParLimits(1,0,0);
   ResoRowFit15->SetParameter(2,0.1267848);
   ResoRowFit15->SetParError(2,0.003204066);
   ResoRowFit15->SetParLimits(2,0,1.751602);
   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 = 1524   ");
   text = ptstats->AddText("Mean  = -0.003883");
   text = ptstats->AddText("RMS   = 0.1753");
   text = ptstats->AddText("#chi^{2} / ndf = 100.5 / 67");
   text = ptstats->AddText("Constant = 87.53 #pm 3.22 ");
   text = ptstats->AddText("Mean     = -0.00232 #pm 0.00341 ");
   text = ptstats->AddText("Sigma    = 0.1268 #pm 0.0032 ");
   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,-13.51875,1.25,121.6688);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow16 = new TH1F("ResoRow16","",100,-1,1);
   ResoRow16->SetBinContent(0,9);
   ResoRow16->SetBinContent(4,1);
   ResoRow16->SetBinContent(10,1);
   ResoRow16->SetBinContent(15,1);
   ResoRow16->SetBinContent(17,2);
   ResoRow16->SetBinContent(18,2);
   ResoRow16->SetBinContent(19,1);
   ResoRow16->SetBinContent(20,1);
   ResoRow16->SetBinContent(21,1);
   ResoRow16->SetBinContent(22,3);
   ResoRow16->SetBinContent(23,1);
   ResoRow16->SetBinContent(24,1);
   ResoRow16->SetBinContent(25,3);
   ResoRow16->SetBinContent(26,1);
   ResoRow16->SetBinContent(28,4);
   ResoRow16->SetBinContent(29,1);
   ResoRow16->SetBinContent(30,2);
   ResoRow16->SetBinContent(31,4);
   ResoRow16->SetBinContent(32,6);
   ResoRow16->SetBinContent(33,3);
   ResoRow16->SetBinContent(34,4);
   ResoRow16->SetBinContent(35,5);
   ResoRow16->SetBinContent(36,15);
   ResoRow16->SetBinContent(37,14);
   ResoRow16->SetBinContent(38,12);
   ResoRow16->SetBinContent(39,22);
   ResoRow16->SetBinContent(40,24);
   ResoRow16->SetBinContent(41,30);
   ResoRow16->SetBinContent(42,36);
   ResoRow16->SetBinContent(43,38);
   ResoRow16->SetBinContent(44,44);
   ResoRow16->SetBinContent(45,66);
   ResoRow16->SetBinContent(46,65);
   ResoRow16->SetBinContent(47,78);
   ResoRow16->SetBinContent(48,86);
   ResoRow16->SetBinContent(49,97);
   ResoRow16->SetBinContent(50,94);
   ResoRow16->SetBinContent(51,103);
   ResoRow16->SetBinContent(52,102);
   ResoRow16->SetBinContent(53,84);
   ResoRow16->SetBinContent(54,56);
   ResoRow16->SetBinContent(55,66);
   ResoRow16->SetBinContent(56,56);
   ResoRow16->SetBinContent(57,45);
   ResoRow16->SetBinContent(58,47);
   ResoRow16->SetBinContent(59,22);
   ResoRow16->SetBinContent(60,18);
   ResoRow16->SetBinContent(61,30);
   ResoRow16->SetBinContent(62,14);
   ResoRow16->SetBinContent(63,11);
   ResoRow16->SetBinContent(64,10);
   ResoRow16->SetBinContent(65,10);
   ResoRow16->SetBinContent(66,7);
   ResoRow16->SetBinContent(67,4);
   ResoRow16->SetBinContent(68,1);
   ResoRow16->SetBinContent(69,4);
   ResoRow16->SetBinContent(70,4);
   ResoRow16->SetBinContent(72,3);
   ResoRow16->SetBinContent(73,4);
   ResoRow16->SetBinContent(74,4);
   ResoRow16->SetBinContent(75,3);
   ResoRow16->SetBinContent(77,1);
   ResoRow16->SetBinContent(78,1);
   ResoRow16->SetBinContent(79,2);
   ResoRow16->SetBinContent(80,1);
   ResoRow16->SetBinContent(81,2);
   ResoRow16->SetBinContent(82,1);
   ResoRow16->SetBinContent(83,2);
   ResoRow16->SetBinContent(84,1);
   ResoRow16->SetBinContent(85,1);
   ResoRow16->SetBinContent(86,2);
   ResoRow16->SetBinContent(89,1);
   ResoRow16->SetBinContent(91,1);
   ResoRow16->SetBinContent(98,1);
   ResoRow16->SetBinContent(99,1);
   ResoRow16->SetBinContent(101,20);
   ResoRow16->SetEntries(1524);
   
   TF1 *ResoRowFit16 = new TF1("ResoRowFit16","gaus",-1,1);
   ResoRowFit16->SetFillColor(19);
   ResoRowFit16->SetFillStyle(0);
   ResoRowFit16->SetLineWidth(3);
   ResoRowFit16->SetChisquare(107.4076);
   ResoRowFit16->SetNDF(71);
   ResoRowFit16->SetParameter(0,85.48475);
   ResoRowFit16->SetParError(0,3.103435);
   ResoRowFit16->SetParLimits(0,0,0);
   ResoRowFit16->SetParameter(1,-0.008703552);
   ResoRowFit16->SetParError(1,0.003489763);
   ResoRowFit16->SetParLimits(1,0,0);
   ResoRowFit16->SetParameter(2,0.1295729);
   ResoRowFit16->SetParError(2,0.003180508);
   ResoRowFit16->SetParLimits(2,0,1.747469);
   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 = 1524   ");
   text = ptstats->AddText("Mean  = -0.003992");
   text = ptstats->AddText("RMS   = 0.1745");
   text = ptstats->AddText("#chi^{2} / ndf = 107.4 / 71");
   text = ptstats->AddText("Constant = 85.48 #pm 3.10 ");
   text = ptstats->AddText("Mean     = -0.008704 #pm 0.003490 ");
   text = ptstats->AddText("Sigma    = 0.1296 #pm 0.0032 ");
   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,-14.30625,1.25,128.7563);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow17 = new TH1F("ResoRow17","",100,-1,1);
   ResoRow17->SetBinContent(0,9);
   ResoRow17->SetBinContent(12,2);
   ResoRow17->SetBinContent(14,2);
   ResoRow17->SetBinContent(18,1);
   ResoRow17->SetBinContent(20,1);
   ResoRow17->SetBinContent(22,1);
   ResoRow17->SetBinContent(23,2);
   ResoRow17->SetBinContent(24,4);
   ResoRow17->SetBinContent(25,3);
   ResoRow17->SetBinContent(26,5);
   ResoRow17->SetBinContent(27,3);
   ResoRow17->SetBinContent(28,1);
   ResoRow17->SetBinContent(29,2);
   ResoRow17->SetBinContent(30,4);
   ResoRow17->SetBinContent(32,3);
   ResoRow17->SetBinContent(33,4);
   ResoRow17->SetBinContent(34,7);
   ResoRow17->SetBinContent(35,6);
   ResoRow17->SetBinContent(36,5);
   ResoRow17->SetBinContent(37,8);
   ResoRow17->SetBinContent(38,17);
   ResoRow17->SetBinContent(39,15);
   ResoRow17->SetBinContent(40,19);
   ResoRow17->SetBinContent(41,26);
   ResoRow17->SetBinContent(42,33);
   ResoRow17->SetBinContent(43,50);
   ResoRow17->SetBinContent(44,45);
   ResoRow17->SetBinContent(45,54);
   ResoRow17->SetBinContent(46,71);
   ResoRow17->SetBinContent(47,75);
   ResoRow17->SetBinContent(48,94);
   ResoRow17->SetBinContent(49,71);
   ResoRow17->SetBinContent(50,106);
   ResoRow17->SetBinContent(51,101);
   ResoRow17->SetBinContent(52,109);
   ResoRow17->SetBinContent(53,93);
   ResoRow17->SetBinContent(54,76);
   ResoRow17->SetBinContent(55,67);
   ResoRow17->SetBinContent(56,52);
   ResoRow17->SetBinContent(57,46);
   ResoRow17->SetBinContent(58,45);
   ResoRow17->SetBinContent(59,26);
   ResoRow17->SetBinContent(60,19);
   ResoRow17->SetBinContent(61,21);
   ResoRow17->SetBinContent(62,16);
   ResoRow17->SetBinContent(63,15);
   ResoRow17->SetBinContent(64,16);
   ResoRow17->SetBinContent(65,6);
   ResoRow17->SetBinContent(66,4);
   ResoRow17->SetBinContent(67,8);
   ResoRow17->SetBinContent(68,1);
   ResoRow17->SetBinContent(69,5);
   ResoRow17->SetBinContent(70,5);
   ResoRow17->SetBinContent(71,1);
   ResoRow17->SetBinContent(72,1);
   ResoRow17->SetBinContent(73,2);
   ResoRow17->SetBinContent(74,1);
   ResoRow17->SetBinContent(75,1);
   ResoRow17->SetBinContent(76,3);
   ResoRow17->SetBinContent(77,1);
   ResoRow17->SetBinContent(79,1);
   ResoRow17->SetBinContent(81,1);
   ResoRow17->SetBinContent(82,2);
   ResoRow17->SetBinContent(83,1);
   ResoRow17->SetBinContent(85,2);
   ResoRow17->SetBinContent(86,1);
   ResoRow17->SetBinContent(87,1);
   ResoRow17->SetBinContent(91,2);
   ResoRow17->SetBinContent(100,1);
   ResoRow17->SetBinContent(101,22);
   ResoRow17->SetEntries(1524);
   
   TF1 *ResoRowFit17 = new TF1("ResoRowFit17","gaus",-1,1);
   ResoRowFit17->SetFillColor(19);
   ResoRowFit17->SetFillStyle(0);
   ResoRowFit17->SetLineWidth(3);
   ResoRowFit17->SetChisquare(99.89454);
   ResoRowFit17->SetNDF(65);
   ResoRowFit17->SetParameter(0,88.7227);
   ResoRowFit17->SetParError(0,3.207052);
   ResoRowFit17->SetParLimits(0,0,0);
   ResoRowFit17->SetParameter(1,-0.002004554);
   ResoRowFit17->SetParError(1,0.003367102);
   ResoRowFit17->SetParLimits(1,0,0);
   ResoRowFit17->SetParameter(2,0.1253493);
   ResoRowFit17->SetParError(2,0.003054868);
   ResoRowFit17->SetParLimits(2,0,1.665167);
   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 = 1524   ");
   text = ptstats->AddText("Mean  = -0.001097");
   text = ptstats->AddText("RMS   = 0.1664");
   text = ptstats->AddText("#chi^{2} / ndf = 99.89 / 65");
   text = ptstats->AddText("Constant = 88.72 #pm 3.21 ");
   text = ptstats->AddText("Mean     = -0.002005 #pm 0.003367 ");
   text = ptstats->AddText("Sigma    = 0.1253 #pm 0.0031 ");
   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,-15.61875,1.25,140.5688);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow18 = new TH1F("ResoRow18","",100,-1,1);
   ResoRow18->SetBinContent(0,12);
   ResoRow18->SetBinContent(3,2);
   ResoRow18->SetBinContent(5,1);
   ResoRow18->SetBinContent(6,1);
   ResoRow18->SetBinContent(8,1);
   ResoRow18->SetBinContent(12,1);
   ResoRow18->SetBinContent(15,1);
   ResoRow18->SetBinContent(16,1);
   ResoRow18->SetBinContent(18,2);
   ResoRow18->SetBinContent(22,1);
   ResoRow18->SetBinContent(23,1);
   ResoRow18->SetBinContent(24,1);
   ResoRow18->SetBinContent(25,3);
   ResoRow18->SetBinContent(27,4);
   ResoRow18->SetBinContent(28,4);
   ResoRow18->SetBinContent(29,5);
   ResoRow18->SetBinContent(30,2);
   ResoRow18->SetBinContent(31,3);
   ResoRow18->SetBinContent(32,4);
   ResoRow18->SetBinContent(33,3);
   ResoRow18->SetBinContent(34,7);
   ResoRow18->SetBinContent(35,9);
   ResoRow18->SetBinContent(36,5);
   ResoRow18->SetBinContent(37,8);
   ResoRow18->SetBinContent(38,16);
   ResoRow18->SetBinContent(39,14);
   ResoRow18->SetBinContent(40,17);
   ResoRow18->SetBinContent(41,23);
   ResoRow18->SetBinContent(42,30);
   ResoRow18->SetBinContent(43,39);
   ResoRow18->SetBinContent(44,55);
   ResoRow18->SetBinContent(45,50);
   ResoRow18->SetBinContent(46,69);
   ResoRow18->SetBinContent(47,64);
   ResoRow18->SetBinContent(48,67);
   ResoRow18->SetBinContent(49,87);
   ResoRow18->SetBinContent(50,99);
   ResoRow18->SetBinContent(51,119);
   ResoRow18->SetBinContent(52,93);
   ResoRow18->SetBinContent(53,92);
   ResoRow18->SetBinContent(54,87);
   ResoRow18->SetBinContent(55,73);
   ResoRow18->SetBinContent(56,60);
   ResoRow18->SetBinContent(57,52);
   ResoRow18->SetBinContent(58,50);
   ResoRow18->SetBinContent(59,38);
   ResoRow18->SetBinContent(60,25);
   ResoRow18->SetBinContent(61,26);
   ResoRow18->SetBinContent(62,14);
   ResoRow18->SetBinContent(63,8);
   ResoRow18->SetBinContent(64,8);
   ResoRow18->SetBinContent(65,1);
   ResoRow18->SetBinContent(66,2);
   ResoRow18->SetBinContent(67,8);
   ResoRow18->SetBinContent(68,6);
   ResoRow18->SetBinContent(69,5);
   ResoRow18->SetBinContent(70,5);
   ResoRow18->SetBinContent(71,1);
   ResoRow18->SetBinContent(72,4);
   ResoRow18->SetBinContent(74,2);
   ResoRow18->SetBinContent(75,1);
   ResoRow18->SetBinContent(76,3);
   ResoRow18->SetBinContent(78,2);
   ResoRow18->SetBinContent(79,1);
   ResoRow18->SetBinContent(80,2);
   ResoRow18->SetBinContent(81,2);
   ResoRow18->SetBinContent(82,1);
   ResoRow18->SetBinContent(101,21);
   ResoRow18->SetEntries(1524);
   
   TF1 *ResoRowFit18 = new TF1("ResoRowFit18","gaus",-1,1);
   ResoRowFit18->SetFillColor(19);
   ResoRowFit18->SetFillStyle(0);
   ResoRowFit18->SetLineWidth(3);
   ResoRowFit18->SetChisquare(118.1678);
   ResoRowFit18->SetNDF(63);
   ResoRowFit18->SetParameter(0,93.32818);
   ResoRowFit18->SetParError(0,3.253709);
   ResoRowFit18->SetParLimits(0,0,0);
   ResoRowFit18->SetParameter(1,0.001955991);
   ResoRowFit18->SetParError(1,0.00336025);
   ResoRowFit18->SetParLimits(1,0,0);
   ResoRowFit18->SetParameter(2,0.1173737);
   ResoRowFit18->SetParError(2,0.002593559);
   ResoRowFit18->SetParLimits(2,0,1.647029);
   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 = 1524   ");
   text = ptstats->AddText("Mean  = -0.0007291");
   text = ptstats->AddText("RMS   = 0.1646");
   text = ptstats->AddText("#chi^{2} / ndf = 118.2 / 63");
   text = ptstats->AddText("Constant = 93.33 #pm 3.25 ");
   text = ptstats->AddText("Mean     = 0.001956 #pm 0.003360 ");
   text = ptstats->AddText("Sigma    = 0.1174 #pm 0.0026 ");
   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);
}
