{
//=========Macro generated from canvas: c2/
//=========  (Mon Jun  7 20:50:38 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.83125,1.25,133.4813);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow07 = new TH1F("ResoRow07","",100,-1,1);
   ResoRow07->SetBinContent(0,7);
   ResoRow07->SetBinContent(1,1);
   ResoRow07->SetBinContent(9,1);
   ResoRow07->SetBinContent(13,1);
   ResoRow07->SetBinContent(15,1);
   ResoRow07->SetBinContent(16,1);
   ResoRow07->SetBinContent(17,1);
   ResoRow07->SetBinContent(18,1);
   ResoRow07->SetBinContent(19,2);
   ResoRow07->SetBinContent(21,2);
   ResoRow07->SetBinContent(24,2);
   ResoRow07->SetBinContent(26,4);
   ResoRow07->SetBinContent(27,3);
   ResoRow07->SetBinContent(28,4);
   ResoRow07->SetBinContent(29,5);
   ResoRow07->SetBinContent(30,5);
   ResoRow07->SetBinContent(31,2);
   ResoRow07->SetBinContent(32,2);
   ResoRow07->SetBinContent(33,3);
   ResoRow07->SetBinContent(34,3);
   ResoRow07->SetBinContent(35,5);
   ResoRow07->SetBinContent(36,5);
   ResoRow07->SetBinContent(37,8);
   ResoRow07->SetBinContent(38,14);
   ResoRow07->SetBinContent(39,15);
   ResoRow07->SetBinContent(40,18);
   ResoRow07->SetBinContent(41,19);
   ResoRow07->SetBinContent(42,24);
   ResoRow07->SetBinContent(43,42);
   ResoRow07->SetBinContent(44,48);
   ResoRow07->SetBinContent(45,58);
   ResoRow07->SetBinContent(46,85);
   ResoRow07->SetBinContent(47,95);
   ResoRow07->SetBinContent(48,107);
   ResoRow07->SetBinContent(49,113);
   ResoRow07->SetBinContent(50,110);
   ResoRow07->SetBinContent(51,113);
   ResoRow07->SetBinContent(52,106);
   ResoRow07->SetBinContent(53,111);
   ResoRow07->SetBinContent(54,85);
   ResoRow07->SetBinContent(55,80);
   ResoRow07->SetBinContent(56,53);
   ResoRow07->SetBinContent(57,38);
   ResoRow07->SetBinContent(58,29);
   ResoRow07->SetBinContent(59,24);
   ResoRow07->SetBinContent(60,26);
   ResoRow07->SetBinContent(61,13);
   ResoRow07->SetBinContent(62,15);
   ResoRow07->SetBinContent(63,6);
   ResoRow07->SetBinContent(64,7);
   ResoRow07->SetBinContent(65,9);
   ResoRow07->SetBinContent(66,2);
   ResoRow07->SetBinContent(67,5);
   ResoRow07->SetBinContent(68,4);
   ResoRow07->SetBinContent(69,1);
   ResoRow07->SetBinContent(70,2);
   ResoRow07->SetBinContent(71,3);
   ResoRow07->SetBinContent(72,3);
   ResoRow07->SetBinContent(73,1);
   ResoRow07->SetBinContent(74,2);
   ResoRow07->SetBinContent(76,3);
   ResoRow07->SetBinContent(79,1);
   ResoRow07->SetBinContent(80,1);
   ResoRow07->SetBinContent(86,1);
   ResoRow07->SetBinContent(94,1);
   ResoRow07->SetBinContent(98,1);
   ResoRow07->SetBinContent(99,2);
   ResoRow07->SetBinContent(101,26);
   ResoRow07->SetEntries(1591);
   
   TF1 *ResoRowFit07 = new TF1("ResoRowFit07","gaus",-1,1);
   ResoRowFit07->SetFillColor(19);
   ResoRowFit07->SetFillStyle(0);
   ResoRowFit07->SetLineWidth(3);
   ResoRowFit07->SetChisquare(104.243);
   ResoRowFit07->SetNDF(63);
   ResoRowFit07->SetParameter(0,107.0592);
   ResoRowFit07->SetParError(0,3.931157);
   ResoRowFit07->SetParLimits(0,0,0);
   ResoRowFit07->SetParameter(1,-0.005253661);
   ResoRowFit07->SetParError(1,0.002842591);
   ResoRowFit07->SetParLimits(1,0,0);
   ResoRowFit07->SetParameter(2,0.1083452);
   ResoRowFit07->SetParError(2,0.002783679);
   ResoRowFit07->SetParLimits(2,0,1.555729);
   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 = 1591   ");
   text = ptstats->AddText("Mean  = -0.008535");
   text = ptstats->AddText("RMS   = 0.1555");
   text = ptstats->AddText("#chi^{2} / ndf = 104.2 / 63");
   text = ptstats->AddText("Constant = 107.1 #pm 3.9 ");
   text = ptstats->AddText("Mean     = -0.005254 #pm 0.002843 ");
   text = ptstats->AddText("Sigma    = 0.1083 #pm 0.0028 ");
   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,-16.0125,1.25,144.1125);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow08 = new TH1F("ResoRow08","",100,-1,1);
   ResoRow08->SetBinContent(0,10);
   ResoRow08->SetBinContent(3,1);
   ResoRow08->SetBinContent(9,3);
   ResoRow08->SetBinContent(14,1);
   ResoRow08->SetBinContent(15,1);
   ResoRow08->SetBinContent(16,1);
   ResoRow08->SetBinContent(20,1);
   ResoRow08->SetBinContent(22,2);
   ResoRow08->SetBinContent(23,2);
   ResoRow08->SetBinContent(24,2);
   ResoRow08->SetBinContent(25,2);
   ResoRow08->SetBinContent(27,1);
   ResoRow08->SetBinContent(28,1);
   ResoRow08->SetBinContent(29,2);
   ResoRow08->SetBinContent(30,6);
   ResoRow08->SetBinContent(31,1);
   ResoRow08->SetBinContent(32,2);
   ResoRow08->SetBinContent(33,6);
   ResoRow08->SetBinContent(34,5);
   ResoRow08->SetBinContent(35,6);
   ResoRow08->SetBinContent(36,7);
   ResoRow08->SetBinContent(37,8);
   ResoRow08->SetBinContent(38,15);
   ResoRow08->SetBinContent(39,12);
   ResoRow08->SetBinContent(40,19);
   ResoRow08->SetBinContent(41,24);
   ResoRow08->SetBinContent(42,24);
   ResoRow08->SetBinContent(43,32);
   ResoRow08->SetBinContent(44,55);
   ResoRow08->SetBinContent(45,62);
   ResoRow08->SetBinContent(46,87);
   ResoRow08->SetBinContent(47,70);
   ResoRow08->SetBinContent(48,99);
   ResoRow08->SetBinContent(49,121);
   ResoRow08->SetBinContent(50,117);
   ResoRow08->SetBinContent(51,122);
   ResoRow08->SetBinContent(52,121);
   ResoRow08->SetBinContent(53,103);
   ResoRow08->SetBinContent(54,84);
   ResoRow08->SetBinContent(55,75);
   ResoRow08->SetBinContent(56,52);
   ResoRow08->SetBinContent(57,39);
   ResoRow08->SetBinContent(58,27);
   ResoRow08->SetBinContent(59,30);
   ResoRow08->SetBinContent(60,20);
   ResoRow08->SetBinContent(61,15);
   ResoRow08->SetBinContent(62,11);
   ResoRow08->SetBinContent(63,10);
   ResoRow08->SetBinContent(64,10);
   ResoRow08->SetBinContent(65,5);
   ResoRow08->SetBinContent(66,6);
   ResoRow08->SetBinContent(67,3);
   ResoRow08->SetBinContent(68,1);
   ResoRow08->SetBinContent(69,2);
   ResoRow08->SetBinContent(70,2);
   ResoRow08->SetBinContent(71,3);
   ResoRow08->SetBinContent(72,1);
   ResoRow08->SetBinContent(74,3);
   ResoRow08->SetBinContent(75,2);
   ResoRow08->SetBinContent(76,3);
   ResoRow08->SetBinContent(78,1);
   ResoRow08->SetBinContent(85,1);
   ResoRow08->SetBinContent(88,2);
   ResoRow08->SetBinContent(90,1);
   ResoRow08->SetBinContent(92,1);
   ResoRow08->SetBinContent(93,1);
   ResoRow08->SetBinContent(97,1);
   ResoRow08->SetBinContent(101,25);
   ResoRow08->SetEntries(1591);
   
   TF1 *ResoRowFit08 = new TF1("ResoRowFit08","gaus",-1,1);
   ResoRowFit08->SetFillColor(19);
   ResoRowFit08->SetFillStyle(0);
   ResoRowFit08->SetLineWidth(3);
   ResoRowFit08->SetChisquare(110.0441);
   ResoRowFit08->SetNDF(63);
   ResoRowFit08->SetParameter(0,105.1003);
   ResoRowFit08->SetParError(0,3.992623);
   ResoRowFit08->SetParLimits(0,0,0);
   ResoRowFit08->SetParameter(1,-0.004288456);
   ResoRowFit08->SetParError(1,0.002891081);
   ResoRowFit08->SetParLimits(1,0,0);
   ResoRowFit08->SetParameter(2,0.1097739);
   ResoRowFit08->SetParError(2,0.003009304);
   ResoRowFit08->SetParLimits(2,0,1.543636);
   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 = 1591   ");
   text = ptstats->AddText("Mean  = -0.007141");
   text = ptstats->AddText("RMS   = 0.1544");
   text = ptstats->AddText("#chi^{2} / ndf =   110 / 63");
   text = ptstats->AddText("Constant = 105.1 #pm 4.0 ");
   text = ptstats->AddText("Mean     = -0.004288 #pm 0.002891 ");
   text = ptstats->AddText("Sigma    = 0.1098 #pm 0.0030 ");
   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,-16.66875,1.25,150.0188);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow09 = new TH1F("ResoRow09","",100,-1,1);
   ResoRow09->SetBinContent(0,10);
   ResoRow09->SetBinContent(5,2);
   ResoRow09->SetBinContent(7,1);
   ResoRow09->SetBinContent(10,1);
   ResoRow09->SetBinContent(12,1);
   ResoRow09->SetBinContent(14,1);
   ResoRow09->SetBinContent(15,2);
   ResoRow09->SetBinContent(16,1);
   ResoRow09->SetBinContent(18,1);
   ResoRow09->SetBinContent(20,2);
   ResoRow09->SetBinContent(21,1);
   ResoRow09->SetBinContent(22,1);
   ResoRow09->SetBinContent(23,1);
   ResoRow09->SetBinContent(24,2);
   ResoRow09->SetBinContent(25,1);
   ResoRow09->SetBinContent(26,2);
   ResoRow09->SetBinContent(27,3);
   ResoRow09->SetBinContent(29,4);
   ResoRow09->SetBinContent(30,6);
   ResoRow09->SetBinContent(31,1);
   ResoRow09->SetBinContent(32,3);
   ResoRow09->SetBinContent(33,2);
   ResoRow09->SetBinContent(34,6);
   ResoRow09->SetBinContent(35,4);
   ResoRow09->SetBinContent(36,6);
   ResoRow09->SetBinContent(37,11);
   ResoRow09->SetBinContent(38,8);
   ResoRow09->SetBinContent(39,14);
   ResoRow09->SetBinContent(40,13);
   ResoRow09->SetBinContent(41,17);
   ResoRow09->SetBinContent(42,22);
   ResoRow09->SetBinContent(43,34);
   ResoRow09->SetBinContent(44,37);
   ResoRow09->SetBinContent(45,73);
   ResoRow09->SetBinContent(46,82);
   ResoRow09->SetBinContent(47,103);
   ResoRow09->SetBinContent(48,88);
   ResoRow09->SetBinContent(49,109);
   ResoRow09->SetBinContent(50,127);
   ResoRow09->SetBinContent(51,122);
   ResoRow09->SetBinContent(52,127);
   ResoRow09->SetBinContent(53,93);
   ResoRow09->SetBinContent(54,95);
   ResoRow09->SetBinContent(55,59);
   ResoRow09->SetBinContent(56,54);
   ResoRow09->SetBinContent(57,46);
   ResoRow09->SetBinContent(58,36);
   ResoRow09->SetBinContent(59,25);
   ResoRow09->SetBinContent(60,18);
   ResoRow09->SetBinContent(61,25);
   ResoRow09->SetBinContent(62,13);
   ResoRow09->SetBinContent(63,5);
   ResoRow09->SetBinContent(64,3);
   ResoRow09->SetBinContent(65,5);
   ResoRow09->SetBinContent(66,2);
   ResoRow09->SetBinContent(67,6);
   ResoRow09->SetBinContent(68,2);
   ResoRow09->SetBinContent(69,2);
   ResoRow09->SetBinContent(70,2);
   ResoRow09->SetBinContent(71,4);
   ResoRow09->SetBinContent(72,4);
   ResoRow09->SetBinContent(73,3);
   ResoRow09->SetBinContent(74,1);
   ResoRow09->SetBinContent(75,1);
   ResoRow09->SetBinContent(76,5);
   ResoRow09->SetBinContent(77,2);
   ResoRow09->SetBinContent(78,1);
   ResoRow09->SetBinContent(79,1);
   ResoRow09->SetBinContent(81,2);
   ResoRow09->SetBinContent(82,1);
   ResoRow09->SetBinContent(85,1);
   ResoRow09->SetBinContent(91,1);
   ResoRow09->SetBinContent(92,1);
   ResoRow09->SetBinContent(95,1);
   ResoRow09->SetBinContent(101,19);
   ResoRow09->SetEntries(1591);
   
   TF1 *ResoRowFit09 = new TF1("ResoRowFit09","gaus",-1,1);
   ResoRowFit09->SetFillColor(19);
   ResoRowFit09->SetFillStyle(0);
   ResoRowFit09->SetLineWidth(3);
   ResoRowFit09->SetChisquare(128.8538);
   ResoRowFit09->SetNDF(70);
   ResoRowFit09->SetParameter(0,110.1368);
   ResoRowFit09->SetParError(0,4.000431);
   ResoRowFit09->SetParLimits(0,0,0);
   ResoRowFit09->SetParameter(1,-0.001024626);
   ResoRowFit09->SetParError(1,0.002742773);
   ResoRowFit09->SetParLimits(1,0,0);
   ResoRowFit09->SetParameter(2,0.1038248);
   ResoRowFit09->SetParError(2,0.002587732);
   ResoRowFit09->SetParLimits(2,0,1.591133);
   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 = 1591   ");
   text = ptstats->AddText("Mean  = -0.004127");
   text = ptstats->AddText("RMS   = 0.1589");
   text = ptstats->AddText("#chi^{2} / ndf = 128.9 / 70");
   text = ptstats->AddText("Constant = 110.1 #pm 4.0 ");
   text = ptstats->AddText("Mean     = -0.001025 #pm 0.002743 ");
   text = ptstats->AddText("Sigma    = 0.1038 #pm 0.0026 ");
   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,-16.40625,1.25,147.6563);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow10 = new TH1F("ResoRow10","",100,-1,1);
   ResoRow10->SetBinContent(0,9);
   ResoRow10->SetBinContent(2,1);
   ResoRow10->SetBinContent(12,1);
   ResoRow10->SetBinContent(14,2);
   ResoRow10->SetBinContent(15,1);
   ResoRow10->SetBinContent(16,2);
   ResoRow10->SetBinContent(18,1);
   ResoRow10->SetBinContent(21,1);
   ResoRow10->SetBinContent(22,2);
   ResoRow10->SetBinContent(23,1);
   ResoRow10->SetBinContent(24,3);
   ResoRow10->SetBinContent(25,1);
   ResoRow10->SetBinContent(26,1);
   ResoRow10->SetBinContent(27,2);
   ResoRow10->SetBinContent(28,2);
   ResoRow10->SetBinContent(29,4);
   ResoRow10->SetBinContent(30,5);
   ResoRow10->SetBinContent(31,3);
   ResoRow10->SetBinContent(32,5);
   ResoRow10->SetBinContent(33,4);
   ResoRow10->SetBinContent(34,3);
   ResoRow10->SetBinContent(35,11);
   ResoRow10->SetBinContent(36,7);
   ResoRow10->SetBinContent(37,5);
   ResoRow10->SetBinContent(38,13);
   ResoRow10->SetBinContent(39,13);
   ResoRow10->SetBinContent(40,8);
   ResoRow10->SetBinContent(41,21);
   ResoRow10->SetBinContent(42,25);
   ResoRow10->SetBinContent(43,35);
   ResoRow10->SetBinContent(44,39);
   ResoRow10->SetBinContent(45,47);
   ResoRow10->SetBinContent(46,65);
   ResoRow10->SetBinContent(47,96);
   ResoRow10->SetBinContent(48,99);
   ResoRow10->SetBinContent(49,119);
   ResoRow10->SetBinContent(50,107);
   ResoRow10->SetBinContent(51,125);
   ResoRow10->SetBinContent(52,110);
   ResoRow10->SetBinContent(53,98);
   ResoRow10->SetBinContent(54,102);
   ResoRow10->SetBinContent(55,92);
   ResoRow10->SetBinContent(56,65);
   ResoRow10->SetBinContent(57,47);
   ResoRow10->SetBinContent(58,39);
   ResoRow10->SetBinContent(59,33);
   ResoRow10->SetBinContent(60,16);
   ResoRow10->SetBinContent(61,8);
   ResoRow10->SetBinContent(62,12);
   ResoRow10->SetBinContent(63,10);
   ResoRow10->SetBinContent(64,6);
   ResoRow10->SetBinContent(65,4);
   ResoRow10->SetBinContent(66,5);
   ResoRow10->SetBinContent(67,4);
   ResoRow10->SetBinContent(68,1);
   ResoRow10->SetBinContent(69,3);
   ResoRow10->SetBinContent(70,1);
   ResoRow10->SetBinContent(71,1);
   ResoRow10->SetBinContent(72,1);
   ResoRow10->SetBinContent(73,4);
   ResoRow10->SetBinContent(74,3);
   ResoRow10->SetBinContent(75,1);
   ResoRow10->SetBinContent(76,2);
   ResoRow10->SetBinContent(78,1);
   ResoRow10->SetBinContent(81,1);
   ResoRow10->SetBinContent(82,1);
   ResoRow10->SetBinContent(83,1);
   ResoRow10->SetBinContent(84,2);
   ResoRow10->SetBinContent(88,1);
   ResoRow10->SetBinContent(90,1);
   ResoRow10->SetBinContent(91,1);
   ResoRow10->SetBinContent(95,1);
   ResoRow10->SetBinContent(97,1);
   ResoRow10->SetBinContent(101,23);
   ResoRow10->SetEntries(1591);
   
   TF1 *ResoRowFit10 = new TF1("ResoRowFit10","gaus",-1,1);
   ResoRowFit10->SetFillColor(19);
   ResoRowFit10->SetFillStyle(0);
   ResoRowFit10->SetLineWidth(3);
   ResoRowFit10->SetChisquare(124.0562);
   ResoRowFit10->SetNDF(69);
   ResoRowFit10->SetParameter(0,112.1687);
   ResoRowFit10->SetParError(0,4.049218);
   ResoRowFit10->SetParLimits(0,0,0);
   ResoRowFit10->SetParameter(1,0.00488404);
   ResoRowFit10->SetParError(1,0.002716653);
   ResoRowFit10->SetParLimits(1,0,0);
   ResoRowFit10->SetParameter(2,0.1020712);
   ResoRowFit10->SetParError(2,0.002518434);
   ResoRowFit10->SetParLimits(2,0,1.567013);
   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 = 1591   ");
   text = ptstats->AddText("Mean  = -0.001245");
   text = ptstats->AddText("RMS   = 0.1566");
   text = ptstats->AddText("#chi^{2} / ndf = 124.1 / 69");
   text = ptstats->AddText("Constant = 112.2 #pm 4.0 ");
   text = ptstats->AddText("Mean     = 0.004884 #pm 0.002717 ");
   text = ptstats->AddText("Sigma    = 0.1021 #pm 0.0025 ");
   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,-15.61875,1.25,140.5688);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow11 = new TH1F("ResoRow11","",100,-1,1);
   ResoRow11->SetBinContent(0,8);
   ResoRow11->SetBinContent(8,2);
   ResoRow11->SetBinContent(13,2);
   ResoRow11->SetBinContent(14,2);
   ResoRow11->SetBinContent(15,1);
   ResoRow11->SetBinContent(16,1);
   ResoRow11->SetBinContent(17,3);
   ResoRow11->SetBinContent(18,1);
   ResoRow11->SetBinContent(19,2);
   ResoRow11->SetBinContent(20,1);
   ResoRow11->SetBinContent(22,4);
   ResoRow11->SetBinContent(23,2);
   ResoRow11->SetBinContent(24,1);
   ResoRow11->SetBinContent(25,1);
   ResoRow11->SetBinContent(26,2);
   ResoRow11->SetBinContent(27,1);
   ResoRow11->SetBinContent(28,2);
   ResoRow11->SetBinContent(30,4);
   ResoRow11->SetBinContent(31,1);
   ResoRow11->SetBinContent(32,1);
   ResoRow11->SetBinContent(33,2);
   ResoRow11->SetBinContent(34,11);
   ResoRow11->SetBinContent(35,7);
   ResoRow11->SetBinContent(36,5);
   ResoRow11->SetBinContent(37,9);
   ResoRow11->SetBinContent(38,10);
   ResoRow11->SetBinContent(39,16);
   ResoRow11->SetBinContent(40,12);
   ResoRow11->SetBinContent(41,32);
   ResoRow11->SetBinContent(42,36);
   ResoRow11->SetBinContent(43,30);
   ResoRow11->SetBinContent(44,49);
   ResoRow11->SetBinContent(45,62);
   ResoRow11->SetBinContent(46,75);
   ResoRow11->SetBinContent(47,89);
   ResoRow11->SetBinContent(48,96);
   ResoRow11->SetBinContent(49,109);
   ResoRow11->SetBinContent(50,103);
   ResoRow11->SetBinContent(51,119);
   ResoRow11->SetBinContent(52,117);
   ResoRow11->SetBinContent(53,96);
   ResoRow11->SetBinContent(54,96);
   ResoRow11->SetBinContent(55,65);
   ResoRow11->SetBinContent(56,71);
   ResoRow11->SetBinContent(57,50);
   ResoRow11->SetBinContent(58,33);
   ResoRow11->SetBinContent(59,30);
   ResoRow11->SetBinContent(60,20);
   ResoRow11->SetBinContent(61,6);
   ResoRow11->SetBinContent(62,10);
   ResoRow11->SetBinContent(63,6);
   ResoRow11->SetBinContent(64,6);
   ResoRow11->SetBinContent(65,9);
   ResoRow11->SetBinContent(66,4);
   ResoRow11->SetBinContent(67,1);
   ResoRow11->SetBinContent(68,5);
   ResoRow11->SetBinContent(69,4);
   ResoRow11->SetBinContent(70,1);
   ResoRow11->SetBinContent(71,3);
   ResoRow11->SetBinContent(72,3);
   ResoRow11->SetBinContent(73,2);
   ResoRow11->SetBinContent(74,2);
   ResoRow11->SetBinContent(75,1);
   ResoRow11->SetBinContent(76,1);
   ResoRow11->SetBinContent(77,1);
   ResoRow11->SetBinContent(79,2);
   ResoRow11->SetBinContent(80,1);
   ResoRow11->SetBinContent(81,1);
   ResoRow11->SetBinContent(83,1);
   ResoRow11->SetBinContent(85,1);
   ResoRow11->SetBinContent(86,2);
   ResoRow11->SetBinContent(87,1);
   ResoRow11->SetBinContent(97,1);
   ResoRow11->SetBinContent(101,24);
   ResoRow11->SetEntries(1591);
   
   TF1 *ResoRowFit11 = new TF1("ResoRowFit11","gaus",-1,1);
   ResoRowFit11->SetFillColor(19);
   ResoRowFit11->SetFillStyle(0);
   ResoRowFit11->SetLineWidth(3);
   ResoRowFit11->SetChisquare(120.2628);
   ResoRowFit11->SetNDF(69);
   ResoRowFit11->SetParameter(0,107.5985);
   ResoRowFit11->SetParError(0,3.821256);
   ResoRowFit11->SetParLimits(0,0,0);
   ResoRowFit11->SetParameter(1,-0.005102539);
   ResoRowFit11->SetParError(1,0.002867547);
   ResoRowFit11->SetParLimits(1,0,0);
   ResoRowFit11->SetParameter(2,0.1066909);
   ResoRowFit11->SetParError(2,0.002538881);
   ResoRowFit11->SetParLimits(2,0,1.599821);
   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 = 1591   ");
   text = ptstats->AddText("Mean  = -0.008719");
   text = ptstats->AddText("RMS   = 0.1599");
   text = ptstats->AddText("#chi^{2} / ndf = 120.3 / 69");
   text = ptstats->AddText("Constant = 107.6 #pm 3.8 ");
   text = ptstats->AddText("Mean     = -0.005103 #pm 0.002868 ");
   text = ptstats->AddText("Sigma    = 0.1067 #pm 0.0025 ");
   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,-17.5875,1.25,158.2875);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow12 = new TH1F("ResoRow12","",100,-1,1);
   ResoRow12->SetBinContent(0,10);
   ResoRow12->SetBinContent(4,1);
   ResoRow12->SetBinContent(7,1);
   ResoRow12->SetBinContent(9,1);
   ResoRow12->SetBinContent(10,1);
   ResoRow12->SetBinContent(11,1);
   ResoRow12->SetBinContent(14,1);
   ResoRow12->SetBinContent(16,1);
   ResoRow12->SetBinContent(17,1);
   ResoRow12->SetBinContent(18,1);
   ResoRow12->SetBinContent(19,5);
   ResoRow12->SetBinContent(20,1);
   ResoRow12->SetBinContent(22,1);
   ResoRow12->SetBinContent(23,3);
   ResoRow12->SetBinContent(25,1);
   ResoRow12->SetBinContent(26,1);
   ResoRow12->SetBinContent(27,2);
   ResoRow12->SetBinContent(28,1);
   ResoRow12->SetBinContent(29,3);
   ResoRow12->SetBinContent(30,2);
   ResoRow12->SetBinContent(31,6);
   ResoRow12->SetBinContent(32,6);
   ResoRow12->SetBinContent(33,7);
   ResoRow12->SetBinContent(34,6);
   ResoRow12->SetBinContent(35,4);
   ResoRow12->SetBinContent(36,11);
   ResoRow12->SetBinContent(37,12);
   ResoRow12->SetBinContent(38,10);
   ResoRow12->SetBinContent(39,15);
   ResoRow12->SetBinContent(40,13);
   ResoRow12->SetBinContent(41,22);
   ResoRow12->SetBinContent(42,32);
   ResoRow12->SetBinContent(43,41);
   ResoRow12->SetBinContent(44,43);
   ResoRow12->SetBinContent(45,49);
   ResoRow12->SetBinContent(46,75);
   ResoRow12->SetBinContent(47,86);
   ResoRow12->SetBinContent(48,120);
   ResoRow12->SetBinContent(49,115);
   ResoRow12->SetBinContent(50,134);
   ResoRow12->SetBinContent(51,101);
   ResoRow12->SetBinContent(52,119);
   ResoRow12->SetBinContent(53,97);
   ResoRow12->SetBinContent(54,87);
   ResoRow12->SetBinContent(55,68);
   ResoRow12->SetBinContent(56,51);
   ResoRow12->SetBinContent(57,45);
   ResoRow12->SetBinContent(58,29);
   ResoRow12->SetBinContent(59,19);
   ResoRow12->SetBinContent(60,18);
   ResoRow12->SetBinContent(61,18);
   ResoRow12->SetBinContent(62,15);
   ResoRow12->SetBinContent(63,6);
   ResoRow12->SetBinContent(64,13);
   ResoRow12->SetBinContent(65,8);
   ResoRow12->SetBinContent(66,2);
   ResoRow12->SetBinContent(67,3);
   ResoRow12->SetBinContent(68,2);
   ResoRow12->SetBinContent(70,3);
   ResoRow12->SetBinContent(71,4);
   ResoRow12->SetBinContent(72,4);
   ResoRow12->SetBinContent(73,1);
   ResoRow12->SetBinContent(74,1);
   ResoRow12->SetBinContent(75,2);
   ResoRow12->SetBinContent(77,1);
   ResoRow12->SetBinContent(78,1);
   ResoRow12->SetBinContent(80,1);
   ResoRow12->SetBinContent(82,1);
   ResoRow12->SetBinContent(83,2);
   ResoRow12->SetBinContent(84,1);
   ResoRow12->SetBinContent(85,2);
   ResoRow12->SetBinContent(87,1);
   ResoRow12->SetBinContent(89,1);
   ResoRow12->SetBinContent(90,1);
   ResoRow12->SetBinContent(97,1);
   ResoRow12->SetBinContent(101,16);
   ResoRow12->SetEntries(1591);
   
   TF1 *ResoRowFit12 = new TF1("ResoRowFit12","gaus",-1,1);
   ResoRowFit12->SetFillColor(19);
   ResoRowFit12->SetFillStyle(0);
   ResoRowFit12->SetLineWidth(3);
   ResoRowFit12->SetChisquare(138.7358);
   ResoRowFit12->SetNDF(71);
   ResoRowFit12->SetParameter(0,105.5044);
   ResoRowFit12->SetParError(0,4.061712);
   ResoRowFit12->SetParLimits(0,0,0);
   ResoRowFit12->SetParameter(1,-0.00557001);
   ResoRowFit12->SetParError(1,0.002865742);
   ResoRowFit12->SetParLimits(1,0,0);
   ResoRowFit12->SetParameter(2,0.1078811);
   ResoRowFit12->SetParError(2,0.003019423);
   ResoRowFit12->SetParLimits(2,0,1.630702);
   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 = 1591   ");
   text = ptstats->AddText("Mean  = -0.01065");
   text = ptstats->AddText("RMS   = 0.1629");
   text = ptstats->AddText("#chi^{2} / ndf = 138.7 / 71");
   text = ptstats->AddText("Constant = 105.5 #pm 4.1 ");
   text = ptstats->AddText("Mean     = -0.00557 #pm 0.00287 ");
   text = ptstats->AddText("Sigma    = 0.1079 #pm 0.0030 ");
   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);
}
