{
//=========Macro generated from canvas: c2/
//=========  (Fri Jun 11 07:51:00 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.2875,1.25,101.5875);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow13 = new TH1F("ResoRow13","",100,-1,1);
   ResoRow13->SetBinContent(0,1);
   ResoRow13->SetBinContent(2,1);
   ResoRow13->SetBinContent(22,1);
   ResoRow13->SetBinContent(27,2);
   ResoRow13->SetBinContent(28,3);
   ResoRow13->SetBinContent(29,1);
   ResoRow13->SetBinContent(30,2);
   ResoRow13->SetBinContent(33,1);
   ResoRow13->SetBinContent(34,3);
   ResoRow13->SetBinContent(35,6);
   ResoRow13->SetBinContent(36,8);
   ResoRow13->SetBinContent(37,9);
   ResoRow13->SetBinContent(38,8);
   ResoRow13->SetBinContent(39,14);
   ResoRow13->SetBinContent(40,15);
   ResoRow13->SetBinContent(41,10);
   ResoRow13->SetBinContent(42,19);
   ResoRow13->SetBinContent(43,18);
   ResoRow13->SetBinContent(44,40);
   ResoRow13->SetBinContent(45,40);
   ResoRow13->SetBinContent(46,44);
   ResoRow13->SetBinContent(47,59);
   ResoRow13->SetBinContent(48,60);
   ResoRow13->SetBinContent(49,78);
   ResoRow13->SetBinContent(50,86);
   ResoRow13->SetBinContent(51,82);
   ResoRow13->SetBinContent(52,71);
   ResoRow13->SetBinContent(53,64);
   ResoRow13->SetBinContent(54,65);
   ResoRow13->SetBinContent(55,43);
   ResoRow13->SetBinContent(56,49);
   ResoRow13->SetBinContent(57,44);
   ResoRow13->SetBinContent(58,28);
   ResoRow13->SetBinContent(59,22);
   ResoRow13->SetBinContent(60,14);
   ResoRow13->SetBinContent(61,11);
   ResoRow13->SetBinContent(62,9);
   ResoRow13->SetBinContent(63,4);
   ResoRow13->SetBinContent(64,7);
   ResoRow13->SetBinContent(65,5);
   ResoRow13->SetBinContent(67,2);
   ResoRow13->SetBinContent(68,3);
   ResoRow13->SetBinContent(69,1);
   ResoRow13->SetBinContent(70,3);
   ResoRow13->SetBinContent(71,1);
   ResoRow13->SetBinContent(75,1);
   ResoRow13->SetBinContent(78,2);
   ResoRow13->SetBinContent(79,1);
   ResoRow13->SetBinContent(87,1);
   ResoRow13->SetBinContent(91,1);
   ResoRow13->SetBinContent(100,1);
   ResoRow13->SetBinContent(101,6);
   ResoRow13->SetEntries(1070);
   
   TF1 *ResoRowFit13 = new TF1("ResoRowFit13","gaus",-1,1);
   ResoRowFit13->SetFillColor(19);
   ResoRowFit13->SetFillStyle(0);
   ResoRowFit13->SetLineWidth(3);
   ResoRowFit13->SetChisquare(65.51342);
   ResoRowFit13->SetNDF(47);
   ResoRowFit13->SetParameter(0,71.24215);
   ResoRowFit13->SetParError(0,3.148968);
   ResoRowFit13->SetParLimits(0,0,0);
   ResoRowFit13->SetParameter(1,0.00335165);
   ResoRowFit13->SetParError(1,0.003608477);
   ResoRowFit13->SetParLimits(1,0,0);
   ResoRowFit13->SetParameter(2,0.1119605);
   ResoRowFit13->SetParError(2,0.003509382);
   ResoRowFit13->SetParLimits(2,0,1.414767);
   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 = 1070   ");
   text = ptstats->AddText("Mean  = 0.0003429");
   text = ptstats->AddText("RMS   = 0.1413");
   text = ptstats->AddText("#chi^{2} / ndf = 65.51 / 47");
   text = ptstats->AddText("Constant = 71.24 #pm 3.15 ");
   text = ptstats->AddText("Mean     = 0.003352 #pm 0.003608 ");
   text = ptstats->AddText("Sigma    = 0.112 #pm 0.004 ");
   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,-11.94375,1.25,107.4938);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow15 = new TH1F("ResoRow15","",100,-1,1);
   ResoRow15->SetBinContent(0,3);
   ResoRow15->SetBinContent(8,1);
   ResoRow15->SetBinContent(19,1);
   ResoRow15->SetBinContent(22,1);
   ResoRow15->SetBinContent(24,3);
   ResoRow15->SetBinContent(27,1);
   ResoRow15->SetBinContent(29,2);
   ResoRow15->SetBinContent(30,1);
   ResoRow15->SetBinContent(31,2);
   ResoRow15->SetBinContent(32,1);
   ResoRow15->SetBinContent(33,1);
   ResoRow15->SetBinContent(34,3);
   ResoRow15->SetBinContent(35,2);
   ResoRow15->SetBinContent(36,2);
   ResoRow15->SetBinContent(37,3);
   ResoRow15->SetBinContent(38,6);
   ResoRow15->SetBinContent(39,10);
   ResoRow15->SetBinContent(40,16);
   ResoRow15->SetBinContent(41,21);
   ResoRow15->SetBinContent(42,26);
   ResoRow15->SetBinContent(43,19);
   ResoRow15->SetBinContent(44,31);
   ResoRow15->SetBinContent(45,41);
   ResoRow15->SetBinContent(46,60);
   ResoRow15->SetBinContent(47,72);
   ResoRow15->SetBinContent(48,72);
   ResoRow15->SetBinContent(49,75);
   ResoRow15->SetBinContent(50,91);
   ResoRow15->SetBinContent(51,75);
   ResoRow15->SetBinContent(52,78);
   ResoRow15->SetBinContent(53,65);
   ResoRow15->SetBinContent(54,52);
   ResoRow15->SetBinContent(55,53);
   ResoRow15->SetBinContent(56,27);
   ResoRow15->SetBinContent(57,33);
   ResoRow15->SetBinContent(58,25);
   ResoRow15->SetBinContent(59,16);
   ResoRow15->SetBinContent(60,18);
   ResoRow15->SetBinContent(61,10);
   ResoRow15->SetBinContent(62,11);
   ResoRow15->SetBinContent(63,8);
   ResoRow15->SetBinContent(64,5);
   ResoRow15->SetBinContent(65,2);
   ResoRow15->SetBinContent(66,5);
   ResoRow15->SetBinContent(67,2);
   ResoRow15->SetBinContent(68,1);
   ResoRow15->SetBinContent(69,2);
   ResoRow15->SetBinContent(70,1);
   ResoRow15->SetBinContent(71,1);
   ResoRow15->SetBinContent(74,1);
   ResoRow15->SetBinContent(75,1);
   ResoRow15->SetBinContent(78,1);
   ResoRow15->SetBinContent(79,1);
   ResoRow15->SetBinContent(81,1);
   ResoRow15->SetBinContent(82,1);
   ResoRow15->SetBinContent(98,1);
   ResoRow15->SetBinContent(100,1);
   ResoRow15->SetBinContent(101,5);
   ResoRow15->SetEntries(1070);
   
   TF1 *ResoRowFit15 = new TF1("ResoRowFit15","gaus",-1,1);
   ResoRowFit15->SetFillColor(19);
   ResoRowFit15->SetFillStyle(0);
   ResoRowFit15->SetLineWidth(3);
   ResoRowFit15->SetChisquare(62.05385);
   ResoRowFit15->SetNDF(53);
   ResoRowFit15->SetParameter(0,72.79974);
   ResoRowFit15->SetParError(0,3.129579);
   ResoRowFit15->SetParLimits(0,0,0);
   ResoRowFit15->SetParameter(1,-0.005484063);
   ResoRowFit15->SetParError(1,0.003496375);
   ResoRowFit15->SetParLimits(1,0,0);
   ResoRowFit15->SetParameter(2,0.1096014);
   ResoRowFit15->SetParError(2,0.003193953);
   ResoRowFit15->SetParLimits(2,0,1.401312);
   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 = 1070   ");
   text = ptstats->AddText("Mean  = -0.003969");
   text = ptstats->AddText("RMS   = 0.1404");
   text = ptstats->AddText("#chi^{2} / ndf = 62.05 / 53");
   text = ptstats->AddText("Constant =  72.8 #pm 3.1 ");
   text = ptstats->AddText("Mean     = -0.005484 #pm 0.003496 ");
   text = ptstats->AddText("Sigma    = 0.1096 #pm 0.0032 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow15->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow15->GetListOfFunctions());
   ResoRow15->GetXaxis()->SetTitle("residual / mm");
   ResoRow15->GetYaxis()->SetTitle("counts");
   ResoRow15->Draw("");
   c2_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.8625,1.25,115.7625);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow16 = new TH1F("ResoRow16","",100,-1,1);
   ResoRow16->SetBinContent(0,4);
   ResoRow16->SetBinContent(11,1);
   ResoRow16->SetBinContent(13,1);
   ResoRow16->SetBinContent(14,1);
   ResoRow16->SetBinContent(19,1);
   ResoRow16->SetBinContent(23,2);
   ResoRow16->SetBinContent(24,3);
   ResoRow16->SetBinContent(28,1);
   ResoRow16->SetBinContent(31,1);
   ResoRow16->SetBinContent(32,5);
   ResoRow16->SetBinContent(33,1);
   ResoRow16->SetBinContent(34,5);
   ResoRow16->SetBinContent(35,3);
   ResoRow16->SetBinContent(36,1);
   ResoRow16->SetBinContent(37,4);
   ResoRow16->SetBinContent(38,4);
   ResoRow16->SetBinContent(39,7);
   ResoRow16->SetBinContent(40,21);
   ResoRow16->SetBinContent(41,15);
   ResoRow16->SetBinContent(42,12);
   ResoRow16->SetBinContent(43,42);
   ResoRow16->SetBinContent(44,29);
   ResoRow16->SetBinContent(45,26);
   ResoRow16->SetBinContent(46,42);
   ResoRow16->SetBinContent(47,57);
   ResoRow16->SetBinContent(48,59);
   ResoRow16->SetBinContent(49,75);
   ResoRow16->SetBinContent(50,78);
   ResoRow16->SetBinContent(51,98);
   ResoRow16->SetBinContent(52,83);
   ResoRow16->SetBinContent(53,69);
   ResoRow16->SetBinContent(54,55);
   ResoRow16->SetBinContent(55,58);
   ResoRow16->SetBinContent(56,48);
   ResoRow16->SetBinContent(57,33);
   ResoRow16->SetBinContent(58,35);
   ResoRow16->SetBinContent(59,25);
   ResoRow16->SetBinContent(60,16);
   ResoRow16->SetBinContent(61,12);
   ResoRow16->SetBinContent(62,4);
   ResoRow16->SetBinContent(63,6);
   ResoRow16->SetBinContent(64,6);
   ResoRow16->SetBinContent(65,1);
   ResoRow16->SetBinContent(66,3);
   ResoRow16->SetBinContent(67,2);
   ResoRow16->SetBinContent(68,4);
   ResoRow16->SetBinContent(69,1);
   ResoRow16->SetBinContent(70,1);
   ResoRow16->SetBinContent(74,1);
   ResoRow16->SetBinContent(76,1);
   ResoRow16->SetBinContent(86,1);
   ResoRow16->SetBinContent(94,1);
   ResoRow16->SetBinContent(100,1);
   ResoRow16->SetBinContent(101,4);
   ResoRow16->SetEntries(1070);
   
   TF1 *ResoRowFit16 = new TF1("ResoRowFit16","gaus",-1,1);
   ResoRowFit16->SetFillColor(19);
   ResoRowFit16->SetFillStyle(0);
   ResoRowFit16->SetLineWidth(3);
   ResoRowFit16->SetChisquare(78.51941);
   ResoRowFit16->SetNDF(49);
   ResoRowFit16->SetParameter(0,74.94519);
   ResoRowFit16->SetParError(0,3.131591);
   ResoRowFit16->SetParLimits(0,0,0);
   ResoRowFit16->SetParameter(1,0.008125564);
   ResoRowFit16->SetParError(1,0.003394193);
   ResoRowFit16->SetParLimits(1,0,0);
   ResoRowFit16->SetParameter(2,0.1047169);
   ResoRowFit16->SetParError(2,0.002832021);
   ResoRowFit16->SetParLimits(2,0,1.400387);
   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 = 1070   ");
   text = ptstats->AddText("Mean  = 0.001228");
   text = ptstats->AddText("RMS   = 0.1402");
   text = ptstats->AddText("#chi^{2} / ndf = 78.52 / 49");
   text = ptstats->AddText("Constant = 74.95 #pm 3.13 ");
   text = ptstats->AddText("Mean     = 0.008126 #pm 0.003394 ");
   text = ptstats->AddText("Sigma    = 0.1047 #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_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.94375,1.25,107.4938);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow17 = new TH1F("ResoRow17","",100,-1,1);
   ResoRow17->SetBinContent(0,1);
   ResoRow17->SetBinContent(1,1);
   ResoRow17->SetBinContent(6,1);
   ResoRow17->SetBinContent(8,1);
   ResoRow17->SetBinContent(11,1);
   ResoRow17->SetBinContent(20,1);
   ResoRow17->SetBinContent(21,1);
   ResoRow17->SetBinContent(23,1);
   ResoRow17->SetBinContent(28,1);
   ResoRow17->SetBinContent(29,1);
   ResoRow17->SetBinContent(30,1);
   ResoRow17->SetBinContent(32,1);
   ResoRow17->SetBinContent(33,1);
   ResoRow17->SetBinContent(34,2);
   ResoRow17->SetBinContent(35,4);
   ResoRow17->SetBinContent(36,2);
   ResoRow17->SetBinContent(37,12);
   ResoRow17->SetBinContent(38,6);
   ResoRow17->SetBinContent(39,11);
   ResoRow17->SetBinContent(40,14);
   ResoRow17->SetBinContent(41,16);
   ResoRow17->SetBinContent(42,16);
   ResoRow17->SetBinContent(43,25);
   ResoRow17->SetBinContent(44,37);
   ResoRow17->SetBinContent(45,48);
   ResoRow17->SetBinContent(46,48);
   ResoRow17->SetBinContent(47,64);
   ResoRow17->SetBinContent(48,62);
   ResoRow17->SetBinContent(49,91);
   ResoRow17->SetBinContent(50,72);
   ResoRow17->SetBinContent(51,77);
   ResoRow17->SetBinContent(52,69);
   ResoRow17->SetBinContent(53,74);
   ResoRow17->SetBinContent(54,61);
   ResoRow17->SetBinContent(55,47);
   ResoRow17->SetBinContent(56,50);
   ResoRow17->SetBinContent(57,32);
   ResoRow17->SetBinContent(58,26);
   ResoRow17->SetBinContent(59,18);
   ResoRow17->SetBinContent(60,15);
   ResoRow17->SetBinContent(61,13);
   ResoRow17->SetBinContent(62,7);
   ResoRow17->SetBinContent(63,7);
   ResoRow17->SetBinContent(64,6);
   ResoRow17->SetBinContent(65,1);
   ResoRow17->SetBinContent(66,4);
   ResoRow17->SetBinContent(67,1);
   ResoRow17->SetBinContent(68,1);
   ResoRow17->SetBinContent(69,2);
   ResoRow17->SetBinContent(70,2);
   ResoRow17->SetBinContent(72,1);
   ResoRow17->SetBinContent(73,1);
   ResoRow17->SetBinContent(76,1);
   ResoRow17->SetBinContent(79,1);
   ResoRow17->SetBinContent(81,1);
   ResoRow17->SetBinContent(82,1);
   ResoRow17->SetBinContent(83,1);
   ResoRow17->SetBinContent(94,1);
   ResoRow17->SetBinContent(98,1);
   ResoRow17->SetBinContent(101,5);
   ResoRow17->SetEntries(1070);
   
   TF1 *ResoRowFit17 = new TF1("ResoRowFit17","gaus",-1,1);
   ResoRowFit17->SetFillColor(19);
   ResoRowFit17->SetFillStyle(0);
   ResoRowFit17->SetLineWidth(3);
   ResoRowFit17->SetChisquare(50.26526);
   ResoRowFit17->SetNDF(55);
   ResoRowFit17->SetParameter(0,73.5312);
   ResoRowFit17->SetParError(0,3.02544);
   ResoRowFit17->SetParLimits(0,0,0);
   ResoRowFit17->SetParameter(1,-0.002089991);
   ResoRowFit17->SetParError(1,0.003473868);
   ResoRowFit17->SetParLimits(1,0,0);
   ResoRowFit17->SetParameter(2,0.110026);
   ResoRowFit17->SetParError(2,0.00293241);
   ResoRowFit17->SetParLimits(2,0,1.456363);
   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 = 1070   ");
   text = ptstats->AddText("Mean  = -0.00298");
   text = ptstats->AddText("RMS   = 0.1456");
   text = ptstats->AddText("#chi^{2} / ndf = 50.27 / 55");
   text = ptstats->AddText("Constant = 73.53 #pm 3.03 ");
   text = ptstats->AddText("Mean     = -0.00209 #pm 0.00347 ");
   text = ptstats->AddText("Sigma    =  0.11 #pm 0.00 ");
   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_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 *ResoRow18 = new TH1F("ResoRow18","",100,-1,1);
   ResoRow18->SetBinContent(0,2);
   ResoRow18->SetBinContent(1,1);
   ResoRow18->SetBinContent(3,1);
   ResoRow18->SetBinContent(4,1);
   ResoRow18->SetBinContent(7,1);
   ResoRow18->SetBinContent(21,1);
   ResoRow18->SetBinContent(30,1);
   ResoRow18->SetBinContent(32,1);
   ResoRow18->SetBinContent(34,3);
   ResoRow18->SetBinContent(35,2);
   ResoRow18->SetBinContent(36,4);
   ResoRow18->SetBinContent(37,5);
   ResoRow18->SetBinContent(38,7);
   ResoRow18->SetBinContent(39,6);
   ResoRow18->SetBinContent(40,10);
   ResoRow18->SetBinContent(41,20);
   ResoRow18->SetBinContent(42,20);
   ResoRow18->SetBinContent(43,28);
   ResoRow18->SetBinContent(44,23);
   ResoRow18->SetBinContent(45,42);
   ResoRow18->SetBinContent(46,58);
   ResoRow18->SetBinContent(47,63);
   ResoRow18->SetBinContent(48,69);
   ResoRow18->SetBinContent(49,91);
   ResoRow18->SetBinContent(50,79);
   ResoRow18->SetBinContent(51,79);
   ResoRow18->SetBinContent(52,79);
   ResoRow18->SetBinContent(53,66);
   ResoRow18->SetBinContent(54,69);
   ResoRow18->SetBinContent(55,56);
   ResoRow18->SetBinContent(56,45);
   ResoRow18->SetBinContent(57,40);
   ResoRow18->SetBinContent(58,24);
   ResoRow18->SetBinContent(59,10);
   ResoRow18->SetBinContent(60,14);
   ResoRow18->SetBinContent(61,12);
   ResoRow18->SetBinContent(62,6);
   ResoRow18->SetBinContent(63,6);
   ResoRow18->SetBinContent(64,4);
   ResoRow18->SetBinContent(65,2);
   ResoRow18->SetBinContent(66,4);
   ResoRow18->SetBinContent(67,1);
   ResoRow18->SetBinContent(69,2);
   ResoRow18->SetBinContent(70,1);
   ResoRow18->SetBinContent(71,1);
   ResoRow18->SetBinContent(72,1);
   ResoRow18->SetBinContent(73,1);
   ResoRow18->SetBinContent(74,1);
   ResoRow18->SetBinContent(80,1);
   ResoRow18->SetBinContent(88,1);
   ResoRow18->SetBinContent(101,5);
   ResoRow18->SetEntries(1070);
   
   TF1 *ResoRowFit18 = new TF1("ResoRowFit18","gaus",-1,1);
   ResoRowFit18->SetFillColor(19);
   ResoRowFit18->SetFillStyle(0);
   ResoRowFit18->SetLineWidth(3);
   ResoRowFit18->SetChisquare(50.12745);
   ResoRowFit18->SetNDF(46);
   ResoRowFit18->SetParameter(0,78.29928);
   ResoRowFit18->SetParError(0,3.324519);
   ResoRowFit18->SetParLimits(0,0,0);
   ResoRowFit18->SetParameter(1,-0.001799273);
   ResoRowFit18->SetParError(1,0.00327001);
   ResoRowFit18->SetParLimits(1,0,0);
   ResoRowFit18->SetParameter(2,0.1032744);
   ResoRowFit18->SetParError(2,0.002967868);
   ResoRowFit18->SetParLimits(2,0,1.312502);
   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 = 1070   ");
   text = ptstats->AddText("Mean  = -0.002528");
   text = ptstats->AddText("RMS   = 0.1311");
   text = ptstats->AddText("#chi^{2} / ndf = 50.13 / 46");
   text = ptstats->AddText("Constant =  78.3 #pm 3.3 ");
   text = ptstats->AddText("Mean     = -0.001799 #pm 0.003270 ");
   text = ptstats->AddText("Sigma    = 0.1033 #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_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.075,1.25,108.675);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow19 = new TH1F("ResoRow19","",100,-1,1);
   ResoRow19->SetBinContent(0,5);
   ResoRow19->SetBinContent(15,1);
   ResoRow19->SetBinContent(22,1);
   ResoRow19->SetBinContent(23,1);
   ResoRow19->SetBinContent(26,1);
   ResoRow19->SetBinContent(28,2);
   ResoRow19->SetBinContent(31,1);
   ResoRow19->SetBinContent(32,5);
   ResoRow19->SetBinContent(33,2);
   ResoRow19->SetBinContent(34,2);
   ResoRow19->SetBinContent(35,2);
   ResoRow19->SetBinContent(36,2);
   ResoRow19->SetBinContent(37,5);
   ResoRow19->SetBinContent(38,10);
   ResoRow19->SetBinContent(39,8);
   ResoRow19->SetBinContent(40,4);
   ResoRow19->SetBinContent(41,12);
   ResoRow19->SetBinContent(42,17);
   ResoRow19->SetBinContent(43,23);
   ResoRow19->SetBinContent(44,43);
   ResoRow19->SetBinContent(45,50);
   ResoRow19->SetBinContent(46,61);
   ResoRow19->SetBinContent(47,75);
   ResoRow19->SetBinContent(48,68);
   ResoRow19->SetBinContent(49,90);
   ResoRow19->SetBinContent(50,92);
   ResoRow19->SetBinContent(51,79);
   ResoRow19->SetBinContent(52,80);
   ResoRow19->SetBinContent(53,63);
   ResoRow19->SetBinContent(54,57);
   ResoRow19->SetBinContent(55,49);
   ResoRow19->SetBinContent(56,27);
   ResoRow19->SetBinContent(57,26);
   ResoRow19->SetBinContent(58,25);
   ResoRow19->SetBinContent(59,8);
   ResoRow19->SetBinContent(60,15);
   ResoRow19->SetBinContent(61,8);
   ResoRow19->SetBinContent(62,7);
   ResoRow19->SetBinContent(63,3);
   ResoRow19->SetBinContent(64,6);
   ResoRow19->SetBinContent(65,2);
   ResoRow19->SetBinContent(66,2);
   ResoRow19->SetBinContent(67,2);
   ResoRow19->SetBinContent(68,2);
   ResoRow19->SetBinContent(69,1);
   ResoRow19->SetBinContent(70,6);
   ResoRow19->SetBinContent(72,2);
   ResoRow19->SetBinContent(75,2);
   ResoRow19->SetBinContent(81,1);
   ResoRow19->SetBinContent(82,2);
   ResoRow19->SetBinContent(95,1);
   ResoRow19->SetBinContent(100,1);
   ResoRow19->SetBinContent(101,10);
   ResoRow19->SetEntries(1070);
   
   TF1 *ResoRowFit19 = new TF1("ResoRowFit19","gaus",-1,1);
   ResoRowFit19->SetFillColor(19);
   ResoRowFit19->SetFillStyle(0);
   ResoRowFit19->SetLineWidth(3);
   ResoRowFit19->SetChisquare(77.09675);
   ResoRowFit19->SetNDF(48);
   ResoRowFit19->SetParameter(0,82.54949);
   ResoRowFit19->SetParError(0,3.57834);
   ResoRowFit19->SetParLimits(0,0,0);
   ResoRowFit19->SetParameter(1,-0.009987111);
   ResoRowFit19->SetParError(1,0.003055377);
   ResoRowFit19->SetParLimits(1,0,0);
   ResoRowFit19->SetParameter(2,0.09452149);
   ResoRowFit19->SetParError(2,0.002766113);
   ResoRowFit19->SetParLimits(2,0,1.338644);
   ResoRow19->GetListOfFunctions()->Add(ResoRowFit19);
   
   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("ResoRow19");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1070   ");
   text = ptstats->AddText("Mean  = -0.006058");
   text = ptstats->AddText("RMS   = 0.1338");
   text = ptstats->AddText("#chi^{2} / ndf =  77.1 / 48");
   text = ptstats->AddText("Constant = 82.55 #pm 3.58 ");
   text = ptstats->AddText("Mean     = -0.009987 #pm 0.003055 ");
   text = ptstats->AddText("Sigma    = 0.09452 #pm 0.00277 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow19->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow19->GetListOfFunctions());
   ResoRow19->GetXaxis()->SetTitle("residual / mm");
   ResoRow19->GetYaxis()->SetTitle("counts");
   ResoRow19->Draw("");
   c2_6->Modified();
   c2->cd();
   c2->Modified();
   c2->cd();
   c2->SetSelected(c2);
}
