{
//=========Macro generated from canvas: c2/
//=========  (Mon Jun  7 21:20:11 2010) by ROOT version5.25/04
   TCanvas *c2 = new TCanvas("c2", "",1,1,900,576);
   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.04375,1.25,126.3938);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow07 = new TH1F("ResoRow07","",100,-1,1);
   ResoRow07->SetBinContent(0,10);
   ResoRow07->SetBinContent(3,1);
   ResoRow07->SetBinContent(5,1);
   ResoRow07->SetBinContent(9,1);
   ResoRow07->SetBinContent(10,1);
   ResoRow07->SetBinContent(12,2);
   ResoRow07->SetBinContent(15,1);
   ResoRow07->SetBinContent(16,1);
   ResoRow07->SetBinContent(18,1);
   ResoRow07->SetBinContent(19,2);
   ResoRow07->SetBinContent(20,1);
   ResoRow07->SetBinContent(22,1);
   ResoRow07->SetBinContent(24,1);
   ResoRow07->SetBinContent(26,2);
   ResoRow07->SetBinContent(27,1);
   ResoRow07->SetBinContent(28,2);
   ResoRow07->SetBinContent(29,4);
   ResoRow07->SetBinContent(31,5);
   ResoRow07->SetBinContent(32,8);
   ResoRow07->SetBinContent(33,5);
   ResoRow07->SetBinContent(34,7);
   ResoRow07->SetBinContent(35,12);
   ResoRow07->SetBinContent(36,9);
   ResoRow07->SetBinContent(37,9);
   ResoRow07->SetBinContent(38,10);
   ResoRow07->SetBinContent(39,16);
   ResoRow07->SetBinContent(40,20);
   ResoRow07->SetBinContent(41,33);
   ResoRow07->SetBinContent(42,35);
   ResoRow07->SetBinContent(43,45);
   ResoRow07->SetBinContent(44,40);
   ResoRow07->SetBinContent(45,52);
   ResoRow07->SetBinContent(46,68);
   ResoRow07->SetBinContent(47,78);
   ResoRow07->SetBinContent(48,81);
   ResoRow07->SetBinContent(49,99);
   ResoRow07->SetBinContent(50,89);
   ResoRow07->SetBinContent(51,107);
   ResoRow07->SetBinContent(52,97);
   ResoRow07->SetBinContent(53,85);
   ResoRow07->SetBinContent(54,72);
   ResoRow07->SetBinContent(55,72);
   ResoRow07->SetBinContent(56,56);
   ResoRow07->SetBinContent(57,56);
   ResoRow07->SetBinContent(58,39);
   ResoRow07->SetBinContent(59,33);
   ResoRow07->SetBinContent(60,20);
   ResoRow07->SetBinContent(61,14);
   ResoRow07->SetBinContent(62,11);
   ResoRow07->SetBinContent(63,10);
   ResoRow07->SetBinContent(64,8);
   ResoRow07->SetBinContent(65,11);
   ResoRow07->SetBinContent(66,8);
   ResoRow07->SetBinContent(67,9);
   ResoRow07->SetBinContent(68,4);
   ResoRow07->SetBinContent(69,2);
   ResoRow07->SetBinContent(70,1);
   ResoRow07->SetBinContent(71,3);
   ResoRow07->SetBinContent(72,3);
   ResoRow07->SetBinContent(73,1);
   ResoRow07->SetBinContent(74,3);
   ResoRow07->SetBinContent(75,1);
   ResoRow07->SetBinContent(76,3);
   ResoRow07->SetBinContent(79,1);
   ResoRow07->SetBinContent(80,1);
   ResoRow07->SetBinContent(82,1);
   ResoRow07->SetBinContent(83,1);
   ResoRow07->SetBinContent(85,1);
   ResoRow07->SetBinContent(88,2);
   ResoRow07->SetBinContent(89,1);
   ResoRow07->SetBinContent(92,1);
   ResoRow07->SetBinContent(94,1);
   ResoRow07->SetBinContent(95,1);
   ResoRow07->SetBinContent(98,1);
   ResoRow07->SetBinContent(100,2);
   ResoRow07->SetBinContent(101,27);
   ResoRow07->SetEntries(1524);
   
   TF1 *ResoRowFit07 = new TF1("ResoRowFit07","gaus",-1,1);
   ResoRowFit07->SetFillColor(19);
   ResoRowFit07->SetFillStyle(0);
   ResoRowFit07->SetLineWidth(3);
   ResoRowFit07->SetChisquare(102.0678);
   ResoRowFit07->SetNDF(71);
   ResoRowFit07->SetParameter(0,87.6984);
   ResoRowFit07->SetParError(0,3.306141);
   ResoRowFit07->SetParLimits(0,0,0);
   ResoRowFit07->SetParameter(1,-0.003981395);
   ResoRowFit07->SetParError(1,0.003417634);
   ResoRowFit07->SetParLimits(1,0,0);
   ResoRowFit07->SetParameter(2,0.1260512);
   ResoRowFit07->SetParError(2,0.003345605);
   ResoRowFit07->SetParLimits(2,0,1.765019);
   ResoRow07->GetListOfFunctions()->Add(ResoRowFit07);
   
   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("ResoRow07");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1524   ");
   text = ptstats->AddText("Mean  = -0.002903");
   text = ptstats->AddText("RMS   = 0.1764");
   text = ptstats->AddText("#chi^{2} / ndf = 102.1 / 71");
   text = ptstats->AddText("Constant =  87.7 #pm 3.3 ");
   text = ptstats->AddText("Mean     = -0.003981 #pm 0.003418 ");
   text = ptstats->AddText("Sigma    = 0.1261 #pm 0.0033 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow07->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow07->GetListOfFunctions());
   ResoRow07->GetXaxis()->SetTitle("residual / mm");
   ResoRow07->GetYaxis()->SetTitle("counts");
   ResoRow07->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.94375,1.25,107.4938);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow08 = new TH1F("ResoRow08","",100,-1,1);
   ResoRow08->SetBinContent(0,9);
   ResoRow08->SetBinContent(2,2);
   ResoRow08->SetBinContent(7,1);
   ResoRow08->SetBinContent(8,2);
   ResoRow08->SetBinContent(9,1);
   ResoRow08->SetBinContent(11,1);
   ResoRow08->SetBinContent(15,2);
   ResoRow08->SetBinContent(16,2);
   ResoRow08->SetBinContent(19,1);
   ResoRow08->SetBinContent(21,2);
   ResoRow08->SetBinContent(23,1);
   ResoRow08->SetBinContent(24,2);
   ResoRow08->SetBinContent(26,1);
   ResoRow08->SetBinContent(27,2);
   ResoRow08->SetBinContent(28,2);
   ResoRow08->SetBinContent(29,7);
   ResoRow08->SetBinContent(30,2);
   ResoRow08->SetBinContent(31,5);
   ResoRow08->SetBinContent(32,5);
   ResoRow08->SetBinContent(33,6);
   ResoRow08->SetBinContent(34,5);
   ResoRow08->SetBinContent(35,11);
   ResoRow08->SetBinContent(36,11);
   ResoRow08->SetBinContent(37,15);
   ResoRow08->SetBinContent(38,14);
   ResoRow08->SetBinContent(39,21);
   ResoRow08->SetBinContent(40,25);
   ResoRow08->SetBinContent(41,24);
   ResoRow08->SetBinContent(42,26);
   ResoRow08->SetBinContent(43,54);
   ResoRow08->SetBinContent(44,51);
   ResoRow08->SetBinContent(45,52);
   ResoRow08->SetBinContent(46,65);
   ResoRow08->SetBinContent(47,86);
   ResoRow08->SetBinContent(48,81);
   ResoRow08->SetBinContent(49,87);
   ResoRow08->SetBinContent(50,82);
   ResoRow08->SetBinContent(51,88);
   ResoRow08->SetBinContent(52,91);
   ResoRow08->SetBinContent(53,73);
   ResoRow08->SetBinContent(54,73);
   ResoRow08->SetBinContent(55,71);
   ResoRow08->SetBinContent(56,79);
   ResoRow08->SetBinContent(57,56);
   ResoRow08->SetBinContent(58,34);
   ResoRow08->SetBinContent(59,32);
   ResoRow08->SetBinContent(60,30);
   ResoRow08->SetBinContent(61,21);
   ResoRow08->SetBinContent(62,12);
   ResoRow08->SetBinContent(63,18);
   ResoRow08->SetBinContent(64,5);
   ResoRow08->SetBinContent(65,6);
   ResoRow08->SetBinContent(66,9);
   ResoRow08->SetBinContent(67,5);
   ResoRow08->SetBinContent(68,7);
   ResoRow08->SetBinContent(69,1);
   ResoRow08->SetBinContent(70,4);
   ResoRow08->SetBinContent(71,2);
   ResoRow08->SetBinContent(73,3);
   ResoRow08->SetBinContent(75,1);
   ResoRow08->SetBinContent(77,1);
   ResoRow08->SetBinContent(79,1);
   ResoRow08->SetBinContent(80,1);
   ResoRow08->SetBinContent(82,3);
   ResoRow08->SetBinContent(83,2);
   ResoRow08->SetBinContent(84,2);
   ResoRow08->SetBinContent(86,1);
   ResoRow08->SetBinContent(87,3);
   ResoRow08->SetBinContent(89,1);
   ResoRow08->SetBinContent(90,1);
   ResoRow08->SetBinContent(93,1);
   ResoRow08->SetBinContent(94,1);
   ResoRow08->SetBinContent(98,1);
   ResoRow08->SetBinContent(99,1);
   ResoRow08->SetBinContent(101,17);
   ResoRow08->SetEntries(1524);
   
   TF1 *ResoRowFit08 = new TF1("ResoRowFit08","gaus",-1,1);
   ResoRowFit08->SetFillColor(19);
   ResoRowFit08->SetFillStyle(0);
   ResoRowFit08->SetLineWidth(3);
   ResoRowFit08->SetChisquare(103.547);
   ResoRowFit08->SetNDF(70);
   ResoRowFit08->SetParameter(0,83.44951);
   ResoRowFit08->SetParError(0,3.023513);
   ResoRowFit08->SetParLimits(0,0,0);
   ResoRowFit08->SetParameter(1,-0.005241704);
   ResoRowFit08->SetParError(1,0.003657738);
   ResoRowFit08->SetParLimits(1,0,0);
   ResoRowFit08->SetParameter(2,0.1333943);
   ResoRowFit08->SetParError(2,0.003271556);
   ResoRowFit08->SetParLimits(2,0,1.837988);
   ResoRow08->GetListOfFunctions()->Add(ResoRowFit08);
   
   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("ResoRow08");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1524   ");
   text = ptstats->AddText("Mean  = -0.005148");
   text = ptstats->AddText("RMS   = 0.1837");
   text = ptstats->AddText("#chi^{2} / ndf = 103.5 / 70");
   text = ptstats->AddText("Constant = 83.45 #pm 3.02 ");
   text = ptstats->AddText("Mean     = -0.005242 #pm 0.003658 ");
   text = ptstats->AddText("Sigma    = 0.1334 #pm 0.0033 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow08->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow08->GetListOfFunctions());
   ResoRow08->GetXaxis()->SetTitle("residual / mm");
   ResoRow08->GetYaxis()->SetTitle("counts");
   ResoRow08->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,-13.78125,1.25,124.0313);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow09 = new TH1F("ResoRow09","",100,-1,1);
   ResoRow09->SetBinContent(0,9);
   ResoRow09->SetBinContent(1,1);
   ResoRow09->SetBinContent(3,1);
   ResoRow09->SetBinContent(6,1);
   ResoRow09->SetBinContent(10,1);
   ResoRow09->SetBinContent(11,1);
   ResoRow09->SetBinContent(15,2);
   ResoRow09->SetBinContent(18,1);
   ResoRow09->SetBinContent(19,1);
   ResoRow09->SetBinContent(21,1);
   ResoRow09->SetBinContent(22,1);
   ResoRow09->SetBinContent(23,1);
   ResoRow09->SetBinContent(24,3);
   ResoRow09->SetBinContent(25,2);
   ResoRow09->SetBinContent(26,1);
   ResoRow09->SetBinContent(27,5);
   ResoRow09->SetBinContent(28,3);
   ResoRow09->SetBinContent(29,5);
   ResoRow09->SetBinContent(30,3);
   ResoRow09->SetBinContent(31,9);
   ResoRow09->SetBinContent(32,8);
   ResoRow09->SetBinContent(33,3);
   ResoRow09->SetBinContent(34,4);
   ResoRow09->SetBinContent(35,8);
   ResoRow09->SetBinContent(36,9);
   ResoRow09->SetBinContent(37,11);
   ResoRow09->SetBinContent(38,17);
   ResoRow09->SetBinContent(39,18);
   ResoRow09->SetBinContent(40,23);
   ResoRow09->SetBinContent(41,23);
   ResoRow09->SetBinContent(42,29);
   ResoRow09->SetBinContent(43,47);
   ResoRow09->SetBinContent(44,32);
   ResoRow09->SetBinContent(45,62);
   ResoRow09->SetBinContent(46,63);
   ResoRow09->SetBinContent(47,61);
   ResoRow09->SetBinContent(48,85);
   ResoRow09->SetBinContent(49,73);
   ResoRow09->SetBinContent(50,100);
   ResoRow09->SetBinContent(51,99);
   ResoRow09->SetBinContent(52,105);
   ResoRow09->SetBinContent(53,81);
   ResoRow09->SetBinContent(54,89);
   ResoRow09->SetBinContent(55,74);
   ResoRow09->SetBinContent(56,57);
   ResoRow09->SetBinContent(57,44);
   ResoRow09->SetBinContent(58,41);
   ResoRow09->SetBinContent(59,34);
   ResoRow09->SetBinContent(60,30);
   ResoRow09->SetBinContent(61,17);
   ResoRow09->SetBinContent(62,14);
   ResoRow09->SetBinContent(63,12);
   ResoRow09->SetBinContent(64,13);
   ResoRow09->SetBinContent(65,8);
   ResoRow09->SetBinContent(66,4);
   ResoRow09->SetBinContent(67,6);
   ResoRow09->SetBinContent(68,6);
   ResoRow09->SetBinContent(69,5);
   ResoRow09->SetBinContent(70,2);
   ResoRow09->SetBinContent(71,2);
   ResoRow09->SetBinContent(72,2);
   ResoRow09->SetBinContent(73,3);
   ResoRow09->SetBinContent(74,2);
   ResoRow09->SetBinContent(75,4);
   ResoRow09->SetBinContent(76,2);
   ResoRow09->SetBinContent(79,1);
   ResoRow09->SetBinContent(81,2);
   ResoRow09->SetBinContent(82,2);
   ResoRow09->SetBinContent(83,2);
   ResoRow09->SetBinContent(84,2);
   ResoRow09->SetBinContent(88,1);
   ResoRow09->SetBinContent(90,2);
   ResoRow09->SetBinContent(94,1);
   ResoRow09->SetBinContent(96,1);
   ResoRow09->SetBinContent(101,26);
   ResoRow09->SetEntries(1524);
   
   TF1 *ResoRowFit09 = new TF1("ResoRowFit09","gaus",-1,1);
   ResoRowFit09->SetFillColor(19);
   ResoRowFit09->SetFillStyle(0);
   ResoRowFit09->SetLineWidth(3);
   ResoRowFit09->SetChisquare(117.492);
   ResoRowFit09->SetNDF(70);
   ResoRowFit09->SetParameter(0,82.86402);
   ResoRowFit09->SetParError(0,3.151073);
   ResoRowFit09->SetParLimits(0,0,0);
   ResoRowFit09->SetParameter(1,0.002234007);
   ResoRowFit09->SetParError(1,0.003610647);
   ResoRowFit09->SetParLimits(1,0,0);
   ResoRowFit09->SetParameter(2,0.1320652);
   ResoRowFit09->SetParError(2,0.003536834);
   ResoRowFit09->SetParLimits(2,0,1.792791);
   ResoRow09->GetListOfFunctions()->Add(ResoRowFit09);
   
   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("ResoRow09");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1524   ");
   text = ptstats->AddText("Mean  = -0.001909");
   text = ptstats->AddText("RMS   = 0.1791");
   text = ptstats->AddText("#chi^{2} / ndf = 117.5 / 70");
   text = ptstats->AddText("Constant = 82.86 #pm 3.15 ");
   text = ptstats->AddText("Mean     = 0.002234 #pm 0.003611 ");
   text = ptstats->AddText("Sigma    = 0.1321 #pm 0.0035 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow09->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow09->GetListOfFunctions());
   ResoRow09->GetXaxis()->SetTitle("residual / mm");
   ResoRow09->GetYaxis()->SetTitle("counts");
   ResoRow09->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,-14.04375,1.25,126.3938);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow10 = new TH1F("ResoRow10","",100,-1,1);
   ResoRow10->SetBinContent(0,10);
   ResoRow10->SetBinContent(2,2);
   ResoRow10->SetBinContent(10,1);
   ResoRow10->SetBinContent(11,1);
   ResoRow10->SetBinContent(13,1);
   ResoRow10->SetBinContent(14,1);
   ResoRow10->SetBinContent(17,1);
   ResoRow10->SetBinContent(18,1);
   ResoRow10->SetBinContent(20,1);
   ResoRow10->SetBinContent(21,3);
   ResoRow10->SetBinContent(23,1);
   ResoRow10->SetBinContent(24,2);
   ResoRow10->SetBinContent(25,1);
   ResoRow10->SetBinContent(27,1);
   ResoRow10->SetBinContent(28,1);
   ResoRow10->SetBinContent(29,4);
   ResoRow10->SetBinContent(30,4);
   ResoRow10->SetBinContent(31,2);
   ResoRow10->SetBinContent(32,5);
   ResoRow10->SetBinContent(33,9);
   ResoRow10->SetBinContent(34,7);
   ResoRow10->SetBinContent(35,10);
   ResoRow10->SetBinContent(36,16);
   ResoRow10->SetBinContent(37,9);
   ResoRow10->SetBinContent(38,11);
   ResoRow10->SetBinContent(39,13);
   ResoRow10->SetBinContent(40,23);
   ResoRow10->SetBinContent(41,30);
   ResoRow10->SetBinContent(42,34);
   ResoRow10->SetBinContent(43,40);
   ResoRow10->SetBinContent(44,43);
   ResoRow10->SetBinContent(45,64);
   ResoRow10->SetBinContent(46,54);
   ResoRow10->SetBinContent(47,62);
   ResoRow10->SetBinContent(48,83);
   ResoRow10->SetBinContent(49,94);
   ResoRow10->SetBinContent(50,105);
   ResoRow10->SetBinContent(51,91);
   ResoRow10->SetBinContent(52,72);
   ResoRow10->SetBinContent(53,89);
   ResoRow10->SetBinContent(54,107);
   ResoRow10->SetBinContent(55,54);
   ResoRow10->SetBinContent(56,59);
   ResoRow10->SetBinContent(57,42);
   ResoRow10->SetBinContent(58,34);
   ResoRow10->SetBinContent(59,35);
   ResoRow10->SetBinContent(60,30);
   ResoRow10->SetBinContent(61,19);
   ResoRow10->SetBinContent(62,20);
   ResoRow10->SetBinContent(63,18);
   ResoRow10->SetBinContent(64,9);
   ResoRow10->SetBinContent(65,10);
   ResoRow10->SetBinContent(66,8);
   ResoRow10->SetBinContent(67,3);
   ResoRow10->SetBinContent(68,7);
   ResoRow10->SetBinContent(69,8);
   ResoRow10->SetBinContent(70,2);
   ResoRow10->SetBinContent(71,2);
   ResoRow10->SetBinContent(72,2);
   ResoRow10->SetBinContent(73,3);
   ResoRow10->SetBinContent(74,2);
   ResoRow10->SetBinContent(75,3);
   ResoRow10->SetBinContent(76,2);
   ResoRow10->SetBinContent(77,3);
   ResoRow10->SetBinContent(78,3);
   ResoRow10->SetBinContent(81,1);
   ResoRow10->SetBinContent(82,1);
   ResoRow10->SetBinContent(84,2);
   ResoRow10->SetBinContent(87,2);
   ResoRow10->SetBinContent(89,1);
   ResoRow10->SetBinContent(96,1);
   ResoRow10->SetBinContent(101,29);
   ResoRow10->SetEntries(1524);
   
   TF1 *ResoRowFit10 = new TF1("ResoRowFit10","gaus",-1,1);
   ResoRowFit10->SetFillColor(19);
   ResoRowFit10->SetFillStyle(0);
   ResoRowFit10->SetLineWidth(3);
   ResoRowFit10->SetChisquare(113.3956);
   ResoRowFit10->SetNDF(67);
   ResoRowFit10->SetParameter(0,80.08773);
   ResoRowFit10->SetParError(0,3.025961);
   ResoRowFit10->SetParLimits(0,0,0);
   ResoRowFit10->SetParameter(1,0.0007751954);
   ResoRowFit10->SetParError(1,0.00369716);
   ResoRowFit10->SetParLimits(1,0,0);
   ResoRowFit10->SetParameter(2,0.1366643);
   ResoRowFit10->SetParError(2,0.003616299);
   ResoRowFit10->SetParLimits(2,0,1.751038);
   ResoRow10->GetListOfFunctions()->Add(ResoRowFit10);
   
   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("ResoRow10");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1524   ");
   text = ptstats->AddText("Mean  = 0.0006672");
   text = ptstats->AddText("RMS   = 0.1754");
   text = ptstats->AddText("#chi^{2} / ndf = 113.4 / 67");
   text = ptstats->AddText("Constant = 80.09 #pm 3.03 ");
   text = ptstats->AddText("Mean     = 0.0007752 #pm 0.0036972 ");
   text = ptstats->AddText("Sigma    = 0.1367 #pm 0.0036 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow10->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow10->GetListOfFunctions());
   ResoRow10->GetXaxis()->SetTitle("residual / mm");
   ResoRow10->GetYaxis()->SetTitle("counts");
   ResoRow10->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,-13.25625,1.25,119.3063);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow11 = new TH1F("ResoRow11","",100,-1,1);
   ResoRow11->SetBinContent(0,12);
   ResoRow11->SetBinContent(12,2);
   ResoRow11->SetBinContent(14,3);
   ResoRow11->SetBinContent(15,1);
   ResoRow11->SetBinContent(20,1);
   ResoRow11->SetBinContent(21,1);
   ResoRow11->SetBinContent(22,1);
   ResoRow11->SetBinContent(23,1);
   ResoRow11->SetBinContent(25,1);
   ResoRow11->SetBinContent(26,1);
   ResoRow11->SetBinContent(28,3);
   ResoRow11->SetBinContent(29,3);
   ResoRow11->SetBinContent(30,4);
   ResoRow11->SetBinContent(31,7);
   ResoRow11->SetBinContent(32,6);
   ResoRow11->SetBinContent(33,6);
   ResoRow11->SetBinContent(34,8);
   ResoRow11->SetBinContent(35,7);
   ResoRow11->SetBinContent(36,6);
   ResoRow11->SetBinContent(37,6);
   ResoRow11->SetBinContent(38,16);
   ResoRow11->SetBinContent(39,21);
   ResoRow11->SetBinContent(40,23);
   ResoRow11->SetBinContent(41,30);
   ResoRow11->SetBinContent(42,28);
   ResoRow11->SetBinContent(43,37);
   ResoRow11->SetBinContent(44,47);
   ResoRow11->SetBinContent(45,57);
   ResoRow11->SetBinContent(46,64);
   ResoRow11->SetBinContent(47,72);
   ResoRow11->SetBinContent(48,87);
   ResoRow11->SetBinContent(49,89);
   ResoRow11->SetBinContent(50,84);
   ResoRow11->SetBinContent(51,99);
   ResoRow11->SetBinContent(52,97);
   ResoRow11->SetBinContent(53,101);
   ResoRow11->SetBinContent(54,71);
   ResoRow11->SetBinContent(55,77);
   ResoRow11->SetBinContent(56,57);
   ResoRow11->SetBinContent(57,38);
   ResoRow11->SetBinContent(58,39);
   ResoRow11->SetBinContent(59,31);
   ResoRow11->SetBinContent(60,22);
   ResoRow11->SetBinContent(61,20);
   ResoRow11->SetBinContent(62,26);
   ResoRow11->SetBinContent(63,11);
   ResoRow11->SetBinContent(64,12);
   ResoRow11->SetBinContent(65,14);
   ResoRow11->SetBinContent(66,9);
   ResoRow11->SetBinContent(67,3);
   ResoRow11->SetBinContent(68,4);
   ResoRow11->SetBinContent(69,3);
   ResoRow11->SetBinContent(70,4);
   ResoRow11->SetBinContent(71,1);
   ResoRow11->SetBinContent(72,1);
   ResoRow11->SetBinContent(73,3);
   ResoRow11->SetBinContent(74,1);
   ResoRow11->SetBinContent(75,3);
   ResoRow11->SetBinContent(76,4);
   ResoRow11->SetBinContent(77,2);
   ResoRow11->SetBinContent(80,1);
   ResoRow11->SetBinContent(81,2);
   ResoRow11->SetBinContent(82,2);
   ResoRow11->SetBinContent(84,1);
   ResoRow11->SetBinContent(89,1);
   ResoRow11->SetBinContent(90,1);
   ResoRow11->SetBinContent(98,1);
   ResoRow11->SetBinContent(100,1);
   ResoRow11->SetBinContent(101,26);
   ResoRow11->SetEntries(1524);
   
   TF1 *ResoRowFit11 = new TF1("ResoRowFit11","gaus",-1,1);
   ResoRowFit11->SetFillColor(19);
   ResoRowFit11->SetFillStyle(0);
   ResoRowFit11->SetLineWidth(3);
   ResoRowFit11->SetChisquare(97.53777);
   ResoRowFit11->SetNDF(64);
   ResoRowFit11->SetParameter(0,84.20884);
   ResoRowFit11->SetParError(0,3.143858);
   ResoRowFit11->SetParLimits(0,0,0);
   ResoRowFit11->SetParameter(1,0.0003826641);
   ResoRowFit11->SetParError(1,0.003534251);
   ResoRowFit11->SetParLimits(1,0,0);
   ResoRowFit11->SetParameter(2,0.1315757);
   ResoRowFit11->SetParError(2,0.003419773);
   ResoRowFit11->SetParLimits(2,0,1.69004);
   ResoRow11->GetListOfFunctions()->Add(ResoRowFit11);
   
   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("ResoRow11");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1524   ");
   text = ptstats->AddText("Mean  = 0.001469");
   text = ptstats->AddText("RMS   =  0.169");
   text = ptstats->AddText("#chi^{2} / ndf = 97.54 / 64");
   text = ptstats->AddText("Constant = 84.21 #pm 3.14 ");
   text = ptstats->AddText("Mean     = 0.0003827 #pm 0.0035343 ");
   text = ptstats->AddText("Sigma    = 0.1316 #pm 0.0034 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow11->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow11->GetListOfFunctions());
   ResoRow11->GetXaxis()->SetTitle("residual / mm");
   ResoRow11->GetYaxis()->SetTitle("counts");
   ResoRow11->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,-12.8625,1.25,115.7625);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow12 = new TH1F("ResoRow12","",100,-1,1);
   ResoRow12->SetBinContent(0,10);
   ResoRow12->SetBinContent(3,1);
   ResoRow12->SetBinContent(7,1);
   ResoRow12->SetBinContent(9,3);
   ResoRow12->SetBinContent(10,1);
   ResoRow12->SetBinContent(12,1);
   ResoRow12->SetBinContent(13,1);
   ResoRow12->SetBinContent(14,1);
   ResoRow12->SetBinContent(15,1);
   ResoRow12->SetBinContent(16,1);
   ResoRow12->SetBinContent(18,1);
   ResoRow12->SetBinContent(19,3);
   ResoRow12->SetBinContent(20,3);
   ResoRow12->SetBinContent(22,1);
   ResoRow12->SetBinContent(24,2);
   ResoRow12->SetBinContent(25,2);
   ResoRow12->SetBinContent(26,1);
   ResoRow12->SetBinContent(27,2);
   ResoRow12->SetBinContent(30,5);
   ResoRow12->SetBinContent(31,7);
   ResoRow12->SetBinContent(32,7);
   ResoRow12->SetBinContent(33,7);
   ResoRow12->SetBinContent(34,6);
   ResoRow12->SetBinContent(35,9);
   ResoRow12->SetBinContent(36,9);
   ResoRow12->SetBinContent(37,13);
   ResoRow12->SetBinContent(38,10);
   ResoRow12->SetBinContent(39,11);
   ResoRow12->SetBinContent(40,22);
   ResoRow12->SetBinContent(41,23);
   ResoRow12->SetBinContent(42,36);
   ResoRow12->SetBinContent(43,36);
   ResoRow12->SetBinContent(44,54);
   ResoRow12->SetBinContent(45,54);
   ResoRow12->SetBinContent(46,64);
   ResoRow12->SetBinContent(47,82);
   ResoRow12->SetBinContent(48,80);
   ResoRow12->SetBinContent(49,88);
   ResoRow12->SetBinContent(50,97);
   ResoRow12->SetBinContent(51,98);
   ResoRow12->SetBinContent(52,93);
   ResoRow12->SetBinContent(53,84);
   ResoRow12->SetBinContent(54,81);
   ResoRow12->SetBinContent(55,54);
   ResoRow12->SetBinContent(56,56);
   ResoRow12->SetBinContent(57,51);
   ResoRow12->SetBinContent(58,43);
   ResoRow12->SetBinContent(59,35);
   ResoRow12->SetBinContent(60,29);
   ResoRow12->SetBinContent(61,19);
   ResoRow12->SetBinContent(62,22);
   ResoRow12->SetBinContent(63,16);
   ResoRow12->SetBinContent(64,9);
   ResoRow12->SetBinContent(65,10);
   ResoRow12->SetBinContent(66,8);
   ResoRow12->SetBinContent(67,4);
   ResoRow12->SetBinContent(68,9);
   ResoRow12->SetBinContent(69,1);
   ResoRow12->SetBinContent(70,4);
   ResoRow12->SetBinContent(71,1);
   ResoRow12->SetBinContent(72,3);
   ResoRow12->SetBinContent(73,5);
   ResoRow12->SetBinContent(74,3);
   ResoRow12->SetBinContent(75,1);
   ResoRow12->SetBinContent(76,2);
   ResoRow12->SetBinContent(77,1);
   ResoRow12->SetBinContent(78,2);
   ResoRow12->SetBinContent(88,2);
   ResoRow12->SetBinContent(92,1);
   ResoRow12->SetBinContent(97,1);
   ResoRow12->SetBinContent(101,20);
   ResoRow12->SetEntries(1524);
   
   TF1 *ResoRowFit12 = new TF1("ResoRowFit12","gaus",-1,1);
   ResoRowFit12->SetFillColor(19);
   ResoRowFit12->SetFillStyle(0);
   ResoRowFit12->SetLineWidth(3);
   ResoRowFit12->SetChisquare(96.13982);
   ResoRowFit12->SetNDF(66);
   ResoRowFit12->SetParameter(0,84.71587);
   ResoRowFit12->SetParError(0,3.098864);
   ResoRowFit12->SetParLimits(0,0,0);
   ResoRowFit12->SetParameter(1,0.002996391);
   ResoRowFit12->SetParError(1,0.003532729);
   ResoRowFit12->SetParLimits(1,0,0);
   ResoRowFit12->SetParameter(2,0.131716);
   ResoRowFit12->SetParError(2,0.003301856);
   ResoRowFit12->SetParLimits(2,0,1.762071);
   ResoRow12->GetListOfFunctions()->Add(ResoRowFit12);
   
   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("ResoRow12");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1524   ");
   text = ptstats->AddText("Mean  = -0.004601");
   text = ptstats->AddText("RMS   = 0.1762");
   text = ptstats->AddText("#chi^{2} / ndf = 96.14 / 66");
   text = ptstats->AddText("Constant = 84.72 #pm 3.10 ");
   text = ptstats->AddText("Mean     = 0.002996 #pm 0.003533 ");
   text = ptstats->AddText("Sigma    = 0.1317 #pm 0.0033 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow12->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow12->GetListOfFunctions());
   ResoRow12->GetXaxis()->SetTitle("residual / mm");
   ResoRow12->GetYaxis()->SetTitle("counts");
   ResoRow12->Draw("");
   c2_6->Modified();
   c2->cd();
   c2->Modified();
   c2->cd();
   c2->SetSelected(c2);
}
