{
//=========Macro generated from canvas: c2/
//=========  (Tue Jun  8 21:42:09 2010) by ROOT version5.25/04
   TCanvas *c2 = new TCanvas("c2", "",0,0,900,600);
   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,-16.40625,1.25,147.6563);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow01 = new TH1F("ResoRow01","",100,-1,1);
   ResoRow01->SetBinContent(0,5);
   ResoRow01->SetBinContent(5,1);
   ResoRow01->SetBinContent(10,1);
   ResoRow01->SetBinContent(23,1);
   ResoRow01->SetBinContent(24,1);
   ResoRow01->SetBinContent(25,1);
   ResoRow01->SetBinContent(26,2);
   ResoRow01->SetBinContent(27,1);
   ResoRow01->SetBinContent(28,1);
   ResoRow01->SetBinContent(30,3);
   ResoRow01->SetBinContent(32,2);
   ResoRow01->SetBinContent(33,3);
   ResoRow01->SetBinContent(34,2);
   ResoRow01->SetBinContent(35,1);
   ResoRow01->SetBinContent(36,3);
   ResoRow01->SetBinContent(37,8);
   ResoRow01->SetBinContent(38,8);
   ResoRow01->SetBinContent(39,14);
   ResoRow01->SetBinContent(40,20);
   ResoRow01->SetBinContent(41,24);
   ResoRow01->SetBinContent(42,28);
   ResoRow01->SetBinContent(43,35);
   ResoRow01->SetBinContent(44,50);
   ResoRow01->SetBinContent(45,46);
   ResoRow01->SetBinContent(46,69);
   ResoRow01->SetBinContent(47,74);
   ResoRow01->SetBinContent(48,93);
   ResoRow01->SetBinContent(49,91);
   ResoRow01->SetBinContent(50,108);
   ResoRow01->SetBinContent(51,125);
   ResoRow01->SetBinContent(52,92);
   ResoRow01->SetBinContent(53,81);
   ResoRow01->SetBinContent(54,75);
   ResoRow01->SetBinContent(55,72);
   ResoRow01->SetBinContent(56,50);
   ResoRow01->SetBinContent(57,35);
   ResoRow01->SetBinContent(58,31);
   ResoRow01->SetBinContent(59,24);
   ResoRow01->SetBinContent(60,17);
   ResoRow01->SetBinContent(61,16);
   ResoRow01->SetBinContent(62,15);
   ResoRow01->SetBinContent(63,9);
   ResoRow01->SetBinContent(64,3);
   ResoRow01->SetBinContent(65,5);
   ResoRow01->SetBinContent(66,3);
   ResoRow01->SetBinContent(67,5);
   ResoRow01->SetBinContent(68,2);
   ResoRow01->SetBinContent(69,1);
   ResoRow01->SetBinContent(70,4);
   ResoRow01->SetBinContent(71,7);
   ResoRow01->SetBinContent(72,1);
   ResoRow01->SetBinContent(77,1);
   ResoRow01->SetBinContent(78,1);
   ResoRow01->SetBinContent(95,1);
   ResoRow01->SetBinContent(101,5);
   ResoRow01->SetEntries(1377);
   
   TF1 *ResoRowFit01 = new TF1("ResoRowFit01","gaus",-1,1);
   ResoRowFit01->SetFillColor(19);
   ResoRowFit01->SetFillStyle(0);
   ResoRowFit01->SetLineWidth(3);
   ResoRowFit01->SetChisquare(63.21272);
   ResoRowFit01->SetNDF(50);
   ResoRowFit01->SetParameter(0,94.40584);
   ResoRowFit01->SetParError(0,3.437719);
   ResoRowFit01->SetParLimits(0,0,0);
   ResoRowFit01->SetParameter(1,-0.004195734);
   ResoRowFit01->SetParError(1,0.003058214);
   ResoRowFit01->SetParLimits(1,0,0);
   ResoRowFit01->SetParameter(2,0.1102165);
   ResoRowFit01->SetParError(2,0.00261238);
   ResoRowFit01->SetParLimits(2,0,1.337633);
   ResoRow01->GetListOfFunctions()->Add(ResoRowFit01);
   
   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("ResoRow01");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1377   ");
   text = ptstats->AddText("Mean  = -0.003192");
   text = ptstats->AddText("RMS   = 0.1336");
   text = ptstats->AddText("#chi^{2} / ndf = 63.21 / 50");
   text = ptstats->AddText("Constant = 94.41 #pm 3.44 ");
   text = ptstats->AddText("Mean     = -0.004196 #pm 0.003058 ");
   text = ptstats->AddText("Sigma    = 0.1102 #pm 0.0026 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow01->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow01->GetListOfFunctions());
   ResoRow01->GetXaxis()->SetTitle("residual / mm");
   ResoRow01->GetYaxis()->SetTitle("counts");
   ResoRow01->Draw("");
   c2_1->Modified();
   c2->cd();
  
// ------------>Primitives in pad: c2_2
   c2_2 = new TPad("c2_2", "c2_2",0.3433333,0.51,0.6566667,0.99);
   c2_2->Draw();
   c2_2->cd();
   c2_2->Range(-1.25,-13.3875,1.25,120.4875);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow02 = new TH1F("ResoRow02","",100,-1,1);
   ResoRow02->SetBinContent(0,3);
   ResoRow02->SetBinContent(2,2);
   ResoRow02->SetBinContent(9,1);
   ResoRow02->SetBinContent(14,1);
   ResoRow02->SetBinContent(18,1);
   ResoRow02->SetBinContent(20,1);
   ResoRow02->SetBinContent(24,1);
   ResoRow02->SetBinContent(25,1);
   ResoRow02->SetBinContent(26,2);
   ResoRow02->SetBinContent(27,1);
   ResoRow02->SetBinContent(28,1);
   ResoRow02->SetBinContent(32,2);
   ResoRow02->SetBinContent(34,8);
   ResoRow02->SetBinContent(35,7);
   ResoRow02->SetBinContent(36,10);
   ResoRow02->SetBinContent(37,11);
   ResoRow02->SetBinContent(38,11);
   ResoRow02->SetBinContent(39,14);
   ResoRow02->SetBinContent(40,18);
   ResoRow02->SetBinContent(41,18);
   ResoRow02->SetBinContent(42,38);
   ResoRow02->SetBinContent(43,42);
   ResoRow02->SetBinContent(44,57);
   ResoRow02->SetBinContent(45,62);
   ResoRow02->SetBinContent(46,68);
   ResoRow02->SetBinContent(47,81);
   ResoRow02->SetBinContent(48,88);
   ResoRow02->SetBinContent(49,87);
   ResoRow02->SetBinContent(50,102);
   ResoRow02->SetBinContent(51,95);
   ResoRow02->SetBinContent(52,80);
   ResoRow02->SetBinContent(53,68);
   ResoRow02->SetBinContent(54,67);
   ResoRow02->SetBinContent(55,65);
   ResoRow02->SetBinContent(56,44);
   ResoRow02->SetBinContent(57,34);
   ResoRow02->SetBinContent(58,35);
   ResoRow02->SetBinContent(59,36);
   ResoRow02->SetBinContent(60,26);
   ResoRow02->SetBinContent(61,11);
   ResoRow02->SetBinContent(62,12);
   ResoRow02->SetBinContent(63,9);
   ResoRow02->SetBinContent(64,11);
   ResoRow02->SetBinContent(65,11);
   ResoRow02->SetBinContent(66,4);
   ResoRow02->SetBinContent(67,6);
   ResoRow02->SetBinContent(70,1);
   ResoRow02->SetBinContent(71,1);
   ResoRow02->SetBinContent(74,1);
   ResoRow02->SetBinContent(75,1);
   ResoRow02->SetBinContent(76,1);
   ResoRow02->SetBinContent(77,1);
   ResoRow02->SetBinContent(79,2);
   ResoRow02->SetBinContent(80,2);
   ResoRow02->SetBinContent(83,1);
   ResoRow02->SetBinContent(86,1);
   ResoRow02->SetBinContent(87,1);
   ResoRow02->SetBinContent(94,1);
   ResoRow02->SetBinContent(97,1);
   ResoRow02->SetBinContent(100,1);
   ResoRow02->SetBinContent(101,8);
   ResoRow02->SetEntries(1377);
   
   TF1 *ResoRowFit02 = new TF1("ResoRowFit02","gaus",-1,1);
   ResoRowFit02->SetFillColor(19);
   ResoRowFit02->SetFillStyle(0);
   ResoRowFit02->SetLineWidth(3);
   ResoRowFit02->SetChisquare(67.74014);
   ResoRowFit02->SetNDF(56);
   ResoRowFit02->SetParameter(0,84.95903);
   ResoRowFit02->SetParError(0,3.228239);
   ResoRowFit02->SetParLimits(0,0,0);
   ResoRowFit02->SetParameter(1,-0.009664047);
   ResoRowFit02->SetParError(1,0.003459396);
   ResoRowFit02->SetParLimits(1,0,0);
   ResoRowFit02->SetParameter(2,0.122408);
   ResoRowFit02->SetParError(2,0.003280849);
   ResoRowFit02->SetParLimits(2,0,1.549051);
   ResoRow02->GetListOfFunctions()->Add(ResoRowFit02);
   
   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("ResoRow02");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1377   ");
   text = ptstats->AddText("Mean  = -0.007093");
   text = ptstats->AddText("RMS   = 0.1545");
   text = ptstats->AddText("#chi^{2} / ndf = 67.74 / 56");
   text = ptstats->AddText("Constant = 84.96 #pm 3.23 ");
   text = ptstats->AddText("Mean     = -0.009664 #pm 0.003459 ");
   text = ptstats->AddText("Sigma    = 0.1224 #pm 0.0033 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow02->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow02->GetListOfFunctions());
   ResoRow02->GetXaxis()->SetTitle("residual / mm");
   ResoRow02->GetYaxis()->SetTitle("counts");
   ResoRow02->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,-13.125,1.25,118.125);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow03 = new TH1F("ResoRow03","",100,-1,1);
   ResoRow03->SetBinContent(0,4);
   ResoRow03->SetBinContent(3,1);
   ResoRow03->SetBinContent(5,1);
   ResoRow03->SetBinContent(10,1);
   ResoRow03->SetBinContent(11,1);
   ResoRow03->SetBinContent(18,1);
   ResoRow03->SetBinContent(21,1);
   ResoRow03->SetBinContent(22,2);
   ResoRow03->SetBinContent(25,1);
   ResoRow03->SetBinContent(26,1);
   ResoRow03->SetBinContent(28,2);
   ResoRow03->SetBinContent(29,1);
   ResoRow03->SetBinContent(30,2);
   ResoRow03->SetBinContent(31,5);
   ResoRow03->SetBinContent(33,4);
   ResoRow03->SetBinContent(34,7);
   ResoRow03->SetBinContent(35,3);
   ResoRow03->SetBinContent(36,10);
   ResoRow03->SetBinContent(37,13);
   ResoRow03->SetBinContent(38,17);
   ResoRow03->SetBinContent(39,11);
   ResoRow03->SetBinContent(40,22);
   ResoRow03->SetBinContent(41,29);
   ResoRow03->SetBinContent(42,36);
   ResoRow03->SetBinContent(43,35);
   ResoRow03->SetBinContent(44,43);
   ResoRow03->SetBinContent(45,51);
   ResoRow03->SetBinContent(46,53);
   ResoRow03->SetBinContent(47,59);
   ResoRow03->SetBinContent(48,86);
   ResoRow03->SetBinContent(49,100);
   ResoRow03->SetBinContent(50,79);
   ResoRow03->SetBinContent(51,84);
   ResoRow03->SetBinContent(52,89);
   ResoRow03->SetBinContent(53,84);
   ResoRow03->SetBinContent(54,67);
   ResoRow03->SetBinContent(55,70);
   ResoRow03->SetBinContent(56,66);
   ResoRow03->SetBinContent(57,48);
   ResoRow03->SetBinContent(58,37);
   ResoRow03->SetBinContent(59,38);
   ResoRow03->SetBinContent(60,34);
   ResoRow03->SetBinContent(61,13);
   ResoRow03->SetBinContent(62,14);
   ResoRow03->SetBinContent(63,9);
   ResoRow03->SetBinContent(64,7);
   ResoRow03->SetBinContent(65,4);
   ResoRow03->SetBinContent(66,2);
   ResoRow03->SetBinContent(67,4);
   ResoRow03->SetBinContent(68,3);
   ResoRow03->SetBinContent(69,4);
   ResoRow03->SetBinContent(70,2);
   ResoRow03->SetBinContent(71,1);
   ResoRow03->SetBinContent(72,1);
   ResoRow03->SetBinContent(73,5);
   ResoRow03->SetBinContent(78,1);
   ResoRow03->SetBinContent(82,1);
   ResoRow03->SetBinContent(98,2);
   ResoRow03->SetBinContent(101,5);
   ResoRow03->SetEntries(1377);
   
   TF1 *ResoRowFit03 = new TF1("ResoRowFit03","gaus",-1,1);
   ResoRowFit03->SetFillColor(19);
   ResoRowFit03->SetFillStyle(0);
   ResoRowFit03->SetLineWidth(3);
   ResoRowFit03->SetChisquare(69.14689);
   ResoRowFit03->SetNDF(54);
   ResoRowFit03->SetParameter(0,82.73525);
   ResoRowFit03->SetParError(0,3.009952);
   ResoRowFit03->SetParLimits(0,0,0);
   ResoRowFit03->SetParameter(1,-0.0008871893);
   ResoRowFit03->SetParError(1,0.00359286);
   ResoRowFit03->SetParLimits(1,0,0);
   ResoRowFit03->SetParameter(2,0.125387);
   ResoRowFit03->SetParError(2,0.002978216);
   ResoRowFit03->SetParLimits(2,0,1.534078);
   ResoRow03->GetListOfFunctions()->Add(ResoRowFit03);
   
   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("ResoRow03");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1377   ");
   text = ptstats->AddText("Mean  = -0.003821");
   text = ptstats->AddText("RMS   = 0.1533");
   text = ptstats->AddText("#chi^{2} / ndf = 69.15 / 54");
   text = ptstats->AddText("Constant = 82.74 #pm 3.01 ");
   text = ptstats->AddText("Mean     = -0.0008872 #pm 0.0035929 ");
   text = ptstats->AddText("Sigma    = 0.1254 #pm 0.0030 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow03->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow03->GetListOfFunctions());
   ResoRow03->GetXaxis()->SetTitle("residual / mm");
   ResoRow03->GetYaxis()->SetTitle("counts");
   ResoRow03->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.2875,1.25,101.5875);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow09 = new TH1F("ResoRow09","",100,-1,1);
   ResoRow09->SetBinContent(0,3);
   ResoRow09->SetBinContent(6,1);
   ResoRow09->SetBinContent(21,1);
   ResoRow09->SetBinContent(23,1);
   ResoRow09->SetBinContent(25,1);
   ResoRow09->SetBinContent(26,1);
   ResoRow09->SetBinContent(27,1);
   ResoRow09->SetBinContent(29,1);
   ResoRow09->SetBinContent(30,3);
   ResoRow09->SetBinContent(31,3);
   ResoRow09->SetBinContent(32,9);
   ResoRow09->SetBinContent(33,3);
   ResoRow09->SetBinContent(34,11);
   ResoRow09->SetBinContent(35,6);
   ResoRow09->SetBinContent(36,9);
   ResoRow09->SetBinContent(37,18);
   ResoRow09->SetBinContent(38,14);
   ResoRow09->SetBinContent(39,14);
   ResoRow09->SetBinContent(40,25);
   ResoRow09->SetBinContent(41,33);
   ResoRow09->SetBinContent(42,36);
   ResoRow09->SetBinContent(43,44);
   ResoRow09->SetBinContent(44,50);
   ResoRow09->SetBinContent(45,43);
   ResoRow09->SetBinContent(46,66);
   ResoRow09->SetBinContent(47,63);
   ResoRow09->SetBinContent(48,86);
   ResoRow09->SetBinContent(49,74);
   ResoRow09->SetBinContent(50,86);
   ResoRow09->SetBinContent(51,86);
   ResoRow09->SetBinContent(52,69);
   ResoRow09->SetBinContent(53,79);
   ResoRow09->SetBinContent(54,66);
   ResoRow09->SetBinContent(55,64);
   ResoRow09->SetBinContent(56,48);
   ResoRow09->SetBinContent(57,48);
   ResoRow09->SetBinContent(58,31);
   ResoRow09->SetBinContent(59,34);
   ResoRow09->SetBinContent(60,29);
   ResoRow09->SetBinContent(61,25);
   ResoRow09->SetBinContent(62,16);
   ResoRow09->SetBinContent(63,12);
   ResoRow09->SetBinContent(64,11);
   ResoRow09->SetBinContent(65,9);
   ResoRow09->SetBinContent(66,9);
   ResoRow09->SetBinContent(67,3);
   ResoRow09->SetBinContent(68,4);
   ResoRow09->SetBinContent(69,2);
   ResoRow09->SetBinContent(70,3);
   ResoRow09->SetBinContent(73,1);
   ResoRow09->SetBinContent(74,1);
   ResoRow09->SetBinContent(77,1);
   ResoRow09->SetBinContent(78,2);
   ResoRow09->SetBinContent(79,1);
   ResoRow09->SetBinContent(81,1);
   ResoRow09->SetBinContent(83,1);
   ResoRow09->SetBinContent(85,1);
   ResoRow09->SetBinContent(87,1);
   ResoRow09->SetBinContent(89,1);
   ResoRow09->SetBinContent(90,1);
   ResoRow09->SetBinContent(91,1);
   ResoRow09->SetBinContent(93,1);
   ResoRow09->SetBinContent(96,1);
   ResoRow09->SetBinContent(97,1);
   ResoRow09->SetBinContent(101,7);
   ResoRow09->SetEntries(1377);
   
   TF1 *ResoRowFit09 = new TF1("ResoRowFit09","gaus",-1,1);
   ResoRowFit09->SetFillColor(19);
   ResoRowFit09->SetFillStyle(0);
   ResoRowFit09->SetLineWidth(3);
   ResoRowFit09->SetChisquare(54.17709);
   ResoRowFit09->SetNDF(60);
   ResoRowFit09->SetParameter(0,74.98788);
   ResoRowFit09->SetParError(0,2.722283);
   ResoRowFit09->SetParLimits(0,0,0);
   ResoRowFit09->SetParameter(1,-0.004944378);
   ResoRowFit09->SetParError(1,0.003897722);
   ResoRowFit09->SetParLimits(1,0,0);
   ResoRowFit09->SetParameter(2,0.139936);
   ResoRowFit09->SetParError(2,0.003352813);
   ResoRowFit09->SetParLimits(2,0,1.640904);
   ResoRow09->GetListOfFunctions()->Add(ResoRowFit09);
   
   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("ResoRow09");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1377   ");
   text = ptstats->AddText("Mean  = -0.002627");
   text = ptstats->AddText("RMS   = 0.1641");
   text = ptstats->AddText("#chi^{2} / ndf = 54.18 / 60");
   text = ptstats->AddText("Constant = 74.99 #pm 2.72 ");
   text = ptstats->AddText("Mean     = -0.004944 #pm 0.003898 ");
   text = ptstats->AddText("Sigma    = 0.1399 #pm 0.0034 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow09->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow09->GetListOfFunctions());
   ResoRow09->GetXaxis()->SetTitle("residual / mm");
   ResoRow09->GetYaxis()->SetTitle("counts");
   ResoRow09->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 *ResoRow10 = new TH1F("ResoRow10","",100,-1,1);
   ResoRow10->SetBinContent(0,2);
   ResoRow10->SetBinContent(23,1);
   ResoRow10->SetBinContent(26,2);
   ResoRow10->SetBinContent(27,3);
   ResoRow10->SetBinContent(28,2);
   ResoRow10->SetBinContent(29,4);
   ResoRow10->SetBinContent(30,1);
   ResoRow10->SetBinContent(31,1);
   ResoRow10->SetBinContent(32,1);
   ResoRow10->SetBinContent(33,9);
   ResoRow10->SetBinContent(34,3);
   ResoRow10->SetBinContent(35,12);
   ResoRow10->SetBinContent(36,5);
   ResoRow10->SetBinContent(37,13);
   ResoRow10->SetBinContent(38,11);
   ResoRow10->SetBinContent(39,16);
   ResoRow10->SetBinContent(40,24);
   ResoRow10->SetBinContent(41,27);
   ResoRow10->SetBinContent(42,33);
   ResoRow10->SetBinContent(43,44);
   ResoRow10->SetBinContent(44,38);
   ResoRow10->SetBinContent(45,76);
   ResoRow10->SetBinContent(46,90);
   ResoRow10->SetBinContent(47,70);
   ResoRow10->SetBinContent(48,79);
   ResoRow10->SetBinContent(49,80);
   ResoRow10->SetBinContent(50,81);
   ResoRow10->SetBinContent(51,85);
   ResoRow10->SetBinContent(52,75);
   ResoRow10->SetBinContent(53,69);
   ResoRow10->SetBinContent(54,63);
   ResoRow10->SetBinContent(55,60);
   ResoRow10->SetBinContent(56,48);
   ResoRow10->SetBinContent(57,42);
   ResoRow10->SetBinContent(58,44);
   ResoRow10->SetBinContent(59,30);
   ResoRow10->SetBinContent(60,25);
   ResoRow10->SetBinContent(61,18);
   ResoRow10->SetBinContent(62,15);
   ResoRow10->SetBinContent(63,12);
   ResoRow10->SetBinContent(64,15);
   ResoRow10->SetBinContent(65,9);
   ResoRow10->SetBinContent(66,5);
   ResoRow10->SetBinContent(67,2);
   ResoRow10->SetBinContent(68,4);
   ResoRow10->SetBinContent(69,3);
   ResoRow10->SetBinContent(71,3);
   ResoRow10->SetBinContent(73,3);
   ResoRow10->SetBinContent(74,1);
   ResoRow10->SetBinContent(75,2);
   ResoRow10->SetBinContent(76,1);
   ResoRow10->SetBinContent(77,1);
   ResoRow10->SetBinContent(78,1);
   ResoRow10->SetBinContent(80,1);
   ResoRow10->SetBinContent(81,1);
   ResoRow10->SetBinContent(84,1);
   ResoRow10->SetBinContent(86,1);
   ResoRow10->SetBinContent(88,1);
   ResoRow10->SetBinContent(89,1);
   ResoRow10->SetBinContent(95,1);
   ResoRow10->SetBinContent(99,1);
   ResoRow10->SetBinContent(101,5);
   ResoRow10->SetEntries(1377);
   
   TF1 *ResoRowFit10 = new TF1("ResoRowFit10","gaus",-1,1);
   ResoRowFit10->SetFillColor(19);
   ResoRowFit10->SetFillStyle(0);
   ResoRowFit10->SetLineWidth(3);
   ResoRowFit10->SetChisquare(66.35885);
   ResoRowFit10->SetNDF(57);
   ResoRowFit10->SetParameter(0,79.20011);
   ResoRowFit10->SetParError(0,2.838729);
   ResoRowFit10->SetParLimits(0,0,0);
   ResoRowFit10->SetParameter(1,-0.005533892);
   ResoRowFit10->SetParError(1,0.003685117);
   ResoRowFit10->SetParLimits(1,0,0);
   ResoRowFit10->SetParameter(2,0.131462);
   ResoRowFit10->SetParError(2,0.003018107);
   ResoRowFit10->SetParLimits(2,0,1.563707);
   ResoRow10->GetListOfFunctions()->Add(ResoRowFit10);
   
   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("ResoRow10");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1377   ");
   text = ptstats->AddText("Mean  = -0.003961");
   text = ptstats->AddText("RMS   = 0.1564");
   text = ptstats->AddText("#chi^{2} / ndf = 66.36 / 57");
   text = ptstats->AddText("Constant =  79.2 #pm 2.8 ");
   text = ptstats->AddText("Mean     = -0.005534 #pm 0.003685 ");
   text = ptstats->AddText("Sigma    = 0.1315 #pm 0.0030 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow10->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow10->GetListOfFunctions());
   ResoRow10->GetXaxis()->SetTitle("residual / mm");
   ResoRow10->GetYaxis()->SetTitle("counts");
   ResoRow10->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.94375,1.25,107.4938);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow11 = new TH1F("ResoRow11","",100,-1,1);
   ResoRow11->SetBinContent(0,2);
   ResoRow11->SetBinContent(3,1);
   ResoRow11->SetBinContent(8,1);
   ResoRow11->SetBinContent(11,1);
   ResoRow11->SetBinContent(17,1);
   ResoRow11->SetBinContent(19,1);
   ResoRow11->SetBinContent(24,2);
   ResoRow11->SetBinContent(25,1);
   ResoRow11->SetBinContent(27,2);
   ResoRow11->SetBinContent(29,2);
   ResoRow11->SetBinContent(30,4);
   ResoRow11->SetBinContent(32,5);
   ResoRow11->SetBinContent(33,2);
   ResoRow11->SetBinContent(34,3);
   ResoRow11->SetBinContent(35,8);
   ResoRow11->SetBinContent(36,8);
   ResoRow11->SetBinContent(37,11);
   ResoRow11->SetBinContent(38,19);
   ResoRow11->SetBinContent(39,20);
   ResoRow11->SetBinContent(40,27);
   ResoRow11->SetBinContent(41,26);
   ResoRow11->SetBinContent(42,36);
   ResoRow11->SetBinContent(43,52);
   ResoRow11->SetBinContent(44,46);
   ResoRow11->SetBinContent(45,53);
   ResoRow11->SetBinContent(46,58);
   ResoRow11->SetBinContent(47,72);
   ResoRow11->SetBinContent(48,80);
   ResoRow11->SetBinContent(49,91);
   ResoRow11->SetBinContent(50,90);
   ResoRow11->SetBinContent(51,75);
   ResoRow11->SetBinContent(52,77);
   ResoRow11->SetBinContent(53,65);
   ResoRow11->SetBinContent(54,74);
   ResoRow11->SetBinContent(55,62);
   ResoRow11->SetBinContent(56,51);
   ResoRow11->SetBinContent(57,44);
   ResoRow11->SetBinContent(58,37);
   ResoRow11->SetBinContent(59,43);
   ResoRow11->SetBinContent(60,17);
   ResoRow11->SetBinContent(61,25);
   ResoRow11->SetBinContent(62,11);
   ResoRow11->SetBinContent(63,11);
   ResoRow11->SetBinContent(64,15);
   ResoRow11->SetBinContent(65,3);
   ResoRow11->SetBinContent(66,10);
   ResoRow11->SetBinContent(67,5);
   ResoRow11->SetBinContent(68,2);
   ResoRow11->SetBinContent(69,6);
   ResoRow11->SetBinContent(70,2);
   ResoRow11->SetBinContent(71,4);
   ResoRow11->SetBinContent(73,1);
   ResoRow11->SetBinContent(75,1);
   ResoRow11->SetBinContent(76,1);
   ResoRow11->SetBinContent(79,1);
   ResoRow11->SetBinContent(81,2);
   ResoRow11->SetBinContent(82,1);
   ResoRow11->SetBinContent(83,1);
   ResoRow11->SetBinContent(84,1);
   ResoRow11->SetBinContent(101,4);
   ResoRow11->SetEntries(1377);
   
   TF1 *ResoRowFit11 = new TF1("ResoRowFit11","gaus",-1,1);
   ResoRowFit11->SetFillColor(19);
   ResoRowFit11->SetFillStyle(0);
   ResoRowFit11->SetLineWidth(3);
   ResoRowFit11->SetChisquare(63.25914);
   ResoRowFit11->SetNDF(55);
   ResoRowFit11->SetParameter(0,78.7703);
   ResoRowFit11->SetParError(0,2.819167);
   ResoRowFit11->SetParLimits(0,0,0);
   ResoRowFit11->SetParameter(1,-0.009279871);
   ResoRowFit11->SetParError(1,0.003698414);
   ResoRowFit11->SetParLimits(1,0,0);
   ResoRowFit11->SetParameter(2,0.1326903);
   ResoRowFit11->SetParError(2,0.003060252);
   ResoRowFit11->SetParLimits(2,0,1.561394);
   ResoRow11->GetListOfFunctions()->Add(ResoRowFit11);
   
   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("ResoRow11");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1377   ");
   text = ptstats->AddText("Mean  = -0.006267");
   text = ptstats->AddText("RMS   =  0.156");
   text = ptstats->AddText("#chi^{2} / ndf = 63.26 / 55");
   text = ptstats->AddText("Constant = 78.77 #pm 2.82 ");
   text = ptstats->AddText("Mean     = -0.00928 #pm 0.00370 ");
   text = ptstats->AddText("Sigma    = 0.1327 #pm 0.0031 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow11->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow11->GetListOfFunctions());
   ResoRow11->GetXaxis()->SetTitle("residual / mm");
   ResoRow11->GetYaxis()->SetTitle("counts");
   ResoRow11->Draw("");
   c2_6->Modified();
   c2->cd();
   c2->Modified();
   c2->cd();
   c2->SetSelected(c2);
}
