{
//=========Macro generated from canvas: c2/
//=========  (Mon Jun  7 22:28:37 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,-10.10625,1.25,90.95625);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow01 = new TH1F("ResoRow01","",100,-1,1);
   ResoRow01->SetBinContent(0,17);
   ResoRow01->SetBinContent(2,2);
   ResoRow01->SetBinContent(4,1);
   ResoRow01->SetBinContent(7,1);
   ResoRow01->SetBinContent(9,1);
   ResoRow01->SetBinContent(11,2);
   ResoRow01->SetBinContent(13,4);
   ResoRow01->SetBinContent(15,1);
   ResoRow01->SetBinContent(16,2);
   ResoRow01->SetBinContent(17,4);
   ResoRow01->SetBinContent(18,4);
   ResoRow01->SetBinContent(19,2);
   ResoRow01->SetBinContent(20,2);
   ResoRow01->SetBinContent(21,3);
   ResoRow01->SetBinContent(22,3);
   ResoRow01->SetBinContent(23,5);
   ResoRow01->SetBinContent(24,3);
   ResoRow01->SetBinContent(25,5);
   ResoRow01->SetBinContent(26,6);
   ResoRow01->SetBinContent(27,10);
   ResoRow01->SetBinContent(28,12);
   ResoRow01->SetBinContent(29,8);
   ResoRow01->SetBinContent(30,10);
   ResoRow01->SetBinContent(31,13);
   ResoRow01->SetBinContent(32,5);
   ResoRow01->SetBinContent(33,10);
   ResoRow01->SetBinContent(34,16);
   ResoRow01->SetBinContent(35,27);
   ResoRow01->SetBinContent(36,21);
   ResoRow01->SetBinContent(37,24);
   ResoRow01->SetBinContent(38,28);
   ResoRow01->SetBinContent(39,27);
   ResoRow01->SetBinContent(40,25);
   ResoRow01->SetBinContent(41,39);
   ResoRow01->SetBinContent(42,40);
   ResoRow01->SetBinContent(43,38);
   ResoRow01->SetBinContent(44,43);
   ResoRow01->SetBinContent(45,54);
   ResoRow01->SetBinContent(46,57);
   ResoRow01->SetBinContent(47,60);
   ResoRow01->SetBinContent(48,71);
   ResoRow01->SetBinContent(49,77);
   ResoRow01->SetBinContent(50,53);
   ResoRow01->SetBinContent(51,68);
   ResoRow01->SetBinContent(52,62);
   ResoRow01->SetBinContent(53,61);
   ResoRow01->SetBinContent(54,66);
   ResoRow01->SetBinContent(55,54);
   ResoRow01->SetBinContent(56,41);
   ResoRow01->SetBinContent(57,41);
   ResoRow01->SetBinContent(58,49);
   ResoRow01->SetBinContent(59,37);
   ResoRow01->SetBinContent(60,37);
   ResoRow01->SetBinContent(61,35);
   ResoRow01->SetBinContent(62,19);
   ResoRow01->SetBinContent(63,28);
   ResoRow01->SetBinContent(64,29);
   ResoRow01->SetBinContent(65,19);
   ResoRow01->SetBinContent(66,13);
   ResoRow01->SetBinContent(67,13);
   ResoRow01->SetBinContent(68,9);
   ResoRow01->SetBinContent(69,13);
   ResoRow01->SetBinContent(70,7);
   ResoRow01->SetBinContent(71,8);
   ResoRow01->SetBinContent(72,7);
   ResoRow01->SetBinContent(73,3);
   ResoRow01->SetBinContent(74,5);
   ResoRow01->SetBinContent(75,5);
   ResoRow01->SetBinContent(76,1);
   ResoRow01->SetBinContent(77,3);
   ResoRow01->SetBinContent(78,5);
   ResoRow01->SetBinContent(79,4);
   ResoRow01->SetBinContent(81,3);
   ResoRow01->SetBinContent(82,1);
   ResoRow01->SetBinContent(83,1);
   ResoRow01->SetBinContent(84,1);
   ResoRow01->SetBinContent(85,1);
   ResoRow01->SetBinContent(86,2);
   ResoRow01->SetBinContent(88,2);
   ResoRow01->SetBinContent(89,1);
   ResoRow01->SetBinContent(90,1);
   ResoRow01->SetBinContent(91,1);
   ResoRow01->SetBinContent(92,2);
   ResoRow01->SetBinContent(93,1);
   ResoRow01->SetBinContent(94,1);
   ResoRow01->SetBinContent(95,2);
   ResoRow01->SetBinContent(97,1);
   ResoRow01->SetBinContent(98,1);
   ResoRow01->SetBinContent(99,1);
   ResoRow01->SetBinContent(101,26);
   ResoRow01->SetEntries(1627);
   
   TF1 *ResoRowFit01 = new TF1("ResoRowFit01","gaus",-1,1);
   ResoRowFit01->SetFillColor(19);
   ResoRowFit01->SetFillStyle(0);
   ResoRowFit01->SetLineWidth(3);
   ResoRowFit01->SetChisquare(114.0691);
   ResoRowFit01->SetNDF(85);
   ResoRowFit01->SetParameter(0,57.57029);
   ResoRowFit01->SetParError(0,2.066971);
   ResoRowFit01->SetParLimits(0,0,0);
   ResoRowFit01->SetParameter(1,-0.008052658);
   ResoRowFit01->SetParError(1,0.005380738);
   ResoRowFit01->SetParLimits(1,0,0);
   ResoRowFit01->SetParameter(2,0.2038712);
   ResoRowFit01->SetParError(2,0.005060844);
   ResoRowFit01->SetParLimits(2,0,2.442273);
   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 = 1627   ");
   text = ptstats->AddText("Mean  = -0.01137");
   text = ptstats->AddText("RMS   = 0.2441");
   text = ptstats->AddText("#chi^{2} / ndf = 114.1 / 85");
   text = ptstats->AddText("Constant = 57.57 #pm 2.07 ");
   text = ptstats->AddText("Mean     = -0.008053 #pm 0.005381 ");
   text = ptstats->AddText("Sigma    = 0.2039 #pm 0.0051 ");
   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,-10.10625,1.25,90.95625);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow02 = new TH1F("ResoRow02","",100,-1,1);
   ResoRow02->SetBinContent(0,13);
   ResoRow02->SetBinContent(1,1);
   ResoRow02->SetBinContent(5,1);
   ResoRow02->SetBinContent(7,1);
   ResoRow02->SetBinContent(8,1);
   ResoRow02->SetBinContent(10,2);
   ResoRow02->SetBinContent(12,2);
   ResoRow02->SetBinContent(15,3);
   ResoRow02->SetBinContent(16,1);
   ResoRow02->SetBinContent(17,3);
   ResoRow02->SetBinContent(18,4);
   ResoRow02->SetBinContent(19,2);
   ResoRow02->SetBinContent(20,1);
   ResoRow02->SetBinContent(21,2);
   ResoRow02->SetBinContent(22,5);
   ResoRow02->SetBinContent(23,2);
   ResoRow02->SetBinContent(24,3);
   ResoRow02->SetBinContent(25,5);
   ResoRow02->SetBinContent(26,7);
   ResoRow02->SetBinContent(27,7);
   ResoRow02->SetBinContent(28,7);
   ResoRow02->SetBinContent(29,8);
   ResoRow02->SetBinContent(30,9);
   ResoRow02->SetBinContent(31,9);
   ResoRow02->SetBinContent(32,14);
   ResoRow02->SetBinContent(33,20);
   ResoRow02->SetBinContent(34,19);
   ResoRow02->SetBinContent(35,23);
   ResoRow02->SetBinContent(36,14);
   ResoRow02->SetBinContent(37,22);
   ResoRow02->SetBinContent(38,27);
   ResoRow02->SetBinContent(39,33);
   ResoRow02->SetBinContent(40,33);
   ResoRow02->SetBinContent(41,35);
   ResoRow02->SetBinContent(42,36);
   ResoRow02->SetBinContent(43,34);
   ResoRow02->SetBinContent(44,46);
   ResoRow02->SetBinContent(45,50);
   ResoRow02->SetBinContent(46,57);
   ResoRow02->SetBinContent(47,62);
   ResoRow02->SetBinContent(48,55);
   ResoRow02->SetBinContent(49,60);
   ResoRow02->SetBinContent(50,77);
   ResoRow02->SetBinContent(51,66);
   ResoRow02->SetBinContent(52,73);
   ResoRow02->SetBinContent(53,63);
   ResoRow02->SetBinContent(54,51);
   ResoRow02->SetBinContent(55,49);
   ResoRow02->SetBinContent(56,54);
   ResoRow02->SetBinContent(57,41);
   ResoRow02->SetBinContent(58,51);
   ResoRow02->SetBinContent(59,39);
   ResoRow02->SetBinContent(60,35);
   ResoRow02->SetBinContent(61,38);
   ResoRow02->SetBinContent(62,32);
   ResoRow02->SetBinContent(63,33);
   ResoRow02->SetBinContent(64,22);
   ResoRow02->SetBinContent(65,19);
   ResoRow02->SetBinContent(66,23);
   ResoRow02->SetBinContent(67,15);
   ResoRow02->SetBinContent(68,10);
   ResoRow02->SetBinContent(69,14);
   ResoRow02->SetBinContent(70,4);
   ResoRow02->SetBinContent(71,7);
   ResoRow02->SetBinContent(72,6);
   ResoRow02->SetBinContent(73,6);
   ResoRow02->SetBinContent(74,4);
   ResoRow02->SetBinContent(75,5);
   ResoRow02->SetBinContent(76,1);
   ResoRow02->SetBinContent(77,3);
   ResoRow02->SetBinContent(78,3);
   ResoRow02->SetBinContent(79,4);
   ResoRow02->SetBinContent(80,2);
   ResoRow02->SetBinContent(81,2);
   ResoRow02->SetBinContent(82,1);
   ResoRow02->SetBinContent(83,1);
   ResoRow02->SetBinContent(84,1);
   ResoRow02->SetBinContent(86,1);
   ResoRow02->SetBinContent(87,1);
   ResoRow02->SetBinContent(88,2);
   ResoRow02->SetBinContent(89,2);
   ResoRow02->SetBinContent(91,1);
   ResoRow02->SetBinContent(92,1);
   ResoRow02->SetBinContent(95,1);
   ResoRow02->SetBinContent(96,1);
   ResoRow02->SetBinContent(98,1);
   ResoRow02->SetBinContent(99,1);
   ResoRow02->SetBinContent(101,21);
   ResoRow02->SetEntries(1627);
   
   TF1 *ResoRowFit02 = new TF1("ResoRowFit02","gaus",-1,1);
   ResoRowFit02->SetFillColor(19);
   ResoRowFit02->SetFillStyle(0);
   ResoRowFit02->SetLineWidth(3);
   ResoRowFit02->SetChisquare(84.0943);
   ResoRowFit02->SetNDF(83);
   ResoRowFit02->SetParameter(0,57.98387);
   ResoRowFit02->SetParError(0,1.982278);
   ResoRowFit02->SetParLimits(0,0,0);
   ResoRowFit02->SetParameter(1,-0.00630268);
   ResoRowFit02->SetParError(1,0.005461851);
   ResoRowFit02->SetParLimits(1,0,0);
   ResoRowFit02->SetParameter(2,0.2077127);
   ResoRowFit02->SetParError(2,0.004692617);
   ResoRowFit02->SetParLimits(2,0,2.36977);
   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 = 1627   ");
   text = ptstats->AddText("Mean  = -0.006619");
   text = ptstats->AddText("RMS   =  0.237");
   text = ptstats->AddText("#chi^{2} / ndf = 84.09 / 83");
   text = ptstats->AddText("Constant = 57.98 #pm 1.98 ");
   text = ptstats->AddText("Mean     = -0.006303 #pm 0.005462 ");
   text = ptstats->AddText("Sigma    = 0.2077 #pm 0.0047 ");
   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,-10.10625,1.25,90.95625);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow03 = new TH1F("ResoRow03","",100,-1,1);
   ResoRow03->SetBinContent(0,13);
   ResoRow03->SetBinContent(1,2);
   ResoRow03->SetBinContent(5,2);
   ResoRow03->SetBinContent(9,2);
   ResoRow03->SetBinContent(10,2);
   ResoRow03->SetBinContent(11,1);
   ResoRow03->SetBinContent(12,1);
   ResoRow03->SetBinContent(13,1);
   ResoRow03->SetBinContent(14,1);
   ResoRow03->SetBinContent(15,1);
   ResoRow03->SetBinContent(16,2);
   ResoRow03->SetBinContent(17,1);
   ResoRow03->SetBinContent(18,1);
   ResoRow03->SetBinContent(19,2);
   ResoRow03->SetBinContent(20,4);
   ResoRow03->SetBinContent(21,5);
   ResoRow03->SetBinContent(23,5);
   ResoRow03->SetBinContent(24,5);
   ResoRow03->SetBinContent(25,3);
   ResoRow03->SetBinContent(26,7);
   ResoRow03->SetBinContent(27,7);
   ResoRow03->SetBinContent(28,8);
   ResoRow03->SetBinContent(29,7);
   ResoRow03->SetBinContent(30,12);
   ResoRow03->SetBinContent(31,14);
   ResoRow03->SetBinContent(32,15);
   ResoRow03->SetBinContent(33,14);
   ResoRow03->SetBinContent(34,17);
   ResoRow03->SetBinContent(35,21);
   ResoRow03->SetBinContent(36,19);
   ResoRow03->SetBinContent(37,24);
   ResoRow03->SetBinContent(38,19);
   ResoRow03->SetBinContent(39,24);
   ResoRow03->SetBinContent(40,26);
   ResoRow03->SetBinContent(41,49);
   ResoRow03->SetBinContent(42,31);
   ResoRow03->SetBinContent(43,48);
   ResoRow03->SetBinContent(44,45);
   ResoRow03->SetBinContent(45,38);
   ResoRow03->SetBinContent(46,51);
   ResoRow03->SetBinContent(47,49);
   ResoRow03->SetBinContent(48,62);
   ResoRow03->SetBinContent(49,67);
   ResoRow03->SetBinContent(50,77);
   ResoRow03->SetBinContent(51,68);
   ResoRow03->SetBinContent(52,51);
   ResoRow03->SetBinContent(53,55);
   ResoRow03->SetBinContent(54,62);
   ResoRow03->SetBinContent(55,59);
   ResoRow03->SetBinContent(56,56);
   ResoRow03->SetBinContent(57,48);
   ResoRow03->SetBinContent(58,43);
   ResoRow03->SetBinContent(59,46);
   ResoRow03->SetBinContent(60,38);
   ResoRow03->SetBinContent(61,35);
   ResoRow03->SetBinContent(62,26);
   ResoRow03->SetBinContent(63,32);
   ResoRow03->SetBinContent(64,17);
   ResoRow03->SetBinContent(65,18);
   ResoRow03->SetBinContent(66,25);
   ResoRow03->SetBinContent(67,17);
   ResoRow03->SetBinContent(68,13);
   ResoRow03->SetBinContent(69,9);
   ResoRow03->SetBinContent(70,12);
   ResoRow03->SetBinContent(71,13);
   ResoRow03->SetBinContent(72,7);
   ResoRow03->SetBinContent(73,8);
   ResoRow03->SetBinContent(74,4);
   ResoRow03->SetBinContent(75,4);
   ResoRow03->SetBinContent(76,7);
   ResoRow03->SetBinContent(77,4);
   ResoRow03->SetBinContent(78,2);
   ResoRow03->SetBinContent(79,1);
   ResoRow03->SetBinContent(80,3);
   ResoRow03->SetBinContent(82,3);
   ResoRow03->SetBinContent(83,2);
   ResoRow03->SetBinContent(84,1);
   ResoRow03->SetBinContent(86,2);
   ResoRow03->SetBinContent(87,1);
   ResoRow03->SetBinContent(89,1);
   ResoRow03->SetBinContent(90,1);
   ResoRow03->SetBinContent(91,1);
   ResoRow03->SetBinContent(92,1);
   ResoRow03->SetBinContent(93,1);
   ResoRow03->SetBinContent(97,1);
   ResoRow03->SetBinContent(98,1);
   ResoRow03->SetBinContent(101,23);
   ResoRow03->SetEntries(1627);
   
   TF1 *ResoRowFit03 = new TF1("ResoRowFit03","gaus",-1,1);
   ResoRowFit03->SetFillColor(19);
   ResoRowFit03->SetFillStyle(0);
   ResoRowFit03->SetLineWidth(3);
   ResoRowFit03->SetChisquare(88.11724);
   ResoRowFit03->SetNDF(82);
   ResoRowFit03->SetParameter(0,54.87579);
   ResoRowFit03->SetParError(0,1.936247);
   ResoRowFit03->SetParLimits(0,0,0);
   ResoRowFit03->SetParameter(1,0.0008672299);
   ResoRowFit03->SetParError(1,0.005785069);
   ResoRowFit03->SetParLimits(1,0,0);
   ResoRowFit03->SetParameter(2,0.2190503);
   ResoRowFit03->SetParError(2,0.005363555);
   ResoRowFit03->SetParLimits(2,0,2.417947);
   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 = 1627   ");
   text = ptstats->AddText("Mean  = -0.002814");
   text = ptstats->AddText("RMS   = 0.2418");
   text = ptstats->AddText("#chi^{2} / ndf = 88.12 / 82");
   text = ptstats->AddText("Constant = 54.88 #pm 1.94 ");
   text = ptstats->AddText("Mean     = 0.0008672 #pm 0.0057851 ");
   text = ptstats->AddText("Sigma    = 0.2191 #pm 0.0054 ");
   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,-9.84375,1.25,88.59375);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow04 = new TH1F("ResoRow04","",100,-1,1);
   ResoRow04->SetBinContent(0,11);
   ResoRow04->SetBinContent(2,1);
   ResoRow04->SetBinContent(3,1);
   ResoRow04->SetBinContent(6,1);
   ResoRow04->SetBinContent(8,1);
   ResoRow04->SetBinContent(9,3);
   ResoRow04->SetBinContent(10,2);
   ResoRow04->SetBinContent(11,2);
   ResoRow04->SetBinContent(14,1);
   ResoRow04->SetBinContent(15,2);
   ResoRow04->SetBinContent(16,2);
   ResoRow04->SetBinContent(17,3);
   ResoRow04->SetBinContent(18,1);
   ResoRow04->SetBinContent(19,2);
   ResoRow04->SetBinContent(20,1);
   ResoRow04->SetBinContent(21,4);
   ResoRow04->SetBinContent(22,3);
   ResoRow04->SetBinContent(23,5);
   ResoRow04->SetBinContent(24,7);
   ResoRow04->SetBinContent(25,5);
   ResoRow04->SetBinContent(26,5);
   ResoRow04->SetBinContent(27,11);
   ResoRow04->SetBinContent(28,7);
   ResoRow04->SetBinContent(29,9);
   ResoRow04->SetBinContent(30,7);
   ResoRow04->SetBinContent(31,7);
   ResoRow04->SetBinContent(32,11);
   ResoRow04->SetBinContent(33,11);
   ResoRow04->SetBinContent(34,17);
   ResoRow04->SetBinContent(35,13);
   ResoRow04->SetBinContent(36,14);
   ResoRow04->SetBinContent(37,22);
   ResoRow04->SetBinContent(38,23);
   ResoRow04->SetBinContent(39,34);
   ResoRow04->SetBinContent(40,27);
   ResoRow04->SetBinContent(41,42);
   ResoRow04->SetBinContent(42,43);
   ResoRow04->SetBinContent(43,44);
   ResoRow04->SetBinContent(44,45);
   ResoRow04->SetBinContent(45,49);
   ResoRow04->SetBinContent(46,52);
   ResoRow04->SetBinContent(47,58);
   ResoRow04->SetBinContent(48,75);
   ResoRow04->SetBinContent(49,66);
   ResoRow04->SetBinContent(50,48);
   ResoRow04->SetBinContent(51,57);
   ResoRow04->SetBinContent(52,73);
   ResoRow04->SetBinContent(53,65);
   ResoRow04->SetBinContent(54,60);
   ResoRow04->SetBinContent(55,48);
   ResoRow04->SetBinContent(56,70);
   ResoRow04->SetBinContent(57,52);
   ResoRow04->SetBinContent(58,52);
   ResoRow04->SetBinContent(59,39);
   ResoRow04->SetBinContent(60,39);
   ResoRow04->SetBinContent(61,43);
   ResoRow04->SetBinContent(62,32);
   ResoRow04->SetBinContent(63,32);
   ResoRow04->SetBinContent(64,18);
   ResoRow04->SetBinContent(65,14);
   ResoRow04->SetBinContent(66,13);
   ResoRow04->SetBinContent(67,10);
   ResoRow04->SetBinContent(68,16);
   ResoRow04->SetBinContent(69,7);
   ResoRow04->SetBinContent(70,11);
   ResoRow04->SetBinContent(71,7);
   ResoRow04->SetBinContent(72,1);
   ResoRow04->SetBinContent(73,4);
   ResoRow04->SetBinContent(74,7);
   ResoRow04->SetBinContent(75,4);
   ResoRow04->SetBinContent(76,3);
   ResoRow04->SetBinContent(77,3);
   ResoRow04->SetBinContent(78,5);
   ResoRow04->SetBinContent(79,1);
   ResoRow04->SetBinContent(80,3);
   ResoRow04->SetBinContent(81,3);
   ResoRow04->SetBinContent(82,2);
   ResoRow04->SetBinContent(83,1);
   ResoRow04->SetBinContent(84,2);
   ResoRow04->SetBinContent(87,4);
   ResoRow04->SetBinContent(92,1);
   ResoRow04->SetBinContent(94,1);
   ResoRow04->SetBinContent(96,1);
   ResoRow04->SetBinContent(97,1);
   ResoRow04->SetBinContent(99,1);
   ResoRow04->SetBinContent(100,2);
   ResoRow04->SetBinContent(101,21);
   ResoRow04->SetEntries(1627);
   
   TF1 *ResoRowFit04 = new TF1("ResoRowFit04","gaus",-1,1);
   ResoRowFit04->SetFillColor(19);
   ResoRowFit04->SetFillStyle(0);
   ResoRowFit04->SetLineWidth(3);
   ResoRowFit04->SetChisquare(124.7882);
   ResoRowFit04->SetNDF(82);
   ResoRowFit04->SetParameter(0,61.08751);
   ResoRowFit04->SetParError(0,2.145039);
   ResoRowFit04->SetParLimits(0,0,0);
   ResoRowFit04->SetParameter(1,-0.004953725);
   ResoRowFit04->SetParError(1,0.005197768);
   ResoRowFit04->SetParLimits(1,0,0);
   ResoRowFit04->SetParameter(2,0.1920653);
   ResoRowFit04->SetParError(2,0.004525428);
   ResoRowFit04->SetParLimits(2,0,2.383709);
   ResoRow04->GetListOfFunctions()->Add(ResoRowFit04);
   
   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("ResoRow04");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1627   ");
   text = ptstats->AddText("Mean  = -0.005061");
   text = ptstats->AddText("RMS   = 0.2384");
   text = ptstats->AddText("#chi^{2} / ndf = 124.8 / 82");
   text = ptstats->AddText("Constant = 61.09 #pm 2.15 ");
   text = ptstats->AddText("Mean     = -0.004954 #pm 0.005198 ");
   text = ptstats->AddText("Sigma    = 0.1921 #pm 0.0045 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow04->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow04->GetListOfFunctions());
   ResoRow04->GetXaxis()->SetTitle("residual / mm");
   ResoRow04->GetYaxis()->SetTitle("counts");
   ResoRow04->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,-9.975,1.25,89.775);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow05 = new TH1F("ResoRow05","",100,-1,1);
   ResoRow05->SetBinContent(0,10);
   ResoRow05->SetBinContent(1,1);
   ResoRow05->SetBinContent(4,1);
   ResoRow05->SetBinContent(6,1);
   ResoRow05->SetBinContent(9,2);
   ResoRow05->SetBinContent(12,4);
   ResoRow05->SetBinContent(13,1);
   ResoRow05->SetBinContent(14,1);
   ResoRow05->SetBinContent(15,2);
   ResoRow05->SetBinContent(16,4);
   ResoRow05->SetBinContent(17,2);
   ResoRow05->SetBinContent(18,1);
   ResoRow05->SetBinContent(19,3);
   ResoRow05->SetBinContent(20,2);
   ResoRow05->SetBinContent(21,3);
   ResoRow05->SetBinContent(22,4);
   ResoRow05->SetBinContent(23,1);
   ResoRow05->SetBinContent(24,2);
   ResoRow05->SetBinContent(25,4);
   ResoRow05->SetBinContent(26,7);
   ResoRow05->SetBinContent(27,2);
   ResoRow05->SetBinContent(28,9);
   ResoRow05->SetBinContent(29,11);
   ResoRow05->SetBinContent(30,10);
   ResoRow05->SetBinContent(31,9);
   ResoRow05->SetBinContent(32,10);
   ResoRow05->SetBinContent(33,18);
   ResoRow05->SetBinContent(34,21);
   ResoRow05->SetBinContent(35,20);
   ResoRow05->SetBinContent(36,18);
   ResoRow05->SetBinContent(37,21);
   ResoRow05->SetBinContent(38,29);
   ResoRow05->SetBinContent(39,33);
   ResoRow05->SetBinContent(40,39);
   ResoRow05->SetBinContent(41,41);
   ResoRow05->SetBinContent(42,38);
   ResoRow05->SetBinContent(43,42);
   ResoRow05->SetBinContent(44,46);
   ResoRow05->SetBinContent(45,43);
   ResoRow05->SetBinContent(46,53);
   ResoRow05->SetBinContent(47,64);
   ResoRow05->SetBinContent(48,60);
   ResoRow05->SetBinContent(49,51);
   ResoRow05->SetBinContent(50,68);
   ResoRow05->SetBinContent(51,64);
   ResoRow05->SetBinContent(52,76);
   ResoRow05->SetBinContent(53,53);
   ResoRow05->SetBinContent(54,66);
   ResoRow05->SetBinContent(55,49);
   ResoRow05->SetBinContent(56,53);
   ResoRow05->SetBinContent(57,47);
   ResoRow05->SetBinContent(58,50);
   ResoRow05->SetBinContent(59,36);
   ResoRow05->SetBinContent(60,35);
   ResoRow05->SetBinContent(61,35);
   ResoRow05->SetBinContent(62,29);
   ResoRow05->SetBinContent(63,30);
   ResoRow05->SetBinContent(64,19);
   ResoRow05->SetBinContent(65,22);
   ResoRow05->SetBinContent(66,17);
   ResoRow05->SetBinContent(67,18);
   ResoRow05->SetBinContent(68,17);
   ResoRow05->SetBinContent(69,19);
   ResoRow05->SetBinContent(70,4);
   ResoRow05->SetBinContent(71,7);
   ResoRow05->SetBinContent(72,4);
   ResoRow05->SetBinContent(73,5);
   ResoRow05->SetBinContent(74,2);
   ResoRow05->SetBinContent(75,4);
   ResoRow05->SetBinContent(76,6);
   ResoRow05->SetBinContent(77,5);
   ResoRow05->SetBinContent(78,2);
   ResoRow05->SetBinContent(79,4);
   ResoRow05->SetBinContent(80,3);
   ResoRow05->SetBinContent(81,2);
   ResoRow05->SetBinContent(82,1);
   ResoRow05->SetBinContent(84,3);
   ResoRow05->SetBinContent(85,2);
   ResoRow05->SetBinContent(86,3);
   ResoRow05->SetBinContent(87,1);
   ResoRow05->SetBinContent(95,1);
   ResoRow05->SetBinContent(96,1);
   ResoRow05->SetBinContent(97,1);
   ResoRow05->SetBinContent(98,1);
   ResoRow05->SetBinContent(101,18);
   ResoRow05->SetEntries(1627);
   
   TF1 *ResoRowFit05 = new TF1("ResoRowFit05","gaus",-1,1);
   ResoRowFit05->SetFillColor(19);
   ResoRowFit05->SetFillStyle(0);
   ResoRowFit05->SetLineWidth(3);
   ResoRowFit05->SetChisquare(88.68234);
   ResoRowFit05->SetNDF(80);
   ResoRowFit05->SetParameter(0,58.6937);
   ResoRowFit05->SetParError(0,1.958514);
   ResoRowFit05->SetParLimits(0,0,0);
   ResoRowFit05->SetParameter(1,-0.005995674);
   ResoRowFit05->SetParError(1,0.005307157);
   ResoRowFit05->SetParLimits(1,0,0);
   ResoRowFit05->SetParameter(2,0.2054022);
   ResoRowFit05->SetParError(2,0.004383789);
   ResoRowFit05->SetParLimits(2,0,2.38165);
   ResoRow05->GetListOfFunctions()->Add(ResoRowFit05);
   
   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("ResoRow05");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1627   ");
   text = ptstats->AddText("Mean  = -0.007151");
   text = ptstats->AddText("RMS   = 0.2379");
   text = ptstats->AddText("#chi^{2} / ndf = 88.68 / 80");
   text = ptstats->AddText("Constant = 58.69 #pm 1.96 ");
   text = ptstats->AddText("Mean     = -0.005996 #pm 0.005307 ");
   text = ptstats->AddText("Sigma    = 0.2054 #pm 0.0044 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow05->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow05->GetListOfFunctions());
   ResoRow05->GetXaxis()->SetTitle("residual / mm");
   ResoRow05->GetYaxis()->SetTitle("counts");
   ResoRow05->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,-9.45,1.25,85.05);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow06 = new TH1F("ResoRow06","",100,-1,1);
   ResoRow06->SetBinContent(0,12);
   ResoRow06->SetBinContent(2,1);
   ResoRow06->SetBinContent(4,1);
   ResoRow06->SetBinContent(7,1);
   ResoRow06->SetBinContent(9,1);
   ResoRow06->SetBinContent(10,1);
   ResoRow06->SetBinContent(13,1);
   ResoRow06->SetBinContent(14,1);
   ResoRow06->SetBinContent(15,1);
   ResoRow06->SetBinContent(16,3);
   ResoRow06->SetBinContent(18,1);
   ResoRow06->SetBinContent(19,3);
   ResoRow06->SetBinContent(20,3);
   ResoRow06->SetBinContent(21,7);
   ResoRow06->SetBinContent(22,1);
   ResoRow06->SetBinContent(23,2);
   ResoRow06->SetBinContent(24,4);
   ResoRow06->SetBinContent(25,4);
   ResoRow06->SetBinContent(26,6);
   ResoRow06->SetBinContent(27,9);
   ResoRow06->SetBinContent(28,9);
   ResoRow06->SetBinContent(29,5);
   ResoRow06->SetBinContent(30,8);
   ResoRow06->SetBinContent(31,5);
   ResoRow06->SetBinContent(32,11);
   ResoRow06->SetBinContent(33,19);
   ResoRow06->SetBinContent(34,20);
   ResoRow06->SetBinContent(35,20);
   ResoRow06->SetBinContent(36,22);
   ResoRow06->SetBinContent(37,17);
   ResoRow06->SetBinContent(38,23);
   ResoRow06->SetBinContent(39,43);
   ResoRow06->SetBinContent(40,34);
   ResoRow06->SetBinContent(41,29);
   ResoRow06->SetBinContent(42,51);
   ResoRow06->SetBinContent(43,49);
   ResoRow06->SetBinContent(44,49);
   ResoRow06->SetBinContent(45,50);
   ResoRow06->SetBinContent(46,57);
   ResoRow06->SetBinContent(47,52);
   ResoRow06->SetBinContent(48,66);
   ResoRow06->SetBinContent(49,56);
   ResoRow06->SetBinContent(50,52);
   ResoRow06->SetBinContent(51,63);
   ResoRow06->SetBinContent(52,70);
   ResoRow06->SetBinContent(53,47);
   ResoRow06->SetBinContent(54,72);
   ResoRow06->SetBinContent(55,41);
   ResoRow06->SetBinContent(56,54);
   ResoRow06->SetBinContent(57,47);
   ResoRow06->SetBinContent(58,56);
   ResoRow06->SetBinContent(59,39);
   ResoRow06->SetBinContent(60,36);
   ResoRow06->SetBinContent(61,36);
   ResoRow06->SetBinContent(62,28);
   ResoRow06->SetBinContent(63,29);
   ResoRow06->SetBinContent(64,23);
   ResoRow06->SetBinContent(65,23);
   ResoRow06->SetBinContent(66,16);
   ResoRow06->SetBinContent(67,14);
   ResoRow06->SetBinContent(68,12);
   ResoRow06->SetBinContent(69,9);
   ResoRow06->SetBinContent(70,12);
   ResoRow06->SetBinContent(71,9);
   ResoRow06->SetBinContent(72,10);
   ResoRow06->SetBinContent(73,11);
   ResoRow06->SetBinContent(74,4);
   ResoRow06->SetBinContent(75,2);
   ResoRow06->SetBinContent(76,2);
   ResoRow06->SetBinContent(78,6);
   ResoRow06->SetBinContent(79,1);
   ResoRow06->SetBinContent(80,4);
   ResoRow06->SetBinContent(81,2);
   ResoRow06->SetBinContent(82,1);
   ResoRow06->SetBinContent(83,1);
   ResoRow06->SetBinContent(84,2);
   ResoRow06->SetBinContent(86,1);
   ResoRow06->SetBinContent(89,1);
   ResoRow06->SetBinContent(90,2);
   ResoRow06->SetBinContent(91,1);
   ResoRow06->SetBinContent(93,1);
   ResoRow06->SetBinContent(95,1);
   ResoRow06->SetBinContent(97,2);
   ResoRow06->SetBinContent(101,26);
   ResoRow06->SetEntries(1627);
   
   TF1 *ResoRowFit06 = new TF1("ResoRowFit06","gaus",-1,1);
   ResoRowFit06->SetFillColor(19);
   ResoRowFit06->SetFillStyle(0);
   ResoRowFit06->SetLineWidth(3);
   ResoRowFit06->SetChisquare(87.66469);
   ResoRowFit06->SetNDF(79);
   ResoRowFit06->SetParameter(0,57.38539);
   ResoRowFit06->SetParError(0,1.93478);
   ResoRowFit06->SetParLimits(0,0,0);
   ResoRowFit06->SetParameter(1,-0.001355682);
   ResoRowFit06->SetParError(1,0.00544305);
   ResoRowFit06->SetParLimits(1,0,0);
   ResoRowFit06->SetParameter(2,0.2092005);
   ResoRowFit06->SetParError(2,0.004607769);
   ResoRowFit06->SetParLimits(2,0,2.346073);
   ResoRow06->GetListOfFunctions()->Add(ResoRowFit06);
   
   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("ResoRow06");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1627   ");
   text = ptstats->AddText("Mean  = -0.005575");
   text = ptstats->AddText("RMS   = 0.2347");
   text = ptstats->AddText("#chi^{2} / ndf = 87.66 / 79");
   text = ptstats->AddText("Constant = 57.39 #pm 1.93 ");
   text = ptstats->AddText("Mean     = -0.001356 #pm 0.005443 ");
   text = ptstats->AddText("Sigma    = 0.2092 #pm 0.0046 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow06->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow06->GetListOfFunctions());
   ResoRow06->GetXaxis()->SetTitle("residual / mm");
   ResoRow06->GetYaxis()->SetTitle("counts");
   ResoRow06->Draw("");
   c2_6->Modified();
   c2->cd();
   c2->Modified();
   c2->cd();
   c2->SetSelected(c2);
}
