{
//=========Macro generated from canvas: c2/
//=========  (Tue Jun  8 22:08:07 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,-11.8125,1.25,106.3125);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow12 = new TH1F("ResoRow12","",100,-1,1);
   ResoRow12->SetBinContent(0,1);
   ResoRow12->SetBinContent(11,1);
   ResoRow12->SetBinContent(12,1);
   ResoRow12->SetBinContent(14,1);
   ResoRow12->SetBinContent(17,1);
   ResoRow12->SetBinContent(18,2);
   ResoRow12->SetBinContent(22,1);
   ResoRow12->SetBinContent(25,1);
   ResoRow12->SetBinContent(26,1);
   ResoRow12->SetBinContent(28,1);
   ResoRow12->SetBinContent(29,3);
   ResoRow12->SetBinContent(30,2);
   ResoRow12->SetBinContent(31,3);
   ResoRow12->SetBinContent(32,5);
   ResoRow12->SetBinContent(33,3);
   ResoRow12->SetBinContent(34,6);
   ResoRow12->SetBinContent(35,11);
   ResoRow12->SetBinContent(36,4);
   ResoRow12->SetBinContent(37,3);
   ResoRow12->SetBinContent(38,16);
   ResoRow12->SetBinContent(39,20);
   ResoRow12->SetBinContent(40,23);
   ResoRow12->SetBinContent(41,27);
   ResoRow12->SetBinContent(42,23);
   ResoRow12->SetBinContent(43,35);
   ResoRow12->SetBinContent(44,37);
   ResoRow12->SetBinContent(45,58);
   ResoRow12->SetBinContent(46,84);
   ResoRow12->SetBinContent(47,78);
   ResoRow12->SetBinContent(48,72);
   ResoRow12->SetBinContent(49,90);
   ResoRow12->SetBinContent(50,75);
   ResoRow12->SetBinContent(51,76);
   ResoRow12->SetBinContent(52,76);
   ResoRow12->SetBinContent(53,81);
   ResoRow12->SetBinContent(54,75);
   ResoRow12->SetBinContent(55,73);
   ResoRow12->SetBinContent(56,62);
   ResoRow12->SetBinContent(57,42);
   ResoRow12->SetBinContent(58,43);
   ResoRow12->SetBinContent(59,34);
   ResoRow12->SetBinContent(60,26);
   ResoRow12->SetBinContent(61,20);
   ResoRow12->SetBinContent(62,20);
   ResoRow12->SetBinContent(63,8);
   ResoRow12->SetBinContent(64,12);
   ResoRow12->SetBinContent(65,6);
   ResoRow12->SetBinContent(66,4);
   ResoRow12->SetBinContent(67,3);
   ResoRow12->SetBinContent(68,9);
   ResoRow12->SetBinContent(69,2);
   ResoRow12->SetBinContent(70,2);
   ResoRow12->SetBinContent(71,4);
   ResoRow12->SetBinContent(72,1);
   ResoRow12->SetBinContent(73,1);
   ResoRow12->SetBinContent(75,2);
   ResoRow12->SetBinContent(80,1);
   ResoRow12->SetBinContent(83,1);
   ResoRow12->SetBinContent(84,1);
   ResoRow12->SetBinContent(86,1);
   ResoRow12->SetBinContent(101,4);
   ResoRow12->SetEntries(1379);
   
   TF1 *ResoRowFit12 = new TF1("ResoRowFit12","gaus",-1,1);
   ResoRowFit12->SetFillColor(19);
   ResoRowFit12->SetFillStyle(0);
   ResoRowFit12->SetLineWidth(3);
   ResoRowFit12->SetChisquare(77.74766);
   ResoRowFit12->SetNDF(56);
   ResoRowFit12->SetParameter(0,81.74867);
   ResoRowFit12->SetParError(0,2.957277);
   ResoRowFit12->SetParLimits(0,0,0);
   ResoRowFit12->SetParameter(1,0.004699824);
   ResoRowFit12->SetParError(1,0.003519527);
   ResoRowFit12->SetParLimits(1,0,0);
   ResoRowFit12->SetParameter(2,0.1265405);
   ResoRowFit12->SetParError(2,0.002939516);
   ResoRowFit12->SetParLimits(2,0,1.524956);
   ResoRow12->GetListOfFunctions()->Add(ResoRowFit12);
   
   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("ResoRow12");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1379   ");
   text = ptstats->AddText("Mean  = -0.001166");
   text = ptstats->AddText("RMS   = 0.1523");
   text = ptstats->AddText("#chi^{2} / ndf = 77.75 / 56");
   text = ptstats->AddText("Constant = 81.75 #pm 2.96 ");
   text = ptstats->AddText("Mean     = 0.0047 #pm 0.0035 ");
   text = ptstats->AddText("Sigma    = 0.1265 #pm 0.0029 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow12->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow12->GetListOfFunctions());
   ResoRow12->GetXaxis()->SetTitle("residual / mm");
   ResoRow12->GetYaxis()->SetTitle("counts");
   ResoRow12->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,-13.25625,1.25,119.3063);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow13 = new TH1F("ResoRow13","",100,-1,1);
   ResoRow13->SetBinContent(8,1);
   ResoRow13->SetBinContent(9,1);
   ResoRow13->SetBinContent(18,2);
   ResoRow13->SetBinContent(22,2);
   ResoRow13->SetBinContent(23,1);
   ResoRow13->SetBinContent(24,1);
   ResoRow13->SetBinContent(25,1);
   ResoRow13->SetBinContent(26,2);
   ResoRow13->SetBinContent(27,1);
   ResoRow13->SetBinContent(28,2);
   ResoRow13->SetBinContent(29,4);
   ResoRow13->SetBinContent(30,1);
   ResoRow13->SetBinContent(32,2);
   ResoRow13->SetBinContent(33,5);
   ResoRow13->SetBinContent(34,9);
   ResoRow13->SetBinContent(35,4);
   ResoRow13->SetBinContent(36,10);
   ResoRow13->SetBinContent(37,14);
   ResoRow13->SetBinContent(38,10);
   ResoRow13->SetBinContent(39,26);
   ResoRow13->SetBinContent(40,23);
   ResoRow13->SetBinContent(41,21);
   ResoRow13->SetBinContent(42,24);
   ResoRow13->SetBinContent(43,43);
   ResoRow13->SetBinContent(44,26);
   ResoRow13->SetBinContent(45,53);
   ResoRow13->SetBinContent(46,60);
   ResoRow13->SetBinContent(47,72);
   ResoRow13->SetBinContent(48,78);
   ResoRow13->SetBinContent(49,70);
   ResoRow13->SetBinContent(50,101);
   ResoRow13->SetBinContent(51,76);
   ResoRow13->SetBinContent(52,90);
   ResoRow13->SetBinContent(53,88);
   ResoRow13->SetBinContent(54,79);
   ResoRow13->SetBinContent(55,63);
   ResoRow13->SetBinContent(56,62);
   ResoRow13->SetBinContent(57,44);
   ResoRow13->SetBinContent(58,45);
   ResoRow13->SetBinContent(59,27);
   ResoRow13->SetBinContent(60,30);
   ResoRow13->SetBinContent(61,19);
   ResoRow13->SetBinContent(62,19);
   ResoRow13->SetBinContent(63,10);
   ResoRow13->SetBinContent(64,14);
   ResoRow13->SetBinContent(65,9);
   ResoRow13->SetBinContent(66,10);
   ResoRow13->SetBinContent(67,2);
   ResoRow13->SetBinContent(68,5);
   ResoRow13->SetBinContent(69,2);
   ResoRow13->SetBinContent(71,1);
   ResoRow13->SetBinContent(72,1);
   ResoRow13->SetBinContent(73,1);
   ResoRow13->SetBinContent(74,4);
   ResoRow13->SetBinContent(75,2);
   ResoRow13->SetBinContent(76,1);
   ResoRow13->SetBinContent(77,1);
   ResoRow13->SetBinContent(80,1);
   ResoRow13->SetBinContent(87,1);
   ResoRow13->SetBinContent(101,2);
   ResoRow13->SetEntries(1379);
   
   TF1 *ResoRowFit13 = new TF1("ResoRowFit13","gaus",-1,1);
   ResoRowFit13->SetFillColor(19);
   ResoRowFit13->SetFillStyle(0);
   ResoRowFit13->SetLineWidth(3);
   ResoRowFit13->SetChisquare(85.82544);
   ResoRowFit13->SetNDF(56);
   ResoRowFit13->SetParameter(0,78.4954);
   ResoRowFit13->SetParError(0,2.978985);
   ResoRowFit13->SetParLimits(0,0,0);
   ResoRowFit13->SetParameter(1,0.006239013);
   ResoRowFit13->SetParError(1,0.003728786);
   ResoRowFit13->SetParLimits(1,0,0);
   ResoRowFit13->SetParameter(2,0.131445);
   ResoRowFit13->SetParError(2,0.0034318);
   ResoRowFit13->SetParLimits(2,0,1.541596);
   ResoRow13->GetListOfFunctions()->Add(ResoRowFit13);
   
   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("ResoRow13");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1379   ");
   text = ptstats->AddText("Mean  = 0.0002786");
   text = ptstats->AddText("RMS   = 0.1541");
   text = ptstats->AddText("#chi^{2} / ndf = 85.83 / 56");
   text = ptstats->AddText("Constant =  78.5 #pm 3.0 ");
   text = ptstats->AddText("Mean     = 0.006239 #pm 0.003729 ");
   text = ptstats->AddText("Sigma    = 0.1314 #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_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,-12.46875,1.25,112.2188);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow14 = new TH1F("ResoRow14","",100,-1,1);
   ResoRow14->SetBinContent(15,1);
   ResoRow14->SetBinContent(17,2);
   ResoRow14->SetBinContent(18,1);
   ResoRow14->SetBinContent(24,1);
   ResoRow14->SetBinContent(26,2);
   ResoRow14->SetBinContent(27,2);
   ResoRow14->SetBinContent(28,1);
   ResoRow14->SetBinContent(30,4);
   ResoRow14->SetBinContent(31,2);
   ResoRow14->SetBinContent(32,2);
   ResoRow14->SetBinContent(33,2);
   ResoRow14->SetBinContent(34,3);
   ResoRow14->SetBinContent(35,4);
   ResoRow14->SetBinContent(36,11);
   ResoRow14->SetBinContent(37,10);
   ResoRow14->SetBinContent(38,11);
   ResoRow14->SetBinContent(39,17);
   ResoRow14->SetBinContent(40,25);
   ResoRow14->SetBinContent(41,31);
   ResoRow14->SetBinContent(42,24);
   ResoRow14->SetBinContent(43,36);
   ResoRow14->SetBinContent(44,50);
   ResoRow14->SetBinContent(45,44);
   ResoRow14->SetBinContent(46,60);
   ResoRow14->SetBinContent(47,70);
   ResoRow14->SetBinContent(48,76);
   ResoRow14->SetBinContent(49,82);
   ResoRow14->SetBinContent(50,94);
   ResoRow14->SetBinContent(51,95);
   ResoRow14->SetBinContent(52,86);
   ResoRow14->SetBinContent(53,84);
   ResoRow14->SetBinContent(54,87);
   ResoRow14->SetBinContent(55,59);
   ResoRow14->SetBinContent(56,50);
   ResoRow14->SetBinContent(57,42);
   ResoRow14->SetBinContent(58,43);
   ResoRow14->SetBinContent(59,37);
   ResoRow14->SetBinContent(60,25);
   ResoRow14->SetBinContent(61,26);
   ResoRow14->SetBinContent(62,20);
   ResoRow14->SetBinContent(63,13);
   ResoRow14->SetBinContent(64,11);
   ResoRow14->SetBinContent(65,6);
   ResoRow14->SetBinContent(66,5);
   ResoRow14->SetBinContent(67,2);
   ResoRow14->SetBinContent(68,4);
   ResoRow14->SetBinContent(69,2);
   ResoRow14->SetBinContent(70,2);
   ResoRow14->SetBinContent(71,3);
   ResoRow14->SetBinContent(72,1);
   ResoRow14->SetBinContent(73,1);
   ResoRow14->SetBinContent(75,1);
   ResoRow14->SetBinContent(77,1);
   ResoRow14->SetBinContent(79,1);
   ResoRow14->SetBinContent(101,4);
   ResoRow14->SetEntries(1379);
   
   TF1 *ResoRowFit14 = new TF1("ResoRowFit14","gaus",-1,1);
   ResoRowFit14->SetFillColor(19);
   ResoRowFit14->SetFillStyle(0);
   ResoRowFit14->SetLineWidth(3);
   ResoRowFit14->SetChisquare(45.59594);
   ResoRowFit14->SetNDF(51);
   ResoRowFit14->SetParameter(0,81.8379);
   ResoRowFit14->SetParError(0,2.920985);
   ResoRowFit14->SetParLimits(0,0,0);
   ResoRowFit14->SetParameter(1,0.0037035);
   ResoRowFit14->SetParError(1,0.003571384);
   ResoRowFit14->SetParLimits(1,0,0);
   ResoRowFit14->SetParameter(2,0.1296637);
   ResoRowFit14->SetParError(2,0.002975127);
   ResoRowFit14->SetParLimits(2,0,1.431193);
   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 = 1379   ");
   text = ptstats->AddText("Mean  = 0.0006365");
   text = ptstats->AddText("RMS   = 0.1432");
   text = ptstats->AddText("#chi^{2} / ndf =  45.6 / 51");
   text = ptstats->AddText("Constant = 81.84 #pm 2.92 ");
   text = ptstats->AddText("Mean     = 0.003704 #pm 0.003571 ");
   text = ptstats->AddText("Sigma    = 0.1297 #pm 0.0030 ");
   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_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,-12.46875,1.25,112.2188);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow15 = new TH1F("ResoRow15","",100,-1,1);
   ResoRow15->SetBinContent(0,4);
   ResoRow15->SetBinContent(5,1);
   ResoRow15->SetBinContent(21,1);
   ResoRow15->SetBinContent(24,1);
   ResoRow15->SetBinContent(25,1);
   ResoRow15->SetBinContent(26,3);
   ResoRow15->SetBinContent(27,1);
   ResoRow15->SetBinContent(28,1);
   ResoRow15->SetBinContent(29,1);
   ResoRow15->SetBinContent(30,1);
   ResoRow15->SetBinContent(31,2);
   ResoRow15->SetBinContent(32,1);
   ResoRow15->SetBinContent(33,1);
   ResoRow15->SetBinContent(34,2);
   ResoRow15->SetBinContent(35,9);
   ResoRow15->SetBinContent(36,8);
   ResoRow15->SetBinContent(37,12);
   ResoRow15->SetBinContent(38,13);
   ResoRow15->SetBinContent(39,15);
   ResoRow15->SetBinContent(40,22);
   ResoRow15->SetBinContent(41,17);
   ResoRow15->SetBinContent(42,36);
   ResoRow15->SetBinContent(43,50);
   ResoRow15->SetBinContent(44,34);
   ResoRow15->SetBinContent(45,55);
   ResoRow15->SetBinContent(46,75);
   ResoRow15->SetBinContent(47,74);
   ResoRow15->SetBinContent(48,77);
   ResoRow15->SetBinContent(49,79);
   ResoRow15->SetBinContent(50,92);
   ResoRow15->SetBinContent(51,87);
   ResoRow15->SetBinContent(52,95);
   ResoRow15->SetBinContent(53,82);
   ResoRow15->SetBinContent(54,77);
   ResoRow15->SetBinContent(55,70);
   ResoRow15->SetBinContent(56,41);
   ResoRow15->SetBinContent(57,42);
   ResoRow15->SetBinContent(58,37);
   ResoRow15->SetBinContent(59,45);
   ResoRow15->SetBinContent(60,27);
   ResoRow15->SetBinContent(61,16);
   ResoRow15->SetBinContent(62,16);
   ResoRow15->SetBinContent(63,10);
   ResoRow15->SetBinContent(64,8);
   ResoRow15->SetBinContent(65,8);
   ResoRow15->SetBinContent(66,6);
   ResoRow15->SetBinContent(67,4);
   ResoRow15->SetBinContent(68,5);
   ResoRow15->SetBinContent(69,1);
   ResoRow15->SetBinContent(70,5);
   ResoRow15->SetBinContent(71,2);
   ResoRow15->SetBinContent(72,1);
   ResoRow15->SetBinContent(73,1);
   ResoRow15->SetBinContent(86,1);
   ResoRow15->SetBinContent(91,1);
   ResoRow15->SetBinContent(101,2);
   ResoRow15->SetEntries(1379);
   
   TF1 *ResoRowFit15 = new TF1("ResoRowFit15","gaus",-1,1);
   ResoRowFit15->SetFillColor(19);
   ResoRowFit15->SetFillStyle(0);
   ResoRowFit15->SetLineWidth(3);
   ResoRowFit15->SetChisquare(59.83464);
   ResoRowFit15->SetNDF(51);
   ResoRowFit15->SetParameter(0,82.98053);
   ResoRowFit15->SetParError(0,2.991293);
   ResoRowFit15->SetParLimits(0,0,0);
   ResoRowFit15->SetParameter(1,0.0004298589);
   ResoRowFit15->SetParError(1,0.003491804);
   ResoRowFit15->SetParLimits(1,0,0);
   ResoRowFit15->SetParameter(2,0.1262831);
   ResoRowFit15->SetParError(2,0.002934238);
   ResoRowFit15->SetParLimits(2,0,1.418842);
   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 = 1379   ");
   text = ptstats->AddText("Mean  = -0.001121");
   text = ptstats->AddText("RMS   = 0.1418");
   text = ptstats->AddText("#chi^{2} / ndf = 59.83 / 51");
   text = ptstats->AddText("Constant = 82.98 #pm 2.99 ");
   text = ptstats->AddText("Mean     = 0.0004299 #pm 0.0034918 ");
   text = ptstats->AddText("Sigma    = 0.1263 #pm 0.0029 ");
   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_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,-13.51875,1.25,121.6688);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow16 = new TH1F("ResoRow16","",100,-1,1);
   ResoRow16->SetBinContent(0,4);
   ResoRow16->SetBinContent(7,1);
   ResoRow16->SetBinContent(9,1);
   ResoRow16->SetBinContent(13,1);
   ResoRow16->SetBinContent(14,1);
   ResoRow16->SetBinContent(24,1);
   ResoRow16->SetBinContent(25,1);
   ResoRow16->SetBinContent(29,3);
   ResoRow16->SetBinContent(31,1);
   ResoRow16->SetBinContent(32,1);
   ResoRow16->SetBinContent(33,2);
   ResoRow16->SetBinContent(34,2);
   ResoRow16->SetBinContent(35,12);
   ResoRow16->SetBinContent(36,2);
   ResoRow16->SetBinContent(37,15);
   ResoRow16->SetBinContent(38,15);
   ResoRow16->SetBinContent(39,16);
   ResoRow16->SetBinContent(40,22);
   ResoRow16->SetBinContent(41,27);
   ResoRow16->SetBinContent(42,38);
   ResoRow16->SetBinContent(43,36);
   ResoRow16->SetBinContent(44,32);
   ResoRow16->SetBinContent(45,61);
   ResoRow16->SetBinContent(46,44);
   ResoRow16->SetBinContent(47,81);
   ResoRow16->SetBinContent(48,76);
   ResoRow16->SetBinContent(49,77);
   ResoRow16->SetBinContent(50,103);
   ResoRow16->SetBinContent(51,76);
   ResoRow16->SetBinContent(52,98);
   ResoRow16->SetBinContent(53,82);
   ResoRow16->SetBinContent(54,72);
   ResoRow16->SetBinContent(55,69);
   ResoRow16->SetBinContent(56,62);
   ResoRow16->SetBinContent(57,52);
   ResoRow16->SetBinContent(58,41);
   ResoRow16->SetBinContent(59,41);
   ResoRow16->SetBinContent(60,20);
   ResoRow16->SetBinContent(61,21);
   ResoRow16->SetBinContent(62,18);
   ResoRow16->SetBinContent(63,13);
   ResoRow16->SetBinContent(64,9);
   ResoRow16->SetBinContent(65,8);
   ResoRow16->SetBinContent(66,5);
   ResoRow16->SetBinContent(67,5);
   ResoRow16->SetBinContent(69,1);
   ResoRow16->SetBinContent(71,1);
   ResoRow16->SetBinContent(74,1);
   ResoRow16->SetBinContent(78,2);
   ResoRow16->SetBinContent(80,1);
   ResoRow16->SetBinContent(82,1);
   ResoRow16->SetBinContent(87,1);
   ResoRow16->SetBinContent(101,3);
   ResoRow16->SetEntries(1379);
   
   TF1 *ResoRowFit16 = new TF1("ResoRowFit16","gaus",-1,1);
   ResoRowFit16->SetFillColor(19);
   ResoRowFit16->SetFillStyle(0);
   ResoRowFit16->SetLineWidth(3);
   ResoRowFit16->SetChisquare(63.45457);
   ResoRowFit16->SetNDF(48);
   ResoRowFit16->SetParameter(0,83.26014);
   ResoRowFit16->SetParError(0,2.931342);
   ResoRowFit16->SetParLimits(0,0,0);
   ResoRowFit16->SetParameter(1,0.007132471);
   ResoRowFit16->SetParError(1,0.003521215);
   ResoRowFit16->SetParLimits(1,0,0);
   ResoRowFit16->SetParameter(2,0.1257774);
   ResoRowFit16->SetParError(2,0.002810732);
   ResoRowFit16->SetParLimits(2,0,1.425153);
   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 = 1379   ");
   text = ptstats->AddText("Mean  = 0.0009763");
   text = ptstats->AddText("RMS   = 0.1423");
   text = ptstats->AddText("#chi^{2} / ndf = 63.45 / 48");
   text = ptstats->AddText("Constant = 83.26 #pm 2.93 ");
   text = ptstats->AddText("Mean     = 0.007132 #pm 0.003521 ");
   text = ptstats->AddText("Sigma    = 0.1258 #pm 0.0028 ");
   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_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,-12.99375,1.25,116.9438);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow17 = new TH1F("ResoRow17","",100,-1,1);
   ResoRow17->SetBinContent(0,6);
   ResoRow17->SetBinContent(1,1);
   ResoRow17->SetBinContent(8,1);
   ResoRow17->SetBinContent(9,1);
   ResoRow17->SetBinContent(19,2);
   ResoRow17->SetBinContent(20,1);
   ResoRow17->SetBinContent(26,1);
   ResoRow17->SetBinContent(28,2);
   ResoRow17->SetBinContent(30,2);
   ResoRow17->SetBinContent(31,2);
   ResoRow17->SetBinContent(32,3);
   ResoRow17->SetBinContent(33,2);
   ResoRow17->SetBinContent(34,3);
   ResoRow17->SetBinContent(35,6);
   ResoRow17->SetBinContent(36,8);
   ResoRow17->SetBinContent(37,6);
   ResoRow17->SetBinContent(38,14);
   ResoRow17->SetBinContent(39,16);
   ResoRow17->SetBinContent(40,26);
   ResoRow17->SetBinContent(41,19);
   ResoRow17->SetBinContent(42,33);
   ResoRow17->SetBinContent(43,33);
   ResoRow17->SetBinContent(44,41);
   ResoRow17->SetBinContent(45,48);
   ResoRow17->SetBinContent(46,75);
   ResoRow17->SetBinContent(47,74);
   ResoRow17->SetBinContent(48,80);
   ResoRow17->SetBinContent(49,86);
   ResoRow17->SetBinContent(50,80);
   ResoRow17->SetBinContent(51,87);
   ResoRow17->SetBinContent(52,99);
   ResoRow17->SetBinContent(53,81);
   ResoRow17->SetBinContent(54,91);
   ResoRow17->SetBinContent(55,64);
   ResoRow17->SetBinContent(56,58);
   ResoRow17->SetBinContent(57,47);
   ResoRow17->SetBinContent(58,32);
   ResoRow17->SetBinContent(59,22);
   ResoRow17->SetBinContent(60,27);
   ResoRow17->SetBinContent(61,19);
   ResoRow17->SetBinContent(62,15);
   ResoRow17->SetBinContent(63,18);
   ResoRow17->SetBinContent(64,12);
   ResoRow17->SetBinContent(65,3);
   ResoRow17->SetBinContent(66,10);
   ResoRow17->SetBinContent(67,5);
   ResoRow17->SetBinContent(68,3);
   ResoRow17->SetBinContent(69,2);
   ResoRow17->SetBinContent(70,1);
   ResoRow17->SetBinContent(71,1);
   ResoRow17->SetBinContent(72,2);
   ResoRow17->SetBinContent(73,1);
   ResoRow17->SetBinContent(74,1);
   ResoRow17->SetBinContent(75,1);
   ResoRow17->SetBinContent(78,1);
   ResoRow17->SetBinContent(81,1);
   ResoRow17->SetBinContent(82,1);
   ResoRow17->SetBinContent(84,1);
   ResoRow17->SetBinContent(101,1);
   ResoRow17->SetEntries(1379);
   
   TF1 *ResoRowFit17 = new TF1("ResoRowFit17","gaus",-1,1);
   ResoRowFit17->SetFillColor(19);
   ResoRowFit17->SetFillStyle(0);
   ResoRowFit17->SetLineWidth(3);
   ResoRowFit17->SetChisquare(62.59807);
   ResoRowFit17->SetNDF(54);
   ResoRowFit17->SetParameter(0,83.71258);
   ResoRowFit17->SetParError(0,3.106982);
   ResoRowFit17->SetParLimits(0,0,0);
   ResoRowFit17->SetParameter(1,0.0007397873);
   ResoRowFit17->SetParError(1,0.003457352);
   ResoRowFit17->SetParLimits(1,0,0);
   ResoRowFit17->SetParameter(2,0.1248365);
   ResoRowFit17->SetParError(2,0.003102679);
   ResoRowFit17->SetParLimits(2,0,1.460992);
   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 = 1379   ");
   text = ptstats->AddText("Mean  = 0.001326");
   text = ptstats->AddText("RMS   = 0.1461");
   text = ptstats->AddText("#chi^{2} / ndf =  62.6 / 54");
   text = ptstats->AddText("Constant = 83.71 #pm 3.11 ");
   text = ptstats->AddText("Mean     = 0.0007398 #pm 0.0034574 ");
   text = ptstats->AddText("Sigma    = 0.1248 #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_6->Modified();
   c2->cd();
   c2->Modified();
   c2->cd();
   c2->SetSelected(c2);
}
