{
//=========Macro generated from canvas: c2/
//=========  (Tue Jun  8 22:40:31 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.6,1.25,113.4);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow12 = new TH1F("ResoRow12","",100,-1,1);
   ResoRow12->SetBinContent(0,2);
   ResoRow12->SetBinContent(12,1);
   ResoRow12->SetBinContent(17,1);
   ResoRow12->SetBinContent(21,2);
   ResoRow12->SetBinContent(22,1);
   ResoRow12->SetBinContent(23,1);
   ResoRow12->SetBinContent(25,1);
   ResoRow12->SetBinContent(28,1);
   ResoRow12->SetBinContent(30,2);
   ResoRow12->SetBinContent(31,7);
   ResoRow12->SetBinContent(32,3);
   ResoRow12->SetBinContent(33,3);
   ResoRow12->SetBinContent(34,3);
   ResoRow12->SetBinContent(35,6);
   ResoRow12->SetBinContent(36,12);
   ResoRow12->SetBinContent(37,11);
   ResoRow12->SetBinContent(38,20);
   ResoRow12->SetBinContent(39,11);
   ResoRow12->SetBinContent(40,30);
   ResoRow12->SetBinContent(41,29);
   ResoRow12->SetBinContent(42,37);
   ResoRow12->SetBinContent(43,46);
   ResoRow12->SetBinContent(44,47);
   ResoRow12->SetBinContent(45,55);
   ResoRow12->SetBinContent(46,60);
   ResoRow12->SetBinContent(47,68);
   ResoRow12->SetBinContent(48,96);
   ResoRow12->SetBinContent(49,87);
   ResoRow12->SetBinContent(50,70);
   ResoRow12->SetBinContent(51,72);
   ResoRow12->SetBinContent(52,78);
   ResoRow12->SetBinContent(53,77);
   ResoRow12->SetBinContent(54,61);
   ResoRow12->SetBinContent(55,68);
   ResoRow12->SetBinContent(56,41);
   ResoRow12->SetBinContent(57,51);
   ResoRow12->SetBinContent(58,45);
   ResoRow12->SetBinContent(59,38);
   ResoRow12->SetBinContent(60,30);
   ResoRow12->SetBinContent(61,25);
   ResoRow12->SetBinContent(62,30);
   ResoRow12->SetBinContent(63,16);
   ResoRow12->SetBinContent(64,15);
   ResoRow12->SetBinContent(65,10);
   ResoRow12->SetBinContent(66,6);
   ResoRow12->SetBinContent(67,8);
   ResoRow12->SetBinContent(68,2);
   ResoRow12->SetBinContent(69,3);
   ResoRow12->SetBinContent(70,5);
   ResoRow12->SetBinContent(71,1);
   ResoRow12->SetBinContent(72,1);
   ResoRow12->SetBinContent(73,1);
   ResoRow12->SetBinContent(74,2);
   ResoRow12->SetBinContent(76,3);
   ResoRow12->SetBinContent(77,1);
   ResoRow12->SetBinContent(80,1);
   ResoRow12->SetBinContent(81,1);
   ResoRow12->SetBinContent(100,1);
   ResoRow12->SetEntries(1406);
   
   TF1 *ResoRowFit12 = new TF1("ResoRowFit12","gaus",-1,1);
   ResoRowFit12->SetFillColor(19);
   ResoRowFit12->SetFillStyle(0);
   ResoRowFit12->SetLineWidth(3);
   ResoRowFit12->SetChisquare(56.43913);
   ResoRowFit12->SetNDF(54);
   ResoRowFit12->SetParameter(0,76.16304);
   ResoRowFit12->SetParError(0,2.631442);
   ResoRowFit12->SetParLimits(0,0,0);
   ResoRowFit12->SetParameter(1,0.002313199);
   ResoRowFit12->SetParError(1,0.003876247);
   ResoRowFit12->SetParLimits(1,0,0);
   ResoRowFit12->SetParameter(2,0.1413296);
   ResoRowFit12->SetParError(2,0.003036263);
   ResoRowFit12->SetParLimits(2,0,1.568599);
   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 = 1406   ");
   text = ptstats->AddText("Mean  = 0.001774");
   text = ptstats->AddText("RMS   = 0.1569");
   text = ptstats->AddText("#chi^{2} / ndf = 56.44 / 54");
   text = ptstats->AddText("Constant = 76.16 #pm 2.63 ");
   text = ptstats->AddText("Mean     = 0.002313 #pm 0.003876 ");
   text = ptstats->AddText("Sigma    = 0.1413 #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,-11.55,1.25,103.95);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow13 = new TH1F("ResoRow13","",100,-1,1);
   ResoRow13->SetBinContent(0,4);
   ResoRow13->SetBinContent(4,1);
   ResoRow13->SetBinContent(16,1);
   ResoRow13->SetBinContent(20,1);
   ResoRow13->SetBinContent(22,1);
   ResoRow13->SetBinContent(25,2);
   ResoRow13->SetBinContent(26,1);
   ResoRow13->SetBinContent(29,2);
   ResoRow13->SetBinContent(30,1);
   ResoRow13->SetBinContent(31,4);
   ResoRow13->SetBinContent(32,5);
   ResoRow13->SetBinContent(33,6);
   ResoRow13->SetBinContent(34,7);
   ResoRow13->SetBinContent(35,3);
   ResoRow13->SetBinContent(36,12);
   ResoRow13->SetBinContent(37,6);
   ResoRow13->SetBinContent(38,9);
   ResoRow13->SetBinContent(39,26);
   ResoRow13->SetBinContent(40,23);
   ResoRow13->SetBinContent(41,27);
   ResoRow13->SetBinContent(42,40);
   ResoRow13->SetBinContent(43,41);
   ResoRow13->SetBinContent(44,47);
   ResoRow13->SetBinContent(45,54);
   ResoRow13->SetBinContent(46,65);
   ResoRow13->SetBinContent(47,72);
   ResoRow13->SetBinContent(48,74);
   ResoRow13->SetBinContent(49,78);
   ResoRow13->SetBinContent(50,87);
   ResoRow13->SetBinContent(51,83);
   ResoRow13->SetBinContent(52,79);
   ResoRow13->SetBinContent(53,88);
   ResoRow13->SetBinContent(54,62);
   ResoRow13->SetBinContent(55,66);
   ResoRow13->SetBinContent(56,71);
   ResoRow13->SetBinContent(57,43);
   ResoRow13->SetBinContent(58,39);
   ResoRow13->SetBinContent(59,43);
   ResoRow13->SetBinContent(60,28);
   ResoRow13->SetBinContent(61,25);
   ResoRow13->SetBinContent(62,14);
   ResoRow13->SetBinContent(63,15);
   ResoRow13->SetBinContent(64,9);
   ResoRow13->SetBinContent(65,11);
   ResoRow13->SetBinContent(66,11);
   ResoRow13->SetBinContent(67,2);
   ResoRow13->SetBinContent(69,4);
   ResoRow13->SetBinContent(70,3);
   ResoRow13->SetBinContent(71,2);
   ResoRow13->SetBinContent(72,2);
   ResoRow13->SetBinContent(74,1);
   ResoRow13->SetBinContent(77,1);
   ResoRow13->SetBinContent(91,1);
   ResoRow13->SetBinContent(97,1);
   ResoRow13->SetBinContent(101,2);
   ResoRow13->SetEntries(1406);
   
   TF1 *ResoRowFit13 = new TF1("ResoRowFit13","gaus",-1,1);
   ResoRowFit13->SetFillColor(19);
   ResoRowFit13->SetFillStyle(0);
   ResoRowFit13->SetLineWidth(3);
   ResoRowFit13->SetChisquare(52.68082);
   ResoRowFit13->SetNDF(50);
   ResoRowFit13->SetParameter(0,80.9115);
   ResoRowFit13->SetParError(0,2.849828);
   ResoRowFit13->SetParLimits(0,0,0);
   ResoRowFit13->SetParameter(1,0.002016034);
   ResoRowFit13->SetParError(1,0.003666422);
   ResoRowFit13->SetParLimits(1,0,0);
   ResoRowFit13->SetParameter(2,0.1332168);
   ResoRowFit13->SetParError(2,0.003032671);
   ResoRowFit13->SetParLimits(2,0,1.50427);
   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 = 1406   ");
   text = ptstats->AddText("Mean  = -0.001386");
   text = ptstats->AddText("RMS   = 0.1504");
   text = ptstats->AddText("#chi^{2} / ndf = 52.68 / 50");
   text = ptstats->AddText("Constant = 80.91 #pm 2.85 ");
   text = ptstats->AddText("Mean     = 0.002016 #pm 0.003666 ");
   text = ptstats->AddText("Sigma    = 0.1332 #pm 0.0030 ");
   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.075,1.25,108.675);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow14 = new TH1F("ResoRow14","",100,-1,1);
   ResoRow14->SetBinContent(0,2);
   ResoRow14->SetBinContent(18,1);
   ResoRow14->SetBinContent(19,1);
   ResoRow14->SetBinContent(21,2);
   ResoRow14->SetBinContent(23,1);
   ResoRow14->SetBinContent(28,2);
   ResoRow14->SetBinContent(31,2);
   ResoRow14->SetBinContent(32,6);
   ResoRow14->SetBinContent(33,1);
   ResoRow14->SetBinContent(34,5);
   ResoRow14->SetBinContent(35,6);
   ResoRow14->SetBinContent(36,6);
   ResoRow14->SetBinContent(37,13);
   ResoRow14->SetBinContent(38,13);
   ResoRow14->SetBinContent(39,16);
   ResoRow14->SetBinContent(40,27);
   ResoRow14->SetBinContent(41,27);
   ResoRow14->SetBinContent(42,32);
   ResoRow14->SetBinContent(43,34);
   ResoRow14->SetBinContent(44,54);
   ResoRow14->SetBinContent(45,59);
   ResoRow14->SetBinContent(46,60);
   ResoRow14->SetBinContent(47,79);
   ResoRow14->SetBinContent(48,83);
   ResoRow14->SetBinContent(49,85);
   ResoRow14->SetBinContent(50,92);
   ResoRow14->SetBinContent(51,91);
   ResoRow14->SetBinContent(52,80);
   ResoRow14->SetBinContent(53,72);
   ResoRow14->SetBinContent(54,68);
   ResoRow14->SetBinContent(55,69);
   ResoRow14->SetBinContent(56,68);
   ResoRow14->SetBinContent(57,49);
   ResoRow14->SetBinContent(58,40);
   ResoRow14->SetBinContent(59,28);
   ResoRow14->SetBinContent(60,26);
   ResoRow14->SetBinContent(61,20);
   ResoRow14->SetBinContent(62,23);
   ResoRow14->SetBinContent(63,15);
   ResoRow14->SetBinContent(64,11);
   ResoRow14->SetBinContent(65,5);
   ResoRow14->SetBinContent(66,4);
   ResoRow14->SetBinContent(67,7);
   ResoRow14->SetBinContent(68,3);
   ResoRow14->SetBinContent(69,5);
   ResoRow14->SetBinContent(70,4);
   ResoRow14->SetBinContent(72,3);
   ResoRow14->SetBinContent(76,1);
   ResoRow14->SetBinContent(77,1);
   ResoRow14->SetBinContent(81,2);
   ResoRow14->SetBinContent(86,1);
   ResoRow14->SetBinContent(101,1);
   ResoRow14->SetEntries(1406);
   
   TF1 *ResoRowFit14 = new TF1("ResoRowFit14","gaus",-1,1);
   ResoRowFit14->SetFillColor(19);
   ResoRowFit14->SetFillStyle(0);
   ResoRowFit14->SetLineWidth(3);
   ResoRowFit14->SetChisquare(42.90877);
   ResoRowFit14->SetNDF(47);
   ResoRowFit14->SetParameter(0,83.51354);
   ResoRowFit14->SetParError(0,2.922196);
   ResoRowFit14->SetParLimits(0,0,0);
   ResoRowFit14->SetParameter(1,7.285419e-05);
   ResoRowFit14->SetParError(1,0.003562623);
   ResoRowFit14->SetParLimits(1,0,0);
   ResoRowFit14->SetParameter(2,0.1301537);
   ResoRowFit14->SetParError(2,0.002926021);
   ResoRowFit14->SetParLimits(2,0,1.442961);
   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 = 1406   ");
   text = ptstats->AddText("Mean  = 0.0009392");
   text = ptstats->AddText("RMS   = 0.1443");
   text = ptstats->AddText("#chi^{2} / ndf = 42.91 / 47");
   text = ptstats->AddText("Constant = 83.51 #pm 2.92 ");
   text = ptstats->AddText("Mean     = 7.285e-05 #pm 3.563e-03 ");
   text = ptstats->AddText("Sigma    = 0.1302 #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_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,-11.41875,1.25,102.7688);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow15 = new TH1F("ResoRow15","",100,-1,1);
   ResoRow15->SetBinContent(0,1);
   ResoRow15->SetBinContent(4,1);
   ResoRow15->SetBinContent(13,2);
   ResoRow15->SetBinContent(17,1);
   ResoRow15->SetBinContent(24,1);
   ResoRow15->SetBinContent(28,2);
   ResoRow15->SetBinContent(29,1);
   ResoRow15->SetBinContent(30,2);
   ResoRow15->SetBinContent(31,2);
   ResoRow15->SetBinContent(32,5);
   ResoRow15->SetBinContent(33,3);
   ResoRow15->SetBinContent(34,5);
   ResoRow15->SetBinContent(35,4);
   ResoRow15->SetBinContent(36,5);
   ResoRow15->SetBinContent(37,6);
   ResoRow15->SetBinContent(38,14);
   ResoRow15->SetBinContent(39,10);
   ResoRow15->SetBinContent(40,24);
   ResoRow15->SetBinContent(41,34);
   ResoRow15->SetBinContent(42,37);
   ResoRow15->SetBinContent(43,41);
   ResoRow15->SetBinContent(44,43);
   ResoRow15->SetBinContent(45,65);
   ResoRow15->SetBinContent(46,71);
   ResoRow15->SetBinContent(47,75);
   ResoRow15->SetBinContent(48,87);
   ResoRow15->SetBinContent(49,80);
   ResoRow15->SetBinContent(50,87);
   ResoRow15->SetBinContent(51,83);
   ResoRow15->SetBinContent(52,82);
   ResoRow15->SetBinContent(53,73);
   ResoRow15->SetBinContent(54,80);
   ResoRow15->SetBinContent(55,69);
   ResoRow15->SetBinContent(56,54);
   ResoRow15->SetBinContent(57,56);
   ResoRow15->SetBinContent(58,51);
   ResoRow15->SetBinContent(59,24);
   ResoRow15->SetBinContent(60,28);
   ResoRow15->SetBinContent(61,24);
   ResoRow15->SetBinContent(62,13);
   ResoRow15->SetBinContent(63,12);
   ResoRow15->SetBinContent(64,12);
   ResoRow15->SetBinContent(65,7);
   ResoRow15->SetBinContent(66,5);
   ResoRow15->SetBinContent(67,6);
   ResoRow15->SetBinContent(68,4);
   ResoRow15->SetBinContent(69,1);
   ResoRow15->SetBinContent(70,2);
   ResoRow15->SetBinContent(72,1);
   ResoRow15->SetBinContent(74,3);
   ResoRow15->SetBinContent(76,1);
   ResoRow15->SetBinContent(80,1);
   ResoRow15->SetBinContent(81,1);
   ResoRow15->SetBinContent(101,4);
   ResoRow15->SetEntries(1406);
   
   TF1 *ResoRowFit15 = new TF1("ResoRowFit15","gaus",-1,1);
   ResoRowFit15->SetFillColor(19);
   ResoRowFit15->SetFillStyle(0);
   ResoRowFit15->SetLineWidth(3);
   ResoRowFit15->SetChisquare(44.50478);
   ResoRowFit15->SetNDF(49);
   ResoRowFit15->SetParameter(0,84.93304);
   ResoRowFit15->SetParError(0,2.968377);
   ResoRowFit15->SetParLimits(0,0,0);
   ResoRowFit15->SetParameter(1,0.0006163839);
   ResoRowFit15->SetParError(1,0.003482369);
   ResoRowFit15->SetParLimits(1,0,0);
   ResoRowFit15->SetParameter(2,0.1275205);
   ResoRowFit15->SetParError(2,0.002827381);
   ResoRowFit15->SetParLimits(2,0,1.432283);
   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 = 1406   ");
   text = ptstats->AddText("Mean  = -0.00145");
   text = ptstats->AddText("RMS   = 0.1432");
   text = ptstats->AddText("#chi^{2} / ndf =  44.5 / 49");
   text = ptstats->AddText("Constant = 84.93 #pm 2.97 ");
   text = ptstats->AddText("Mean     = 0.0006164 #pm 0.0034824 ");
   text = ptstats->AddText("Sigma    = 0.1275 #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,-11.94375,1.25,107.4938);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow16 = new TH1F("ResoRow16","",100,-1,1);
   ResoRow16->SetBinContent(0,3);
   ResoRow16->SetBinContent(6,1);
   ResoRow16->SetBinContent(7,1);
   ResoRow16->SetBinContent(23,1);
   ResoRow16->SetBinContent(24,1);
   ResoRow16->SetBinContent(29,1);
   ResoRow16->SetBinContent(32,4);
   ResoRow16->SetBinContent(33,4);
   ResoRow16->SetBinContent(34,8);
   ResoRow16->SetBinContent(35,7);
   ResoRow16->SetBinContent(36,7);
   ResoRow16->SetBinContent(37,5);
   ResoRow16->SetBinContent(38,11);
   ResoRow16->SetBinContent(39,20);
   ResoRow16->SetBinContent(40,25);
   ResoRow16->SetBinContent(41,27);
   ResoRow16->SetBinContent(42,36);
   ResoRow16->SetBinContent(43,44);
   ResoRow16->SetBinContent(44,42);
   ResoRow16->SetBinContent(45,49);
   ResoRow16->SetBinContent(46,75);
   ResoRow16->SetBinContent(47,75);
   ResoRow16->SetBinContent(48,71);
   ResoRow16->SetBinContent(49,91);
   ResoRow16->SetBinContent(50,83);
   ResoRow16->SetBinContent(51,74);
   ResoRow16->SetBinContent(52,81);
   ResoRow16->SetBinContent(53,88);
   ResoRow16->SetBinContent(54,81);
   ResoRow16->SetBinContent(55,68);
   ResoRow16->SetBinContent(56,48);
   ResoRow16->SetBinContent(57,59);
   ResoRow16->SetBinContent(58,47);
   ResoRow16->SetBinContent(59,35);
   ResoRow16->SetBinContent(60,30);
   ResoRow16->SetBinContent(61,36);
   ResoRow16->SetBinContent(62,14);
   ResoRow16->SetBinContent(63,12);
   ResoRow16->SetBinContent(64,12);
   ResoRow16->SetBinContent(65,4);
   ResoRow16->SetBinContent(66,5);
   ResoRow16->SetBinContent(67,2);
   ResoRow16->SetBinContent(68,3);
   ResoRow16->SetBinContent(69,2);
   ResoRow16->SetBinContent(70,4);
   ResoRow16->SetBinContent(71,2);
   ResoRow16->SetBinContent(72,1);
   ResoRow16->SetBinContent(73,1);
   ResoRow16->SetBinContent(74,2);
   ResoRow16->SetBinContent(82,1);
   ResoRow16->SetBinContent(96,1);
   ResoRow16->SetBinContent(101,1);
   ResoRow16->SetEntries(1406);
   
   TF1 *ResoRowFit16 = new TF1("ResoRowFit16","gaus",-1,1);
   ResoRowFit16->SetFillColor(19);
   ResoRowFit16->SetFillStyle(0);
   ResoRowFit16->SetLineWidth(3);
   ResoRowFit16->SetChisquare(46.78625);
   ResoRowFit16->SetNDF(47);
   ResoRowFit16->SetParameter(0,83.51265);
   ResoRowFit16->SetParError(0,2.878089);
   ResoRowFit16->SetParLimits(0,0,0);
   ResoRowFit16->SetParameter(1,0.002432892);
   ResoRowFit16->SetParError(1,0.003564157);
   ResoRowFit16->SetParLimits(1,0,0);
   ResoRowFit16->SetParameter(2,0.1296637);
   ResoRowFit16->SetParError(2,0.002789739);
   ResoRowFit16->SetParLimits(2,0,1.434339);
   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 = 1406   ");
   text = ptstats->AddText("Mean  = 0.002969");
   text = ptstats->AddText("RMS   = 0.1432");
   text = ptstats->AddText("#chi^{2} / ndf = 46.79 / 47");
   text = ptstats->AddText("Constant = 83.51 #pm 2.88 ");
   text = ptstats->AddText("Mean     = 0.002433 #pm 0.003564 ");
   text = ptstats->AddText("Sigma    = 0.1297 #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,2);
   ResoRow17->SetBinContent(3,2);
   ResoRow17->SetBinContent(22,1);
   ResoRow17->SetBinContent(25,3);
   ResoRow17->SetBinContent(26,2);
   ResoRow17->SetBinContent(27,2);
   ResoRow17->SetBinContent(29,1);
   ResoRow17->SetBinContent(30,2);
   ResoRow17->SetBinContent(31,1);
   ResoRow17->SetBinContent(32,6);
   ResoRow17->SetBinContent(33,6);
   ResoRow17->SetBinContent(34,1);
   ResoRow17->SetBinContent(35,1);
   ResoRow17->SetBinContent(36,7);
   ResoRow17->SetBinContent(37,10);
   ResoRow17->SetBinContent(38,7);
   ResoRow17->SetBinContent(39,18);
   ResoRow17->SetBinContent(40,21);
   ResoRow17->SetBinContent(41,32);
   ResoRow17->SetBinContent(42,35);
   ResoRow17->SetBinContent(43,43);
   ResoRow17->SetBinContent(44,50);
   ResoRow17->SetBinContent(45,53);
   ResoRow17->SetBinContent(46,68);
   ResoRow17->SetBinContent(47,65);
   ResoRow17->SetBinContent(48,87);
   ResoRow17->SetBinContent(49,99);
   ResoRow17->SetBinContent(50,89);
   ResoRow17->SetBinContent(51,84);
   ResoRow17->SetBinContent(52,86);
   ResoRow17->SetBinContent(53,83);
   ResoRow17->SetBinContent(54,67);
   ResoRow17->SetBinContent(55,55);
   ResoRow17->SetBinContent(56,55);
   ResoRow17->SetBinContent(57,56);
   ResoRow17->SetBinContent(58,37);
   ResoRow17->SetBinContent(59,42);
   ResoRow17->SetBinContent(60,29);
   ResoRow17->SetBinContent(61,23);
   ResoRow17->SetBinContent(62,15);
   ResoRow17->SetBinContent(63,15);
   ResoRow17->SetBinContent(64,10);
   ResoRow17->SetBinContent(65,6);
   ResoRow17->SetBinContent(66,3);
   ResoRow17->SetBinContent(67,10);
   ResoRow17->SetBinContent(68,2);
   ResoRow17->SetBinContent(69,2);
   ResoRow17->SetBinContent(70,3);
   ResoRow17->SetBinContent(73,1);
   ResoRow17->SetBinContent(74,1);
   ResoRow17->SetBinContent(75,1);
   ResoRow17->SetBinContent(77,1);
   ResoRow17->SetBinContent(83,1);
   ResoRow17->SetBinContent(88,1);
   ResoRow17->SetBinContent(96,1);
   ResoRow17->SetBinContent(101,2);
   ResoRow17->SetEntries(1406);
   
   TF1 *ResoRowFit17 = new TF1("ResoRowFit17","gaus",-1,1);
   ResoRowFit17->SetFillColor(19);
   ResoRowFit17->SetFillStyle(0);
   ResoRowFit17->SetLineWidth(3);
   ResoRowFit17->SetChisquare(60.39024);
   ResoRowFit17->SetNDF(51);
   ResoRowFit17->SetParameter(0,86.34317);
   ResoRowFit17->SetParError(0,2.936503);
   ResoRowFit17->SetParLimits(0,0,0);
   ResoRowFit17->SetParameter(1,0.003765436);
   ResoRowFit17->SetParError(1,0.003460505);
   ResoRowFit17->SetParLimits(1,0,0);
   ResoRowFit17->SetParameter(2,0.1240495);
   ResoRowFit17->SetParError(2,0.00253203);
   ResoRowFit17->SetParLimits(2,0,1.47654);
   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 = 1406   ");
   text = ptstats->AddText("Mean  = -0.000397");
   text = ptstats->AddText("RMS   = 0.1476");
   text = ptstats->AddText("#chi^{2} / ndf = 60.39 / 51");
   text = ptstats->AddText("Constant = 86.34 #pm 2.94 ");
   text = ptstats->AddText("Mean     = 0.003765 #pm 0.003461 ");
   text = ptstats->AddText("Sigma    = 0.124 #pm 0.003 ");
   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);
}
