{
//=========Macro generated from canvas: c2/
//=========  (Fri Jun 11 10:12:55 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 *ResoRow13 = new TH1F("ResoRow13","",100,-1,1);
   ResoRow13->SetBinContent(0,4);
   ResoRow13->SetBinContent(10,1);
   ResoRow13->SetBinContent(12,1);
   ResoRow13->SetBinContent(19,1);
   ResoRow13->SetBinContent(21,1);
   ResoRow13->SetBinContent(22,1);
   ResoRow13->SetBinContent(28,1);
   ResoRow13->SetBinContent(30,1);
   ResoRow13->SetBinContent(31,3);
   ResoRow13->SetBinContent(32,5);
   ResoRow13->SetBinContent(33,3);
   ResoRow13->SetBinContent(34,3);
   ResoRow13->SetBinContent(35,3);
   ResoRow13->SetBinContent(36,12);
   ResoRow13->SetBinContent(37,6);
   ResoRow13->SetBinContent(38,9);
   ResoRow13->SetBinContent(39,10);
   ResoRow13->SetBinContent(40,20);
   ResoRow13->SetBinContent(41,19);
   ResoRow13->SetBinContent(42,31);
   ResoRow13->SetBinContent(43,33);
   ResoRow13->SetBinContent(44,38);
   ResoRow13->SetBinContent(45,36);
   ResoRow13->SetBinContent(46,50);
   ResoRow13->SetBinContent(47,66);
   ResoRow13->SetBinContent(48,64);
   ResoRow13->SetBinContent(49,64);
   ResoRow13->SetBinContent(50,74);
   ResoRow13->SetBinContent(51,96);
   ResoRow13->SetBinContent(52,93);
   ResoRow13->SetBinContent(53,75);
   ResoRow13->SetBinContent(54,60);
   ResoRow13->SetBinContent(55,56);
   ResoRow13->SetBinContent(56,31);
   ResoRow13->SetBinContent(57,43);
   ResoRow13->SetBinContent(58,26);
   ResoRow13->SetBinContent(59,23);
   ResoRow13->SetBinContent(60,21);
   ResoRow13->SetBinContent(61,17);
   ResoRow13->SetBinContent(62,14);
   ResoRow13->SetBinContent(63,6);
   ResoRow13->SetBinContent(64,6);
   ResoRow13->SetBinContent(65,7);
   ResoRow13->SetBinContent(66,5);
   ResoRow13->SetBinContent(67,3);
   ResoRow13->SetBinContent(68,3);
   ResoRow13->SetBinContent(69,4);
   ResoRow13->SetBinContent(70,1);
   ResoRow13->SetBinContent(73,1);
   ResoRow13->SetBinContent(74,3);
   ResoRow13->SetBinContent(77,2);
   ResoRow13->SetBinContent(88,1);
   ResoRow13->SetBinContent(92,1);
   ResoRow13->SetBinContent(98,1);
   ResoRow13->SetBinContent(101,7);
   ResoRow13->SetEntries(1166);
   
   TF1 *ResoRowFit13 = new TF1("ResoRowFit13","gaus",-1,1);
   ResoRowFit13->SetFillColor(19);
   ResoRowFit13->SetFillStyle(0);
   ResoRowFit13->SetLineWidth(3);
   ResoRowFit13->SetChisquare(68.08254);
   ResoRowFit13->SetNDF(50);
   ResoRowFit13->SetParameter(0,70.11378);
   ResoRowFit13->SetParError(0,2.894101);
   ResoRowFit13->SetParLimits(0,0,0);
   ResoRowFit13->SetParameter(1,-0.001919867);
   ResoRowFit13->SetParError(1,0.003771536);
   ResoRowFit13->SetParLimits(1,0,0);
   ResoRowFit13->SetParameter(2,0.1237773);
   ResoRowFit13->SetParError(2,0.003492526);
   ResoRowFit13->SetParLimits(2,0,1.473325);
   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 = 1166   ");
   text = ptstats->AddText("Mean  = -0.001157");
   text = ptstats->AddText("RMS   = 0.1472");
   text = ptstats->AddText("#chi^{2} / ndf = 68.08 / 50");
   text = ptstats->AddText("Constant = 70.11 #pm 2.89 ");
   text = ptstats->AddText("Mean     = -0.00192 #pm 0.00377 ");
   text = ptstats->AddText("Sigma    = 0.1238 #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_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,2);
   ResoRow15->SetBinContent(7,2);
   ResoRow15->SetBinContent(9,2);
   ResoRow15->SetBinContent(25,1);
   ResoRow15->SetBinContent(26,1);
   ResoRow15->SetBinContent(29,1);
   ResoRow15->SetBinContent(30,1);
   ResoRow15->SetBinContent(31,2);
   ResoRow15->SetBinContent(32,1);
   ResoRow15->SetBinContent(33,3);
   ResoRow15->SetBinContent(34,6);
   ResoRow15->SetBinContent(35,1);
   ResoRow15->SetBinContent(36,9);
   ResoRow15->SetBinContent(37,7);
   ResoRow15->SetBinContent(38,15);
   ResoRow15->SetBinContent(39,7);
   ResoRow15->SetBinContent(40,8);
   ResoRow15->SetBinContent(41,21);
   ResoRow15->SetBinContent(42,18);
   ResoRow15->SetBinContent(43,40);
   ResoRow15->SetBinContent(44,33);
   ResoRow15->SetBinContent(45,55);
   ResoRow15->SetBinContent(46,52);
   ResoRow15->SetBinContent(47,73);
   ResoRow15->SetBinContent(48,66);
   ResoRow15->SetBinContent(49,84);
   ResoRow15->SetBinContent(50,77);
   ResoRow15->SetBinContent(51,91);
   ResoRow15->SetBinContent(52,79);
   ResoRow15->SetBinContent(53,68);
   ResoRow15->SetBinContent(54,78);
   ResoRow15->SetBinContent(55,40);
   ResoRow15->SetBinContent(56,45);
   ResoRow15->SetBinContent(57,25);
   ResoRow15->SetBinContent(58,30);
   ResoRow15->SetBinContent(59,20);
   ResoRow15->SetBinContent(60,18);
   ResoRow15->SetBinContent(61,11);
   ResoRow15->SetBinContent(62,10);
   ResoRow15->SetBinContent(63,11);
   ResoRow15->SetBinContent(64,11);
   ResoRow15->SetBinContent(65,7);
   ResoRow15->SetBinContent(66,7);
   ResoRow15->SetBinContent(67,2);
   ResoRow15->SetBinContent(68,1);
   ResoRow15->SetBinContent(69,3);
   ResoRow15->SetBinContent(70,4);
   ResoRow15->SetBinContent(71,3);
   ResoRow15->SetBinContent(72,1);
   ResoRow15->SetBinContent(78,1);
   ResoRow15->SetBinContent(90,1);
   ResoRow15->SetBinContent(101,11);
   ResoRow15->SetEntries(1166);
   
   TF1 *ResoRowFit15 = new TF1("ResoRowFit15","gaus",-1,1);
   ResoRowFit15->SetFillColor(19);
   ResoRowFit15->SetFillStyle(0);
   ResoRowFit15->SetLineWidth(3);
   ResoRowFit15->SetChisquare(86.36093);
   ResoRowFit15->SetNDF(47);
   ResoRowFit15->SetParameter(0,75.24348);
   ResoRowFit15->SetParError(0,3.229452);
   ResoRowFit15->SetParLimits(0,0,0);
   ResoRowFit15->SetParameter(1,-0.002373817);
   ResoRowFit15->SetParError(1,0.003522052);
   ResoRowFit15->SetParLimits(1,0,0);
   ResoRowFit15->SetParameter(2,0.1131168);
   ResoRowFit15->SetParError(2,0.003405599);
   ResoRowFit15->SetParLimits(2,0,1.418732);
   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 = 1166   ");
   text = ptstats->AddText("Mean  = -0.003822");
   text = ptstats->AddText("RMS   = 0.1418");
   text = ptstats->AddText("#chi^{2} / ndf = 86.36 / 47");
   text = ptstats->AddText("Constant = 75.24 #pm 3.23 ");
   text = ptstats->AddText("Mean     = -0.002374 #pm 0.003522 ");
   text = ptstats->AddText("Sigma    = 0.1131 #pm 0.0034 ");
   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,-11.2875,1.25,101.5875);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow16 = new TH1F("ResoRow16","",100,-1,1);
   ResoRow16->SetBinContent(0,2);
   ResoRow16->SetBinContent(7,1);
   ResoRow16->SetBinContent(9,2);
   ResoRow16->SetBinContent(19,1);
   ResoRow16->SetBinContent(24,1);
   ResoRow16->SetBinContent(25,2);
   ResoRow16->SetBinContent(26,1);
   ResoRow16->SetBinContent(27,1);
   ResoRow16->SetBinContent(29,1);
   ResoRow16->SetBinContent(30,1);
   ResoRow16->SetBinContent(32,6);
   ResoRow16->SetBinContent(33,3);
   ResoRow16->SetBinContent(34,2);
   ResoRow16->SetBinContent(35,5);
   ResoRow16->SetBinContent(36,7);
   ResoRow16->SetBinContent(37,9);
   ResoRow16->SetBinContent(38,10);
   ResoRow16->SetBinContent(39,8);
   ResoRow16->SetBinContent(40,20);
   ResoRow16->SetBinContent(41,17);
   ResoRow16->SetBinContent(42,22);
   ResoRow16->SetBinContent(43,32);
   ResoRow16->SetBinContent(44,43);
   ResoRow16->SetBinContent(45,44);
   ResoRow16->SetBinContent(46,49);
   ResoRow16->SetBinContent(47,58);
   ResoRow16->SetBinContent(48,72);
   ResoRow16->SetBinContent(49,75);
   ResoRow16->SetBinContent(50,86);
   ResoRow16->SetBinContent(51,82);
   ResoRow16->SetBinContent(52,72);
   ResoRow16->SetBinContent(53,76);
   ResoRow16->SetBinContent(54,68);
   ResoRow16->SetBinContent(55,48);
   ResoRow16->SetBinContent(56,55);
   ResoRow16->SetBinContent(57,27);
   ResoRow16->SetBinContent(58,31);
   ResoRow16->SetBinContent(59,26);
   ResoRow16->SetBinContent(60,23);
   ResoRow16->SetBinContent(61,18);
   ResoRow16->SetBinContent(62,11);
   ResoRow16->SetBinContent(63,7);
   ResoRow16->SetBinContent(64,6);
   ResoRow16->SetBinContent(65,2);
   ResoRow16->SetBinContent(66,6);
   ResoRow16->SetBinContent(67,5);
   ResoRow16->SetBinContent(68,3);
   ResoRow16->SetBinContent(70,1);
   ResoRow16->SetBinContent(71,1);
   ResoRow16->SetBinContent(74,1);
   ResoRow16->SetBinContent(75,1);
   ResoRow16->SetBinContent(76,1);
   ResoRow16->SetBinContent(78,2);
   ResoRow16->SetBinContent(80,1);
   ResoRow16->SetBinContent(92,1);
   ResoRow16->SetBinContent(93,1);
   ResoRow16->SetBinContent(101,9);
   ResoRow16->SetEntries(1166);
   
   TF1 *ResoRowFit16 = new TF1("ResoRowFit16","gaus",-1,1);
   ResoRowFit16->SetFillColor(19);
   ResoRowFit16->SetFillStyle(0);
   ResoRowFit16->SetLineWidth(3);
   ResoRowFit16->SetChisquare(57.5812);
   ResoRowFit16->SetNDF(52);
   ResoRowFit16->SetParameter(0,73.22663);
   ResoRowFit16->SetParError(0,2.962956);
   ResoRowFit16->SetParLimits(0,0,0);
   ResoRowFit16->SetParameter(1,-0.001029278);
   ResoRowFit16->SetParError(1,0.003644622);
   ResoRowFit16->SetParLimits(1,0,0);
   ResoRowFit16->SetParameter(2,0.1197087);
   ResoRowFit16->SetParError(2,0.003259598);
   ResoRowFit16->SetParLimits(2,0,1.473161);
   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 = 1166   ");
   text = ptstats->AddText("Mean  = -0.002677");
   text = ptstats->AddText("RMS   = 0.1471");
   text = ptstats->AddText("#chi^{2} / ndf = 57.58 / 52");
   text = ptstats->AddText("Constant = 73.23 #pm 2.96 ");
   text = ptstats->AddText("Mean     = -0.001029 #pm 0.003645 ");
   text = ptstats->AddText("Sigma    = 0.1197 #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,-12.075,1.25,108.675);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow17 = new TH1F("ResoRow17","",100,-1,1);
   ResoRow17->SetBinContent(0,3);
   ResoRow17->SetBinContent(10,1);
   ResoRow17->SetBinContent(12,1);
   ResoRow17->SetBinContent(16,1);
   ResoRow17->SetBinContent(20,1);
   ResoRow17->SetBinContent(21,2);
   ResoRow17->SetBinContent(22,1);
   ResoRow17->SetBinContent(26,2);
   ResoRow17->SetBinContent(27,1);
   ResoRow17->SetBinContent(29,1);
   ResoRow17->SetBinContent(30,4);
   ResoRow17->SetBinContent(33,2);
   ResoRow17->SetBinContent(34,2);
   ResoRow17->SetBinContent(35,4);
   ResoRow17->SetBinContent(36,1);
   ResoRow17->SetBinContent(37,7);
   ResoRow17->SetBinContent(38,14);
   ResoRow17->SetBinContent(39,8);
   ResoRow17->SetBinContent(40,15);
   ResoRow17->SetBinContent(41,24);
   ResoRow17->SetBinContent(42,21);
   ResoRow17->SetBinContent(43,42);
   ResoRow17->SetBinContent(44,48);
   ResoRow17->SetBinContent(45,34);
   ResoRow17->SetBinContent(46,52);
   ResoRow17->SetBinContent(47,71);
   ResoRow17->SetBinContent(48,73);
   ResoRow17->SetBinContent(49,77);
   ResoRow17->SetBinContent(50,92);
   ResoRow17->SetBinContent(51,83);
   ResoRow17->SetBinContent(52,75);
   ResoRow17->SetBinContent(53,73);
   ResoRow17->SetBinContent(54,61);
   ResoRow17->SetBinContent(55,43);
   ResoRow17->SetBinContent(56,39);
   ResoRow17->SetBinContent(57,45);
   ResoRow17->SetBinContent(58,26);
   ResoRow17->SetBinContent(59,28);
   ResoRow17->SetBinContent(60,26);
   ResoRow17->SetBinContent(61,13);
   ResoRow17->SetBinContent(62,3);
   ResoRow17->SetBinContent(63,12);
   ResoRow17->SetBinContent(64,7);
   ResoRow17->SetBinContent(65,6);
   ResoRow17->SetBinContent(66,5);
   ResoRow17->SetBinContent(68,3);
   ResoRow17->SetBinContent(69,1);
   ResoRow17->SetBinContent(70,2);
   ResoRow17->SetBinContent(71,1);
   ResoRow17->SetBinContent(73,1);
   ResoRow17->SetBinContent(75,2);
   ResoRow17->SetBinContent(80,1);
   ResoRow17->SetBinContent(81,1);
   ResoRow17->SetBinContent(98,1);
   ResoRow17->SetBinContent(101,3);
   ResoRow17->SetEntries(1166);
   
   TF1 *ResoRowFit17 = new TF1("ResoRowFit17","gaus",-1,1);
   ResoRowFit17->SetFillColor(19);
   ResoRowFit17->SetFillStyle(0);
   ResoRowFit17->SetLineWidth(3);
   ResoRowFit17->SetChisquare(82.77219);
   ResoRowFit17->SetNDF(50);
   ResoRowFit17->SetParameter(0,77.25164);
   ResoRowFit17->SetParError(0,3.028946);
   ResoRowFit17->SetParLimits(0,0,0);
   ResoRowFit17->SetParameter(1,-0.004579248);
   ResoRowFit17->SetParError(1,0.003420712);
   ResoRowFit17->SetParLimits(1,0,0);
   ResoRowFit17->SetParameter(2,0.1114133);
   ResoRowFit17->SetParError(2,0.002783903);
   ResoRowFit17->SetParLimits(2,0,1.42177);
   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 = 1166   ");
   text = ptstats->AddText("Mean  = -0.005156");
   text = ptstats->AddText("RMS   = 0.1421");
   text = ptstats->AddText("#chi^{2} / ndf = 82.77 / 50");
   text = ptstats->AddText("Constant = 77.25 #pm 3.03 ");
   text = ptstats->AddText("Mean     = -0.004579 #pm 0.003421 ");
   text = ptstats->AddText("Sigma    = 0.1114 #pm 0.0028 ");
   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.8125,1.25,106.3125);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow18 = new TH1F("ResoRow18","",100,-1,1);
   ResoRow18->SetBinContent(0,5);
   ResoRow18->SetBinContent(5,1);
   ResoRow18->SetBinContent(10,1);
   ResoRow18->SetBinContent(12,1);
   ResoRow18->SetBinContent(15,1);
   ResoRow18->SetBinContent(20,1);
   ResoRow18->SetBinContent(21,1);
   ResoRow18->SetBinContent(23,1);
   ResoRow18->SetBinContent(24,2);
   ResoRow18->SetBinContent(25,1);
   ResoRow18->SetBinContent(28,1);
   ResoRow18->SetBinContent(32,1);
   ResoRow18->SetBinContent(33,3);
   ResoRow18->SetBinContent(34,4);
   ResoRow18->SetBinContent(35,3);
   ResoRow18->SetBinContent(36,6);
   ResoRow18->SetBinContent(37,10);
   ResoRow18->SetBinContent(38,12);
   ResoRow18->SetBinContent(39,13);
   ResoRow18->SetBinContent(40,21);
   ResoRow18->SetBinContent(41,25);
   ResoRow18->SetBinContent(42,26);
   ResoRow18->SetBinContent(43,33);
   ResoRow18->SetBinContent(44,31);
   ResoRow18->SetBinContent(45,48);
   ResoRow18->SetBinContent(46,50);
   ResoRow18->SetBinContent(47,56);
   ResoRow18->SetBinContent(48,65);
   ResoRow18->SetBinContent(49,68);
   ResoRow18->SetBinContent(50,82);
   ResoRow18->SetBinContent(51,77);
   ResoRow18->SetBinContent(52,90);
   ResoRow18->SetBinContent(53,81);
   ResoRow18->SetBinContent(54,71);
   ResoRow18->SetBinContent(55,62);
   ResoRow18->SetBinContent(56,53);
   ResoRow18->SetBinContent(57,37);
   ResoRow18->SetBinContent(58,21);
   ResoRow18->SetBinContent(59,22);
   ResoRow18->SetBinContent(60,18);
   ResoRow18->SetBinContent(61,13);
   ResoRow18->SetBinContent(62,15);
   ResoRow18->SetBinContent(63,8);
   ResoRow18->SetBinContent(64,5);
   ResoRow18->SetBinContent(65,3);
   ResoRow18->SetBinContent(66,2);
   ResoRow18->SetBinContent(67,2);
   ResoRow18->SetBinContent(68,1);
   ResoRow18->SetBinContent(69,2);
   ResoRow18->SetBinContent(72,1);
   ResoRow18->SetBinContent(73,1);
   ResoRow18->SetBinContent(74,1);
   ResoRow18->SetBinContent(75,1);
   ResoRow18->SetBinContent(76,1);
   ResoRow18->SetBinContent(78,1);
   ResoRow18->SetBinContent(94,1);
   ResoRow18->SetBinContent(101,3);
   ResoRow18->SetEntries(1166);
   
   TF1 *ResoRowFit18 = new TF1("ResoRowFit18","gaus",-1,1);
   ResoRowFit18->SetFillColor(19);
   ResoRowFit18->SetFillStyle(0);
   ResoRowFit18->SetLineWidth(3);
   ResoRowFit18->SetChisquare(51.27614);
   ResoRowFit18->SetNDF(52);
   ResoRowFit18->SetParameter(0,73.60162);
   ResoRowFit18->SetParError(0,2.92526);
   ResoRowFit18->SetParLimits(0,0,0);
   ResoRowFit18->SetParameter(1,-0.004170386);
   ResoRowFit18->SetParError(1,0.003730071);
   ResoRowFit18->SetParLimits(1,0,0);
   ResoRowFit18->SetParameter(2,0.1201274);
   ResoRowFit18->SetParError(2,0.003164901);
   ResoRowFit18->SetParLimits(2,0,1.422633);
   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 = 1166   ");
   text = ptstats->AddText("Mean  = -0.006935");
   text = ptstats->AddText("RMS   = 0.1425");
   text = ptstats->AddText("#chi^{2} / ndf = 51.28 / 52");
   text = ptstats->AddText("Constant =  73.6 #pm 2.9 ");
   text = ptstats->AddText("Mean     = -0.00417 #pm 0.00373 ");
   text = ptstats->AddText("Sigma    = 0.1201 #pm 0.0032 ");
   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.6,1.25,113.4);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow19 = new TH1F("ResoRow19","",100,-1,1);
   ResoRow19->SetBinContent(0,1);
   ResoRow19->SetBinContent(6,1);
   ResoRow19->SetBinContent(19,2);
   ResoRow19->SetBinContent(20,1);
   ResoRow19->SetBinContent(22,1);
   ResoRow19->SetBinContent(23,1);
   ResoRow19->SetBinContent(27,1);
   ResoRow19->SetBinContent(30,1);
   ResoRow19->SetBinContent(32,3);
   ResoRow19->SetBinContent(33,1);
   ResoRow19->SetBinContent(34,4);
   ResoRow19->SetBinContent(35,3);
   ResoRow19->SetBinContent(36,2);
   ResoRow19->SetBinContent(37,8);
   ResoRow19->SetBinContent(38,9);
   ResoRow19->SetBinContent(39,14);
   ResoRow19->SetBinContent(40,20);
   ResoRow19->SetBinContent(41,24);
   ResoRow19->SetBinContent(42,26);
   ResoRow19->SetBinContent(43,42);
   ResoRow19->SetBinContent(44,33);
   ResoRow19->SetBinContent(45,51);
   ResoRow19->SetBinContent(46,55);
   ResoRow19->SetBinContent(47,75);
   ResoRow19->SetBinContent(48,75);
   ResoRow19->SetBinContent(49,77);
   ResoRow19->SetBinContent(50,74);
   ResoRow19->SetBinContent(51,96);
   ResoRow19->SetBinContent(52,76);
   ResoRow19->SetBinContent(53,78);
   ResoRow19->SetBinContent(54,58);
   ResoRow19->SetBinContent(55,39);
   ResoRow19->SetBinContent(56,39);
   ResoRow19->SetBinContent(57,42);
   ResoRow19->SetBinContent(58,25);
   ResoRow19->SetBinContent(59,22);
   ResoRow19->SetBinContent(60,14);
   ResoRow19->SetBinContent(61,16);
   ResoRow19->SetBinContent(62,9);
   ResoRow19->SetBinContent(63,8);
   ResoRow19->SetBinContent(64,5);
   ResoRow19->SetBinContent(65,6);
   ResoRow19->SetBinContent(66,4);
   ResoRow19->SetBinContent(67,4);
   ResoRow19->SetBinContent(68,4);
   ResoRow19->SetBinContent(69,1);
   ResoRow19->SetBinContent(70,2);
   ResoRow19->SetBinContent(71,4);
   ResoRow19->SetBinContent(84,1);
   ResoRow19->SetBinContent(89,1);
   ResoRow19->SetBinContent(93,1);
   ResoRow19->SetBinContent(96,1);
   ResoRow19->SetBinContent(101,5);
   ResoRow19->SetEntries(1166);
   
   TF1 *ResoRowFit19 = new TF1("ResoRowFit19","gaus",-1,1);
   ResoRowFit19->SetFillColor(19);
   ResoRowFit19->SetFillStyle(0);
   ResoRowFit19->SetLineWidth(3);
   ResoRowFit19->SetChisquare(54.31516);
   ResoRowFit19->SetNDF(48);
   ResoRowFit19->SetParameter(0,75.26281);
   ResoRowFit19->SetParError(0,2.985731);
   ResoRowFit19->SetParLimits(0,0,0);
   ResoRowFit19->SetParameter(1,-0.009020006);
   ResoRowFit19->SetParError(1,0.00356583);
   ResoRowFit19->SetParLimits(1,0,0);
   ResoRowFit19->SetParameter(2,0.1172953);
   ResoRowFit19->SetParError(2,0.003056387);
   ResoRowFit19->SetParLimits(2,0,1.415831);
   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 = 1166   ");
   text = ptstats->AddText("Mean  = -0.006761");
   text = ptstats->AddText("RMS   = 0.1415");
   text = ptstats->AddText("#chi^{2} / ndf = 54.32 / 48");
   text = ptstats->AddText("Constant = 75.26 #pm 2.99 ");
   text = ptstats->AddText("Mean     = -0.00902 #pm 0.00357 ");
   text = ptstats->AddText("Sigma    = 0.1173 #pm 0.0031 ");
   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);
}
