{
//=========Macro generated from canvas: c2/
//=========  (Fri Jun 11 09:52:06 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,-10.7625,1.25,96.8625);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow13 = new TH1F("ResoRow13","",100,-1,1);
   ResoRow13->SetBinContent(0,3);
   ResoRow13->SetBinContent(3,1);
   ResoRow13->SetBinContent(7,1);
   ResoRow13->SetBinContent(9,1);
   ResoRow13->SetBinContent(10,1);
   ResoRow13->SetBinContent(17,1);
   ResoRow13->SetBinContent(18,1);
   ResoRow13->SetBinContent(22,1);
   ResoRow13->SetBinContent(24,1);
   ResoRow13->SetBinContent(26,1);
   ResoRow13->SetBinContent(27,2);
   ResoRow13->SetBinContent(29,1);
   ResoRow13->SetBinContent(31,3);
   ResoRow13->SetBinContent(33,2);
   ResoRow13->SetBinContent(34,6);
   ResoRow13->SetBinContent(35,1);
   ResoRow13->SetBinContent(36,1);
   ResoRow13->SetBinContent(37,6);
   ResoRow13->SetBinContent(38,9);
   ResoRow13->SetBinContent(39,12);
   ResoRow13->SetBinContent(40,13);
   ResoRow13->SetBinContent(41,15);
   ResoRow13->SetBinContent(42,29);
   ResoRow13->SetBinContent(43,31);
   ResoRow13->SetBinContent(44,45);
   ResoRow13->SetBinContent(45,49);
   ResoRow13->SetBinContent(46,51);
   ResoRow13->SetBinContent(47,74);
   ResoRow13->SetBinContent(48,57);
   ResoRow13->SetBinContent(49,79);
   ResoRow13->SetBinContent(50,66);
   ResoRow13->SetBinContent(51,77);
   ResoRow13->SetBinContent(52,82);
   ResoRow13->SetBinContent(53,76);
   ResoRow13->SetBinContent(54,54);
   ResoRow13->SetBinContent(55,65);
   ResoRow13->SetBinContent(56,43);
   ResoRow13->SetBinContent(57,30);
   ResoRow13->SetBinContent(58,31);
   ResoRow13->SetBinContent(59,28);
   ResoRow13->SetBinContent(60,17);
   ResoRow13->SetBinContent(61,9);
   ResoRow13->SetBinContent(62,12);
   ResoRow13->SetBinContent(63,9);
   ResoRow13->SetBinContent(64,6);
   ResoRow13->SetBinContent(65,6);
   ResoRow13->SetBinContent(66,4);
   ResoRow13->SetBinContent(67,2);
   ResoRow13->SetBinContent(68,1);
   ResoRow13->SetBinContent(69,2);
   ResoRow13->SetBinContent(70,1);
   ResoRow13->SetBinContent(71,3);
   ResoRow13->SetBinContent(73,2);
   ResoRow13->SetBinContent(75,1);
   ResoRow13->SetBinContent(76,2);
   ResoRow13->SetBinContent(78,1);
   ResoRow13->SetBinContent(79,1);
   ResoRow13->SetBinContent(82,1);
   ResoRow13->SetBinContent(83,1);
   ResoRow13->SetBinContent(88,1);
   ResoRow13->SetBinContent(99,1);
   ResoRow13->SetBinContent(101,3);
   ResoRow13->SetEntries(1136);
   
   TF1 *ResoRowFit13 = new TF1("ResoRowFit13","gaus",-1,1);
   ResoRowFit13->SetFillColor(19);
   ResoRowFit13->SetFillStyle(0);
   ResoRowFit13->SetLineWidth(3);
   ResoRowFit13->SetChisquare(64.69812);
   ResoRowFit13->SetNDF(57);
   ResoRowFit13->SetParameter(0,74.40274);
   ResoRowFit13->SetParError(0,2.900491);
   ResoRowFit13->SetParLimits(0,0,0);
   ResoRowFit13->SetParameter(1,1.75475e-05);
   ResoRowFit13->SetParError(1,0.00355552);
   ResoRowFit13->SetParLimits(1,0,0);
   ResoRowFit13->SetParameter(2,0.1143092);
   ResoRowFit13->SetParError(2,0.002771329);
   ResoRowFit13->SetParLimits(2,0,1.517815);
   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 = 1136   ");
   text = ptstats->AddText("Mean  = -0.001166");
   text = ptstats->AddText("RMS   =  0.152");
   text = ptstats->AddText("#chi^{2} / ndf =  64.7 / 57");
   text = ptstats->AddText("Constant =  74.4 #pm 2.9 ");
   text = ptstats->AddText("Mean     = 1.755e-05 #pm 3.556e-03 ");
   text = ptstats->AddText("Sigma    = 0.1143 #pm 0.0028 ");
   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,-12.3375,1.25,111.0375);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow15 = new TH1F("ResoRow15","",100,-1,1);
   ResoRow15->SetBinContent(0,3);
   ResoRow15->SetBinContent(5,1);
   ResoRow15->SetBinContent(8,1);
   ResoRow15->SetBinContent(10,1);
   ResoRow15->SetBinContent(15,1);
   ResoRow15->SetBinContent(20,1);
   ResoRow15->SetBinContent(21,1);
   ResoRow15->SetBinContent(22,1);
   ResoRow15->SetBinContent(23,1);
   ResoRow15->SetBinContent(26,1);
   ResoRow15->SetBinContent(27,3);
   ResoRow15->SetBinContent(28,1);
   ResoRow15->SetBinContent(29,3);
   ResoRow15->SetBinContent(30,1);
   ResoRow15->SetBinContent(31,3);
   ResoRow15->SetBinContent(32,1);
   ResoRow15->SetBinContent(33,1);
   ResoRow15->SetBinContent(34,1);
   ResoRow15->SetBinContent(35,4);
   ResoRow15->SetBinContent(36,7);
   ResoRow15->SetBinContent(37,6);
   ResoRow15->SetBinContent(38,11);
   ResoRow15->SetBinContent(39,11);
   ResoRow15->SetBinContent(40,15);
   ResoRow15->SetBinContent(41,16);
   ResoRow15->SetBinContent(42,24);
   ResoRow15->SetBinContent(43,37);
   ResoRow15->SetBinContent(44,25);
   ResoRow15->SetBinContent(45,33);
   ResoRow15->SetBinContent(46,50);
   ResoRow15->SetBinContent(47,76);
   ResoRow15->SetBinContent(48,81);
   ResoRow15->SetBinContent(49,80);
   ResoRow15->SetBinContent(50,72);
   ResoRow15->SetBinContent(51,94);
   ResoRow15->SetBinContent(52,65);
   ResoRow15->SetBinContent(53,59);
   ResoRow15->SetBinContent(54,63);
   ResoRow15->SetBinContent(55,52);
   ResoRow15->SetBinContent(56,38);
   ResoRow15->SetBinContent(57,32);
   ResoRow15->SetBinContent(58,39);
   ResoRow15->SetBinContent(59,16);
   ResoRow15->SetBinContent(60,18);
   ResoRow15->SetBinContent(61,19);
   ResoRow15->SetBinContent(62,13);
   ResoRow15->SetBinContent(63,6);
   ResoRow15->SetBinContent(64,5);
   ResoRow15->SetBinContent(65,9);
   ResoRow15->SetBinContent(66,8);
   ResoRow15->SetBinContent(68,3);
   ResoRow15->SetBinContent(69,6);
   ResoRow15->SetBinContent(70,1);
   ResoRow15->SetBinContent(71,1);
   ResoRow15->SetBinContent(72,1);
   ResoRow15->SetBinContent(73,2);
   ResoRow15->SetBinContent(76,1);
   ResoRow15->SetBinContent(78,1);
   ResoRow15->SetBinContent(80,1);
   ResoRow15->SetBinContent(81,1);
   ResoRow15->SetBinContent(87,1);
   ResoRow15->SetBinContent(101,7);
   ResoRow15->SetEntries(1136);
   
   TF1 *ResoRowFit15 = new TF1("ResoRowFit15","gaus",-1,1);
   ResoRowFit15->SetFillColor(19);
   ResoRowFit15->SetFillStyle(0);
   ResoRowFit15->SetLineWidth(3);
   ResoRowFit15->SetChisquare(86.8188);
   ResoRowFit15->SetNDF(57);
   ResoRowFit15->SetParameter(0,69.53835);
   ResoRowFit15->SetParError(0,2.973226);
   ResoRowFit15->SetParLimits(0,0,0);
   ResoRowFit15->SetParameter(1,-9.018689e-05);
   ResoRowFit15->SetParError(1,0.00373542);
   ResoRowFit15->SetParLimits(1,0,0);
   ResoRowFit15->SetParameter(2,0.1194178);
   ResoRowFit15->SetParError(2,0.003551579);
   ResoRowFit15->SetParLimits(2,0,1.509865);
   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 = 1136   ");
   text = ptstats->AddText("Mean  = -0.002786");
   text = ptstats->AddText("RMS   = 0.1509");
   text = ptstats->AddText("#chi^{2} / ndf = 86.82 / 57");
   text = ptstats->AddText("Constant = 69.54 #pm 2.97 ");
   text = ptstats->AddText("Mean     = -9.019e-05 #pm 3.735e-03 ");
   text = ptstats->AddText("Sigma    = 0.1194 #pm 0.0036 ");
   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.075,1.25,108.675);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow16 = new TH1F("ResoRow16","",100,-1,1);
   ResoRow16->SetBinContent(0,1);
   ResoRow16->SetBinContent(3,1);
   ResoRow16->SetBinContent(8,1);
   ResoRow16->SetBinContent(13,1);
   ResoRow16->SetBinContent(19,1);
   ResoRow16->SetBinContent(20,1);
   ResoRow16->SetBinContent(21,1);
   ResoRow16->SetBinContent(24,2);
   ResoRow16->SetBinContent(26,2);
   ResoRow16->SetBinContent(27,1);
   ResoRow16->SetBinContent(28,1);
   ResoRow16->SetBinContent(29,1);
   ResoRow16->SetBinContent(31,1);
   ResoRow16->SetBinContent(32,1);
   ResoRow16->SetBinContent(33,3);
   ResoRow16->SetBinContent(34,3);
   ResoRow16->SetBinContent(35,2);
   ResoRow16->SetBinContent(36,4);
   ResoRow16->SetBinContent(37,7);
   ResoRow16->SetBinContent(38,6);
   ResoRow16->SetBinContent(39,13);
   ResoRow16->SetBinContent(40,16);
   ResoRow16->SetBinContent(41,19);
   ResoRow16->SetBinContent(42,30);
   ResoRow16->SetBinContent(43,24);
   ResoRow16->SetBinContent(44,25);
   ResoRow16->SetBinContent(45,47);
   ResoRow16->SetBinContent(46,46);
   ResoRow16->SetBinContent(47,65);
   ResoRow16->SetBinContent(48,66);
   ResoRow16->SetBinContent(49,73);
   ResoRow16->SetBinContent(50,74);
   ResoRow16->SetBinContent(51,90);
   ResoRow16->SetBinContent(52,73);
   ResoRow16->SetBinContent(53,92);
   ResoRow16->SetBinContent(54,86);
   ResoRow16->SetBinContent(55,46);
   ResoRow16->SetBinContent(56,40);
   ResoRow16->SetBinContent(57,35);
   ResoRow16->SetBinContent(58,29);
   ResoRow16->SetBinContent(59,23);
   ResoRow16->SetBinContent(60,13);
   ResoRow16->SetBinContent(61,13);
   ResoRow16->SetBinContent(62,12);
   ResoRow16->SetBinContent(63,7);
   ResoRow16->SetBinContent(64,6);
   ResoRow16->SetBinContent(65,4);
   ResoRow16->SetBinContent(66,6);
   ResoRow16->SetBinContent(67,1);
   ResoRow16->SetBinContent(68,5);
   ResoRow16->SetBinContent(69,2);
   ResoRow16->SetBinContent(70,1);
   ResoRow16->SetBinContent(71,1);
   ResoRow16->SetBinContent(73,2);
   ResoRow16->SetBinContent(77,2);
   ResoRow16->SetBinContent(78,1);
   ResoRow16->SetBinContent(84,1);
   ResoRow16->SetBinContent(99,1);
   ResoRow16->SetBinContent(101,5);
   ResoRow16->SetEntries(1136);
   
   TF1 *ResoRowFit16 = new TF1("ResoRowFit16","gaus",-1,1);
   ResoRowFit16->SetFillColor(19);
   ResoRowFit16->SetFillStyle(0);
   ResoRowFit16->SetLineWidth(3);
   ResoRowFit16->SetChisquare(71.06309);
   ResoRowFit16->SetNDF(54);
   ResoRowFit16->SetParameter(0,73.54285);
   ResoRowFit16->SetParError(0,3.089787);
   ResoRowFit16->SetParLimits(0,0,0);
   ResoRowFit16->SetParameter(1,0.001294242);
   ResoRowFit16->SetParError(1,0.003553426);
   ResoRowFit16->SetParLimits(1,0,0);
   ResoRowFit16->SetParameter(2,0.1149112);
   ResoRowFit16->SetParError(2,0.003300249);
   ResoRowFit16->SetParLimits(2,0,1.447901);
   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 = 1136   ");
   text = ptstats->AddText("Mean  = -0.0005645");
   text = ptstats->AddText("RMS   = 0.1448");
   text = ptstats->AddText("#chi^{2} / ndf = 71.06 / 54");
   text = ptstats->AddText("Constant = 73.54 #pm 3.09 ");
   text = ptstats->AddText("Mean     = 0.001294 #pm 0.003553 ");
   text = ptstats->AddText("Sigma    = 0.1149 #pm 0.0033 ");
   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,5);
   ResoRow17->SetBinContent(1,1);
   ResoRow17->SetBinContent(9,1);
   ResoRow17->SetBinContent(12,1);
   ResoRow17->SetBinContent(15,1);
   ResoRow17->SetBinContent(24,1);
   ResoRow17->SetBinContent(26,1);
   ResoRow17->SetBinContent(27,1);
   ResoRow17->SetBinContent(28,1);
   ResoRow17->SetBinContent(29,1);
   ResoRow17->SetBinContent(30,3);
   ResoRow17->SetBinContent(31,1);
   ResoRow17->SetBinContent(32,1);
   ResoRow17->SetBinContent(33,3);
   ResoRow17->SetBinContent(34,5);
   ResoRow17->SetBinContent(35,3);
   ResoRow17->SetBinContent(36,4);
   ResoRow17->SetBinContent(37,10);
   ResoRow17->SetBinContent(38,9);
   ResoRow17->SetBinContent(39,10);
   ResoRow17->SetBinContent(40,8);
   ResoRow17->SetBinContent(41,19);
   ResoRow17->SetBinContent(42,27);
   ResoRow17->SetBinContent(43,33);
   ResoRow17->SetBinContent(44,32);
   ResoRow17->SetBinContent(45,48);
   ResoRow17->SetBinContent(46,46);
   ResoRow17->SetBinContent(47,70);
   ResoRow17->SetBinContent(48,69);
   ResoRow17->SetBinContent(49,91);
   ResoRow17->SetBinContent(50,82);
   ResoRow17->SetBinContent(51,86);
   ResoRow17->SetBinContent(52,67);
   ResoRow17->SetBinContent(53,75);
   ResoRow17->SetBinContent(54,59);
   ResoRow17->SetBinContent(55,58);
   ResoRow17->SetBinContent(56,47);
   ResoRow17->SetBinContent(57,31);
   ResoRow17->SetBinContent(58,21);
   ResoRow17->SetBinContent(59,26);
   ResoRow17->SetBinContent(60,12);
   ResoRow17->SetBinContent(61,12);
   ResoRow17->SetBinContent(62,15);
   ResoRow17->SetBinContent(63,5);
   ResoRow17->SetBinContent(64,5);
   ResoRow17->SetBinContent(65,5);
   ResoRow17->SetBinContent(66,2);
   ResoRow17->SetBinContent(67,6);
   ResoRow17->SetBinContent(68,2);
   ResoRow17->SetBinContent(69,1);
   ResoRow17->SetBinContent(75,1);
   ResoRow17->SetBinContent(76,1);
   ResoRow17->SetBinContent(79,1);
   ResoRow17->SetBinContent(81,1);
   ResoRow17->SetBinContent(87,1);
   ResoRow17->SetBinContent(90,1);
   ResoRow17->SetBinContent(101,7);
   ResoRow17->SetEntries(1136);
   
   TF1 *ResoRowFit17 = new TF1("ResoRowFit17","gaus",-1,1);
   ResoRowFit17->SetFillColor(19);
   ResoRowFit17->SetFillStyle(0);
   ResoRowFit17->SetLineWidth(3);
   ResoRowFit17->SetChisquare(61.91315);
   ResoRowFit17->SetNDF(52);
   ResoRowFit17->SetParameter(0,75.4589);
   ResoRowFit17->SetParError(0,3.172162);
   ResoRowFit17->SetParLimits(0,0,0);
   ResoRowFit17->SetParameter(1,-0.003811855);
   ResoRowFit17->SetParError(1,0.003455443);
   ResoRowFit17->SetParLimits(1,0,0);
   ResoRowFit17->SetParameter(2,0.1123372);
   ResoRowFit17->SetParError(2,0.003239384);
   ResoRowFit17->SetParLimits(2,0,1.412407);
   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 = 1136   ");
   text = ptstats->AddText("Mean  = -0.006803");
   text = ptstats->AddText("RMS   = 0.1413");
   text = ptstats->AddText("#chi^{2} / ndf = 61.91 / 52");
   text = ptstats->AddText("Constant = 75.46 #pm 3.17 ");
   text = ptstats->AddText("Mean     = -0.003812 #pm 0.003455 ");
   text = ptstats->AddText("Sigma    = 0.1123 #pm 0.0032 ");
   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,-12.20625,1.25,109.8563);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow18 = new TH1F("ResoRow18","",100,-1,1);
   ResoRow18->SetBinContent(0,6);
   ResoRow18->SetBinContent(6,1);
   ResoRow18->SetBinContent(7,1);
   ResoRow18->SetBinContent(10,1);
   ResoRow18->SetBinContent(16,1);
   ResoRow18->SetBinContent(27,1);
   ResoRow18->SetBinContent(28,1);
   ResoRow18->SetBinContent(30,3);
   ResoRow18->SetBinContent(31,1);
   ResoRow18->SetBinContent(32,1);
   ResoRow18->SetBinContent(33,4);
   ResoRow18->SetBinContent(34,2);
   ResoRow18->SetBinContent(35,2);
   ResoRow18->SetBinContent(36,4);
   ResoRow18->SetBinContent(37,10);
   ResoRow18->SetBinContent(38,6);
   ResoRow18->SetBinContent(39,4);
   ResoRow18->SetBinContent(40,15);
   ResoRow18->SetBinContent(41,22);
   ResoRow18->SetBinContent(42,20);
   ResoRow18->SetBinContent(43,23);
   ResoRow18->SetBinContent(44,38);
   ResoRow18->SetBinContent(45,43);
   ResoRow18->SetBinContent(46,52);
   ResoRow18->SetBinContent(47,59);
   ResoRow18->SetBinContent(48,93);
   ResoRow18->SetBinContent(49,79);
   ResoRow18->SetBinContent(50,91);
   ResoRow18->SetBinContent(51,80);
   ResoRow18->SetBinContent(52,79);
   ResoRow18->SetBinContent(53,71);
   ResoRow18->SetBinContent(54,54);
   ResoRow18->SetBinContent(55,51);
   ResoRow18->SetBinContent(56,51);
   ResoRow18->SetBinContent(57,33);
   ResoRow18->SetBinContent(58,30);
   ResoRow18->SetBinContent(59,30);
   ResoRow18->SetBinContent(60,16);
   ResoRow18->SetBinContent(61,15);
   ResoRow18->SetBinContent(62,7);
   ResoRow18->SetBinContent(63,5);
   ResoRow18->SetBinContent(64,6);
   ResoRow18->SetBinContent(65,5);
   ResoRow18->SetBinContent(66,5);
   ResoRow18->SetBinContent(67,1);
   ResoRow18->SetBinContent(68,1);
   ResoRow18->SetBinContent(70,3);
   ResoRow18->SetBinContent(71,2);
   ResoRow18->SetBinContent(73,1);
   ResoRow18->SetBinContent(74,1);
   ResoRow18->SetBinContent(75,1);
   ResoRow18->SetBinContent(93,1);
   ResoRow18->SetBinContent(101,3);
   ResoRow18->SetEntries(1136);
   
   TF1 *ResoRowFit18 = new TF1("ResoRowFit18","gaus",-1,1);
   ResoRowFit18->SetFillColor(19);
   ResoRowFit18->SetFillStyle(0);
   ResoRowFit18->SetLineWidth(3);
   ResoRowFit18->SetChisquare(56.65186);
   ResoRowFit18->SetNDF(48);
   ResoRowFit18->SetParameter(0,77.85023);
   ResoRowFit18->SetParError(0,3.148093);
   ResoRowFit18->SetParLimits(0,0,0);
   ResoRowFit18->SetParameter(1,0.001873469);
   ResoRowFit18->SetParError(1,0.003365225);
   ResoRowFit18->SetParLimits(1,0,0);
   ResoRowFit18->SetParameter(2,0.1097367);
   ResoRowFit18->SetParError(2,0.002915688);
   ResoRowFit18->SetParLimits(2,0,1.348772);
   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 = 1136   ");
   text = ptstats->AddText("Mean  = -0.00224");
   text = ptstats->AddText("RMS   = 0.1353");
   text = ptstats->AddText("#chi^{2} / ndf = 56.65 / 48");
   text = ptstats->AddText("Constant = 77.85 #pm 3.15 ");
   text = ptstats->AddText("Mean     = 0.001873 #pm 0.003365 ");
   text = ptstats->AddText("Sigma    = 0.1097 #pm 0.0029 ");
   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,-11.41875,1.25,102.7688);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow19 = new TH1F("ResoRow19","",100,-1,1);
   ResoRow19->SetBinContent(0,1);
   ResoRow19->SetBinContent(3,1);
   ResoRow19->SetBinContent(12,1);
   ResoRow19->SetBinContent(14,1);
   ResoRow19->SetBinContent(16,1);
   ResoRow19->SetBinContent(17,1);
   ResoRow19->SetBinContent(19,1);
   ResoRow19->SetBinContent(25,1);
   ResoRow19->SetBinContent(26,2);
   ResoRow19->SetBinContent(28,3);
   ResoRow19->SetBinContent(31,3);
   ResoRow19->SetBinContent(32,1);
   ResoRow19->SetBinContent(33,2);
   ResoRow19->SetBinContent(34,2);
   ResoRow19->SetBinContent(35,3);
   ResoRow19->SetBinContent(36,6);
   ResoRow19->SetBinContent(37,2);
   ResoRow19->SetBinContent(38,11);
   ResoRow19->SetBinContent(39,15);
   ResoRow19->SetBinContent(40,14);
   ResoRow19->SetBinContent(41,16);
   ResoRow19->SetBinContent(42,26);
   ResoRow19->SetBinContent(43,28);
   ResoRow19->SetBinContent(44,30);
   ResoRow19->SetBinContent(45,52);
   ResoRow19->SetBinContent(46,51);
   ResoRow19->SetBinContent(47,60);
   ResoRow19->SetBinContent(48,81);
   ResoRow19->SetBinContent(49,75);
   ResoRow19->SetBinContent(50,80);
   ResoRow19->SetBinContent(51,74);
   ResoRow19->SetBinContent(52,87);
   ResoRow19->SetBinContent(53,68);
   ResoRow19->SetBinContent(54,57);
   ResoRow19->SetBinContent(55,54);
   ResoRow19->SetBinContent(56,46);
   ResoRow19->SetBinContent(57,38);
   ResoRow19->SetBinContent(58,26);
   ResoRow19->SetBinContent(59,29);
   ResoRow19->SetBinContent(60,15);
   ResoRow19->SetBinContent(61,11);
   ResoRow19->SetBinContent(62,13);
   ResoRow19->SetBinContent(63,3);
   ResoRow19->SetBinContent(64,9);
   ResoRow19->SetBinContent(65,5);
   ResoRow19->SetBinContent(66,3);
   ResoRow19->SetBinContent(67,4);
   ResoRow19->SetBinContent(68,1);
   ResoRow19->SetBinContent(69,2);
   ResoRow19->SetBinContent(70,1);
   ResoRow19->SetBinContent(71,2);
   ResoRow19->SetBinContent(73,1);
   ResoRow19->SetBinContent(74,1);
   ResoRow19->SetBinContent(75,2);
   ResoRow19->SetBinContent(76,1);
   ResoRow19->SetBinContent(101,12);
   ResoRow19->SetEntries(1136);
   
   TF1 *ResoRowFit19 = new TF1("ResoRowFit19","gaus",-1,1);
   ResoRowFit19->SetFillColor(19);
   ResoRowFit19->SetFillStyle(0);
   ResoRowFit19->SetLineWidth(3);
   ResoRowFit19->SetChisquare(57.67779);
   ResoRowFit19->SetNDF(51);
   ResoRowFit19->SetParameter(0,75.40369);
   ResoRowFit19->SetParError(0,3.029218);
   ResoRowFit19->SetParLimits(0,0,0);
   ResoRowFit19->SetParameter(1,-0.001202357);
   ResoRowFit19->SetParError(1,0.003459643);
   ResoRowFit19->SetParLimits(1,0,0);
   ResoRowFit19->SetParameter(2,0.1127512);
   ResoRowFit19->SetParError(2,0.002937222);
   ResoRowFit19->SetParLimits(2,0,1.405658);
   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 = 1136   ");
   text = ptstats->AddText("Mean  = -0.004848");
   text = ptstats->AddText("RMS   = 0.1404");
   text = ptstats->AddText("#chi^{2} / ndf = 57.68 / 51");
   text = ptstats->AddText("Constant =  75.4 #pm 3.0 ");
   text = ptstats->AddText("Mean     = -0.001202 #pm 0.003460 ");
   text = ptstats->AddText("Sigma    = 0.1128 #pm 0.0029 ");
   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);
}
