{
//=========Macro generated from canvas: c2/
//=========  (Tue Jun  8 21:42:09 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.075,1.25,108.675);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow12 = new TH1F("ResoRow12","",100,-1,1);
   ResoRow12->SetBinContent(0,3);
   ResoRow12->SetBinContent(21,1);
   ResoRow12->SetBinContent(25,1);
   ResoRow12->SetBinContent(26,2);
   ResoRow12->SetBinContent(27,3);
   ResoRow12->SetBinContent(30,2);
   ResoRow12->SetBinContent(31,3);
   ResoRow12->SetBinContent(32,3);
   ResoRow12->SetBinContent(33,2);
   ResoRow12->SetBinContent(34,6);
   ResoRow12->SetBinContent(35,5);
   ResoRow12->SetBinContent(36,8);
   ResoRow12->SetBinContent(37,12);
   ResoRow12->SetBinContent(38,11);
   ResoRow12->SetBinContent(39,15);
   ResoRow12->SetBinContent(40,30);
   ResoRow12->SetBinContent(41,26);
   ResoRow12->SetBinContent(42,44);
   ResoRow12->SetBinContent(43,39);
   ResoRow12->SetBinContent(44,52);
   ResoRow12->SetBinContent(45,52);
   ResoRow12->SetBinContent(46,66);
   ResoRow12->SetBinContent(47,67);
   ResoRow12->SetBinContent(48,81);
   ResoRow12->SetBinContent(49,92);
   ResoRow12->SetBinContent(50,82);
   ResoRow12->SetBinContent(51,79);
   ResoRow12->SetBinContent(52,72);
   ResoRow12->SetBinContent(53,73);
   ResoRow12->SetBinContent(54,78);
   ResoRow12->SetBinContent(55,74);
   ResoRow12->SetBinContent(56,49);
   ResoRow12->SetBinContent(57,48);
   ResoRow12->SetBinContent(58,41);
   ResoRow12->SetBinContent(59,31);
   ResoRow12->SetBinContent(60,29);
   ResoRow12->SetBinContent(61,18);
   ResoRow12->SetBinContent(62,12);
   ResoRow12->SetBinContent(63,9);
   ResoRow12->SetBinContent(64,10);
   ResoRow12->SetBinContent(65,8);
   ResoRow12->SetBinContent(66,3);
   ResoRow12->SetBinContent(67,7);
   ResoRow12->SetBinContent(68,2);
   ResoRow12->SetBinContent(69,4);
   ResoRow12->SetBinContent(70,3);
   ResoRow12->SetBinContent(71,7);
   ResoRow12->SetBinContent(72,1);
   ResoRow12->SetBinContent(73,1);
   ResoRow12->SetBinContent(74,1);
   ResoRow12->SetBinContent(75,1);
   ResoRow12->SetBinContent(77,1);
   ResoRow12->SetBinContent(78,1);
   ResoRow12->SetBinContent(81,1);
   ResoRow12->SetBinContent(83,1);
   ResoRow12->SetBinContent(93,1);
   ResoRow12->SetBinContent(94,1);
   ResoRow12->SetBinContent(98,1);
   ResoRow12->SetBinContent(101,1);
   ResoRow12->SetEntries(1377);
   
   TF1 *ResoRowFit12 = new TF1("ResoRowFit12","gaus",-1,1);
   ResoRowFit12->SetFillColor(19);
   ResoRowFit12->SetFillStyle(0);
   ResoRowFit12->SetLineWidth(3);
   ResoRowFit12->SetChisquare(49.00174);
   ResoRowFit12->SetNDF(54);
   ResoRowFit12->SetParameter(0,80.61805);
   ResoRowFit12->SetParError(0,2.870714);
   ResoRowFit12->SetParLimits(0,0,0);
   ResoRowFit12->SetParameter(1,-0.005298281);
   ResoRowFit12->SetParError(1,0.003615984);
   ResoRowFit12->SetParLimits(1,0,0);
   ResoRowFit12->SetParameter(2,0.1311144);
   ResoRowFit12->SetParError(2,0.002986824);
   ResoRowFit12->SetParLimits(2,0,1.51276);
   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 = 1377   ");
   text = ptstats->AddText("Mean  = -0.0003683");
   text = ptstats->AddText("RMS   = 0.1513");
   text = ptstats->AddText("#chi^{2} / ndf =    49 / 54");
   text = ptstats->AddText("Constant = 80.62 #pm 2.87 ");
   text = ptstats->AddText("Mean     = -0.005298 #pm 0.003616 ");
   text = ptstats->AddText("Sigma    = 0.1311 #pm 0.0030 ");
   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.65,1.25,122.85);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow13 = new TH1F("ResoRow13","",100,-1,1);
   ResoRow13->SetBinContent(0,4);
   ResoRow13->SetBinContent(2,1);
   ResoRow13->SetBinContent(12,1);
   ResoRow13->SetBinContent(16,1);
   ResoRow13->SetBinContent(18,1);
   ResoRow13->SetBinContent(22,1);
   ResoRow13->SetBinContent(26,3);
   ResoRow13->SetBinContent(28,1);
   ResoRow13->SetBinContent(29,1);
   ResoRow13->SetBinContent(30,1);
   ResoRow13->SetBinContent(31,3);
   ResoRow13->SetBinContent(32,4);
   ResoRow13->SetBinContent(33,6);
   ResoRow13->SetBinContent(34,11);
   ResoRow13->SetBinContent(35,5);
   ResoRow13->SetBinContent(36,11);
   ResoRow13->SetBinContent(37,14);
   ResoRow13->SetBinContent(38,11);
   ResoRow13->SetBinContent(39,14);
   ResoRow13->SetBinContent(40,18);
   ResoRow13->SetBinContent(41,21);
   ResoRow13->SetBinContent(42,26);
   ResoRow13->SetBinContent(43,35);
   ResoRow13->SetBinContent(44,44);
   ResoRow13->SetBinContent(45,53);
   ResoRow13->SetBinContent(46,72);
   ResoRow13->SetBinContent(47,63);
   ResoRow13->SetBinContent(48,68);
   ResoRow13->SetBinContent(49,96);
   ResoRow13->SetBinContent(50,88);
   ResoRow13->SetBinContent(51,104);
   ResoRow13->SetBinContent(52,79);
   ResoRow13->SetBinContent(53,92);
   ResoRow13->SetBinContent(54,68);
   ResoRow13->SetBinContent(55,70);
   ResoRow13->SetBinContent(56,58);
   ResoRow13->SetBinContent(57,41);
   ResoRow13->SetBinContent(58,34);
   ResoRow13->SetBinContent(59,36);
   ResoRow13->SetBinContent(60,17);
   ResoRow13->SetBinContent(61,18);
   ResoRow13->SetBinContent(62,21);
   ResoRow13->SetBinContent(63,7);
   ResoRow13->SetBinContent(64,10);
   ResoRow13->SetBinContent(65,10);
   ResoRow13->SetBinContent(66,9);
   ResoRow13->SetBinContent(67,2);
   ResoRow13->SetBinContent(68,4);
   ResoRow13->SetBinContent(69,2);
   ResoRow13->SetBinContent(71,3);
   ResoRow13->SetBinContent(72,3);
   ResoRow13->SetBinContent(73,2);
   ResoRow13->SetBinContent(74,1);
   ResoRow13->SetBinContent(76,1);
   ResoRow13->SetBinContent(77,1);
   ResoRow13->SetBinContent(86,2);
   ResoRow13->SetBinContent(90,1);
   ResoRow13->SetBinContent(92,1);
   ResoRow13->SetBinContent(101,2);
   ResoRow13->SetEntries(1377);
   
   TF1 *ResoRowFit13 = new TF1("ResoRowFit13","gaus",-1,1);
   ResoRowFit13->SetFillColor(19);
   ResoRowFit13->SetFillStyle(0);
   ResoRowFit13->SetLineWidth(3);
   ResoRowFit13->SetChisquare(79.71952);
   ResoRowFit13->SetNDF(54);
   ResoRowFit13->SetParameter(0,81.65891);
   ResoRowFit13->SetParError(0,3.18392);
   ResoRowFit13->SetParLimits(0,0,0);
   ResoRowFit13->SetParameter(1,-0.000356916);
   ResoRowFit13->SetParError(1,0.003549866);
   ResoRowFit13->SetParLimits(1,0,0);
   ResoRowFit13->SetParameter(2,0.1262549);
   ResoRowFit13->SetParError(2,0.003469123);
   ResoRowFit13->SetParLimits(2,0,1.522659);
   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 = 1377   ");
   text = ptstats->AddText("Mean  = -0.001016");
   text = ptstats->AddText("RMS   =  0.152");
   text = ptstats->AddText("#chi^{2} / ndf = 79.72 / 54");
   text = ptstats->AddText("Constant = 81.66 #pm 3.18 ");
   text = ptstats->AddText("Mean     = -0.0003569 #pm 0.0035499 ");
   text = ptstats->AddText("Sigma    = 0.1263 #pm 0.0035 ");
   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,-14.4375,1.25,129.9375);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow14 = new TH1F("ResoRow14","",100,-1,1);
   ResoRow14->SetBinContent(0,3);
   ResoRow14->SetBinContent(6,1);
   ResoRow14->SetBinContent(23,2);
   ResoRow14->SetBinContent(25,2);
   ResoRow14->SetBinContent(27,1);
   ResoRow14->SetBinContent(28,5);
   ResoRow14->SetBinContent(29,2);
   ResoRow14->SetBinContent(30,1);
   ResoRow14->SetBinContent(31,2);
   ResoRow14->SetBinContent(32,4);
   ResoRow14->SetBinContent(33,5);
   ResoRow14->SetBinContent(34,3);
   ResoRow14->SetBinContent(35,6);
   ResoRow14->SetBinContent(36,10);
   ResoRow14->SetBinContent(37,8);
   ResoRow14->SetBinContent(38,9);
   ResoRow14->SetBinContent(39,10);
   ResoRow14->SetBinContent(40,14);
   ResoRow14->SetBinContent(41,19);
   ResoRow14->SetBinContent(42,30);
   ResoRow14->SetBinContent(43,32);
   ResoRow14->SetBinContent(44,44);
   ResoRow14->SetBinContent(45,55);
   ResoRow14->SetBinContent(46,72);
   ResoRow14->SetBinContent(47,80);
   ResoRow14->SetBinContent(48,75);
   ResoRow14->SetBinContent(49,77);
   ResoRow14->SetBinContent(50,91);
   ResoRow14->SetBinContent(51,91);
   ResoRow14->SetBinContent(52,110);
   ResoRow14->SetBinContent(53,88);
   ResoRow14->SetBinContent(54,70);
   ResoRow14->SetBinContent(55,58);
   ResoRow14->SetBinContent(56,51);
   ResoRow14->SetBinContent(57,50);
   ResoRow14->SetBinContent(58,42);
   ResoRow14->SetBinContent(59,33);
   ResoRow14->SetBinContent(60,25);
   ResoRow14->SetBinContent(61,21);
   ResoRow14->SetBinContent(62,13);
   ResoRow14->SetBinContent(63,11);
   ResoRow14->SetBinContent(64,15);
   ResoRow14->SetBinContent(65,9);
   ResoRow14->SetBinContent(66,2);
   ResoRow14->SetBinContent(67,4);
   ResoRow14->SetBinContent(68,4);
   ResoRow14->SetBinContent(69,2);
   ResoRow14->SetBinContent(70,4);
   ResoRow14->SetBinContent(71,1);
   ResoRow14->SetBinContent(72,1);
   ResoRow14->SetBinContent(74,1);
   ResoRow14->SetBinContent(75,1);
   ResoRow14->SetBinContent(76,1);
   ResoRow14->SetBinContent(80,1);
   ResoRow14->SetBinContent(81,1);
   ResoRow14->SetBinContent(84,1);
   ResoRow14->SetBinContent(101,3);
   ResoRow14->SetEntries(1377);
   
   TF1 *ResoRowFit14 = new TF1("ResoRowFit14","gaus",-1,1);
   ResoRowFit14->SetFillColor(19);
   ResoRowFit14->SetFillStyle(0);
   ResoRowFit14->SetLineWidth(3);
   ResoRowFit14->SetChisquare(61.90422);
   ResoRowFit14->SetNDF(52);
   ResoRowFit14->SetParameter(0,85.48374);
   ResoRowFit14->SetParError(0,3.169683);
   ResoRowFit14->SetParLimits(0,0,0);
   ResoRowFit14->SetParameter(1,0.005276317);
   ResoRowFit14->SetParError(1,0.00338032);
   ResoRowFit14->SetParLimits(1,0,0);
   ResoRowFit14->SetParameter(2,0.1222028);
   ResoRowFit14->SetParError(2,0.003024803);
   ResoRowFit14->SetParLimits(2,0,1.426618);
   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 = 1377   ");
   text = ptstats->AddText("Mean  = 0.00241");
   text = ptstats->AddText("RMS   = 0.1424");
   text = ptstats->AddText("#chi^{2} / ndf =  61.9 / 52");
   text = ptstats->AddText("Constant = 85.48 #pm 3.17 ");
   text = ptstats->AddText("Mean     = 0.005276 #pm 0.003380 ");
   text = ptstats->AddText("Sigma    = 0.1222 #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.8625,1.25,115.7625);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow15 = new TH1F("ResoRow15","",100,-1,1);
   ResoRow15->SetBinContent(0,4);
   ResoRow15->SetBinContent(12,1);
   ResoRow15->SetBinContent(13,1);
   ResoRow15->SetBinContent(18,1);
   ResoRow15->SetBinContent(25,1);
   ResoRow15->SetBinContent(26,2);
   ResoRow15->SetBinContent(27,3);
   ResoRow15->SetBinContent(29,2);
   ResoRow15->SetBinContent(30,3);
   ResoRow15->SetBinContent(31,4);
   ResoRow15->SetBinContent(32,3);
   ResoRow15->SetBinContent(33,1);
   ResoRow15->SetBinContent(34,3);
   ResoRow15->SetBinContent(35,8);
   ResoRow15->SetBinContent(36,8);
   ResoRow15->SetBinContent(37,7);
   ResoRow15->SetBinContent(38,11);
   ResoRow15->SetBinContent(39,13);
   ResoRow15->SetBinContent(40,16);
   ResoRow15->SetBinContent(41,27);
   ResoRow15->SetBinContent(42,42);
   ResoRow15->SetBinContent(43,42);
   ResoRow15->SetBinContent(44,54);
   ResoRow15->SetBinContent(45,65);
   ResoRow15->SetBinContent(46,57);
   ResoRow15->SetBinContent(47,68);
   ResoRow15->SetBinContent(48,63);
   ResoRow15->SetBinContent(49,90);
   ResoRow15->SetBinContent(50,85);
   ResoRow15->SetBinContent(51,98);
   ResoRow15->SetBinContent(52,77);
   ResoRow15->SetBinContent(53,82);
   ResoRow15->SetBinContent(54,63);
   ResoRow15->SetBinContent(55,56);
   ResoRow15->SetBinContent(56,63);
   ResoRow15->SetBinContent(57,52);
   ResoRow15->SetBinContent(58,51);
   ResoRow15->SetBinContent(59,33);
   ResoRow15->SetBinContent(60,25);
   ResoRow15->SetBinContent(61,23);
   ResoRow15->SetBinContent(62,10);
   ResoRow15->SetBinContent(63,12);
   ResoRow15->SetBinContent(64,11);
   ResoRow15->SetBinContent(65,5);
   ResoRow15->SetBinContent(66,5);
   ResoRow15->SetBinContent(67,4);
   ResoRow15->SetBinContent(68,3);
   ResoRow15->SetBinContent(69,4);
   ResoRow15->SetBinContent(70,3);
   ResoRow15->SetBinContent(71,1);
   ResoRow15->SetBinContent(72,2);
   ResoRow15->SetBinContent(73,1);
   ResoRow15->SetBinContent(74,1);
   ResoRow15->SetBinContent(75,1);
   ResoRow15->SetBinContent(78,1);
   ResoRow15->SetBinContent(85,1);
   ResoRow15->SetBinContent(87,1);
   ResoRow15->SetBinContent(94,1);
   ResoRow15->SetBinContent(101,2);
   ResoRow15->SetEntries(1377);
   
   TF1 *ResoRowFit15 = new TF1("ResoRowFit15","gaus",-1,1);
   ResoRowFit15->SetFillColor(19);
   ResoRowFit15->SetFillStyle(0);
   ResoRowFit15->SetLineWidth(3);
   ResoRowFit15->SetChisquare(55.37043);
   ResoRowFit15->SetNDF(54);
   ResoRowFit15->SetParameter(0,81.91198);
   ResoRowFit15->SetParError(0,2.89751);
   ResoRowFit15->SetParLimits(0,0,0);
   ResoRowFit15->SetParameter(1,0.0006942314);
   ResoRowFit15->SetParError(1,0.003539765);
   ResoRowFit15->SetParLimits(1,0,0);
   ResoRowFit15->SetParameter(2,0.1281771);
   ResoRowFit15->SetParError(2,0.002847157);
   ResoRowFit15->SetParLimits(2,0,1.479098);
   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 = 1377   ");
   text = ptstats->AddText("Mean  = -0.0006313");
   text = ptstats->AddText("RMS   =  0.148");
   text = ptstats->AddText("#chi^{2} / ndf = 55.37 / 54");
   text = ptstats->AddText("Constant = 81.91 #pm 2.90 ");
   text = ptstats->AddText("Mean     = 0.0006942 #pm 0.0035398 ");
   text = ptstats->AddText("Sigma    = 0.1282 #pm 0.0028 ");
   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,-12.3375,1.25,111.0375);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow16 = new TH1F("ResoRow16","",100,-1,1);
   ResoRow16->SetBinContent(0,3);
   ResoRow16->SetBinContent(12,1);
   ResoRow16->SetBinContent(16,1);
   ResoRow16->SetBinContent(17,2);
   ResoRow16->SetBinContent(20,1);
   ResoRow16->SetBinContent(28,1);
   ResoRow16->SetBinContent(29,2);
   ResoRow16->SetBinContent(30,1);
   ResoRow16->SetBinContent(31,4);
   ResoRow16->SetBinContent(32,2);
   ResoRow16->SetBinContent(33,4);
   ResoRow16->SetBinContent(34,3);
   ResoRow16->SetBinContent(35,10);
   ResoRow16->SetBinContent(36,6);
   ResoRow16->SetBinContent(37,12);
   ResoRow16->SetBinContent(38,14);
   ResoRow16->SetBinContent(39,12);
   ResoRow16->SetBinContent(40,10);
   ResoRow16->SetBinContent(41,28);
   ResoRow16->SetBinContent(42,37);
   ResoRow16->SetBinContent(43,45);
   ResoRow16->SetBinContent(44,45);
   ResoRow16->SetBinContent(45,43);
   ResoRow16->SetBinContent(46,64);
   ResoRow16->SetBinContent(47,64);
   ResoRow16->SetBinContent(48,89);
   ResoRow16->SetBinContent(49,74);
   ResoRow16->SetBinContent(50,91);
   ResoRow16->SetBinContent(51,94);
   ResoRow16->SetBinContent(52,83);
   ResoRow16->SetBinContent(53,86);
   ResoRow16->SetBinContent(54,69);
   ResoRow16->SetBinContent(55,70);
   ResoRow16->SetBinContent(56,59);
   ResoRow16->SetBinContent(57,55);
   ResoRow16->SetBinContent(58,41);
   ResoRow16->SetBinContent(59,41);
   ResoRow16->SetBinContent(60,29);
   ResoRow16->SetBinContent(61,18);
   ResoRow16->SetBinContent(62,17);
   ResoRow16->SetBinContent(63,8);
   ResoRow16->SetBinContent(64,7);
   ResoRow16->SetBinContent(65,6);
   ResoRow16->SetBinContent(66,5);
   ResoRow16->SetBinContent(67,3);
   ResoRow16->SetBinContent(68,1);
   ResoRow16->SetBinContent(69,2);
   ResoRow16->SetBinContent(70,3);
   ResoRow16->SetBinContent(71,3);
   ResoRow16->SetBinContent(72,1);
   ResoRow16->SetBinContent(77,1);
   ResoRow16->SetBinContent(80,1);
   ResoRow16->SetBinContent(84,2);
   ResoRow16->SetBinContent(101,3);
   ResoRow16->SetEntries(1377);
   
   TF1 *ResoRowFit16 = new TF1("ResoRowFit16","gaus",-1,1);
   ResoRowFit16->SetFillColor(19);
   ResoRowFit16->SetFillStyle(0);
   ResoRowFit16->SetLineWidth(3);
   ResoRowFit16->SetChisquare(54.49742);
   ResoRowFit16->SetNDF(49);
   ResoRowFit16->SetParameter(0,84.56147);
   ResoRowFit16->SetParError(0,3.024473);
   ResoRowFit16->SetParLimits(0,0,0);
   ResoRowFit16->SetParameter(1,0.004660469);
   ResoRowFit16->SetParError(1,0.003472295);
   ResoRowFit16->SetParLimits(1,0,0);
   ResoRowFit16->SetParameter(2,0.1242575);
   ResoRowFit16->SetParError(2,0.002843469);
   ResoRowFit16->SetParLimits(2,0,1.420354);
   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 = 1377   ");
   text = ptstats->AddText("Mean  = 0.0003628");
   text = ptstats->AddText("RMS   = 0.1422");
   text = ptstats->AddText("#chi^{2} / ndf =  54.5 / 49");
   text = ptstats->AddText("Constant = 84.56 #pm 3.02 ");
   text = ptstats->AddText("Mean     = 0.00466 #pm 0.00347 ");
   text = ptstats->AddText("Sigma    = 0.1243 #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,-13.3875,1.25,120.4875);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow17 = new TH1F("ResoRow17","",100,-1,1);
   ResoRow17->SetBinContent(0,2);
   ResoRow17->SetBinContent(7,1);
   ResoRow17->SetBinContent(10,1);
   ResoRow17->SetBinContent(13,1);
   ResoRow17->SetBinContent(21,2);
   ResoRow17->SetBinContent(22,1);
   ResoRow17->SetBinContent(23,1);
   ResoRow17->SetBinContent(25,2);
   ResoRow17->SetBinContent(29,2);
   ResoRow17->SetBinContent(31,1);
   ResoRow17->SetBinContent(32,2);
   ResoRow17->SetBinContent(33,6);
   ResoRow17->SetBinContent(34,6);
   ResoRow17->SetBinContent(35,6);
   ResoRow17->SetBinContent(36,9);
   ResoRow17->SetBinContent(37,8);
   ResoRow17->SetBinContent(38,12);
   ResoRow17->SetBinContent(39,23);
   ResoRow17->SetBinContent(40,24);
   ResoRow17->SetBinContent(41,17);
   ResoRow17->SetBinContent(42,28);
   ResoRow17->SetBinContent(43,36);
   ResoRow17->SetBinContent(44,52);
   ResoRow17->SetBinContent(45,38);
   ResoRow17->SetBinContent(46,64);
   ResoRow17->SetBinContent(47,71);
   ResoRow17->SetBinContent(48,97);
   ResoRow17->SetBinContent(49,91);
   ResoRow17->SetBinContent(50,102);
   ResoRow17->SetBinContent(51,70);
   ResoRow17->SetBinContent(52,90);
   ResoRow17->SetBinContent(53,77);
   ResoRow17->SetBinContent(54,79);
   ResoRow17->SetBinContent(55,59);
   ResoRow17->SetBinContent(56,52);
   ResoRow17->SetBinContent(57,54);
   ResoRow17->SetBinContent(58,43);
   ResoRow17->SetBinContent(59,30);
   ResoRow17->SetBinContent(60,25);
   ResoRow17->SetBinContent(61,23);
   ResoRow17->SetBinContent(62,20);
   ResoRow17->SetBinContent(63,5);
   ResoRow17->SetBinContent(64,5);
   ResoRow17->SetBinContent(65,6);
   ResoRow17->SetBinContent(66,6);
   ResoRow17->SetBinContent(67,3);
   ResoRow17->SetBinContent(68,2);
   ResoRow17->SetBinContent(69,4);
   ResoRow17->SetBinContent(70,5);
   ResoRow17->SetBinContent(71,4);
   ResoRow17->SetBinContent(73,2);
   ResoRow17->SetBinContent(78,1);
   ResoRow17->SetBinContent(82,1);
   ResoRow17->SetBinContent(84,1);
   ResoRow17->SetBinContent(101,4);
   ResoRow17->SetEntries(1377);
   
   TF1 *ResoRowFit17 = new TF1("ResoRowFit17","gaus",-1,1);
   ResoRowFit17->SetFillColor(19);
   ResoRowFit17->SetFillStyle(0);
   ResoRowFit17->SetLineWidth(3);
   ResoRowFit17->SetChisquare(77.99826);
   ResoRowFit17->SetNDF(50);
   ResoRowFit17->SetParameter(0,83.06431);
   ResoRowFit17->SetParError(0,3.079048);
   ResoRowFit17->SetParLimits(0,0,0);
   ResoRowFit17->SetParameter(1,-0.0004550809);
   ResoRowFit17->SetParError(1,0.003520855);
   ResoRowFit17->SetParLimits(1,0,0);
   ResoRowFit17->SetParameter(2,0.1242905);
   ResoRowFit17->SetParError(2,0.003071212);
   ResoRowFit17->SetParLimits(2,0,1.456156);
   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 = 1377   ");
   text = ptstats->AddText("Mean  = -0.002234");
   text = ptstats->AddText("RMS   = 0.1454");
   text = ptstats->AddText("#chi^{2} / ndf =    78 / 50");
   text = ptstats->AddText("Constant = 83.06 #pm 3.08 ");
   text = ptstats->AddText("Mean     = -0.0004551 #pm 0.0035209 ");
   text = ptstats->AddText("Sigma    = 0.1243 #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);
}
