{
//=========Macro generated from canvas: c2/
//=========  (Wed Jun  9 19:20:53 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,-15.4875,1.25,139.3875);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow13 = new TH1F("ResoRow13","",100,-1,1);
   ResoRow13->SetBinContent(0,7);
   ResoRow13->SetBinContent(1,1);
   ResoRow13->SetBinContent(6,2);
   ResoRow13->SetBinContent(7,1);
   ResoRow13->SetBinContent(14,1);
   ResoRow13->SetBinContent(19,3);
   ResoRow13->SetBinContent(21,1);
   ResoRow13->SetBinContent(22,3);
   ResoRow13->SetBinContent(23,2);
   ResoRow13->SetBinContent(25,1);
   ResoRow13->SetBinContent(26,1);
   ResoRow13->SetBinContent(27,2);
   ResoRow13->SetBinContent(28,3);
   ResoRow13->SetBinContent(29,3);
   ResoRow13->SetBinContent(30,3);
   ResoRow13->SetBinContent(31,4);
   ResoRow13->SetBinContent(32,4);
   ResoRow13->SetBinContent(33,8);
   ResoRow13->SetBinContent(34,4);
   ResoRow13->SetBinContent(35,3);
   ResoRow13->SetBinContent(36,4);
   ResoRow13->SetBinContent(37,11);
   ResoRow13->SetBinContent(38,10);
   ResoRow13->SetBinContent(39,9);
   ResoRow13->SetBinContent(40,8);
   ResoRow13->SetBinContent(41,21);
   ResoRow13->SetBinContent(42,15);
   ResoRow13->SetBinContent(43,35);
   ResoRow13->SetBinContent(44,37);
   ResoRow13->SetBinContent(45,58);
   ResoRow13->SetBinContent(46,52);
   ResoRow13->SetBinContent(47,110);
   ResoRow13->SetBinContent(48,99);
   ResoRow13->SetBinContent(49,100);
   ResoRow13->SetBinContent(50,118);
   ResoRow13->SetBinContent(51,112);
   ResoRow13->SetBinContent(52,105);
   ResoRow13->SetBinContent(53,94);
   ResoRow13->SetBinContent(54,93);
   ResoRow13->SetBinContent(55,63);
   ResoRow13->SetBinContent(56,49);
   ResoRow13->SetBinContent(57,43);
   ResoRow13->SetBinContent(58,30);
   ResoRow13->SetBinContent(59,24);
   ResoRow13->SetBinContent(60,20);
   ResoRow13->SetBinContent(61,22);
   ResoRow13->SetBinContent(62,11);
   ResoRow13->SetBinContent(63,14);
   ResoRow13->SetBinContent(64,6);
   ResoRow13->SetBinContent(65,10);
   ResoRow13->SetBinContent(66,7);
   ResoRow13->SetBinContent(67,3);
   ResoRow13->SetBinContent(68,8);
   ResoRow13->SetBinContent(69,4);
   ResoRow13->SetBinContent(70,3);
   ResoRow13->SetBinContent(71,1);
   ResoRow13->SetBinContent(72,1);
   ResoRow13->SetBinContent(73,3);
   ResoRow13->SetBinContent(74,1);
   ResoRow13->SetBinContent(76,2);
   ResoRow13->SetBinContent(77,1);
   ResoRow13->SetBinContent(78,1);
   ResoRow13->SetBinContent(79,1);
   ResoRow13->SetBinContent(80,1);
   ResoRow13->SetBinContent(83,1);
   ResoRow13->SetBinContent(90,2);
   ResoRow13->SetBinContent(92,2);
   ResoRow13->SetBinContent(98,1);
   ResoRow13->SetBinContent(101,18);
   ResoRow13->SetEntries(1501);
   
   TF1 *ResoRowFit13 = new TF1("ResoRowFit13","gaus",-1,1);
   ResoRowFit13->SetFillColor(19);
   ResoRowFit13->SetFillStyle(0);
   ResoRowFit13->SetLineWidth(3);
   ResoRowFit13->SetChisquare(145.0148);
   ResoRowFit13->SetNDF(64);
   ResoRowFit13->SetParameter(0,101.3089);
   ResoRowFit13->SetParError(0,4.071162);
   ResoRowFit13->SetParLimits(0,0,0);
   ResoRowFit13->SetParameter(1,0.004664429);
   ResoRowFit13->SetParError(1,0.002915119);
   ResoRowFit13->SetParLimits(1,0,0);
   ResoRowFit13->SetParameter(2,0.1048254);
   ResoRowFit13->SetParError(2,0.003073548);
   ResoRowFit13->SetParLimits(2,0,1.603759);
   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 = 1501   ");
   text = ptstats->AddText("Mean  = 0.0005459");
   text = ptstats->AddText("RMS   = 0.1599");
   text = ptstats->AddText("#chi^{2} / ndf =   145 / 64");
   text = ptstats->AddText("Constant = 101.3 #pm 4.1 ");
   text = ptstats->AddText("Mean     = 0.004664 #pm 0.002915 ");
   text = ptstats->AddText("Sigma    = 0.1048 #pm 0.0031 ");
   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,-15.225,1.25,137.025);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow14 = new TH1F("ResoRow14","",100,-1,1);
   ResoRow14->SetBinContent(0,9);
   ResoRow14->SetBinContent(5,1);
   ResoRow14->SetBinContent(7,2);
   ResoRow14->SetBinContent(8,1);
   ResoRow14->SetBinContent(10,1);
   ResoRow14->SetBinContent(12,1);
   ResoRow14->SetBinContent(13,1);
   ResoRow14->SetBinContent(14,1);
   ResoRow14->SetBinContent(15,1);
   ResoRow14->SetBinContent(16,1);
   ResoRow14->SetBinContent(19,1);
   ResoRow14->SetBinContent(24,1);
   ResoRow14->SetBinContent(25,2);
   ResoRow14->SetBinContent(27,1);
   ResoRow14->SetBinContent(28,2);
   ResoRow14->SetBinContent(29,1);
   ResoRow14->SetBinContent(30,2);
   ResoRow14->SetBinContent(31,3);
   ResoRow14->SetBinContent(32,4);
   ResoRow14->SetBinContent(33,1);
   ResoRow14->SetBinContent(34,6);
   ResoRow14->SetBinContent(35,6);
   ResoRow14->SetBinContent(36,4);
   ResoRow14->SetBinContent(37,10);
   ResoRow14->SetBinContent(38,9);
   ResoRow14->SetBinContent(39,16);
   ResoRow14->SetBinContent(40,10);
   ResoRow14->SetBinContent(41,22);
   ResoRow14->SetBinContent(42,24);
   ResoRow14->SetBinContent(43,30);
   ResoRow14->SetBinContent(44,36);
   ResoRow14->SetBinContent(45,49);
   ResoRow14->SetBinContent(46,58);
   ResoRow14->SetBinContent(47,67);
   ResoRow14->SetBinContent(48,91);
   ResoRow14->SetBinContent(49,105);
   ResoRow14->SetBinContent(50,110);
   ResoRow14->SetBinContent(51,116);
   ResoRow14->SetBinContent(52,115);
   ResoRow14->SetBinContent(53,92);
   ResoRow14->SetBinContent(54,115);
   ResoRow14->SetBinContent(55,65);
   ResoRow14->SetBinContent(56,58);
   ResoRow14->SetBinContent(57,51);
   ResoRow14->SetBinContent(58,41);
   ResoRow14->SetBinContent(59,20);
   ResoRow14->SetBinContent(60,30);
   ResoRow14->SetBinContent(61,9);
   ResoRow14->SetBinContent(62,11);
   ResoRow14->SetBinContent(63,13);
   ResoRow14->SetBinContent(64,4);
   ResoRow14->SetBinContent(65,7);
   ResoRow14->SetBinContent(66,3);
   ResoRow14->SetBinContent(67,7);
   ResoRow14->SetBinContent(68,6);
   ResoRow14->SetBinContent(69,2);
   ResoRow14->SetBinContent(70,1);
   ResoRow14->SetBinContent(71,4);
   ResoRow14->SetBinContent(72,3);
   ResoRow14->SetBinContent(73,1);
   ResoRow14->SetBinContent(75,2);
   ResoRow14->SetBinContent(76,1);
   ResoRow14->SetBinContent(77,2);
   ResoRow14->SetBinContent(78,1);
   ResoRow14->SetBinContent(79,1);
   ResoRow14->SetBinContent(80,2);
   ResoRow14->SetBinContent(81,1);
   ResoRow14->SetBinContent(83,1);
   ResoRow14->SetBinContent(86,1);
   ResoRow14->SetBinContent(90,1);
   ResoRow14->SetBinContent(92,2);
   ResoRow14->SetBinContent(101,22);
   ResoRow14->SetEntries(1501);
   
   TF1 *ResoRowFit14 = new TF1("ResoRowFit14","gaus",-1,1);
   ResoRowFit14->SetFillColor(19);
   ResoRowFit14->SetFillStyle(0);
   ResoRowFit14->SetLineWidth(3);
   ResoRowFit14->SetChisquare(123.3986);
   ResoRowFit14->SetNDF(67);
   ResoRowFit14->SetParameter(0,101.3639);
   ResoRowFit14->SetParError(0,3.916044);
   ResoRowFit14->SetParLimits(0,0,0);
   ResoRowFit14->SetParameter(1,0.006112701);
   ResoRowFit14->SetParError(1,0.002927171);
   ResoRowFit14->SetParLimits(1,0,0);
   ResoRowFit14->SetParameter(2,0.1059984);
   ResoRowFit14->SetParError(2,0.002902055);
   ResoRowFit14->SetParLimits(2,0,1.570909);
   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 = 1501   ");
   text = ptstats->AddText("Mean  = 0.005441");
   text = ptstats->AddText("RMS   = 0.1571");
   text = ptstats->AddText("#chi^{2} / ndf = 123.4 / 67");
   text = ptstats->AddText("Constant = 101.4 #pm 3.9 ");
   text = ptstats->AddText("Mean     = 0.006113 #pm 0.002927 ");
   text = ptstats->AddText("Sigma    = 0.106 #pm 0.003 ");
   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,-17.325,1.25,155.925);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow15 = new TH1F("ResoRow15","",100,-1,1);
   ResoRow15->SetBinContent(0,10);
   ResoRow15->SetBinContent(13,1);
   ResoRow15->SetBinContent(16,1);
   ResoRow15->SetBinContent(17,1);
   ResoRow15->SetBinContent(18,1);
   ResoRow15->SetBinContent(19,1);
   ResoRow15->SetBinContent(20,1);
   ResoRow15->SetBinContent(21,1);
   ResoRow15->SetBinContent(23,1);
   ResoRow15->SetBinContent(24,1);
   ResoRow15->SetBinContent(25,2);
   ResoRow15->SetBinContent(26,1);
   ResoRow15->SetBinContent(27,3);
   ResoRow15->SetBinContent(28,1);
   ResoRow15->SetBinContent(30,1);
   ResoRow15->SetBinContent(31,5);
   ResoRow15->SetBinContent(32,2);
   ResoRow15->SetBinContent(33,5);
   ResoRow15->SetBinContent(34,3);
   ResoRow15->SetBinContent(35,1);
   ResoRow15->SetBinContent(36,7);
   ResoRow15->SetBinContent(37,3);
   ResoRow15->SetBinContent(38,6);
   ResoRow15->SetBinContent(39,25);
   ResoRow15->SetBinContent(40,10);
   ResoRow15->SetBinContent(41,17);
   ResoRow15->SetBinContent(42,22);
   ResoRow15->SetBinContent(43,35);
   ResoRow15->SetBinContent(44,34);
   ResoRow15->SetBinContent(45,46);
   ResoRow15->SetBinContent(46,53);
   ResoRow15->SetBinContent(47,84);
   ResoRow15->SetBinContent(48,93);
   ResoRow15->SetBinContent(49,99);
   ResoRow15->SetBinContent(50,132);
   ResoRow15->SetBinContent(51,112);
   ResoRow15->SetBinContent(52,114);
   ResoRow15->SetBinContent(53,118);
   ResoRow15->SetBinContent(54,81);
   ResoRow15->SetBinContent(55,65);
   ResoRow15->SetBinContent(56,62);
   ResoRow15->SetBinContent(57,47);
   ResoRow15->SetBinContent(58,40);
   ResoRow15->SetBinContent(59,26);
   ResoRow15->SetBinContent(60,19);
   ResoRow15->SetBinContent(61,12);
   ResoRow15->SetBinContent(62,10);
   ResoRow15->SetBinContent(63,7);
   ResoRow15->SetBinContent(64,10);
   ResoRow15->SetBinContent(65,6);
   ResoRow15->SetBinContent(66,5);
   ResoRow15->SetBinContent(67,5);
   ResoRow15->SetBinContent(68,5);
   ResoRow15->SetBinContent(69,4);
   ResoRow15->SetBinContent(70,2);
   ResoRow15->SetBinContent(71,4);
   ResoRow15->SetBinContent(72,2);
   ResoRow15->SetBinContent(73,2);
   ResoRow15->SetBinContent(75,2);
   ResoRow15->SetBinContent(79,2);
   ResoRow15->SetBinContent(80,1);
   ResoRow15->SetBinContent(81,2);
   ResoRow15->SetBinContent(92,1);
   ResoRow15->SetBinContent(93,1);
   ResoRow15->SetBinContent(96,3);
   ResoRow15->SetBinContent(99,1);
   ResoRow15->SetBinContent(101,21);
   ResoRow15->SetEntries(1501);
   
   TF1 *ResoRowFit15 = new TF1("ResoRowFit15","gaus",-1,1);
   ResoRowFit15->SetFillColor(19);
   ResoRowFit15->SetFillStyle(0);
   ResoRowFit15->SetLineWidth(3);
   ResoRowFit15->SetChisquare(114.6357);
   ResoRowFit15->SetNDF(62);
   ResoRowFit15->SetParameter(0,104.8102);
   ResoRowFit15->SetParError(0,3.953972);
   ResoRowFit15->SetParLimits(0,0,0);
   ResoRowFit15->SetParameter(1,0.007379567);
   ResoRowFit15->SetParError(1,0.002803659);
   ResoRowFit15->SetParLimits(1,0,0);
   ResoRowFit15->SetParameter(2,0.1031808);
   ResoRowFit15->SetParError(2,0.002700889);
   ResoRowFit15->SetParLimits(2,0,1.512244);
   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 = 1501   ");
   text = ptstats->AddText("Mean  = 0.007821");
   text = ptstats->AddText("RMS   = 0.1513");
   text = ptstats->AddText("#chi^{2} / ndf = 114.6 / 62");
   text = ptstats->AddText("Constant = 104.8 #pm 4.0 ");
   text = ptstats->AddText("Mean     = 0.00738 #pm 0.00280 ");
   text = ptstats->AddText("Sigma    = 0.1032 #pm 0.0027 ");
   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,-16.14375,1.25,145.2938);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow16 = new TH1F("ResoRow16","",100,-1,1);
   ResoRow16->SetBinContent(0,13);
   ResoRow16->SetBinContent(3,1);
   ResoRow16->SetBinContent(4,1);
   ResoRow16->SetBinContent(12,1);
   ResoRow16->SetBinContent(18,1);
   ResoRow16->SetBinContent(19,1);
   ResoRow16->SetBinContent(22,1);
   ResoRow16->SetBinContent(23,2);
   ResoRow16->SetBinContent(24,1);
   ResoRow16->SetBinContent(25,2);
   ResoRow16->SetBinContent(26,2);
   ResoRow16->SetBinContent(28,1);
   ResoRow16->SetBinContent(30,3);
   ResoRow16->SetBinContent(31,3);
   ResoRow16->SetBinContent(33,2);
   ResoRow16->SetBinContent(34,4);
   ResoRow16->SetBinContent(35,4);
   ResoRow16->SetBinContent(36,6);
   ResoRow16->SetBinContent(37,9);
   ResoRow16->SetBinContent(38,8);
   ResoRow16->SetBinContent(39,11);
   ResoRow16->SetBinContent(40,16);
   ResoRow16->SetBinContent(41,27);
   ResoRow16->SetBinContent(42,19);
   ResoRow16->SetBinContent(43,31);
   ResoRow16->SetBinContent(44,38);
   ResoRow16->SetBinContent(45,48);
   ResoRow16->SetBinContent(46,71);
   ResoRow16->SetBinContent(47,70);
   ResoRow16->SetBinContent(48,95);
   ResoRow16->SetBinContent(49,119);
   ResoRow16->SetBinContent(50,120);
   ResoRow16->SetBinContent(51,113);
   ResoRow16->SetBinContent(52,123);
   ResoRow16->SetBinContent(53,99);
   ResoRow16->SetBinContent(54,85);
   ResoRow16->SetBinContent(55,72);
   ResoRow16->SetBinContent(56,50);
   ResoRow16->SetBinContent(57,42);
   ResoRow16->SetBinContent(58,29);
   ResoRow16->SetBinContent(59,28);
   ResoRow16->SetBinContent(60,24);
   ResoRow16->SetBinContent(61,11);
   ResoRow16->SetBinContent(62,12);
   ResoRow16->SetBinContent(63,7);
   ResoRow16->SetBinContent(64,6);
   ResoRow16->SetBinContent(65,9);
   ResoRow16->SetBinContent(66,2);
   ResoRow16->SetBinContent(67,5);
   ResoRow16->SetBinContent(68,4);
   ResoRow16->SetBinContent(69,1);
   ResoRow16->SetBinContent(70,4);
   ResoRow16->SetBinContent(71,1);
   ResoRow16->SetBinContent(72,1);
   ResoRow16->SetBinContent(73,2);
   ResoRow16->SetBinContent(76,3);
   ResoRow16->SetBinContent(78,2);
   ResoRow16->SetBinContent(82,2);
   ResoRow16->SetBinContent(83,3);
   ResoRow16->SetBinContent(88,1);
   ResoRow16->SetBinContent(90,1);
   ResoRow16->SetBinContent(95,1);
   ResoRow16->SetBinContent(101,27);
   ResoRow16->SetEntries(1501);
   
   TF1 *ResoRowFit16 = new TF1("ResoRowFit16","gaus",-1,1);
   ResoRowFit16->SetFillColor(19);
   ResoRowFit16->SetFillStyle(0);
   ResoRowFit16->SetLineWidth(3);
   ResoRowFit16->SetChisquare(99.4384);
   ResoRowFit16->SetNDF(58);
   ResoRowFit16->SetParameter(0,103.3685);
   ResoRowFit16->SetParError(0,4.015504);
   ResoRowFit16->SetParLimits(0,0,0);
   ResoRowFit16->SetParameter(1,0.001950104);
   ResoRowFit16->SetParError(1,0.002860506);
   ResoRowFit16->SetParLimits(1,0,0);
   ResoRowFit16->SetParameter(2,0.1051146);
   ResoRowFit16->SetParError(2,0.002930814);
   ResoRowFit16->SetParLimits(2,0,1.461308);
   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 = 1501   ");
   text = ptstats->AddText("Mean  = 0.001985");
   text = ptstats->AddText("RMS   = 0.1459");
   text = ptstats->AddText("#chi^{2} / ndf = 99.44 / 58");
   text = ptstats->AddText("Constant = 103.4 #pm 4.0 ");
   text = ptstats->AddText("Mean     = 0.00195 #pm 0.00286 ");
   text = ptstats->AddText("Sigma    = 0.1051 #pm 0.0029 ");
   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.56875,1.25,131.1188);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow17 = new TH1F("ResoRow17","",100,-1,1);
   ResoRow17->SetBinContent(0,7);
   ResoRow17->SetBinContent(8,2);
   ResoRow17->SetBinContent(10,1);
   ResoRow17->SetBinContent(12,1);
   ResoRow17->SetBinContent(13,1);
   ResoRow17->SetBinContent(15,1);
   ResoRow17->SetBinContent(16,1);
   ResoRow17->SetBinContent(21,1);
   ResoRow17->SetBinContent(22,4);
   ResoRow17->SetBinContent(24,1);
   ResoRow17->SetBinContent(27,3);
   ResoRow17->SetBinContent(30,2);
   ResoRow17->SetBinContent(31,2);
   ResoRow17->SetBinContent(32,6);
   ResoRow17->SetBinContent(33,2);
   ResoRow17->SetBinContent(34,5);
   ResoRow17->SetBinContent(35,6);
   ResoRow17->SetBinContent(36,4);
   ResoRow17->SetBinContent(37,5);
   ResoRow17->SetBinContent(38,6);
   ResoRow17->SetBinContent(39,15);
   ResoRow17->SetBinContent(40,19);
   ResoRow17->SetBinContent(41,19);
   ResoRow17->SetBinContent(42,31);
   ResoRow17->SetBinContent(43,25);
   ResoRow17->SetBinContent(44,49);
   ResoRow17->SetBinContent(45,58);
   ResoRow17->SetBinContent(46,74);
   ResoRow17->SetBinContent(47,91);
   ResoRow17->SetBinContent(48,97);
   ResoRow17->SetBinContent(49,104);
   ResoRow17->SetBinContent(50,107);
   ResoRow17->SetBinContent(51,110);
   ResoRow17->SetBinContent(52,94);
   ResoRow17->SetBinContent(53,111);
   ResoRow17->SetBinContent(54,81);
   ResoRow17->SetBinContent(55,70);
   ResoRow17->SetBinContent(56,57);
   ResoRow17->SetBinContent(57,40);
   ResoRow17->SetBinContent(58,40);
   ResoRow17->SetBinContent(59,20);
   ResoRow17->SetBinContent(60,27);
   ResoRow17->SetBinContent(61,14);
   ResoRow17->SetBinContent(62,14);
   ResoRow17->SetBinContent(63,12);
   ResoRow17->SetBinContent(64,5);
   ResoRow17->SetBinContent(65,4);
   ResoRow17->SetBinContent(66,4);
   ResoRow17->SetBinContent(67,5);
   ResoRow17->SetBinContent(68,1);
   ResoRow17->SetBinContent(70,6);
   ResoRow17->SetBinContent(71,1);
   ResoRow17->SetBinContent(73,2);
   ResoRow17->SetBinContent(74,2);
   ResoRow17->SetBinContent(75,1);
   ResoRow17->SetBinContent(76,1);
   ResoRow17->SetBinContent(77,1);
   ResoRow17->SetBinContent(88,2);
   ResoRow17->SetBinContent(91,1);
   ResoRow17->SetBinContent(92,1);
   ResoRow17->SetBinContent(101,24);
   ResoRow17->SetEntries(1501);
   
   TF1 *ResoRowFit17 = new TF1("ResoRowFit17","gaus",-1,1);
   ResoRowFit17->SetFillColor(19);
   ResoRowFit17->SetFillStyle(0);
   ResoRowFit17->SetLineWidth(3);
   ResoRowFit17->SetChisquare(83.11408);
   ResoRowFit17->SetNDF(56);
   ResoRowFit17->SetParameter(0,101.4838);
   ResoRowFit17->SetParError(0,3.700134);
   ResoRowFit17->SetParLimits(0,0,0);
   ResoRowFit17->SetParameter(1,-0.0002653067);
   ResoRowFit17->SetParError(1,0.002935428);
   ResoRowFit17->SetParLimits(1,0,0);
   ResoRowFit17->SetParameter(2,0.1090736);
   ResoRowFit17->SetParError(2,0.002699258);
   ResoRowFit17->SetParLimits(2,0,1.466236);
   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 = 1501   ");
   text = ptstats->AddText("Mean  = -0.004017");
   text = ptstats->AddText("RMS   = 0.1466");
   text = ptstats->AddText("#chi^{2} / ndf = 83.11 / 56");
   text = ptstats->AddText("Constant = 101.5 #pm 3.7 ");
   text = ptstats->AddText("Mean     = -0.0002653 #pm 0.0029354 ");
   text = ptstats->AddText("Sigma    = 0.1091 #pm 0.0027 ");
   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,-16.40625,1.25,147.6563);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow18 = new TH1F("ResoRow18","",100,-1,1);
   ResoRow18->SetBinContent(0,6);
   ResoRow18->SetBinContent(20,1);
   ResoRow18->SetBinContent(22,1);
   ResoRow18->SetBinContent(23,3);
   ResoRow18->SetBinContent(24,2);
   ResoRow18->SetBinContent(25,3);
   ResoRow18->SetBinContent(26,1);
   ResoRow18->SetBinContent(27,3);
   ResoRow18->SetBinContent(28,2);
   ResoRow18->SetBinContent(29,1);
   ResoRow18->SetBinContent(30,3);
   ResoRow18->SetBinContent(31,1);
   ResoRow18->SetBinContent(32,1);
   ResoRow18->SetBinContent(33,1);
   ResoRow18->SetBinContent(34,6);
   ResoRow18->SetBinContent(35,4);
   ResoRow18->SetBinContent(36,10);
   ResoRow18->SetBinContent(37,10);
   ResoRow18->SetBinContent(38,7);
   ResoRow18->SetBinContent(39,14);
   ResoRow18->SetBinContent(40,17);
   ResoRow18->SetBinContent(41,20);
   ResoRow18->SetBinContent(42,28);
   ResoRow18->SetBinContent(43,36);
   ResoRow18->SetBinContent(44,51);
   ResoRow18->SetBinContent(45,57);
   ResoRow18->SetBinContent(46,71);
   ResoRow18->SetBinContent(47,95);
   ResoRow18->SetBinContent(48,105);
   ResoRow18->SetBinContent(49,121);
   ResoRow18->SetBinContent(50,125);
   ResoRow18->SetBinContent(51,114);
   ResoRow18->SetBinContent(52,115);
   ResoRow18->SetBinContent(53,79);
   ResoRow18->SetBinContent(54,68);
   ResoRow18->SetBinContent(55,68);
   ResoRow18->SetBinContent(56,43);
   ResoRow18->SetBinContent(57,36);
   ResoRow18->SetBinContent(58,32);
   ResoRow18->SetBinContent(59,15);
   ResoRow18->SetBinContent(60,20);
   ResoRow18->SetBinContent(61,12);
   ResoRow18->SetBinContent(62,14);
   ResoRow18->SetBinContent(63,9);
   ResoRow18->SetBinContent(64,10);
   ResoRow18->SetBinContent(65,7);
   ResoRow18->SetBinContent(66,3);
   ResoRow18->SetBinContent(67,2);
   ResoRow18->SetBinContent(68,4);
   ResoRow18->SetBinContent(69,7);
   ResoRow18->SetBinContent(70,1);
   ResoRow18->SetBinContent(71,3);
   ResoRow18->SetBinContent(72,2);
   ResoRow18->SetBinContent(73,1);
   ResoRow18->SetBinContent(74,1);
   ResoRow18->SetBinContent(75,1);
   ResoRow18->SetBinContent(76,1);
   ResoRow18->SetBinContent(78,1);
   ResoRow18->SetBinContent(83,1);
   ResoRow18->SetBinContent(85,1);
   ResoRow18->SetBinContent(87,1);
   ResoRow18->SetBinContent(94,1);
   ResoRow18->SetBinContent(95,1);
   ResoRow18->SetBinContent(96,1);
   ResoRow18->SetBinContent(101,20);
   ResoRow18->SetEntries(1501);
   
   TF1 *ResoRowFit18 = new TF1("ResoRowFit18","gaus",-1,1);
   ResoRowFit18->SetFillColor(19);
   ResoRowFit18->SetFillStyle(0);
   ResoRowFit18->SetLineWidth(3);
   ResoRowFit18->SetChisquare(106.79);
   ResoRowFit18->SetNDF(60);
   ResoRowFit18->SetParameter(0,103.1204);
   ResoRowFit18->SetParError(0,4.051268);
   ResoRowFit18->SetParLimits(0,0,0);
   ResoRowFit18->SetParameter(1,-0.0106111);
   ResoRowFit18->SetParError(1,0.002866938);
   ResoRowFit18->SetParLimits(1,0,0);
   ResoRowFit18->SetParameter(2,0.105864);
   ResoRowFit18->SetParError(2,0.003019156);
   ResoRowFit18->SetParLimits(2,0,1.437994);
   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 = 1501   ");
   text = ptstats->AddText("Mean  = -0.007054");
   text = ptstats->AddText("RMS   =  0.144");
   text = ptstats->AddText("#chi^{2} / ndf = 106.8 / 60");
   text = ptstats->AddText("Constant = 103.1 #pm 4.1 ");
   text = ptstats->AddText("Mean     = -0.01061 #pm 0.00287 ");
   text = ptstats->AddText("Sigma    = 0.1059 #pm 0.0030 ");
   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);
}
