{
//=========Macro generated from canvas: c2/
//=========  (Mon Jun  7 21:20:10 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,-14.56875,1.25,131.1188);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow01 = new TH1F("ResoRow01","",100,-1,1);
   ResoRow01->SetBinContent(0,7);
   ResoRow01->SetBinContent(3,2);
   ResoRow01->SetBinContent(4,2);
   ResoRow01->SetBinContent(5,1);
   ResoRow01->SetBinContent(14,1);
   ResoRow01->SetBinContent(15,1);
   ResoRow01->SetBinContent(17,1);
   ResoRow01->SetBinContent(18,2);
   ResoRow01->SetBinContent(19,2);
   ResoRow01->SetBinContent(20,2);
   ResoRow01->SetBinContent(21,1);
   ResoRow01->SetBinContent(22,2);
   ResoRow01->SetBinContent(23,1);
   ResoRow01->SetBinContent(24,4);
   ResoRow01->SetBinContent(25,3);
   ResoRow01->SetBinContent(26,4);
   ResoRow01->SetBinContent(27,1);
   ResoRow01->SetBinContent(28,4);
   ResoRow01->SetBinContent(29,2);
   ResoRow01->SetBinContent(30,2);
   ResoRow01->SetBinContent(31,3);
   ResoRow01->SetBinContent(32,4);
   ResoRow01->SetBinContent(33,2);
   ResoRow01->SetBinContent(34,5);
   ResoRow01->SetBinContent(35,6);
   ResoRow01->SetBinContent(36,6);
   ResoRow01->SetBinContent(37,10);
   ResoRow01->SetBinContent(38,13);
   ResoRow01->SetBinContent(39,23);
   ResoRow01->SetBinContent(40,18);
   ResoRow01->SetBinContent(41,23);
   ResoRow01->SetBinContent(42,41);
   ResoRow01->SetBinContent(43,39);
   ResoRow01->SetBinContent(44,51);
   ResoRow01->SetBinContent(45,55);
   ResoRow01->SetBinContent(46,73);
   ResoRow01->SetBinContent(47,74);
   ResoRow01->SetBinContent(48,90);
   ResoRow01->SetBinContent(49,98);
   ResoRow01->SetBinContent(50,111);
   ResoRow01->SetBinContent(51,105);
   ResoRow01->SetBinContent(52,95);
   ResoRow01->SetBinContent(53,66);
   ResoRow01->SetBinContent(54,68);
   ResoRow01->SetBinContent(55,47);
   ResoRow01->SetBinContent(56,61);
   ResoRow01->SetBinContent(57,45);
   ResoRow01->SetBinContent(58,36);
   ResoRow01->SetBinContent(59,24);
   ResoRow01->SetBinContent(60,25);
   ResoRow01->SetBinContent(61,17);
   ResoRow01->SetBinContent(62,14);
   ResoRow01->SetBinContent(63,16);
   ResoRow01->SetBinContent(64,18);
   ResoRow01->SetBinContent(65,10);
   ResoRow01->SetBinContent(66,15);
   ResoRow01->SetBinContent(67,9);
   ResoRow01->SetBinContent(68,6);
   ResoRow01->SetBinContent(69,6);
   ResoRow01->SetBinContent(70,4);
   ResoRow01->SetBinContent(72,1);
   ResoRow01->SetBinContent(73,6);
   ResoRow01->SetBinContent(74,2);
   ResoRow01->SetBinContent(75,2);
   ResoRow01->SetBinContent(76,1);
   ResoRow01->SetBinContent(77,1);
   ResoRow01->SetBinContent(79,1);
   ResoRow01->SetBinContent(81,1);
   ResoRow01->SetBinContent(82,4);
   ResoRow01->SetBinContent(83,1);
   ResoRow01->SetBinContent(84,1);
   ResoRow01->SetBinContent(86,2);
   ResoRow01->SetBinContent(87,2);
   ResoRow01->SetBinContent(88,2);
   ResoRow01->SetBinContent(89,1);
   ResoRow01->SetBinContent(94,1);
   ResoRow01->SetBinContent(95,1);
   ResoRow01->SetBinContent(101,17);
   ResoRow01->SetEntries(1524);
   
   TF1 *ResoRowFit01 = new TF1("ResoRowFit01","gaus",-1,1);
   ResoRowFit01->SetFillColor(19);
   ResoRowFit01->SetFillStyle(0);
   ResoRowFit01->SetLineWidth(3);
   ResoRowFit01->SetChisquare(134.4515);
   ResoRowFit01->SetNDF(73);
   ResoRowFit01->SetParameter(0,83.26862);
   ResoRowFit01->SetParError(0,3.249523);
   ResoRowFit01->SetParLimits(0,0,0);
   ResoRowFit01->SetParameter(1,-0.004901814);
   ResoRowFit01->SetParError(1,0.003655233);
   ResoRowFit01->SetParLimits(1,0,0);
   ResoRowFit01->SetParameter(2,0.1309016);
   ResoRowFit01->SetParError(2,0.003695009);
   ResoRowFit01->SetParLimits(2,0,1.856898);
   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 = 1524   ");
   text = ptstats->AddText("Mean  = -0.002055");
   text = ptstats->AddText("RMS   = 0.1854");
   text = ptstats->AddText("#chi^{2} / ndf = 134.5 / 73");
   text = ptstats->AddText("Constant = 83.27 #pm 3.25 ");
   text = ptstats->AddText("Mean     = -0.004902 #pm 0.003655 ");
   text = ptstats->AddText("Sigma    = 0.1309 #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,-14.9625,1.25,134.6625);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow02 = new TH1F("ResoRow02","",100,-1,1);
   ResoRow02->SetBinContent(0,12);
   ResoRow02->SetBinContent(1,1);
   ResoRow02->SetBinContent(6,1);
   ResoRow02->SetBinContent(7,1);
   ResoRow02->SetBinContent(8,1);
   ResoRow02->SetBinContent(10,1);
   ResoRow02->SetBinContent(13,2);
   ResoRow02->SetBinContent(15,3);
   ResoRow02->SetBinContent(17,2);
   ResoRow02->SetBinContent(18,2);
   ResoRow02->SetBinContent(19,3);
   ResoRow02->SetBinContent(22,2);
   ResoRow02->SetBinContent(23,1);
   ResoRow02->SetBinContent(26,4);
   ResoRow02->SetBinContent(27,2);
   ResoRow02->SetBinContent(29,6);
   ResoRow02->SetBinContent(30,1);
   ResoRow02->SetBinContent(31,5);
   ResoRow02->SetBinContent(32,4);
   ResoRow02->SetBinContent(33,4);
   ResoRow02->SetBinContent(34,2);
   ResoRow02->SetBinContent(35,7);
   ResoRow02->SetBinContent(36,11);
   ResoRow02->SetBinContent(37,6);
   ResoRow02->SetBinContent(38,22);
   ResoRow02->SetBinContent(39,14);
   ResoRow02->SetBinContent(40,26);
   ResoRow02->SetBinContent(41,20);
   ResoRow02->SetBinContent(42,36);
   ResoRow02->SetBinContent(43,36);
   ResoRow02->SetBinContent(44,37);
   ResoRow02->SetBinContent(45,55);
   ResoRow02->SetBinContent(46,52);
   ResoRow02->SetBinContent(47,74);
   ResoRow02->SetBinContent(48,85);
   ResoRow02->SetBinContent(49,93);
   ResoRow02->SetBinContent(50,114);
   ResoRow02->SetBinContent(51,112);
   ResoRow02->SetBinContent(52,95);
   ResoRow02->SetBinContent(53,80);
   ResoRow02->SetBinContent(54,94);
   ResoRow02->SetBinContent(55,71);
   ResoRow02->SetBinContent(56,48);
   ResoRow02->SetBinContent(57,52);
   ResoRow02->SetBinContent(58,33);
   ResoRow02->SetBinContent(59,26);
   ResoRow02->SetBinContent(60,17);
   ResoRow02->SetBinContent(61,16);
   ResoRow02->SetBinContent(62,14);
   ResoRow02->SetBinContent(63,17);
   ResoRow02->SetBinContent(64,12);
   ResoRow02->SetBinContent(65,12);
   ResoRow02->SetBinContent(66,4);
   ResoRow02->SetBinContent(67,6);
   ResoRow02->SetBinContent(68,5);
   ResoRow02->SetBinContent(69,4);
   ResoRow02->SetBinContent(70,6);
   ResoRow02->SetBinContent(71,4);
   ResoRow02->SetBinContent(72,4);
   ResoRow02->SetBinContent(73,2);
   ResoRow02->SetBinContent(74,1);
   ResoRow02->SetBinContent(75,3);
   ResoRow02->SetBinContent(76,1);
   ResoRow02->SetBinContent(77,1);
   ResoRow02->SetBinContent(78,3);
   ResoRow02->SetBinContent(79,4);
   ResoRow02->SetBinContent(81,1);
   ResoRow02->SetBinContent(82,1);
   ResoRow02->SetBinContent(87,1);
   ResoRow02->SetBinContent(96,1);
   ResoRow02->SetBinContent(101,25);
   ResoRow02->SetEntries(1524);
   
   TF1 *ResoRowFit02 = new TF1("ResoRowFit02","gaus",-1,1);
   ResoRowFit02->SetFillColor(19);
   ResoRowFit02->SetFillStyle(0);
   ResoRowFit02->SetLineWidth(3);
   ResoRowFit02->SetChisquare(139.8595);
   ResoRowFit02->SetNDF(66);
   ResoRowFit02->SetParameter(0,86.96065);
   ResoRowFit02->SetParError(0,3.434912);
   ResoRowFit02->SetParLimits(0,0,0);
   ResoRowFit02->SetParameter(1,-8.513007e-05);
   ResoRowFit02->SetParError(1,0.003371073);
   ResoRowFit02->SetParLimits(1,0,0);
   ResoRowFit02->SetParameter(2,0.1236166);
   ResoRowFit02->SetParError(2,0.003538916);
   ResoRowFit02->SetParLimits(2,0,1.747327);
   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 = 1524   ");
   text = ptstats->AddText("Mean  = -0.003391");
   text = ptstats->AddText("RMS   = 0.1746");
   text = ptstats->AddText("#chi^{2} / ndf = 139.9 / 66");
   text = ptstats->AddText("Constant = 86.96 #pm 3.43 ");
   text = ptstats->AddText("Mean     = -8.513e-05 #pm 3.371e-03 ");
   text = ptstats->AddText("Sigma    = 0.1236 #pm 0.0035 ");
   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,-15.88125,1.25,142.9313);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow03 = new TH1F("ResoRow03","",100,-1,1);
   ResoRow03->SetBinContent(0,13);
   ResoRow03->SetBinContent(7,1);
   ResoRow03->SetBinContent(10,1);
   ResoRow03->SetBinContent(13,3);
   ResoRow03->SetBinContent(16,2);
   ResoRow03->SetBinContent(17,1);
   ResoRow03->SetBinContent(18,1);
   ResoRow03->SetBinContent(19,2);
   ResoRow03->SetBinContent(20,1);
   ResoRow03->SetBinContent(22,2);
   ResoRow03->SetBinContent(23,2);
   ResoRow03->SetBinContent(24,2);
   ResoRow03->SetBinContent(25,1);
   ResoRow03->SetBinContent(27,6);
   ResoRow03->SetBinContent(28,1);
   ResoRow03->SetBinContent(29,3);
   ResoRow03->SetBinContent(30,5);
   ResoRow03->SetBinContent(31,3);
   ResoRow03->SetBinContent(32,3);
   ResoRow03->SetBinContent(33,7);
   ResoRow03->SetBinContent(34,7);
   ResoRow03->SetBinContent(35,11);
   ResoRow03->SetBinContent(36,12);
   ResoRow03->SetBinContent(37,12);
   ResoRow03->SetBinContent(38,10);
   ResoRow03->SetBinContent(39,18);
   ResoRow03->SetBinContent(40,20);
   ResoRow03->SetBinContent(41,17);
   ResoRow03->SetBinContent(42,26);
   ResoRow03->SetBinContent(43,36);
   ResoRow03->SetBinContent(44,37);
   ResoRow03->SetBinContent(45,67);
   ResoRow03->SetBinContent(46,73);
   ResoRow03->SetBinContent(47,78);
   ResoRow03->SetBinContent(48,70);
   ResoRow03->SetBinContent(49,84);
   ResoRow03->SetBinContent(50,104);
   ResoRow03->SetBinContent(51,121);
   ResoRow03->SetBinContent(52,86);
   ResoRow03->SetBinContent(53,85);
   ResoRow03->SetBinContent(54,84);
   ResoRow03->SetBinContent(55,72);
   ResoRow03->SetBinContent(56,57);
   ResoRow03->SetBinContent(57,41);
   ResoRow03->SetBinContent(58,42);
   ResoRow03->SetBinContent(59,32);
   ResoRow03->SetBinContent(60,31);
   ResoRow03->SetBinContent(61,20);
   ResoRow03->SetBinContent(62,15);
   ResoRow03->SetBinContent(63,15);
   ResoRow03->SetBinContent(64,11);
   ResoRow03->SetBinContent(65,8);
   ResoRow03->SetBinContent(67,8);
   ResoRow03->SetBinContent(68,4);
   ResoRow03->SetBinContent(69,6);
   ResoRow03->SetBinContent(71,2);
   ResoRow03->SetBinContent(72,1);
   ResoRow03->SetBinContent(73,6);
   ResoRow03->SetBinContent(74,2);
   ResoRow03->SetBinContent(75,4);
   ResoRow03->SetBinContent(76,1);
   ResoRow03->SetBinContent(77,1);
   ResoRow03->SetBinContent(78,1);
   ResoRow03->SetBinContent(79,2);
   ResoRow03->SetBinContent(81,2);
   ResoRow03->SetBinContent(85,1);
   ResoRow03->SetBinContent(87,1);
   ResoRow03->SetBinContent(88,1);
   ResoRow03->SetBinContent(91,1);
   ResoRow03->SetBinContent(101,18);
   ResoRow03->SetEntries(1524);
   
   TF1 *ResoRowFit03 = new TF1("ResoRowFit03","gaus",-1,1);
   ResoRowFit03->SetFillColor(19);
   ResoRowFit03->SetFillStyle(0);
   ResoRowFit03->SetLineWidth(3);
   ResoRowFit03->SetChisquare(118.6171);
   ResoRowFit03->SetNDF(65);
   ResoRowFit03->SetParameter(0,85.38124);
   ResoRowFit03->SetParError(0,3.388233);
   ResoRowFit03->SetParLimits(0,0,0);
   ResoRowFit03->SetParameter(1,0.00507216);
   ResoRowFit03->SetParError(1,0.00352522);
   ResoRowFit03->SetParLimits(1,0,0);
   ResoRowFit03->SetParameter(2,0.1290231);
   ResoRowFit03->SetParError(2,0.003848108);
   ResoRowFit03->SetParLimits(2,0,1.703951);
   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 = 1524   ");
   text = ptstats->AddText("Mean  = -0.003049");
   text = ptstats->AddText("RMS   = 0.1703");
   text = ptstats->AddText("#chi^{2} / ndf = 118.6 / 65");
   text = ptstats->AddText("Constant = 85.38 #pm 3.39 ");
   text = ptstats->AddText("Mean     = 0.005072 #pm 0.003525 ");
   text = ptstats->AddText("Sigma    = 0.129 #pm 0.004 ");
   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,-13.78125,1.25,124.0313);
   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(4,1);
   ResoRow04->SetBinContent(6,1);
   ResoRow04->SetBinContent(8,2);
   ResoRow04->SetBinContent(9,1);
   ResoRow04->SetBinContent(16,1);
   ResoRow04->SetBinContent(18,1);
   ResoRow04->SetBinContent(21,1);
   ResoRow04->SetBinContent(22,1);
   ResoRow04->SetBinContent(23,2);
   ResoRow04->SetBinContent(24,1);
   ResoRow04->SetBinContent(26,2);
   ResoRow04->SetBinContent(28,4);
   ResoRow04->SetBinContent(29,1);
   ResoRow04->SetBinContent(30,1);
   ResoRow04->SetBinContent(31,6);
   ResoRow04->SetBinContent(32,6);
   ResoRow04->SetBinContent(33,4);
   ResoRow04->SetBinContent(34,6);
   ResoRow04->SetBinContent(35,5);
   ResoRow04->SetBinContent(36,7);
   ResoRow04->SetBinContent(37,6);
   ResoRow04->SetBinContent(38,19);
   ResoRow04->SetBinContent(39,15);
   ResoRow04->SetBinContent(40,25);
   ResoRow04->SetBinContent(41,24);
   ResoRow04->SetBinContent(42,23);
   ResoRow04->SetBinContent(43,40);
   ResoRow04->SetBinContent(44,48);
   ResoRow04->SetBinContent(45,70);
   ResoRow04->SetBinContent(46,69);
   ResoRow04->SetBinContent(47,77);
   ResoRow04->SetBinContent(48,84);
   ResoRow04->SetBinContent(49,105);
   ResoRow04->SetBinContent(50,75);
   ResoRow04->SetBinContent(51,97);
   ResoRow04->SetBinContent(52,85);
   ResoRow04->SetBinContent(53,83);
   ResoRow04->SetBinContent(54,85);
   ResoRow04->SetBinContent(55,77);
   ResoRow04->SetBinContent(56,61);
   ResoRow04->SetBinContent(57,58);
   ResoRow04->SetBinContent(58,43);
   ResoRow04->SetBinContent(59,36);
   ResoRow04->SetBinContent(60,20);
   ResoRow04->SetBinContent(61,15);
   ResoRow04->SetBinContent(62,19);
   ResoRow04->SetBinContent(63,7);
   ResoRow04->SetBinContent(64,13);
   ResoRow04->SetBinContent(65,9);
   ResoRow04->SetBinContent(66,6);
   ResoRow04->SetBinContent(67,5);
   ResoRow04->SetBinContent(68,7);
   ResoRow04->SetBinContent(69,2);
   ResoRow04->SetBinContent(70,8);
   ResoRow04->SetBinContent(71,2);
   ResoRow04->SetBinContent(72,1);
   ResoRow04->SetBinContent(73,4);
   ResoRow04->SetBinContent(74,2);
   ResoRow04->SetBinContent(75,1);
   ResoRow04->SetBinContent(76,1);
   ResoRow04->SetBinContent(78,1);
   ResoRow04->SetBinContent(79,1);
   ResoRow04->SetBinContent(80,2);
   ResoRow04->SetBinContent(82,2);
   ResoRow04->SetBinContent(100,1);
   ResoRow04->SetBinContent(101,24);
   ResoRow04->SetEntries(1524);
   
   TF1 *ResoRowFit04 = new TF1("ResoRowFit04","gaus",-1,1);
   ResoRowFit04->SetFillColor(19);
   ResoRowFit04->SetFillStyle(0);
   ResoRowFit04->SetLineWidth(3);
   ResoRowFit04->SetChisquare(95.51051);
   ResoRowFit04->SetNDF(63);
   ResoRowFit04->SetParameter(0,88.4867);
   ResoRowFit04->SetParError(0,3.221723);
   ResoRowFit04->SetParLimits(0,0,0);
   ResoRowFit04->SetParameter(1,0.0007254581);
   ResoRowFit04->SetParError(1,0.003370711);
   ResoRowFit04->SetParLimits(1,0,0);
   ResoRowFit04->SetParameter(2,0.1256615);
   ResoRowFit04->SetParError(2,0.003101157);
   ResoRowFit04->SetParLimits(2,0,1.640362);
   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 = 1524   ");
   text = ptstats->AddText("Mean  = -0.001056");
   text = ptstats->AddText("RMS   = 0.1641");
   text = ptstats->AddText("#chi^{2} / ndf = 95.51 / 63");
   text = ptstats->AddText("Constant = 88.49 #pm 3.22 ");
   text = ptstats->AddText("Mean     = 0.0007255 #pm 0.0033707 ");
   text = ptstats->AddText("Sigma    = 0.1257 #pm 0.0031 ");
   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,-14.175,1.25,127.575);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow05 = new TH1F("ResoRow05","",100,-1,1);
   ResoRow05->SetBinContent(0,13);
   ResoRow05->SetBinContent(2,1);
   ResoRow05->SetBinContent(7,1);
   ResoRow05->SetBinContent(8,1);
   ResoRow05->SetBinContent(11,1);
   ResoRow05->SetBinContent(17,1);
   ResoRow05->SetBinContent(18,1);
   ResoRow05->SetBinContent(19,3);
   ResoRow05->SetBinContent(22,1);
   ResoRow05->SetBinContent(25,2);
   ResoRow05->SetBinContent(26,1);
   ResoRow05->SetBinContent(27,3);
   ResoRow05->SetBinContent(28,1);
   ResoRow05->SetBinContent(29,2);
   ResoRow05->SetBinContent(30,3);
   ResoRow05->SetBinContent(31,4);
   ResoRow05->SetBinContent(32,8);
   ResoRow05->SetBinContent(33,4);
   ResoRow05->SetBinContent(34,10);
   ResoRow05->SetBinContent(35,8);
   ResoRow05->SetBinContent(36,11);
   ResoRow05->SetBinContent(37,11);
   ResoRow05->SetBinContent(38,13);
   ResoRow05->SetBinContent(39,16);
   ResoRow05->SetBinContent(40,26);
   ResoRow05->SetBinContent(41,26);
   ResoRow05->SetBinContent(42,24);
   ResoRow05->SetBinContent(43,28);
   ResoRow05->SetBinContent(44,41);
   ResoRow05->SetBinContent(45,53);
   ResoRow05->SetBinContent(46,85);
   ResoRow05->SetBinContent(47,76);
   ResoRow05->SetBinContent(48,91);
   ResoRow05->SetBinContent(49,104);
   ResoRow05->SetBinContent(50,89);
   ResoRow05->SetBinContent(51,108);
   ResoRow05->SetBinContent(52,78);
   ResoRow05->SetBinContent(53,98);
   ResoRow05->SetBinContent(54,75);
   ResoRow05->SetBinContent(55,66);
   ResoRow05->SetBinContent(56,56);
   ResoRow05->SetBinContent(57,43);
   ResoRow05->SetBinContent(58,37);
   ResoRow05->SetBinContent(59,27);
   ResoRow05->SetBinContent(60,28);
   ResoRow05->SetBinContent(61,28);
   ResoRow05->SetBinContent(62,16);
   ResoRow05->SetBinContent(63,15);
   ResoRow05->SetBinContent(64,13);
   ResoRow05->SetBinContent(65,11);
   ResoRow05->SetBinContent(66,7);
   ResoRow05->SetBinContent(67,3);
   ResoRow05->SetBinContent(68,5);
   ResoRow05->SetBinContent(69,3);
   ResoRow05->SetBinContent(70,4);
   ResoRow05->SetBinContent(71,2);
   ResoRow05->SetBinContent(72,4);
   ResoRow05->SetBinContent(73,2);
   ResoRow05->SetBinContent(76,3);
   ResoRow05->SetBinContent(77,1);
   ResoRow05->SetBinContent(78,1);
   ResoRow05->SetBinContent(81,1);
   ResoRow05->SetBinContent(82,1);
   ResoRow05->SetBinContent(90,1);
   ResoRow05->SetBinContent(92,1);
   ResoRow05->SetBinContent(93,1);
   ResoRow05->SetBinContent(101,22);
   ResoRow05->SetEntries(1524);
   
   TF1 *ResoRowFit05 = new TF1("ResoRowFit05","gaus",-1,1);
   ResoRowFit05->SetFillColor(19);
   ResoRowFit05->SetFillStyle(0);
   ResoRowFit05->SetLineWidth(3);
   ResoRowFit05->SetChisquare(103.2805);
   ResoRowFit05->SetNDF(62);
   ResoRowFit05->SetParameter(0,83.5068);
   ResoRowFit05->SetParError(0,3.249266);
   ResoRowFit05->SetParLimits(0,0,0);
   ResoRowFit05->SetParameter(1,0.002147723);
   ResoRowFit05->SetParError(1,0.003567145);
   ResoRowFit05->SetParLimits(1,0,0);
   ResoRowFit05->SetParameter(2,0.132432);
   ResoRowFit05->SetParError(2,0.00373734);
   ResoRowFit05->SetParLimits(2,0,1.637254);
   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 = 1524   ");
   text = ptstats->AddText("Mean  = -0.003362");
   text = ptstats->AddText("RMS   = 0.1637");
   text = ptstats->AddText("#chi^{2} / ndf = 103.3 / 62");
   text = ptstats->AddText("Constant = 83.51 #pm 3.25 ");
   text = ptstats->AddText("Mean     = 0.002148 #pm 0.003567 ");
   text = ptstats->AddText("Sigma    = 0.1324 #pm 0.0037 ");
   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.3875,1.25,120.4875);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow06 = new TH1F("ResoRow06","",100,-1,1);
   ResoRow06->SetBinContent(0,9);
   ResoRow06->SetBinContent(1,1);
   ResoRow06->SetBinContent(7,3);
   ResoRow06->SetBinContent(8,1);
   ResoRow06->SetBinContent(9,1);
   ResoRow06->SetBinContent(10,1);
   ResoRow06->SetBinContent(12,1);
   ResoRow06->SetBinContent(15,1);
   ResoRow06->SetBinContent(18,1);
   ResoRow06->SetBinContent(19,1);
   ResoRow06->SetBinContent(21,2);
   ResoRow06->SetBinContent(24,4);
   ResoRow06->SetBinContent(26,2);
   ResoRow06->SetBinContent(27,3);
   ResoRow06->SetBinContent(28,2);
   ResoRow06->SetBinContent(29,3);
   ResoRow06->SetBinContent(30,1);
   ResoRow06->SetBinContent(31,5);
   ResoRow06->SetBinContent(32,3);
   ResoRow06->SetBinContent(33,4);
   ResoRow06->SetBinContent(34,4);
   ResoRow06->SetBinContent(35,7);
   ResoRow06->SetBinContent(36,14);
   ResoRow06->SetBinContent(37,5);
   ResoRow06->SetBinContent(38,15);
   ResoRow06->SetBinContent(39,15);
   ResoRow06->SetBinContent(40,13);
   ResoRow06->SetBinContent(41,33);
   ResoRow06->SetBinContent(42,38);
   ResoRow06->SetBinContent(43,45);
   ResoRow06->SetBinContent(44,54);
   ResoRow06->SetBinContent(45,64);
   ResoRow06->SetBinContent(46,67);
   ResoRow06->SetBinContent(47,78);
   ResoRow06->SetBinContent(48,87);
   ResoRow06->SetBinContent(49,86);
   ResoRow06->SetBinContent(50,102);
   ResoRow06->SetBinContent(51,91);
   ResoRow06->SetBinContent(52,90);
   ResoRow06->SetBinContent(53,102);
   ResoRow06->SetBinContent(54,75);
   ResoRow06->SetBinContent(55,56);
   ResoRow06->SetBinContent(56,71);
   ResoRow06->SetBinContent(57,47);
   ResoRow06->SetBinContent(58,35);
   ResoRow06->SetBinContent(59,35);
   ResoRow06->SetBinContent(60,17);
   ResoRow06->SetBinContent(61,12);
   ResoRow06->SetBinContent(62,18);
   ResoRow06->SetBinContent(63,11);
   ResoRow06->SetBinContent(64,11);
   ResoRow06->SetBinContent(65,6);
   ResoRow06->SetBinContent(66,8);
   ResoRow06->SetBinContent(67,6);
   ResoRow06->SetBinContent(68,3);
   ResoRow06->SetBinContent(69,4);
   ResoRow06->SetBinContent(70,5);
   ResoRow06->SetBinContent(71,3);
   ResoRow06->SetBinContent(72,2);
   ResoRow06->SetBinContent(73,3);
   ResoRow06->SetBinContent(74,2);
   ResoRow06->SetBinContent(75,2);
   ResoRow06->SetBinContent(76,1);
   ResoRow06->SetBinContent(79,1);
   ResoRow06->SetBinContent(80,1);
   ResoRow06->SetBinContent(81,1);
   ResoRow06->SetBinContent(82,3);
   ResoRow06->SetBinContent(83,1);
   ResoRow06->SetBinContent(85,1);
   ResoRow06->SetBinContent(87,1);
   ResoRow06->SetBinContent(89,1);
   ResoRow06->SetBinContent(90,1);
   ResoRow06->SetBinContent(92,1);
   ResoRow06->SetBinContent(95,1);
   ResoRow06->SetBinContent(98,1);
   ResoRow06->SetBinContent(101,18);
   ResoRow06->SetEntries(1524);
   
   TF1 *ResoRowFit06 = new TF1("ResoRowFit06","gaus",-1,1);
   ResoRowFit06->SetFillColor(19);
   ResoRowFit06->SetFillStyle(0);
   ResoRowFit06->SetLineWidth(3);
   ResoRowFit06->SetChisquare(110.5842);
   ResoRowFit06->SetNDF(71);
   ResoRowFit06->SetParameter(0,89.8176);
   ResoRowFit06->SetParError(0,3.30575);
   ResoRowFit06->SetParLimits(0,0,0);
   ResoRowFit06->SetParameter(1,-0.004972037);
   ResoRowFit06->SetParError(1,0.003311583);
   ResoRowFit06->SetParLimits(1,0,0);
   ResoRowFit06->SetParameter(2,0.1231641);
   ResoRowFit06->SetParError(2,0.003099894);
   ResoRowFit06->SetParLimits(2,0,1.750323);
   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 = 1524   ");
   text = ptstats->AddText("Mean  = -0.004881");
   text = ptstats->AddText("RMS   = 0.1751");
   text = ptstats->AddText("#chi^{2} / ndf = 110.6 / 71");
   text = ptstats->AddText("Constant = 89.82 #pm 3.31 ");
   text = ptstats->AddText("Mean     = -0.004972 #pm 0.003312 ");
   text = ptstats->AddText("Sigma    = 0.1232 #pm 0.0031 ");
   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);
}
