{
//=========Macro generated from canvas: c2/
//=========  (Thu Jun 10 07:18:12 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,-13.78125,1.25,124.0313);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow01 = new TH1F("ResoRow01","",100,-1,1);
   ResoRow01->SetBinContent(0,16);
   ResoRow01->SetBinContent(5,1);
   ResoRow01->SetBinContent(10,1);
   ResoRow01->SetBinContent(12,2);
   ResoRow01->SetBinContent(14,1);
   ResoRow01->SetBinContent(16,2);
   ResoRow01->SetBinContent(17,2);
   ResoRow01->SetBinContent(18,2);
   ResoRow01->SetBinContent(19,3);
   ResoRow01->SetBinContent(20,1);
   ResoRow01->SetBinContent(21,2);
   ResoRow01->SetBinContent(22,2);
   ResoRow01->SetBinContent(23,6);
   ResoRow01->SetBinContent(24,3);
   ResoRow01->SetBinContent(26,2);
   ResoRow01->SetBinContent(27,4);
   ResoRow01->SetBinContent(28,2);
   ResoRow01->SetBinContent(29,1);
   ResoRow01->SetBinContent(30,7);
   ResoRow01->SetBinContent(31,5);
   ResoRow01->SetBinContent(32,4);
   ResoRow01->SetBinContent(33,6);
   ResoRow01->SetBinContent(34,3);
   ResoRow01->SetBinContent(35,8);
   ResoRow01->SetBinContent(36,8);
   ResoRow01->SetBinContent(37,11);
   ResoRow01->SetBinContent(38,12);
   ResoRow01->SetBinContent(39,19);
   ResoRow01->SetBinContent(40,17);
   ResoRow01->SetBinContent(41,13);
   ResoRow01->SetBinContent(42,26);
   ResoRow01->SetBinContent(43,34);
   ResoRow01->SetBinContent(44,35);
   ResoRow01->SetBinContent(45,65);
   ResoRow01->SetBinContent(46,56);
   ResoRow01->SetBinContent(47,86);
   ResoRow01->SetBinContent(48,77);
   ResoRow01->SetBinContent(49,93);
   ResoRow01->SetBinContent(50,105);
   ResoRow01->SetBinContent(51,86);
   ResoRow01->SetBinContent(52,75);
   ResoRow01->SetBinContent(53,75);
   ResoRow01->SetBinContent(54,61);
   ResoRow01->SetBinContent(55,65);
   ResoRow01->SetBinContent(56,65);
   ResoRow01->SetBinContent(57,44);
   ResoRow01->SetBinContent(58,50);
   ResoRow01->SetBinContent(59,31);
   ResoRow01->SetBinContent(60,23);
   ResoRow01->SetBinContent(61,20);
   ResoRow01->SetBinContent(62,15);
   ResoRow01->SetBinContent(63,14);
   ResoRow01->SetBinContent(64,11);
   ResoRow01->SetBinContent(65,11);
   ResoRow01->SetBinContent(66,6);
   ResoRow01->SetBinContent(67,5);
   ResoRow01->SetBinContent(68,10);
   ResoRow01->SetBinContent(69,3);
   ResoRow01->SetBinContent(70,3);
   ResoRow01->SetBinContent(71,3);
   ResoRow01->SetBinContent(72,3);
   ResoRow01->SetBinContent(73,2);
   ResoRow01->SetBinContent(74,1);
   ResoRow01->SetBinContent(79,1);
   ResoRow01->SetBinContent(80,1);
   ResoRow01->SetBinContent(81,1);
   ResoRow01->SetBinContent(82,1);
   ResoRow01->SetBinContent(85,1);
   ResoRow01->SetBinContent(89,1);
   ResoRow01->SetBinContent(90,1);
   ResoRow01->SetBinContent(92,1);
   ResoRow01->SetBinContent(93,1);
   ResoRow01->SetBinContent(94,2);
   ResoRow01->SetBinContent(95,1);
   ResoRow01->SetBinContent(96,1);
   ResoRow01->SetBinContent(100,2);
   ResoRow01->SetBinContent(101,30);
   ResoRow01->SetEntries(1470);
   
   TF1 *ResoRowFit01 = new TF1("ResoRowFit01","gaus",-1,1);
   ResoRowFit01->SetFillColor(19);
   ResoRowFit01->SetFillStyle(0);
   ResoRowFit01->SetLineWidth(3);
   ResoRowFit01->SetChisquare(127.5144);
   ResoRowFit01->SetNDF(72);
   ResoRowFit01->SetParameter(0,79.16586);
   ResoRowFit01->SetParError(0,3.143073);
   ResoRowFit01->SetParLimits(0,0,0);
   ResoRowFit01->SetParameter(1,0.007563969);
   ResoRowFit01->SetParError(1,0.003635165);
   ResoRowFit01->SetParLimits(1,0,0);
   ResoRowFit01->SetParameter(2,0.1306892);
   ResoRowFit01->SetParError(2,0.003714692);
   ResoRowFit01->SetParLimits(2,0,1.88351);
   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 = 1470   ");
   text = ptstats->AddText("Mean  = -0.002319");
   text = ptstats->AddText("RMS   = 0.1882");
   text = ptstats->AddText("#chi^{2} / ndf = 127.5 / 72");
   text = ptstats->AddText("Constant = 79.17 #pm 3.14 ");
   text = ptstats->AddText("Mean     = 0.007564 #pm 0.003635 ");
   text = ptstats->AddText("Sigma    = 0.1307 #pm 0.0037 ");
   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,-12.3375,1.25,111.0375);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow02 = new TH1F("ResoRow02","",100,-1,1);
   ResoRow02->SetBinContent(0,18);
   ResoRow02->SetBinContent(5,1);
   ResoRow02->SetBinContent(10,1);
   ResoRow02->SetBinContent(14,1);
   ResoRow02->SetBinContent(17,3);
   ResoRow02->SetBinContent(19,1);
   ResoRow02->SetBinContent(20,1);
   ResoRow02->SetBinContent(22,1);
   ResoRow02->SetBinContent(23,1);
   ResoRow02->SetBinContent(24,2);
   ResoRow02->SetBinContent(25,1);
   ResoRow02->SetBinContent(27,2);
   ResoRow02->SetBinContent(28,4);
   ResoRow02->SetBinContent(29,1);
   ResoRow02->SetBinContent(30,3);
   ResoRow02->SetBinContent(31,5);
   ResoRow02->SetBinContent(32,10);
   ResoRow02->SetBinContent(33,5);
   ResoRow02->SetBinContent(34,5);
   ResoRow02->SetBinContent(35,2);
   ResoRow02->SetBinContent(36,8);
   ResoRow02->SetBinContent(37,13);
   ResoRow02->SetBinContent(38,14);
   ResoRow02->SetBinContent(39,13);
   ResoRow02->SetBinContent(40,24);
   ResoRow02->SetBinContent(41,28);
   ResoRow02->SetBinContent(42,31);
   ResoRow02->SetBinContent(43,41);
   ResoRow02->SetBinContent(44,51);
   ResoRow02->SetBinContent(45,63);
   ResoRow02->SetBinContent(46,63);
   ResoRow02->SetBinContent(47,70);
   ResoRow02->SetBinContent(48,67);
   ResoRow02->SetBinContent(49,83);
   ResoRow02->SetBinContent(50,86);
   ResoRow02->SetBinContent(51,80);
   ResoRow02->SetBinContent(52,94);
   ResoRow02->SetBinContent(53,75);
   ResoRow02->SetBinContent(54,84);
   ResoRow02->SetBinContent(55,80);
   ResoRow02->SetBinContent(56,41);
   ResoRow02->SetBinContent(57,47);
   ResoRow02->SetBinContent(58,52);
   ResoRow02->SetBinContent(59,36);
   ResoRow02->SetBinContent(60,22);
   ResoRow02->SetBinContent(61,21);
   ResoRow02->SetBinContent(62,17);
   ResoRow02->SetBinContent(63,12);
   ResoRow02->SetBinContent(64,9);
   ResoRow02->SetBinContent(65,8);
   ResoRow02->SetBinContent(66,6);
   ResoRow02->SetBinContent(67,4);
   ResoRow02->SetBinContent(68,3);
   ResoRow02->SetBinContent(69,3);
   ResoRow02->SetBinContent(70,3);
   ResoRow02->SetBinContent(71,3);
   ResoRow02->SetBinContent(72,1);
   ResoRow02->SetBinContent(74,2);
   ResoRow02->SetBinContent(75,3);
   ResoRow02->SetBinContent(76,2);
   ResoRow02->SetBinContent(77,1);
   ResoRow02->SetBinContent(82,1);
   ResoRow02->SetBinContent(84,2);
   ResoRow02->SetBinContent(86,1);
   ResoRow02->SetBinContent(87,1);
   ResoRow02->SetBinContent(90,3);
   ResoRow02->SetBinContent(91,1);
   ResoRow02->SetBinContent(95,1);
   ResoRow02->SetBinContent(97,1);
   ResoRow02->SetBinContent(99,1);
   ResoRow02->SetBinContent(101,26);
   ResoRow02->SetEntries(1470);
   
   TF1 *ResoRowFit02 = new TF1("ResoRowFit02","gaus",-1,1);
   ResoRowFit02->SetFillColor(19);
   ResoRowFit02->SetFillStyle(0);
   ResoRowFit02->SetLineWidth(3);
   ResoRowFit02->SetChisquare(85.08305);
   ResoRowFit02->SetNDF(66);
   ResoRowFit02->SetParameter(0,81.43464);
   ResoRowFit02->SetParError(0,2.915033);
   ResoRowFit02->SetParLimits(0,0,0);
   ResoRowFit02->SetParameter(1,0.0007579914);
   ResoRowFit02->SetParError(1,0.003594617);
   ResoRowFit02->SetParLimits(1,0,0);
   ResoRowFit02->SetParameter(2,0.1314146);
   ResoRowFit02->SetParError(2,0.00304949);
   ResoRowFit02->SetParLimits(2,0,1.730364);
   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 = 1470   ");
   text = ptstats->AddText("Mean  = -0.000452");
   text = ptstats->AddText("RMS   = 0.1728");
   text = ptstats->AddText("#chi^{2} / ndf = 85.08 / 66");
   text = ptstats->AddText("Constant = 81.43 #pm 2.92 ");
   text = ptstats->AddText("Mean     = 0.000758 #pm 0.003595 ");
   text = ptstats->AddText("Sigma    = 0.1314 #pm 0.0030 ");
   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,-14.9625,1.25,134.6625);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow03 = new TH1F("ResoRow03","",100,-1,1);
   ResoRow03->SetBinContent(0,13);
   ResoRow03->SetBinContent(3,1);
   ResoRow03->SetBinContent(4,1);
   ResoRow03->SetBinContent(5,2);
   ResoRow03->SetBinContent(6,1);
   ResoRow03->SetBinContent(13,1);
   ResoRow03->SetBinContent(18,3);
   ResoRow03->SetBinContent(20,1);
   ResoRow03->SetBinContent(21,1);
   ResoRow03->SetBinContent(22,2);
   ResoRow03->SetBinContent(24,1);
   ResoRow03->SetBinContent(26,2);
   ResoRow03->SetBinContent(27,3);
   ResoRow03->SetBinContent(28,3);
   ResoRow03->SetBinContent(30,5);
   ResoRow03->SetBinContent(31,6);
   ResoRow03->SetBinContent(32,5);
   ResoRow03->SetBinContent(33,2);
   ResoRow03->SetBinContent(34,4);
   ResoRow03->SetBinContent(35,6);
   ResoRow03->SetBinContent(36,3);
   ResoRow03->SetBinContent(37,13);
   ResoRow03->SetBinContent(38,15);
   ResoRow03->SetBinContent(39,11);
   ResoRow03->SetBinContent(40,27);
   ResoRow03->SetBinContent(41,24);
   ResoRow03->SetBinContent(42,28);
   ResoRow03->SetBinContent(43,33);
   ResoRow03->SetBinContent(44,49);
   ResoRow03->SetBinContent(45,59);
   ResoRow03->SetBinContent(46,69);
   ResoRow03->SetBinContent(47,82);
   ResoRow03->SetBinContent(48,91);
   ResoRow03->SetBinContent(49,82);
   ResoRow03->SetBinContent(50,106);
   ResoRow03->SetBinContent(51,114);
   ResoRow03->SetBinContent(52,92);
   ResoRow03->SetBinContent(53,91);
   ResoRow03->SetBinContent(54,70);
   ResoRow03->SetBinContent(55,47);
   ResoRow03->SetBinContent(56,43);
   ResoRow03->SetBinContent(57,39);
   ResoRow03->SetBinContent(58,38);
   ResoRow03->SetBinContent(59,28);
   ResoRow03->SetBinContent(60,23);
   ResoRow03->SetBinContent(61,16);
   ResoRow03->SetBinContent(62,12);
   ResoRow03->SetBinContent(63,9);
   ResoRow03->SetBinContent(64,8);
   ResoRow03->SetBinContent(65,10);
   ResoRow03->SetBinContent(66,12);
   ResoRow03->SetBinContent(67,4);
   ResoRow03->SetBinContent(68,3);
   ResoRow03->SetBinContent(69,5);
   ResoRow03->SetBinContent(70,3);
   ResoRow03->SetBinContent(71,3);
   ResoRow03->SetBinContent(72,2);
   ResoRow03->SetBinContent(74,2);
   ResoRow03->SetBinContent(75,1);
   ResoRow03->SetBinContent(76,1);
   ResoRow03->SetBinContent(77,1);
   ResoRow03->SetBinContent(79,1);
   ResoRow03->SetBinContent(80,5);
   ResoRow03->SetBinContent(81,2);
   ResoRow03->SetBinContent(82,1);
   ResoRow03->SetBinContent(83,1);
   ResoRow03->SetBinContent(86,2);
   ResoRow03->SetBinContent(88,2);
   ResoRow03->SetBinContent(89,1);
   ResoRow03->SetBinContent(91,1);
   ResoRow03->SetBinContent(96,1);
   ResoRow03->SetBinContent(99,1);
   ResoRow03->SetBinContent(100,1);
   ResoRow03->SetBinContent(101,19);
   ResoRow03->SetEntries(1470);
   
   TF1 *ResoRowFit03 = new TF1("ResoRowFit03","gaus",-1,1);
   ResoRowFit03->SetFillColor(19);
   ResoRowFit03->SetFillStyle(0);
   ResoRowFit03->SetLineWidth(3);
   ResoRowFit03->SetChisquare(121.4095);
   ResoRowFit03->SetNDF(69);
   ResoRowFit03->SetParameter(0,86.92495);
   ResoRowFit03->SetParError(0,3.357911);
   ResoRowFit03->SetParLimits(0,0,0);
   ResoRowFit03->SetParameter(1,-0.005910108);
   ResoRowFit03->SetParError(1,0.003361278);
   ResoRowFit03->SetParLimits(1,0,0);
   ResoRowFit03->SetParameter(2,0.1208752);
   ResoRowFit03->SetParError(2,0.003278913);
   ResoRowFit03->SetParLimits(2,0,1.774283);
   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 = 1470   ");
   text = ptstats->AddText("Mean  = -0.003568");
   text = ptstats->AddText("RMS   = 0.1773");
   text = ptstats->AddText("#chi^{2} / ndf = 121.4 / 69");
   text = ptstats->AddText("Constant = 86.92 #pm 3.36 ");
   text = ptstats->AddText("Mean     = -0.00591 #pm 0.00336 ");
   text = ptstats->AddText("Sigma    = 0.1209 #pm 0.0033 ");
   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,-12.20625,1.25,109.8563);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow04 = new TH1F("ResoRow04","",100,-1,1);
   ResoRow04->SetBinContent(0,14);
   ResoRow04->SetBinContent(7,1);
   ResoRow04->SetBinContent(10,2);
   ResoRow04->SetBinContent(11,1);
   ResoRow04->SetBinContent(13,1);
   ResoRow04->SetBinContent(14,1);
   ResoRow04->SetBinContent(18,2);
   ResoRow04->SetBinContent(20,1);
   ResoRow04->SetBinContent(22,2);
   ResoRow04->SetBinContent(23,1);
   ResoRow04->SetBinContent(24,1);
   ResoRow04->SetBinContent(25,2);
   ResoRow04->SetBinContent(26,3);
   ResoRow04->SetBinContent(27,2);
   ResoRow04->SetBinContent(28,3);
   ResoRow04->SetBinContent(29,2);
   ResoRow04->SetBinContent(30,3);
   ResoRow04->SetBinContent(31,5);
   ResoRow04->SetBinContent(33,7);
   ResoRow04->SetBinContent(34,3);
   ResoRow04->SetBinContent(35,7);
   ResoRow04->SetBinContent(36,9);
   ResoRow04->SetBinContent(37,15);
   ResoRow04->SetBinContent(38,14);
   ResoRow04->SetBinContent(39,15);
   ResoRow04->SetBinContent(40,24);
   ResoRow04->SetBinContent(41,24);
   ResoRow04->SetBinContent(42,29);
   ResoRow04->SetBinContent(43,34);
   ResoRow04->SetBinContent(44,49);
   ResoRow04->SetBinContent(45,58);
   ResoRow04->SetBinContent(46,70);
   ResoRow04->SetBinContent(47,76);
   ResoRow04->SetBinContent(48,83);
   ResoRow04->SetBinContent(49,88);
   ResoRow04->SetBinContent(50,78);
   ResoRow04->SetBinContent(51,89);
   ResoRow04->SetBinContent(52,80);
   ResoRow04->SetBinContent(53,93);
   ResoRow04->SetBinContent(54,71);
   ResoRow04->SetBinContent(55,77);
   ResoRow04->SetBinContent(56,47);
   ResoRow04->SetBinContent(57,35);
   ResoRow04->SetBinContent(58,46);
   ResoRow04->SetBinContent(59,30);
   ResoRow04->SetBinContent(60,27);
   ResoRow04->SetBinContent(61,18);
   ResoRow04->SetBinContent(62,14);
   ResoRow04->SetBinContent(63,18);
   ResoRow04->SetBinContent(64,10);
   ResoRow04->SetBinContent(65,8);
   ResoRow04->SetBinContent(66,9);
   ResoRow04->SetBinContent(67,2);
   ResoRow04->SetBinContent(68,4);
   ResoRow04->SetBinContent(69,2);
   ResoRow04->SetBinContent(70,3);
   ResoRow04->SetBinContent(71,4);
   ResoRow04->SetBinContent(72,3);
   ResoRow04->SetBinContent(73,1);
   ResoRow04->SetBinContent(74,3);
   ResoRow04->SetBinContent(76,2);
   ResoRow04->SetBinContent(77,2);
   ResoRow04->SetBinContent(78,2);
   ResoRow04->SetBinContent(80,1);
   ResoRow04->SetBinContent(83,1);
   ResoRow04->SetBinContent(85,1);
   ResoRow04->SetBinContent(86,2);
   ResoRow04->SetBinContent(87,1);
   ResoRow04->SetBinContent(88,2);
   ResoRow04->SetBinContent(90,2);
   ResoRow04->SetBinContent(93,1);
   ResoRow04->SetBinContent(94,1);
   ResoRow04->SetBinContent(99,1);
   ResoRow04->SetBinContent(101,27);
   ResoRow04->SetEntries(1470);
   
   TF1 *ResoRowFit04 = new TF1("ResoRowFit04","gaus",-1,1);
   ResoRowFit04->SetFillColor(19);
   ResoRowFit04->SetFillStyle(0);
   ResoRowFit04->SetLineWidth(3);
   ResoRowFit04->SetChisquare(92.62376);
   ResoRowFit04->SetNDF(69);
   ResoRowFit04->SetParameter(0,80.853);
   ResoRowFit04->SetParError(0,3.018235);
   ResoRowFit04->SetParLimits(0,0,0);
   ResoRowFit04->SetParameter(1,-0.002643545);
   ResoRowFit04->SetParError(1,0.00363416);
   ResoRowFit04->SetParLimits(1,0,0);
   ResoRowFit04->SetParameter(2,0.1320537);
   ResoRowFit04->SetParError(2,0.003385834);
   ResoRowFit04->SetParLimits(2,0,1.77213);
   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 = 1470   ");
   text = ptstats->AddText("Mean  = -0.0008185");
   text = ptstats->AddText("RMS   = 0.1773");
   text = ptstats->AddText("#chi^{2} / ndf = 92.62 / 69");
   text = ptstats->AddText("Constant = 80.85 #pm 3.02 ");
   text = ptstats->AddText("Mean     = -0.002644 #pm 0.003634 ");
   text = ptstats->AddText("Sigma    = 0.1321 #pm 0.0034 ");
   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,-12.3375,1.25,111.0375);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow05 = new TH1F("ResoRow05","",100,-1,1);
   ResoRow05->SetBinContent(0,21);
   ResoRow05->SetBinContent(2,2);
   ResoRow05->SetBinContent(8,1);
   ResoRow05->SetBinContent(13,3);
   ResoRow05->SetBinContent(17,1);
   ResoRow05->SetBinContent(21,1);
   ResoRow05->SetBinContent(22,1);
   ResoRow05->SetBinContent(23,2);
   ResoRow05->SetBinContent(24,2);
   ResoRow05->SetBinContent(26,1);
   ResoRow05->SetBinContent(27,2);
   ResoRow05->SetBinContent(28,2);
   ResoRow05->SetBinContent(29,2);
   ResoRow05->SetBinContent(30,1);
   ResoRow05->SetBinContent(31,1);
   ResoRow05->SetBinContent(32,5);
   ResoRow05->SetBinContent(33,7);
   ResoRow05->SetBinContent(34,5);
   ResoRow05->SetBinContent(35,3);
   ResoRow05->SetBinContent(36,8);
   ResoRow05->SetBinContent(37,18);
   ResoRow05->SetBinContent(38,15);
   ResoRow05->SetBinContent(39,14);
   ResoRow05->SetBinContent(40,24);
   ResoRow05->SetBinContent(41,27);
   ResoRow05->SetBinContent(42,37);
   ResoRow05->SetBinContent(43,37);
   ResoRow05->SetBinContent(44,43);
   ResoRow05->SetBinContent(45,59);
   ResoRow05->SetBinContent(46,69);
   ResoRow05->SetBinContent(47,90);
   ResoRow05->SetBinContent(48,94);
   ResoRow05->SetBinContent(49,94);
   ResoRow05->SetBinContent(50,81);
   ResoRow05->SetBinContent(51,93);
   ResoRow05->SetBinContent(52,94);
   ResoRow05->SetBinContent(53,59);
   ResoRow05->SetBinContent(54,72);
   ResoRow05->SetBinContent(55,76);
   ResoRow05->SetBinContent(56,51);
   ResoRow05->SetBinContent(57,36);
   ResoRow05->SetBinContent(58,35);
   ResoRow05->SetBinContent(59,26);
   ResoRow05->SetBinContent(60,24);
   ResoRow05->SetBinContent(61,18);
   ResoRow05->SetBinContent(62,11);
   ResoRow05->SetBinContent(63,13);
   ResoRow05->SetBinContent(64,11);
   ResoRow05->SetBinContent(65,13);
   ResoRow05->SetBinContent(66,5);
   ResoRow05->SetBinContent(67,1);
   ResoRow05->SetBinContent(69,9);
   ResoRow05->SetBinContent(70,2);
   ResoRow05->SetBinContent(71,2);
   ResoRow05->SetBinContent(72,2);
   ResoRow05->SetBinContent(74,1);
   ResoRow05->SetBinContent(75,2);
   ResoRow05->SetBinContent(76,2);
   ResoRow05->SetBinContent(77,2);
   ResoRow05->SetBinContent(78,4);
   ResoRow05->SetBinContent(80,1);
   ResoRow05->SetBinContent(81,1);
   ResoRow05->SetBinContent(84,1);
   ResoRow05->SetBinContent(85,2);
   ResoRow05->SetBinContent(89,1);
   ResoRow05->SetBinContent(91,1);
   ResoRow05->SetBinContent(92,2);
   ResoRow05->SetBinContent(93,1);
   ResoRow05->SetBinContent(95,1);
   ResoRow05->SetBinContent(96,1);
   ResoRow05->SetBinContent(97,1);
   ResoRow05->SetBinContent(99,1);
   ResoRow05->SetBinContent(100,1);
   ResoRow05->SetBinContent(101,18);
   ResoRow05->SetEntries(1470);
   
   TF1 *ResoRowFit05 = new TF1("ResoRowFit05","gaus",-1,1);
   ResoRowFit05->SetFillColor(19);
   ResoRowFit05->SetFillStyle(0);
   ResoRowFit05->SetLineWidth(3);
   ResoRowFit05->SetChisquare(103.3393);
   ResoRowFit05->SetNDF(69);
   ResoRowFit05->SetParameter(0,83.91251);
   ResoRowFit05->SetParError(0,3.061437);
   ResoRowFit05->SetParLimits(0,0,0);
   ResoRowFit05->SetParameter(1,-0.009603331);
   ResoRowFit05->SetParError(1,0.003485273);
   ResoRowFit05->SetParLimits(1,0,0);
   ResoRowFit05->SetParameter(2,0.1263947);
   ResoRowFit05->SetParError(2,0.003065856);
   ResoRowFit05->SetParLimits(2,0,1.787288);
   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 = 1470   ");
   text = ptstats->AddText("Mean  = -0.002676");
   text = ptstats->AddText("RMS   = 0.1787");
   text = ptstats->AddText("#chi^{2} / ndf = 103.3 / 69");
   text = ptstats->AddText("Constant = 83.91 #pm 3.06 ");
   text = ptstats->AddText("Mean     = -0.009603 #pm 0.003485 ");
   text = ptstats->AddText("Sigma    = 0.1264 #pm 0.0031 ");
   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,-13.9125,1.25,125.2125);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow06 = new TH1F("ResoRow06","",100,-1,1);
   ResoRow06->SetBinContent(0,17);
   ResoRow06->SetBinContent(3,1);
   ResoRow06->SetBinContent(8,1);
   ResoRow06->SetBinContent(9,1);
   ResoRow06->SetBinContent(11,1);
   ResoRow06->SetBinContent(16,1);
   ResoRow06->SetBinContent(18,1);
   ResoRow06->SetBinContent(21,1);
   ResoRow06->SetBinContent(22,3);
   ResoRow06->SetBinContent(25,1);
   ResoRow06->SetBinContent(26,2);
   ResoRow06->SetBinContent(27,2);
   ResoRow06->SetBinContent(28,2);
   ResoRow06->SetBinContent(29,4);
   ResoRow06->SetBinContent(30,1);
   ResoRow06->SetBinContent(31,1);
   ResoRow06->SetBinContent(32,4);
   ResoRow06->SetBinContent(33,3);
   ResoRow06->SetBinContent(34,4);
   ResoRow06->SetBinContent(35,9);
   ResoRow06->SetBinContent(36,4);
   ResoRow06->SetBinContent(37,13);
   ResoRow06->SetBinContent(38,14);
   ResoRow06->SetBinContent(39,17);
   ResoRow06->SetBinContent(40,15);
   ResoRow06->SetBinContent(41,29);
   ResoRow06->SetBinContent(42,28);
   ResoRow06->SetBinContent(43,41);
   ResoRow06->SetBinContent(44,51);
   ResoRow06->SetBinContent(45,70);
   ResoRow06->SetBinContent(46,52);
   ResoRow06->SetBinContent(47,84);
   ResoRow06->SetBinContent(48,73);
   ResoRow06->SetBinContent(49,91);
   ResoRow06->SetBinContent(50,106);
   ResoRow06->SetBinContent(51,72);
   ResoRow06->SetBinContent(52,89);
   ResoRow06->SetBinContent(53,87);
   ResoRow06->SetBinContent(54,84);
   ResoRow06->SetBinContent(55,66);
   ResoRow06->SetBinContent(56,60);
   ResoRow06->SetBinContent(57,33);
   ResoRow06->SetBinContent(58,25);
   ResoRow06->SetBinContent(59,29);
   ResoRow06->SetBinContent(60,29);
   ResoRow06->SetBinContent(61,16);
   ResoRow06->SetBinContent(62,16);
   ResoRow06->SetBinContent(63,16);
   ResoRow06->SetBinContent(64,14);
   ResoRow06->SetBinContent(65,3);
   ResoRow06->SetBinContent(66,4);
   ResoRow06->SetBinContent(67,9);
   ResoRow06->SetBinContent(68,6);
   ResoRow06->SetBinContent(69,3);
   ResoRow06->SetBinContent(70,3);
   ResoRow06->SetBinContent(71,2);
   ResoRow06->SetBinContent(72,2);
   ResoRow06->SetBinContent(73,1);
   ResoRow06->SetBinContent(74,1);
   ResoRow06->SetBinContent(75,2);
   ResoRow06->SetBinContent(76,1);
   ResoRow06->SetBinContent(77,1);
   ResoRow06->SetBinContent(78,1);
   ResoRow06->SetBinContent(79,1);
   ResoRow06->SetBinContent(81,2);
   ResoRow06->SetBinContent(82,1);
   ResoRow06->SetBinContent(85,2);
   ResoRow06->SetBinContent(86,1);
   ResoRow06->SetBinContent(87,1);
   ResoRow06->SetBinContent(91,1);
   ResoRow06->SetBinContent(96,1);
   ResoRow06->SetBinContent(97,1);
   ResoRow06->SetBinContent(100,2);
   ResoRow06->SetBinContent(101,34);
   ResoRow06->SetEntries(1470);
   
   TF1 *ResoRowFit06 = new TF1("ResoRowFit06","gaus",-1,1);
   ResoRowFit06->SetFillColor(19);
   ResoRowFit06->SetFillStyle(0);
   ResoRowFit06->SetLineWidth(3);
   ResoRowFit06->SetChisquare(109.1241);
   ResoRowFit06->SetNDF(69);
   ResoRowFit06->SetParameter(0,82.87784);
   ResoRowFit06->SetParError(0,3.115299);
   ResoRowFit06->SetParLimits(0,0,0);
   ResoRowFit06->SetParameter(1,-0.004845045);
   ResoRowFit06->SetParError(1,0.003487702);
   ResoRowFit06->SetParLimits(1,0,0);
   ResoRowFit06->SetParameter(2,0.1261072);
   ResoRowFit06->SetParError(2,0.003213682);
   ResoRowFit06->SetParLimits(2,0,1.706601);
   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 = 1470   ");
   text = ptstats->AddText("Mean  = 0.0003893");
   text = ptstats->AddText("RMS   = 0.1707");
   text = ptstats->AddText("#chi^{2} / ndf = 109.1 / 69");
   text = ptstats->AddText("Constant = 82.88 #pm 3.12 ");
   text = ptstats->AddText("Mean     = -0.004845 #pm 0.003488 ");
   text = ptstats->AddText("Sigma    = 0.1261 #pm 0.0032 ");
   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);
}
