{
//=========Macro generated from canvas: c2/
//=========  (Tue Jun  8 10:31:42 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,-6.0375,1.25,54.3375);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow01 = new TH1F("ResoRow01","",100,-1,1);
   ResoRow01->SetBinContent(0,42);
   ResoRow01->SetBinContent(1,5);
   ResoRow01->SetBinContent(2,3);
   ResoRow01->SetBinContent(3,1);
   ResoRow01->SetBinContent(4,3);
   ResoRow01->SetBinContent(5,1);
   ResoRow01->SetBinContent(6,3);
   ResoRow01->SetBinContent(7,4);
   ResoRow01->SetBinContent(8,4);
   ResoRow01->SetBinContent(9,2);
   ResoRow01->SetBinContent(10,8);
   ResoRow01->SetBinContent(11,10);
   ResoRow01->SetBinContent(12,6);
   ResoRow01->SetBinContent(13,5);
   ResoRow01->SetBinContent(14,7);
   ResoRow01->SetBinContent(15,6);
   ResoRow01->SetBinContent(16,8);
   ResoRow01->SetBinContent(17,7);
   ResoRow01->SetBinContent(18,14);
   ResoRow01->SetBinContent(19,4);
   ResoRow01->SetBinContent(20,8);
   ResoRow01->SetBinContent(21,19);
   ResoRow01->SetBinContent(22,12);
   ResoRow01->SetBinContent(23,8);
   ResoRow01->SetBinContent(24,9);
   ResoRow01->SetBinContent(25,22);
   ResoRow01->SetBinContent(26,14);
   ResoRow01->SetBinContent(27,14);
   ResoRow01->SetBinContent(28,21);
   ResoRow01->SetBinContent(29,10);
   ResoRow01->SetBinContent(30,13);
   ResoRow01->SetBinContent(31,17);
   ResoRow01->SetBinContent(32,17);
   ResoRow01->SetBinContent(33,12);
   ResoRow01->SetBinContent(34,23);
   ResoRow01->SetBinContent(35,26);
   ResoRow01->SetBinContent(36,18);
   ResoRow01->SetBinContent(37,18);
   ResoRow01->SetBinContent(38,19);
   ResoRow01->SetBinContent(39,24);
   ResoRow01->SetBinContent(40,26);
   ResoRow01->SetBinContent(41,23);
   ResoRow01->SetBinContent(42,25);
   ResoRow01->SetBinContent(43,19);
   ResoRow01->SetBinContent(44,30);
   ResoRow01->SetBinContent(45,26);
   ResoRow01->SetBinContent(46,29);
   ResoRow01->SetBinContent(47,38);
   ResoRow01->SetBinContent(48,37);
   ResoRow01->SetBinContent(49,19);
   ResoRow01->SetBinContent(50,31);
   ResoRow01->SetBinContent(51,31);
   ResoRow01->SetBinContent(52,24);
   ResoRow01->SetBinContent(53,46);
   ResoRow01->SetBinContent(54,28);
   ResoRow01->SetBinContent(55,31);
   ResoRow01->SetBinContent(56,34);
   ResoRow01->SetBinContent(57,29);
   ResoRow01->SetBinContent(58,25);
   ResoRow01->SetBinContent(59,17);
   ResoRow01->SetBinContent(60,18);
   ResoRow01->SetBinContent(61,24);
   ResoRow01->SetBinContent(62,18);
   ResoRow01->SetBinContent(63,23);
   ResoRow01->SetBinContent(64,19);
   ResoRow01->SetBinContent(65,33);
   ResoRow01->SetBinContent(66,16);
   ResoRow01->SetBinContent(67,20);
   ResoRow01->SetBinContent(68,18);
   ResoRow01->SetBinContent(69,19);
   ResoRow01->SetBinContent(70,17);
   ResoRow01->SetBinContent(71,14);
   ResoRow01->SetBinContent(72,24);
   ResoRow01->SetBinContent(73,10);
   ResoRow01->SetBinContent(74,17);
   ResoRow01->SetBinContent(75,8);
   ResoRow01->SetBinContent(76,8);
   ResoRow01->SetBinContent(77,13);
   ResoRow01->SetBinContent(78,6);
   ResoRow01->SetBinContent(79,9);
   ResoRow01->SetBinContent(80,13);
   ResoRow01->SetBinContent(81,5);
   ResoRow01->SetBinContent(82,12);
   ResoRow01->SetBinContent(83,10);
   ResoRow01->SetBinContent(84,7);
   ResoRow01->SetBinContent(85,5);
   ResoRow01->SetBinContent(86,5);
   ResoRow01->SetBinContent(87,3);
   ResoRow01->SetBinContent(88,8);
   ResoRow01->SetBinContent(89,2);
   ResoRow01->SetBinContent(90,6);
   ResoRow01->SetBinContent(91,5);
   ResoRow01->SetBinContent(92,3);
   ResoRow01->SetBinContent(93,5);
   ResoRow01->SetBinContent(94,7);
   ResoRow01->SetBinContent(95,5);
   ResoRow01->SetBinContent(96,1);
   ResoRow01->SetBinContent(97,7);
   ResoRow01->SetBinContent(98,7);
   ResoRow01->SetBinContent(99,4);
   ResoRow01->SetBinContent(100,2);
   ResoRow01->SetBinContent(101,46);
   ResoRow01->SetEntries(1537);
   
   TF1 *ResoRowFit01 = new TF1("ResoRowFit01","gaus",-1,1);
   ResoRowFit01->SetFillColor(19);
   ResoRowFit01->SetFillStyle(0);
   ResoRowFit01->SetLineWidth(3);
   ResoRowFit01->SetChisquare(126.7772);
   ResoRowFit01->SetNDF(97);
   ResoRowFit01->SetParameter(0,26.42286);
   ResoRowFit01->SetParError(0,0.9584406);
   ResoRowFit01->SetParLimits(0,0,0);
   ResoRowFit01->SetParameter(1,-0.01064528);
   ResoRowFit01->SetParError(1,0.01169699);
   ResoRowFit01->SetParLimits(1,0,0);
   ResoRowFit01->SetParameter(2,0.404734);
   ResoRowFit01->SetParError(2,0.01056777);
   ResoRowFit01->SetParLimits(2,0,4.063025);
   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 = 1537   ");
   text = ptstats->AddText("Mean  = -0.005195");
   text = ptstats->AddText("RMS   = 0.4062");
   text = ptstats->AddText("#chi^{2} / ndf = 126.8 / 97");
   text = ptstats->AddText("Constant = 26.42 #pm 0.96 ");
   text = ptstats->AddText("Mean     = -0.01065 #pm 0.01170 ");
   text = ptstats->AddText("Sigma    = 0.4047 #pm 0.0106 ");
   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,-4.9875,1.25,44.8875);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow02 = new TH1F("ResoRow02","",100,-1,1);
   ResoRow02->SetBinContent(0,32);
   ResoRow02->SetBinContent(1,4);
   ResoRow02->SetBinContent(2,3);
   ResoRow02->SetBinContent(3,4);
   ResoRow02->SetBinContent(4,4);
   ResoRow02->SetBinContent(5,3);
   ResoRow02->SetBinContent(6,1);
   ResoRow02->SetBinContent(7,5);
   ResoRow02->SetBinContent(8,3);
   ResoRow02->SetBinContent(9,4);
   ResoRow02->SetBinContent(10,1);
   ResoRow02->SetBinContent(11,6);
   ResoRow02->SetBinContent(12,7);
   ResoRow02->SetBinContent(13,3);
   ResoRow02->SetBinContent(14,4);
   ResoRow02->SetBinContent(15,8);
   ResoRow02->SetBinContent(16,9);
   ResoRow02->SetBinContent(17,10);
   ResoRow02->SetBinContent(18,3);
   ResoRow02->SetBinContent(19,6);
   ResoRow02->SetBinContent(20,10);
   ResoRow02->SetBinContent(21,6);
   ResoRow02->SetBinContent(22,11);
   ResoRow02->SetBinContent(23,12);
   ResoRow02->SetBinContent(24,8);
   ResoRow02->SetBinContent(25,14);
   ResoRow02->SetBinContent(26,9);
   ResoRow02->SetBinContent(27,9);
   ResoRow02->SetBinContent(28,14);
   ResoRow02->SetBinContent(29,17);
   ResoRow02->SetBinContent(30,13);
   ResoRow02->SetBinContent(31,16);
   ResoRow02->SetBinContent(32,23);
   ResoRow02->SetBinContent(33,25);
   ResoRow02->SetBinContent(34,26);
   ResoRow02->SetBinContent(35,18);
   ResoRow02->SetBinContent(36,21);
   ResoRow02->SetBinContent(37,17);
   ResoRow02->SetBinContent(38,23);
   ResoRow02->SetBinContent(39,28);
   ResoRow02->SetBinContent(40,37);
   ResoRow02->SetBinContent(41,23);
   ResoRow02->SetBinContent(42,24);
   ResoRow02->SetBinContent(43,26);
   ResoRow02->SetBinContent(44,27);
   ResoRow02->SetBinContent(45,26);
   ResoRow02->SetBinContent(46,28);
   ResoRow02->SetBinContent(47,30);
   ResoRow02->SetBinContent(48,28);
   ResoRow02->SetBinContent(49,36);
   ResoRow02->SetBinContent(50,20);
   ResoRow02->SetBinContent(51,31);
   ResoRow02->SetBinContent(52,38);
   ResoRow02->SetBinContent(53,36);
   ResoRow02->SetBinContent(54,38);
   ResoRow02->SetBinContent(55,35);
   ResoRow02->SetBinContent(56,30);
   ResoRow02->SetBinContent(57,36);
   ResoRow02->SetBinContent(58,32);
   ResoRow02->SetBinContent(59,19);
   ResoRow02->SetBinContent(60,30);
   ResoRow02->SetBinContent(61,30);
   ResoRow02->SetBinContent(62,21);
   ResoRow02->SetBinContent(63,18);
   ResoRow02->SetBinContent(64,17);
   ResoRow02->SetBinContent(65,20);
   ResoRow02->SetBinContent(66,24);
   ResoRow02->SetBinContent(67,18);
   ResoRow02->SetBinContent(68,24);
   ResoRow02->SetBinContent(69,22);
   ResoRow02->SetBinContent(70,15);
   ResoRow02->SetBinContent(71,18);
   ResoRow02->SetBinContent(72,12);
   ResoRow02->SetBinContent(73,15);
   ResoRow02->SetBinContent(74,12);
   ResoRow02->SetBinContent(75,11);
   ResoRow02->SetBinContent(76,17);
   ResoRow02->SetBinContent(77,8);
   ResoRow02->SetBinContent(78,6);
   ResoRow02->SetBinContent(79,7);
   ResoRow02->SetBinContent(80,4);
   ResoRow02->SetBinContent(81,11);
   ResoRow02->SetBinContent(82,9);
   ResoRow02->SetBinContent(83,4);
   ResoRow02->SetBinContent(84,10);
   ResoRow02->SetBinContent(85,13);
   ResoRow02->SetBinContent(86,2);
   ResoRow02->SetBinContent(87,4);
   ResoRow02->SetBinContent(88,6);
   ResoRow02->SetBinContent(89,3);
   ResoRow02->SetBinContent(90,4);
   ResoRow02->SetBinContent(91,5);
   ResoRow02->SetBinContent(92,3);
   ResoRow02->SetBinContent(93,3);
   ResoRow02->SetBinContent(94,3);
   ResoRow02->SetBinContent(95,4);
   ResoRow02->SetBinContent(96,5);
   ResoRow02->SetBinContent(97,3);
   ResoRow02->SetBinContent(98,1);
   ResoRow02->SetBinContent(99,3);
   ResoRow02->SetBinContent(100,2);
   ResoRow02->SetBinContent(101,50);
   ResoRow02->SetEntries(1537);
   
   TF1 *ResoRowFit02 = new TF1("ResoRowFit02","gaus",-1,1);
   ResoRowFit02->SetFillColor(19);
   ResoRowFit02->SetFillStyle(0);
   ResoRowFit02->SetLineWidth(3);
   ResoRowFit02->SetChisquare(107.032);
   ResoRowFit02->SetNDF(97);
   ResoRowFit02->SetParameter(0,29.14052);
   ResoRowFit02->SetParError(0,1.053145);
   ResoRowFit02->SetParLimits(0,0,0);
   ResoRowFit02->SetParameter(1,-0.003211324);
   ResoRowFit02->SetParError(1,0.0104324);
   ResoRowFit02->SetParLimits(1,0,0);
   ResoRowFit02->SetParameter(2,0.3717353);
   ResoRowFit02->SetParError(2,0.009370277);
   ResoRowFit02->SetParLimits(2,0,3.841877);
   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 = 1537   ");
   text = ptstats->AddText("Mean  = -0.003706");
   text = ptstats->AddText("RMS   = 0.3843");
   text = ptstats->AddText("#chi^{2} / ndf =   107 / 97");
   text = ptstats->AddText("Constant = 29.14 #pm 1.05 ");
   text = ptstats->AddText("Mean     = -0.003211 #pm 0.010432 ");
   text = ptstats->AddText("Sigma    = 0.3717 #pm 0.0094 ");
   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,-5.38125,1.25,48.43125);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow03 = new TH1F("ResoRow03","",100,-1,1);
   ResoRow03->SetBinContent(0,53);
   ResoRow03->SetBinContent(1,4);
   ResoRow03->SetBinContent(2,2);
   ResoRow03->SetBinContent(3,4);
   ResoRow03->SetBinContent(5,3);
   ResoRow03->SetBinContent(6,3);
   ResoRow03->SetBinContent(7,3);
   ResoRow03->SetBinContent(8,3);
   ResoRow03->SetBinContent(9,6);
   ResoRow03->SetBinContent(10,4);
   ResoRow03->SetBinContent(11,6);
   ResoRow03->SetBinContent(12,4);
   ResoRow03->SetBinContent(13,5);
   ResoRow03->SetBinContent(14,7);
   ResoRow03->SetBinContent(15,9);
   ResoRow03->SetBinContent(16,9);
   ResoRow03->SetBinContent(17,11);
   ResoRow03->SetBinContent(18,8);
   ResoRow03->SetBinContent(19,8);
   ResoRow03->SetBinContent(20,6);
   ResoRow03->SetBinContent(21,6);
   ResoRow03->SetBinContent(22,8);
   ResoRow03->SetBinContent(23,9);
   ResoRow03->SetBinContent(24,8);
   ResoRow03->SetBinContent(25,10);
   ResoRow03->SetBinContent(26,13);
   ResoRow03->SetBinContent(27,15);
   ResoRow03->SetBinContent(28,18);
   ResoRow03->SetBinContent(29,11);
   ResoRow03->SetBinContent(30,12);
   ResoRow03->SetBinContent(31,19);
   ResoRow03->SetBinContent(32,18);
   ResoRow03->SetBinContent(33,17);
   ResoRow03->SetBinContent(34,17);
   ResoRow03->SetBinContent(35,19);
   ResoRow03->SetBinContent(36,30);
   ResoRow03->SetBinContent(37,23);
   ResoRow03->SetBinContent(38,29);
   ResoRow03->SetBinContent(39,28);
   ResoRow03->SetBinContent(40,27);
   ResoRow03->SetBinContent(41,31);
   ResoRow03->SetBinContent(42,24);
   ResoRow03->SetBinContent(43,28);
   ResoRow03->SetBinContent(44,29);
   ResoRow03->SetBinContent(45,36);
   ResoRow03->SetBinContent(46,35);
   ResoRow03->SetBinContent(47,25);
   ResoRow03->SetBinContent(48,26);
   ResoRow03->SetBinContent(49,31);
   ResoRow03->SetBinContent(50,41);
   ResoRow03->SetBinContent(51,21);
   ResoRow03->SetBinContent(52,31);
   ResoRow03->SetBinContent(53,26);
   ResoRow03->SetBinContent(54,31);
   ResoRow03->SetBinContent(55,17);
   ResoRow03->SetBinContent(56,35);
   ResoRow03->SetBinContent(57,30);
   ResoRow03->SetBinContent(58,35);
   ResoRow03->SetBinContent(59,35);
   ResoRow03->SetBinContent(60,21);
   ResoRow03->SetBinContent(61,30);
   ResoRow03->SetBinContent(62,18);
   ResoRow03->SetBinContent(63,21);
   ResoRow03->SetBinContent(64,22);
   ResoRow03->SetBinContent(65,23);
   ResoRow03->SetBinContent(66,20);
   ResoRow03->SetBinContent(67,20);
   ResoRow03->SetBinContent(68,17);
   ResoRow03->SetBinContent(69,19);
   ResoRow03->SetBinContent(70,14);
   ResoRow03->SetBinContent(71,10);
   ResoRow03->SetBinContent(72,16);
   ResoRow03->SetBinContent(73,11);
   ResoRow03->SetBinContent(74,11);
   ResoRow03->SetBinContent(75,9);
   ResoRow03->SetBinContent(76,9);
   ResoRow03->SetBinContent(77,15);
   ResoRow03->SetBinContent(78,4);
   ResoRow03->SetBinContent(79,7);
   ResoRow03->SetBinContent(80,9);
   ResoRow03->SetBinContent(81,11);
   ResoRow03->SetBinContent(82,8);
   ResoRow03->SetBinContent(83,6);
   ResoRow03->SetBinContent(84,3);
   ResoRow03->SetBinContent(85,9);
   ResoRow03->SetBinContent(86,8);
   ResoRow03->SetBinContent(87,5);
   ResoRow03->SetBinContent(88,6);
   ResoRow03->SetBinContent(89,4);
   ResoRow03->SetBinContent(90,5);
   ResoRow03->SetBinContent(91,8);
   ResoRow03->SetBinContent(92,6);
   ResoRow03->SetBinContent(93,3);
   ResoRow03->SetBinContent(94,6);
   ResoRow03->SetBinContent(95,6);
   ResoRow03->SetBinContent(97,2);
   ResoRow03->SetBinContent(98,1);
   ResoRow03->SetBinContent(100,1);
   ResoRow03->SetBinContent(101,51);
   ResoRow03->SetEntries(1537);
   
   TF1 *ResoRowFit03 = new TF1("ResoRowFit03","gaus",-1,1);
   ResoRowFit03->SetFillColor(19);
   ResoRowFit03->SetFillStyle(0);
   ResoRowFit03->SetLineWidth(3);
   ResoRowFit03->SetChisquare(92.66157);
   ResoRowFit03->SetNDF(94);
   ResoRowFit03->SetParameter(0,27.72142);
   ResoRowFit03->SetParError(0,1.035579);
   ResoRowFit03->SetParLimits(0,0,0);
   ResoRowFit03->SetParameter(1,-0.01987954);
   ResoRowFit03->SetParError(1,0.01124001);
   ResoRowFit03->SetParLimits(1,0,0);
   ResoRowFit03->SetParameter(2,0.391296);
   ResoRowFit03->SetParError(2,0.0110232);
   ResoRowFit03->SetParLimits(2,0,3.851197);
   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 = 1537   ");
   text = ptstats->AddText("Mean  = -0.01156");
   text = ptstats->AddText("RMS   = 0.3851");
   text = ptstats->AddText("#chi^{2} / ndf = 92.66 / 94");
   text = ptstats->AddText("Constant = 27.72 #pm 1.04 ");
   text = ptstats->AddText("Mean     = -0.01988 #pm 0.01124 ");
   text = ptstats->AddText("Sigma    = 0.3913 #pm 0.0110 ");
   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,-5.11875,1.25,46.06875);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow04 = new TH1F("ResoRow04","",100,-1,1);
   ResoRow04->SetBinContent(0,44);
   ResoRow04->SetBinContent(1,2);
   ResoRow04->SetBinContent(2,2);
   ResoRow04->SetBinContent(3,5);
   ResoRow04->SetBinContent(4,1);
   ResoRow04->SetBinContent(5,5);
   ResoRow04->SetBinContent(6,1);
   ResoRow04->SetBinContent(7,9);
   ResoRow04->SetBinContent(8,4);
   ResoRow04->SetBinContent(9,2);
   ResoRow04->SetBinContent(10,3);
   ResoRow04->SetBinContent(11,4);
   ResoRow04->SetBinContent(12,7);
   ResoRow04->SetBinContent(13,6);
   ResoRow04->SetBinContent(14,9);
   ResoRow04->SetBinContent(15,7);
   ResoRow04->SetBinContent(16,8);
   ResoRow04->SetBinContent(17,9);
   ResoRow04->SetBinContent(18,7);
   ResoRow04->SetBinContent(19,9);
   ResoRow04->SetBinContent(20,11);
   ResoRow04->SetBinContent(21,12);
   ResoRow04->SetBinContent(22,9);
   ResoRow04->SetBinContent(23,13);
   ResoRow04->SetBinContent(24,7);
   ResoRow04->SetBinContent(25,11);
   ResoRow04->SetBinContent(26,10);
   ResoRow04->SetBinContent(27,13);
   ResoRow04->SetBinContent(28,16);
   ResoRow04->SetBinContent(29,12);
   ResoRow04->SetBinContent(30,13);
   ResoRow04->SetBinContent(31,19);
   ResoRow04->SetBinContent(32,17);
   ResoRow04->SetBinContent(33,19);
   ResoRow04->SetBinContent(34,19);
   ResoRow04->SetBinContent(35,20);
   ResoRow04->SetBinContent(36,15);
   ResoRow04->SetBinContent(37,32);
   ResoRow04->SetBinContent(38,29);
   ResoRow04->SetBinContent(39,28);
   ResoRow04->SetBinContent(40,28);
   ResoRow04->SetBinContent(41,30);
   ResoRow04->SetBinContent(42,19);
   ResoRow04->SetBinContent(43,26);
   ResoRow04->SetBinContent(44,31);
   ResoRow04->SetBinContent(45,31);
   ResoRow04->SetBinContent(46,39);
   ResoRow04->SetBinContent(47,34);
   ResoRow04->SetBinContent(48,33);
   ResoRow04->SetBinContent(49,22);
   ResoRow04->SetBinContent(50,39);
   ResoRow04->SetBinContent(51,30);
   ResoRow04->SetBinContent(52,30);
   ResoRow04->SetBinContent(53,30);
   ResoRow04->SetBinContent(54,30);
   ResoRow04->SetBinContent(55,30);
   ResoRow04->SetBinContent(56,22);
   ResoRow04->SetBinContent(57,22);
   ResoRow04->SetBinContent(58,22);
   ResoRow04->SetBinContent(59,20);
   ResoRow04->SetBinContent(60,30);
   ResoRow04->SetBinContent(61,28);
   ResoRow04->SetBinContent(62,30);
   ResoRow04->SetBinContent(63,20);
   ResoRow04->SetBinContent(64,27);
   ResoRow04->SetBinContent(65,18);
   ResoRow04->SetBinContent(66,16);
   ResoRow04->SetBinContent(67,19);
   ResoRow04->SetBinContent(68,16);
   ResoRow04->SetBinContent(69,10);
   ResoRow04->SetBinContent(70,19);
   ResoRow04->SetBinContent(71,15);
   ResoRow04->SetBinContent(72,19);
   ResoRow04->SetBinContent(73,9);
   ResoRow04->SetBinContent(74,10);
   ResoRow04->SetBinContent(75,15);
   ResoRow04->SetBinContent(76,10);
   ResoRow04->SetBinContent(77,10);
   ResoRow04->SetBinContent(78,9);
   ResoRow04->SetBinContent(79,8);
   ResoRow04->SetBinContent(80,13);
   ResoRow04->SetBinContent(81,9);
   ResoRow04->SetBinContent(82,5);
   ResoRow04->SetBinContent(83,11);
   ResoRow04->SetBinContent(84,7);
   ResoRow04->SetBinContent(85,2);
   ResoRow04->SetBinContent(86,10);
   ResoRow04->SetBinContent(87,9);
   ResoRow04->SetBinContent(88,6);
   ResoRow04->SetBinContent(89,1);
   ResoRow04->SetBinContent(90,3);
   ResoRow04->SetBinContent(91,5);
   ResoRow04->SetBinContent(92,6);
   ResoRow04->SetBinContent(93,2);
   ResoRow04->SetBinContent(94,3);
   ResoRow04->SetBinContent(95,4);
   ResoRow04->SetBinContent(96,6);
   ResoRow04->SetBinContent(97,7);
   ResoRow04->SetBinContent(98,3);
   ResoRow04->SetBinContent(99,2);
   ResoRow04->SetBinContent(100,3);
   ResoRow04->SetBinContent(101,45);
   ResoRow04->SetEntries(1537);
   
   TF1 *ResoRowFit04 = new TF1("ResoRowFit04","gaus",-1,1);
   ResoRowFit04->SetFillColor(19);
   ResoRowFit04->SetFillStyle(0);
   ResoRowFit04->SetLineWidth(3);
   ResoRowFit04->SetChisquare(106.4982);
   ResoRowFit04->SetNDF(97);
   ResoRowFit04->SetParameter(0,27.90158);
   ResoRowFit04->SetParError(0,1.006009);
   ResoRowFit04->SetParLimits(0,0,0);
   ResoRowFit04->SetParameter(1,-0.02231343);
   ResoRowFit04->SetParError(1,0.01099918);
   ResoRowFit04->SetParLimits(1,0,0);
   ResoRowFit04->SetParameter(2,0.3874855);
   ResoRowFit04->SetParError(2,0.009859696);
   ResoRowFit04->SetParLimits(2,0,3.970051);
   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 = 1537   ");
   text = ptstats->AddText("Mean  = -0.009578");
   text = ptstats->AddText("RMS   =  0.397");
   text = ptstats->AddText("#chi^{2} / ndf = 106.5 / 97");
   text = ptstats->AddText("Constant =  27.9 #pm 1.0 ");
   text = ptstats->AddText("Mean     = -0.02231 #pm 0.01100 ");
   text = ptstats->AddText("Sigma    = 0.3875 #pm 0.0099 ");
   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,-6.0375,1.25,54.3375);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow05 = new TH1F("ResoRow05","",100,-1,1);
   ResoRow05->SetBinContent(0,41);
   ResoRow05->SetBinContent(1,2);
   ResoRow05->SetBinContent(2,3);
   ResoRow05->SetBinContent(3,1);
   ResoRow05->SetBinContent(4,2);
   ResoRow05->SetBinContent(5,6);
   ResoRow05->SetBinContent(6,5);
   ResoRow05->SetBinContent(7,5);
   ResoRow05->SetBinContent(8,6);
   ResoRow05->SetBinContent(9,3);
   ResoRow05->SetBinContent(10,7);
   ResoRow05->SetBinContent(11,5);
   ResoRow05->SetBinContent(12,5);
   ResoRow05->SetBinContent(13,4);
   ResoRow05->SetBinContent(14,5);
   ResoRow05->SetBinContent(15,3);
   ResoRow05->SetBinContent(16,9);
   ResoRow05->SetBinContent(17,4);
   ResoRow05->SetBinContent(18,13);
   ResoRow05->SetBinContent(19,5);
   ResoRow05->SetBinContent(20,8);
   ResoRow05->SetBinContent(21,11);
   ResoRow05->SetBinContent(22,12);
   ResoRow05->SetBinContent(23,15);
   ResoRow05->SetBinContent(24,15);
   ResoRow05->SetBinContent(25,12);
   ResoRow05->SetBinContent(26,19);
   ResoRow05->SetBinContent(27,9);
   ResoRow05->SetBinContent(28,10);
   ResoRow05->SetBinContent(29,14);
   ResoRow05->SetBinContent(30,20);
   ResoRow05->SetBinContent(31,10);
   ResoRow05->SetBinContent(32,24);
   ResoRow05->SetBinContent(33,21);
   ResoRow05->SetBinContent(34,15);
   ResoRow05->SetBinContent(35,21);
   ResoRow05->SetBinContent(36,21);
   ResoRow05->SetBinContent(37,14);
   ResoRow05->SetBinContent(38,29);
   ResoRow05->SetBinContent(39,18);
   ResoRow05->SetBinContent(40,19);
   ResoRow05->SetBinContent(41,29);
   ResoRow05->SetBinContent(42,32);
   ResoRow05->SetBinContent(43,33);
   ResoRow05->SetBinContent(44,46);
   ResoRow05->SetBinContent(45,27);
   ResoRow05->SetBinContent(46,24);
   ResoRow05->SetBinContent(47,26);
   ResoRow05->SetBinContent(48,27);
   ResoRow05->SetBinContent(49,30);
   ResoRow05->SetBinContent(50,30);
   ResoRow05->SetBinContent(51,23);
   ResoRow05->SetBinContent(52,23);
   ResoRow05->SetBinContent(53,25);
   ResoRow05->SetBinContent(54,39);
   ResoRow05->SetBinContent(55,27);
   ResoRow05->SetBinContent(56,25);
   ResoRow05->SetBinContent(57,31);
   ResoRow05->SetBinContent(58,30);
   ResoRow05->SetBinContent(59,31);
   ResoRow05->SetBinContent(60,29);
   ResoRow05->SetBinContent(61,22);
   ResoRow05->SetBinContent(62,16);
   ResoRow05->SetBinContent(63,20);
   ResoRow05->SetBinContent(64,37);
   ResoRow05->SetBinContent(65,18);
   ResoRow05->SetBinContent(66,19);
   ResoRow05->SetBinContent(67,21);
   ResoRow05->SetBinContent(68,22);
   ResoRow05->SetBinContent(69,14);
   ResoRow05->SetBinContent(70,15);
   ResoRow05->SetBinContent(71,25);
   ResoRow05->SetBinContent(72,13);
   ResoRow05->SetBinContent(73,14);
   ResoRow05->SetBinContent(74,20);
   ResoRow05->SetBinContent(75,11);
   ResoRow05->SetBinContent(76,8);
   ResoRow05->SetBinContent(77,13);
   ResoRow05->SetBinContent(78,18);
   ResoRow05->SetBinContent(79,16);
   ResoRow05->SetBinContent(80,6);
   ResoRow05->SetBinContent(81,10);
   ResoRow05->SetBinContent(82,9);
   ResoRow05->SetBinContent(83,7);
   ResoRow05->SetBinContent(84,8);
   ResoRow05->SetBinContent(85,4);
   ResoRow05->SetBinContent(86,6);
   ResoRow05->SetBinContent(87,4);
   ResoRow05->SetBinContent(88,6);
   ResoRow05->SetBinContent(89,2);
   ResoRow05->SetBinContent(90,3);
   ResoRow05->SetBinContent(91,5);
   ResoRow05->SetBinContent(92,3);
   ResoRow05->SetBinContent(93,7);
   ResoRow05->SetBinContent(94,1);
   ResoRow05->SetBinContent(95,5);
   ResoRow05->SetBinContent(96,2);
   ResoRow05->SetBinContent(97,2);
   ResoRow05->SetBinContent(98,3);
   ResoRow05->SetBinContent(99,3);
   ResoRow05->SetBinContent(101,41);
   ResoRow05->SetEntries(1537);
   
   TF1 *ResoRowFit05 = new TF1("ResoRowFit05","gaus",-1,1);
   ResoRowFit05->SetFillColor(19);
   ResoRowFit05->SetFillStyle(0);
   ResoRowFit05->SetLineWidth(3);
   ResoRowFit05->SetChisquare(110.3432);
   ResoRowFit05->SetNDF(96);
   ResoRowFit05->SetParameter(0,27.33351);
   ResoRowFit05->SetParError(0,0.9724915);
   ResoRowFit05->SetParLimits(0,0,0);
   ResoRowFit05->SetParameter(1,-0.0002163128);
   ResoRowFit05->SetParError(1,0.01140971);
   ResoRowFit05->SetParLimits(1,0,0);
   ResoRowFit05->SetParameter(2,0.3976017);
   ResoRowFit05->SetParError(2,0.009986286);
   ResoRowFit05->SetParLimits(2,0,3.927948);
   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 = 1537   ");
   text = ptstats->AddText("Mean  = -0.004347");
   text = ptstats->AddText("RMS   = 0.3927");
   text = ptstats->AddText("#chi^{2} / ndf = 110.3 / 96");
   text = ptstats->AddText("Constant = 27.33 #pm 0.97 ");
   text = ptstats->AddText("Mean     = -0.0002163 #pm 0.0114097 ");
   text = ptstats->AddText("Sigma    = 0.3976 #pm 0.0100 ");
   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,-5.38125,1.25,48.43125);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow06 = new TH1F("ResoRow06","",100,-1,1);
   ResoRow06->SetBinContent(0,38);
   ResoRow06->SetBinContent(1,2);
   ResoRow06->SetBinContent(2,6);
   ResoRow06->SetBinContent(3,4);
   ResoRow06->SetBinContent(4,3);
   ResoRow06->SetBinContent(5,2);
   ResoRow06->SetBinContent(6,3);
   ResoRow06->SetBinContent(7,4);
   ResoRow06->SetBinContent(8,4);
   ResoRow06->SetBinContent(9,6);
   ResoRow06->SetBinContent(10,3);
   ResoRow06->SetBinContent(11,2);
   ResoRow06->SetBinContent(12,9);
   ResoRow06->SetBinContent(13,5);
   ResoRow06->SetBinContent(14,3);
   ResoRow06->SetBinContent(15,6);
   ResoRow06->SetBinContent(16,9);
   ResoRow06->SetBinContent(17,11);
   ResoRow06->SetBinContent(18,3);
   ResoRow06->SetBinContent(19,9);
   ResoRow06->SetBinContent(20,5);
   ResoRow06->SetBinContent(21,8);
   ResoRow06->SetBinContent(22,13);
   ResoRow06->SetBinContent(23,5);
   ResoRow06->SetBinContent(24,10);
   ResoRow06->SetBinContent(25,14);
   ResoRow06->SetBinContent(26,18);
   ResoRow06->SetBinContent(27,22);
   ResoRow06->SetBinContent(28,17);
   ResoRow06->SetBinContent(29,18);
   ResoRow06->SetBinContent(30,21);
   ResoRow06->SetBinContent(31,11);
   ResoRow06->SetBinContent(32,15);
   ResoRow06->SetBinContent(33,16);
   ResoRow06->SetBinContent(34,20);
   ResoRow06->SetBinContent(35,8);
   ResoRow06->SetBinContent(36,30);
   ResoRow06->SetBinContent(37,31);
   ResoRow06->SetBinContent(38,27);
   ResoRow06->SetBinContent(39,15);
   ResoRow06->SetBinContent(40,17);
   ResoRow06->SetBinContent(41,36);
   ResoRow06->SetBinContent(42,23);
   ResoRow06->SetBinContent(43,29);
   ResoRow06->SetBinContent(44,29);
   ResoRow06->SetBinContent(45,27);
   ResoRow06->SetBinContent(46,31);
   ResoRow06->SetBinContent(47,29);
   ResoRow06->SetBinContent(48,23);
   ResoRow06->SetBinContent(49,41);
   ResoRow06->SetBinContent(50,24);
   ResoRow06->SetBinContent(51,40);
   ResoRow06->SetBinContent(52,25);
   ResoRow06->SetBinContent(53,30);
   ResoRow06->SetBinContent(54,31);
   ResoRow06->SetBinContent(55,21);
   ResoRow06->SetBinContent(56,27);
   ResoRow06->SetBinContent(57,26);
   ResoRow06->SetBinContent(58,28);
   ResoRow06->SetBinContent(59,26);
   ResoRow06->SetBinContent(60,24);
   ResoRow06->SetBinContent(61,28);
   ResoRow06->SetBinContent(62,16);
   ResoRow06->SetBinContent(63,29);
   ResoRow06->SetBinContent(64,17);
   ResoRow06->SetBinContent(65,15);
   ResoRow06->SetBinContent(66,24);
   ResoRow06->SetBinContent(67,13);
   ResoRow06->SetBinContent(68,13);
   ResoRow06->SetBinContent(69,14);
   ResoRow06->SetBinContent(70,17);
   ResoRow06->SetBinContent(71,19);
   ResoRow06->SetBinContent(72,13);
   ResoRow06->SetBinContent(73,17);
   ResoRow06->SetBinContent(74,18);
   ResoRow06->SetBinContent(75,12);
   ResoRow06->SetBinContent(76,11);
   ResoRow06->SetBinContent(77,13);
   ResoRow06->SetBinContent(78,13);
   ResoRow06->SetBinContent(79,5);
   ResoRow06->SetBinContent(80,10);
   ResoRow06->SetBinContent(81,13);
   ResoRow06->SetBinContent(82,4);
   ResoRow06->SetBinContent(83,10);
   ResoRow06->SetBinContent(84,8);
   ResoRow06->SetBinContent(85,9);
   ResoRow06->SetBinContent(86,6);
   ResoRow06->SetBinContent(87,8);
   ResoRow06->SetBinContent(88,3);
   ResoRow06->SetBinContent(89,6);
   ResoRow06->SetBinContent(90,9);
   ResoRow06->SetBinContent(91,4);
   ResoRow06->SetBinContent(92,6);
   ResoRow06->SetBinContent(93,11);
   ResoRow06->SetBinContent(94,2);
   ResoRow06->SetBinContent(95,5);
   ResoRow06->SetBinContent(96,3);
   ResoRow06->SetBinContent(97,2);
   ResoRow06->SetBinContent(98,1);
   ResoRow06->SetBinContent(99,1);
   ResoRow06->SetBinContent(100,1);
   ResoRow06->SetBinContent(101,65);
   ResoRow06->SetEntries(1537);
   
   TF1 *ResoRowFit06 = new TF1("ResoRowFit06","gaus",-1,1);
   ResoRowFit06->SetFillColor(19);
   ResoRowFit06->SetFillStyle(0);
   ResoRowFit06->SetLineWidth(3);
   ResoRowFit06->SetChisquare(137.6896);
   ResoRowFit06->SetNDF(97);
   ResoRowFit06->SetParameter(0,26.01792);
   ResoRowFit06->SetParError(0,0.9539797);
   ResoRowFit06->SetParLimits(0,0,0);
   ResoRowFit06->SetParameter(1,0.006424405);
   ResoRowFit06->SetParError(1,0.01174089);
   ResoRowFit06->SetParLimits(1,0,0);
   ResoRowFit06->SetParameter(2,0.402789);
   ResoRowFit06->SetParError(2,0.01061521);
   ResoRowFit06->SetParLimits(2,0,4.00323);
   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 = 1537   ");
   text = ptstats->AddText("Mean  = -0.002433");
   text = ptstats->AddText("RMS   = 0.4002");
   text = ptstats->AddText("#chi^{2} / ndf = 137.7 / 97");
   text = ptstats->AddText("Constant = 26.02 #pm 0.95 ");
   text = ptstats->AddText("Mean     = 0.006424 #pm 0.011741 ");
   text = ptstats->AddText("Sigma    = 0.4028 #pm 0.0106 ");
   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);
}
