{
//=========Macro generated from canvas: c2/
//=========  (Mon Jun  7 21:53:18 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.89375,1.25,98.04375);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow01 = new TH1F("ResoRow01","",100,-1,1);
   ResoRow01->SetBinContent(0,17);
   ResoRow01->SetBinContent(6,1);
   ResoRow01->SetBinContent(7,1);
   ResoRow01->SetBinContent(11,2);
   ResoRow01->SetBinContent(12,3);
   ResoRow01->SetBinContent(13,1);
   ResoRow01->SetBinContent(14,1);
   ResoRow01->SetBinContent(16,1);
   ResoRow01->SetBinContent(18,2);
   ResoRow01->SetBinContent(19,2);
   ResoRow01->SetBinContent(20,1);
   ResoRow01->SetBinContent(21,4);
   ResoRow01->SetBinContent(22,1);
   ResoRow01->SetBinContent(23,2);
   ResoRow01->SetBinContent(24,4);
   ResoRow01->SetBinContent(25,3);
   ResoRow01->SetBinContent(26,3);
   ResoRow01->SetBinContent(27,2);
   ResoRow01->SetBinContent(28,4);
   ResoRow01->SetBinContent(29,4);
   ResoRow01->SetBinContent(30,9);
   ResoRow01->SetBinContent(31,9);
   ResoRow01->SetBinContent(32,4);
   ResoRow01->SetBinContent(33,10);
   ResoRow01->SetBinContent(34,8);
   ResoRow01->SetBinContent(35,21);
   ResoRow01->SetBinContent(36,17);
   ResoRow01->SetBinContent(37,22);
   ResoRow01->SetBinContent(38,24);
   ResoRow01->SetBinContent(39,23);
   ResoRow01->SetBinContent(40,25);
   ResoRow01->SetBinContent(41,32);
   ResoRow01->SetBinContent(42,28);
   ResoRow01->SetBinContent(43,40);
   ResoRow01->SetBinContent(44,35);
   ResoRow01->SetBinContent(45,69);
   ResoRow01->SetBinContent(46,52);
   ResoRow01->SetBinContent(47,64);
   ResoRow01->SetBinContent(48,67);
   ResoRow01->SetBinContent(49,71);
   ResoRow01->SetBinContent(50,83);
   ResoRow01->SetBinContent(51,69);
   ResoRow01->SetBinContent(52,57);
   ResoRow01->SetBinContent(53,64);
   ResoRow01->SetBinContent(54,59);
   ResoRow01->SetBinContent(55,59);
   ResoRow01->SetBinContent(56,45);
   ResoRow01->SetBinContent(57,45);
   ResoRow01->SetBinContent(58,52);
   ResoRow01->SetBinContent(59,33);
   ResoRow01->SetBinContent(60,35);
   ResoRow01->SetBinContent(61,25);
   ResoRow01->SetBinContent(62,23);
   ResoRow01->SetBinContent(63,19);
   ResoRow01->SetBinContent(64,12);
   ResoRow01->SetBinContent(65,9);
   ResoRow01->SetBinContent(66,6);
   ResoRow01->SetBinContent(67,14);
   ResoRow01->SetBinContent(68,12);
   ResoRow01->SetBinContent(69,8);
   ResoRow01->SetBinContent(70,5);
   ResoRow01->SetBinContent(71,8);
   ResoRow01->SetBinContent(72,5);
   ResoRow01->SetBinContent(73,3);
   ResoRow01->SetBinContent(74,1);
   ResoRow01->SetBinContent(75,2);
   ResoRow01->SetBinContent(76,2);
   ResoRow01->SetBinContent(77,2);
   ResoRow01->SetBinContent(78,3);
   ResoRow01->SetBinContent(79,4);
   ResoRow01->SetBinContent(80,1);
   ResoRow01->SetBinContent(81,3);
   ResoRow01->SetBinContent(84,1);
   ResoRow01->SetBinContent(86,1);
   ResoRow01->SetBinContent(87,1);
   ResoRow01->SetBinContent(88,2);
   ResoRow01->SetBinContent(95,2);
   ResoRow01->SetBinContent(97,1);
   ResoRow01->SetBinContent(98,1);
   ResoRow01->SetBinContent(100,1);
   ResoRow01->SetBinContent(101,26);
   ResoRow01->SetEntries(1493);
   
   TF1 *ResoRowFit01 = new TF1("ResoRowFit01","gaus",-1,1);
   ResoRowFit01->SetFillColor(19);
   ResoRowFit01->SetFillStyle(0);
   ResoRowFit01->SetLineWidth(3);
   ResoRowFit01->SetChisquare(108.1951);
   ResoRowFit01->SetNDF(76);
   ResoRowFit01->SetParameter(0,61.73649);
   ResoRowFit01->SetParError(0,2.326053);
   ResoRowFit01->SetParLimits(0,0,0);
   ResoRowFit01->SetParameter(1,-0.0066477);
   ResoRowFit01->SetParError(1,0.004761374);
   ResoRowFit01->SetParLimits(1,0,0);
   ResoRowFit01->SetParameter(2,0.1734422);
   ResoRowFit01->SetParError(2,0.004511689);
   ResoRowFit01->SetParLimits(2,0,2.136744);
   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 = 1493   ");
   text = ptstats->AddText("Mean  = -0.007068");
   text = ptstats->AddText("RMS   = 0.2137");
   text = ptstats->AddText("#chi^{2} / ndf = 108.2 / 76");
   text = ptstats->AddText("Constant = 61.74 #pm 2.33 ");
   text = ptstats->AddText("Mean     = -0.006648 #pm 0.004761 ");
   text = ptstats->AddText("Sigma    = 0.1734 #pm 0.0045 ");
   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,-11.15625,1.25,100.4063);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow02 = new TH1F("ResoRow02","",100,-1,1);
   ResoRow02->SetBinContent(0,14);
   ResoRow02->SetBinContent(1,1);
   ResoRow02->SetBinContent(3,1);
   ResoRow02->SetBinContent(9,5);
   ResoRow02->SetBinContent(10,2);
   ResoRow02->SetBinContent(11,1);
   ResoRow02->SetBinContent(12,1);
   ResoRow02->SetBinContent(13,3);
   ResoRow02->SetBinContent(14,1);
   ResoRow02->SetBinContent(17,1);
   ResoRow02->SetBinContent(18,1);
   ResoRow02->SetBinContent(19,2);
   ResoRow02->SetBinContent(20,3);
   ResoRow02->SetBinContent(21,1);
   ResoRow02->SetBinContent(22,2);
   ResoRow02->SetBinContent(23,2);
   ResoRow02->SetBinContent(24,3);
   ResoRow02->SetBinContent(25,3);
   ResoRow02->SetBinContent(26,3);
   ResoRow02->SetBinContent(27,4);
   ResoRow02->SetBinContent(28,4);
   ResoRow02->SetBinContent(29,5);
   ResoRow02->SetBinContent(30,3);
   ResoRow02->SetBinContent(31,5);
   ResoRow02->SetBinContent(32,8);
   ResoRow02->SetBinContent(33,7);
   ResoRow02->SetBinContent(34,11);
   ResoRow02->SetBinContent(35,15);
   ResoRow02->SetBinContent(36,9);
   ResoRow02->SetBinContent(37,18);
   ResoRow02->SetBinContent(38,18);
   ResoRow02->SetBinContent(39,24);
   ResoRow02->SetBinContent(40,23);
   ResoRow02->SetBinContent(41,37);
   ResoRow02->SetBinContent(42,26);
   ResoRow02->SetBinContent(43,43);
   ResoRow02->SetBinContent(44,38);
   ResoRow02->SetBinContent(45,52);
   ResoRow02->SetBinContent(46,59);
   ResoRow02->SetBinContent(47,68);
   ResoRow02->SetBinContent(48,81);
   ResoRow02->SetBinContent(49,65);
   ResoRow02->SetBinContent(50,78);
   ResoRow02->SetBinContent(51,60);
   ResoRow02->SetBinContent(52,85);
   ResoRow02->SetBinContent(53,78);
   ResoRow02->SetBinContent(54,58);
   ResoRow02->SetBinContent(55,58);
   ResoRow02->SetBinContent(56,45);
   ResoRow02->SetBinContent(57,50);
   ResoRow02->SetBinContent(58,35);
   ResoRow02->SetBinContent(59,34);
   ResoRow02->SetBinContent(60,26);
   ResoRow02->SetBinContent(61,29);
   ResoRow02->SetBinContent(62,21);
   ResoRow02->SetBinContent(63,31);
   ResoRow02->SetBinContent(64,10);
   ResoRow02->SetBinContent(65,13);
   ResoRow02->SetBinContent(66,8);
   ResoRow02->SetBinContent(67,10);
   ResoRow02->SetBinContent(68,10);
   ResoRow02->SetBinContent(69,11);
   ResoRow02->SetBinContent(70,4);
   ResoRow02->SetBinContent(71,3);
   ResoRow02->SetBinContent(72,2);
   ResoRow02->SetBinContent(73,3);
   ResoRow02->SetBinContent(74,4);
   ResoRow02->SetBinContent(75,2);
   ResoRow02->SetBinContent(76,2);
   ResoRow02->SetBinContent(77,2);
   ResoRow02->SetBinContent(78,3);
   ResoRow02->SetBinContent(79,3);
   ResoRow02->SetBinContent(82,1);
   ResoRow02->SetBinContent(84,1);
   ResoRow02->SetBinContent(85,1);
   ResoRow02->SetBinContent(87,1);
   ResoRow02->SetBinContent(88,3);
   ResoRow02->SetBinContent(89,1);
   ResoRow02->SetBinContent(90,1);
   ResoRow02->SetBinContent(93,2);
   ResoRow02->SetBinContent(94,1);
   ResoRow02->SetBinContent(95,2);
   ResoRow02->SetBinContent(97,2);
   ResoRow02->SetBinContent(99,2);
   ResoRow02->SetBinContent(101,24);
   ResoRow02->SetEntries(1493);
   
   TF1 *ResoRowFit02 = new TF1("ResoRowFit02","gaus",-1,1);
   ResoRowFit02->SetFillColor(19);
   ResoRowFit02->SetFillStyle(0);
   ResoRowFit02->SetLineWidth(3);
   ResoRowFit02->SetChisquare(118.1743);
   ResoRowFit02->SetNDF(80);
   ResoRowFit02->SetParameter(0,64.21499);
   ResoRowFit02->SetParError(0,2.457267);
   ResoRowFit02->SetParLimits(0,0,0);
   ResoRowFit02->SetParameter(1,-0.001699183);
   ResoRowFit02->SetParError(1,0.004555493);
   ResoRowFit02->SetParLimits(1,0,0);
   ResoRowFit02->SetParameter(2,0.1661335);
   ResoRowFit02->SetParError(2,0.004454826);
   ResoRowFit02->SetParLimits(2,0,2.20268);
   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 = 1493   ");
   text = ptstats->AddText("Mean  = -0.003132");
   text = ptstats->AddText("RMS   =   0.22");
   text = ptstats->AddText("#chi^{2} / ndf = 118.2 / 80");
   text = ptstats->AddText("Constant = 64.21 #pm 2.46 ");
   text = ptstats->AddText("Mean     = -0.001699 #pm 0.004555 ");
   text = ptstats->AddText("Sigma    = 0.1661 #pm 0.0045 ");
   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.5,1.25,94.5);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow03 = new TH1F("ResoRow03","",100,-1,1);
   ResoRow03->SetBinContent(0,14);
   ResoRow03->SetBinContent(1,1);
   ResoRow03->SetBinContent(2,1);
   ResoRow03->SetBinContent(3,1);
   ResoRow03->SetBinContent(11,1);
   ResoRow03->SetBinContent(13,3);
   ResoRow03->SetBinContent(14,2);
   ResoRow03->SetBinContent(15,2);
   ResoRow03->SetBinContent(17,2);
   ResoRow03->SetBinContent(18,1);
   ResoRow03->SetBinContent(19,1);
   ResoRow03->SetBinContent(20,1);
   ResoRow03->SetBinContent(22,1);
   ResoRow03->SetBinContent(23,3);
   ResoRow03->SetBinContent(24,3);
   ResoRow03->SetBinContent(25,6);
   ResoRow03->SetBinContent(26,3);
   ResoRow03->SetBinContent(27,4);
   ResoRow03->SetBinContent(28,4);
   ResoRow03->SetBinContent(29,5);
   ResoRow03->SetBinContent(30,3);
   ResoRow03->SetBinContent(31,6);
   ResoRow03->SetBinContent(32,7);
   ResoRow03->SetBinContent(33,9);
   ResoRow03->SetBinContent(34,12);
   ResoRow03->SetBinContent(35,12);
   ResoRow03->SetBinContent(36,17);
   ResoRow03->SetBinContent(37,14);
   ResoRow03->SetBinContent(38,21);
   ResoRow03->SetBinContent(39,29);
   ResoRow03->SetBinContent(40,29);
   ResoRow03->SetBinContent(41,36);
   ResoRow03->SetBinContent(42,31);
   ResoRow03->SetBinContent(43,45);
   ResoRow03->SetBinContent(44,48);
   ResoRow03->SetBinContent(45,59);
   ResoRow03->SetBinContent(46,47);
   ResoRow03->SetBinContent(47,69);
   ResoRow03->SetBinContent(48,57);
   ResoRow03->SetBinContent(49,58);
   ResoRow03->SetBinContent(50,62);
   ResoRow03->SetBinContent(51,65);
   ResoRow03->SetBinContent(52,80);
   ResoRow03->SetBinContent(53,73);
   ResoRow03->SetBinContent(54,64);
   ResoRow03->SetBinContent(55,50);
   ResoRow03->SetBinContent(56,58);
   ResoRow03->SetBinContent(57,50);
   ResoRow03->SetBinContent(58,50);
   ResoRow03->SetBinContent(59,33);
   ResoRow03->SetBinContent(60,31);
   ResoRow03->SetBinContent(61,38);
   ResoRow03->SetBinContent(62,27);
   ResoRow03->SetBinContent(63,27);
   ResoRow03->SetBinContent(64,16);
   ResoRow03->SetBinContent(65,15);
   ResoRow03->SetBinContent(66,11);
   ResoRow03->SetBinContent(67,10);
   ResoRow03->SetBinContent(68,6);
   ResoRow03->SetBinContent(69,5);
   ResoRow03->SetBinContent(70,2);
   ResoRow03->SetBinContent(71,4);
   ResoRow03->SetBinContent(72,3);
   ResoRow03->SetBinContent(73,3);
   ResoRow03->SetBinContent(74,2);
   ResoRow03->SetBinContent(75,2);
   ResoRow03->SetBinContent(77,1);
   ResoRow03->SetBinContent(79,2);
   ResoRow03->SetBinContent(81,3);
   ResoRow03->SetBinContent(83,1);
   ResoRow03->SetBinContent(84,2);
   ResoRow03->SetBinContent(85,1);
   ResoRow03->SetBinContent(86,2);
   ResoRow03->SetBinContent(89,1);
   ResoRow03->SetBinContent(90,1);
   ResoRow03->SetBinContent(101,24);
   ResoRow03->SetEntries(1493);
   
   TF1 *ResoRowFit03 = new TF1("ResoRowFit03","gaus",-1,1);
   ResoRowFit03->SetFillColor(19);
   ResoRowFit03->SetFillStyle(0);
   ResoRowFit03->SetLineWidth(3);
   ResoRowFit03->SetChisquare(70.14082);
   ResoRowFit03->SetNDF(71);
   ResoRowFit03->SetParameter(0,64.36897);
   ResoRowFit03->SetParError(0,2.25335);
   ResoRowFit03->SetParLimits(0,0,0);
   ResoRowFit03->SetParameter(1,-0.00207252);
   ResoRowFit03->SetParError(1,0.00471251);
   ResoRowFit03->SetParLimits(1,0,0);
   ResoRowFit03->SetParameter(2,0.1718583);
   ResoRowFit03->SetParError(2,0.003894459);
   ResoRowFit03->SetParLimits(2,0,2.030376);
   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 = 1493   ");
   text = ptstats->AddText("Mean  = -0.007848");
   text = ptstats->AddText("RMS   = 0.2029");
   text = ptstats->AddText("#chi^{2} / ndf = 70.14 / 71");
   text = ptstats->AddText("Constant = 64.37 #pm 2.25 ");
   text = ptstats->AddText("Mean     = -0.002073 #pm 0.004713 ");
   text = ptstats->AddText("Sigma    = 0.1719 #pm 0.0039 ");
   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,-10.63125,1.25,95.68125);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow04 = new TH1F("ResoRow04","",100,-1,1);
   ResoRow04->SetBinContent(0,15);
   ResoRow04->SetBinContent(6,1);
   ResoRow04->SetBinContent(7,1);
   ResoRow04->SetBinContent(9,2);
   ResoRow04->SetBinContent(10,1);
   ResoRow04->SetBinContent(16,2);
   ResoRow04->SetBinContent(18,1);
   ResoRow04->SetBinContent(19,3);
   ResoRow04->SetBinContent(20,1);
   ResoRow04->SetBinContent(21,2);
   ResoRow04->SetBinContent(22,3);
   ResoRow04->SetBinContent(23,2);
   ResoRow04->SetBinContent(24,2);
   ResoRow04->SetBinContent(25,3);
   ResoRow04->SetBinContent(26,1);
   ResoRow04->SetBinContent(27,4);
   ResoRow04->SetBinContent(28,2);
   ResoRow04->SetBinContent(29,2);
   ResoRow04->SetBinContent(30,6);
   ResoRow04->SetBinContent(31,4);
   ResoRow04->SetBinContent(32,13);
   ResoRow04->SetBinContent(33,5);
   ResoRow04->SetBinContent(34,11);
   ResoRow04->SetBinContent(35,14);
   ResoRow04->SetBinContent(36,13);
   ResoRow04->SetBinContent(37,23);
   ResoRow04->SetBinContent(38,21);
   ResoRow04->SetBinContent(39,22);
   ResoRow04->SetBinContent(40,26);
   ResoRow04->SetBinContent(41,34);
   ResoRow04->SetBinContent(42,40);
   ResoRow04->SetBinContent(43,42);
   ResoRow04->SetBinContent(44,43);
   ResoRow04->SetBinContent(45,67);
   ResoRow04->SetBinContent(46,52);
   ResoRow04->SetBinContent(47,55);
   ResoRow04->SetBinContent(48,81);
   ResoRow04->SetBinContent(49,67);
   ResoRow04->SetBinContent(50,76);
   ResoRow04->SetBinContent(51,63);
   ResoRow04->SetBinContent(52,65);
   ResoRow04->SetBinContent(53,67);
   ResoRow04->SetBinContent(54,65);
   ResoRow04->SetBinContent(55,58);
   ResoRow04->SetBinContent(56,52);
   ResoRow04->SetBinContent(57,46);
   ResoRow04->SetBinContent(58,40);
   ResoRow04->SetBinContent(59,33);
   ResoRow04->SetBinContent(60,30);
   ResoRow04->SetBinContent(61,25);
   ResoRow04->SetBinContent(62,25);
   ResoRow04->SetBinContent(63,24);
   ResoRow04->SetBinContent(64,20);
   ResoRow04->SetBinContent(65,12);
   ResoRow04->SetBinContent(66,14);
   ResoRow04->SetBinContent(67,9);
   ResoRow04->SetBinContent(68,8);
   ResoRow04->SetBinContent(69,9);
   ResoRow04->SetBinContent(70,5);
   ResoRow04->SetBinContent(71,1);
   ResoRow04->SetBinContent(72,4);
   ResoRow04->SetBinContent(73,5);
   ResoRow04->SetBinContent(74,4);
   ResoRow04->SetBinContent(75,3);
   ResoRow04->SetBinContent(76,5);
   ResoRow04->SetBinContent(77,3);
   ResoRow04->SetBinContent(78,4);
   ResoRow04->SetBinContent(79,4);
   ResoRow04->SetBinContent(82,1);
   ResoRow04->SetBinContent(84,1);
   ResoRow04->SetBinContent(86,1);
   ResoRow04->SetBinContent(87,1);
   ResoRow04->SetBinContent(88,1);
   ResoRow04->SetBinContent(90,1);
   ResoRow04->SetBinContent(97,1);
   ResoRow04->SetBinContent(99,1);
   ResoRow04->SetBinContent(100,1);
   ResoRow04->SetBinContent(101,18);
   ResoRow04->SetEntries(1493);
   
   TF1 *ResoRowFit04 = new TF1("ResoRowFit04","gaus",-1,1);
   ResoRowFit04->SetFillColor(19);
   ResoRowFit04->SetFillStyle(0);
   ResoRowFit04->SetLineWidth(3);
   ResoRowFit04->SetChisquare(81.67942);
   ResoRowFit04->SetNDF(73);
   ResoRowFit04->SetParameter(0,65.07801);
   ResoRowFit04->SetParError(0,2.289763);
   ResoRowFit04->SetParLimits(0,0,0);
   ResoRowFit04->SetParameter(1,-0.00318156);
   ResoRowFit04->SetParError(1,0.004560318);
   ResoRowFit04->SetParLimits(1,0,0);
   ResoRowFit04->SetParameter(2,0.169029);
   ResoRowFit04->SetParError(2,0.003837073);
   ResoRowFit04->SetParLimits(2,0,2.058934);
   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 = 1493   ");
   text = ptstats->AddText("Mean  = -0.001615");
   text = ptstats->AddText("RMS   = 0.2058");
   text = ptstats->AddText("#chi^{2} / ndf = 81.68 / 73");
   text = ptstats->AddText("Constant = 65.08 #pm 2.29 ");
   text = ptstats->AddText("Mean     = -0.003182 #pm 0.004560 ");
   text = ptstats->AddText("Sigma    = 0.169 #pm 0.004 ");
   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,-10.2375,1.25,92.1375);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow05 = new TH1F("ResoRow05","",100,-1,1);
   ResoRow05->SetBinContent(0,15);
   ResoRow05->SetBinContent(1,1);
   ResoRow05->SetBinContent(6,1);
   ResoRow05->SetBinContent(7,1);
   ResoRow05->SetBinContent(13,1);
   ResoRow05->SetBinContent(17,1);
   ResoRow05->SetBinContent(18,2);
   ResoRow05->SetBinContent(21,6);
   ResoRow05->SetBinContent(22,1);
   ResoRow05->SetBinContent(23,3);
   ResoRow05->SetBinContent(25,1);
   ResoRow05->SetBinContent(26,2);
   ResoRow05->SetBinContent(27,6);
   ResoRow05->SetBinContent(28,3);
   ResoRow05->SetBinContent(29,5);
   ResoRow05->SetBinContent(30,5);
   ResoRow05->SetBinContent(31,11);
   ResoRow05->SetBinContent(32,6);
   ResoRow05->SetBinContent(33,6);
   ResoRow05->SetBinContent(34,11);
   ResoRow05->SetBinContent(35,15);
   ResoRow05->SetBinContent(36,15);
   ResoRow05->SetBinContent(37,18);
   ResoRow05->SetBinContent(38,23);
   ResoRow05->SetBinContent(39,16);
   ResoRow05->SetBinContent(40,23);
   ResoRow05->SetBinContent(41,38);
   ResoRow05->SetBinContent(42,41);
   ResoRow05->SetBinContent(43,51);
   ResoRow05->SetBinContent(44,45);
   ResoRow05->SetBinContent(45,63);
   ResoRow05->SetBinContent(46,53);
   ResoRow05->SetBinContent(47,57);
   ResoRow05->SetBinContent(48,68);
   ResoRow05->SetBinContent(49,68);
   ResoRow05->SetBinContent(50,78);
   ResoRow05->SetBinContent(51,64);
   ResoRow05->SetBinContent(52,64);
   ResoRow05->SetBinContent(53,70);
   ResoRow05->SetBinContent(54,58);
   ResoRow05->SetBinContent(55,64);
   ResoRow05->SetBinContent(56,51);
   ResoRow05->SetBinContent(57,48);
   ResoRow05->SetBinContent(58,44);
   ResoRow05->SetBinContent(59,38);
   ResoRow05->SetBinContent(60,42);
   ResoRow05->SetBinContent(61,20);
   ResoRow05->SetBinContent(62,24);
   ResoRow05->SetBinContent(63,17);
   ResoRow05->SetBinContent(64,16);
   ResoRow05->SetBinContent(65,14);
   ResoRow05->SetBinContent(66,10);
   ResoRow05->SetBinContent(67,15);
   ResoRow05->SetBinContent(68,11);
   ResoRow05->SetBinContent(69,3);
   ResoRow05->SetBinContent(70,6);
   ResoRow05->SetBinContent(71,1);
   ResoRow05->SetBinContent(72,3);
   ResoRow05->SetBinContent(73,1);
   ResoRow05->SetBinContent(75,3);
   ResoRow05->SetBinContent(76,3);
   ResoRow05->SetBinContent(77,3);
   ResoRow05->SetBinContent(78,1);
   ResoRow05->SetBinContent(79,1);
   ResoRow05->SetBinContent(80,1);
   ResoRow05->SetBinContent(81,4);
   ResoRow05->SetBinContent(82,1);
   ResoRow05->SetBinContent(85,1);
   ResoRow05->SetBinContent(87,2);
   ResoRow05->SetBinContent(88,2);
   ResoRow05->SetBinContent(89,2);
   ResoRow05->SetBinContent(91,1);
   ResoRow05->SetBinContent(92,1);
   ResoRow05->SetBinContent(101,23);
   ResoRow05->SetEntries(1493);
   
   TF1 *ResoRowFit05 = new TF1("ResoRowFit05","gaus",-1,1);
   ResoRowFit05->SetFillColor(19);
   ResoRowFit05->SetFillStyle(0);
   ResoRowFit05->SetLineWidth(3);
   ResoRowFit05->SetChisquare(83.13658);
   ResoRowFit05->SetNDF(69);
   ResoRowFit05->SetParameter(0,66.13467);
   ResoRowFit05->SetParError(0,2.337486);
   ResoRowFit05->SetParLimits(0,0,0);
   ResoRowFit05->SetParameter(1,-0.005484522);
   ResoRowFit05->SetParError(1,0.004548171);
   ResoRowFit05->SetParLimits(1,0,0);
   ResoRowFit05->SetParameter(2,0.1657187);
   ResoRowFit05->SetParError(2,0.00381949);
   ResoRowFit05->SetParLimits(2,0,2.000997);
   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 = 1493   ");
   text = ptstats->AddText("Mean  = -0.004359");
   text = ptstats->AddText("RMS   = 0.2003");
   text = ptstats->AddText("#chi^{2} / ndf = 83.14 / 69");
   text = ptstats->AddText("Constant = 66.13 #pm 2.34 ");
   text = ptstats->AddText("Mean     = -0.005485 #pm 0.004548 ");
   text = ptstats->AddText("Sigma    = 0.1657 #pm 0.0038 ");
   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.975,1.25,89.775);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow06 = new TH1F("ResoRow06","",100,-1,1);
   ResoRow06->SetBinContent(0,12);
   ResoRow06->SetBinContent(4,1);
   ResoRow06->SetBinContent(7,1);
   ResoRow06->SetBinContent(9,4);
   ResoRow06->SetBinContent(12,2);
   ResoRow06->SetBinContent(14,2);
   ResoRow06->SetBinContent(15,3);
   ResoRow06->SetBinContent(17,1);
   ResoRow06->SetBinContent(18,1);
   ResoRow06->SetBinContent(19,1);
   ResoRow06->SetBinContent(20,2);
   ResoRow06->SetBinContent(21,1);
   ResoRow06->SetBinContent(22,3);
   ResoRow06->SetBinContent(23,2);
   ResoRow06->SetBinContent(24,5);
   ResoRow06->SetBinContent(26,1);
   ResoRow06->SetBinContent(27,1);
   ResoRow06->SetBinContent(28,2);
   ResoRow06->SetBinContent(29,5);
   ResoRow06->SetBinContent(30,2);
   ResoRow06->SetBinContent(31,2);
   ResoRow06->SetBinContent(32,9);
   ResoRow06->SetBinContent(33,11);
   ResoRow06->SetBinContent(34,9);
   ResoRow06->SetBinContent(35,15);
   ResoRow06->SetBinContent(36,17);
   ResoRow06->SetBinContent(37,17);
   ResoRow06->SetBinContent(38,30);
   ResoRow06->SetBinContent(39,24);
   ResoRow06->SetBinContent(40,30);
   ResoRow06->SetBinContent(41,30);
   ResoRow06->SetBinContent(42,42);
   ResoRow06->SetBinContent(43,39);
   ResoRow06->SetBinContent(44,67);
   ResoRow06->SetBinContent(45,48);
   ResoRow06->SetBinContent(46,51);
   ResoRow06->SetBinContent(47,61);
   ResoRow06->SetBinContent(48,70);
   ResoRow06->SetBinContent(49,76);
   ResoRow06->SetBinContent(50,67);
   ResoRow06->SetBinContent(51,61);
   ResoRow06->SetBinContent(52,60);
   ResoRow06->SetBinContent(53,55);
   ResoRow06->SetBinContent(54,60);
   ResoRow06->SetBinContent(55,55);
   ResoRow06->SetBinContent(56,51);
   ResoRow06->SetBinContent(57,41);
   ResoRow06->SetBinContent(58,46);
   ResoRow06->SetBinContent(59,37);
   ResoRow06->SetBinContent(60,38);
   ResoRow06->SetBinContent(61,38);
   ResoRow06->SetBinContent(62,13);
   ResoRow06->SetBinContent(63,13);
   ResoRow06->SetBinContent(64,18);
   ResoRow06->SetBinContent(65,18);
   ResoRow06->SetBinContent(66,13);
   ResoRow06->SetBinContent(67,12);
   ResoRow06->SetBinContent(68,5);
   ResoRow06->SetBinContent(69,8);
   ResoRow06->SetBinContent(70,15);
   ResoRow06->SetBinContent(71,5);
   ResoRow06->SetBinContent(72,3);
   ResoRow06->SetBinContent(73,5);
   ResoRow06->SetBinContent(74,4);
   ResoRow06->SetBinContent(75,2);
   ResoRow06->SetBinContent(76,3);
   ResoRow06->SetBinContent(77,2);
   ResoRow06->SetBinContent(78,1);
   ResoRow06->SetBinContent(80,1);
   ResoRow06->SetBinContent(83,2);
   ResoRow06->SetBinContent(84,2);
   ResoRow06->SetBinContent(85,2);
   ResoRow06->SetBinContent(86,1);
   ResoRow06->SetBinContent(87,3);
   ResoRow06->SetBinContent(88,2);
   ResoRow06->SetBinContent(89,1);
   ResoRow06->SetBinContent(90,1);
   ResoRow06->SetBinContent(98,1);
   ResoRow06->SetBinContent(100,1);
   ResoRow06->SetBinContent(101,27);
   ResoRow06->SetEntries(1493);
   
   TF1 *ResoRowFit06 = new TF1("ResoRowFit06","gaus",-1,1);
   ResoRowFit06->SetFillColor(19);
   ResoRowFit06->SetFillStyle(0);
   ResoRowFit06->SetLineWidth(3);
   ResoRowFit06->SetChisquare(104.5085);
   ResoRowFit06->SetNDF(75);
   ResoRowFit06->SetParameter(0,63.03175);
   ResoRowFit06->SetParError(0,2.239973);
   ResoRowFit06->SetParLimits(0,0,0);
   ResoRowFit06->SetParameter(1,-0.004308457);
   ResoRowFit06->SetParError(1,0.004747563);
   ResoRowFit06->SetParLimits(1,0,0);
   ResoRowFit06->SetParameter(2,0.1709782);
   ResoRowFit06->SetParError(2,0.0039356);
   ResoRowFit06->SetParLimits(2,0,2.145816);
   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 = 1493   ");
   text = ptstats->AddText("Mean  = -0.002823");
   text = ptstats->AddText("RMS   = 0.2145");
   text = ptstats->AddText("#chi^{2} / ndf = 104.5 / 75");
   text = ptstats->AddText("Constant = 63.03 #pm 2.24 ");
   text = ptstats->AddText("Mean     = -0.004308 #pm 0.004748 ");
   text = ptstats->AddText("Sigma    = 0.171 #pm 0.004 ");
   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);
}
