{
//=========Macro generated from canvas: c2/
//=========  (Wed Jun  9 19:20:52 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,-16.93125,1.25,152.3813);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow07 = new TH1F("ResoRow07","",100,-1,1);
   ResoRow07->SetBinContent(0,7);
   ResoRow07->SetBinContent(4,2);
   ResoRow07->SetBinContent(7,1);
   ResoRow07->SetBinContent(8,1);
   ResoRow07->SetBinContent(10,1);
   ResoRow07->SetBinContent(12,2);
   ResoRow07->SetBinContent(14,1);
   ResoRow07->SetBinContent(16,1);
   ResoRow07->SetBinContent(17,1);
   ResoRow07->SetBinContent(18,2);
   ResoRow07->SetBinContent(21,1);
   ResoRow07->SetBinContent(22,2);
   ResoRow07->SetBinContent(24,1);
   ResoRow07->SetBinContent(25,1);
   ResoRow07->SetBinContent(26,2);
   ResoRow07->SetBinContent(28,1);
   ResoRow07->SetBinContent(29,1);
   ResoRow07->SetBinContent(30,1);
   ResoRow07->SetBinContent(31,3);
   ResoRow07->SetBinContent(32,2);
   ResoRow07->SetBinContent(34,6);
   ResoRow07->SetBinContent(35,5);
   ResoRow07->SetBinContent(36,1);
   ResoRow07->SetBinContent(37,10);
   ResoRow07->SetBinContent(38,11);
   ResoRow07->SetBinContent(39,15);
   ResoRow07->SetBinContent(40,17);
   ResoRow07->SetBinContent(41,18);
   ResoRow07->SetBinContent(42,33);
   ResoRow07->SetBinContent(43,27);
   ResoRow07->SetBinContent(44,46);
   ResoRow07->SetBinContent(45,56);
   ResoRow07->SetBinContent(46,71);
   ResoRow07->SetBinContent(47,99);
   ResoRow07->SetBinContent(48,101);
   ResoRow07->SetBinContent(49,116);
   ResoRow07->SetBinContent(50,129);
   ResoRow07->SetBinContent(51,116);
   ResoRow07->SetBinContent(52,101);
   ResoRow07->SetBinContent(53,90);
   ResoRow07->SetBinContent(54,84);
   ResoRow07->SetBinContent(55,62);
   ResoRow07->SetBinContent(56,60);
   ResoRow07->SetBinContent(57,34);
   ResoRow07->SetBinContent(58,26);
   ResoRow07->SetBinContent(59,20);
   ResoRow07->SetBinContent(60,18);
   ResoRow07->SetBinContent(61,7);
   ResoRow07->SetBinContent(62,12);
   ResoRow07->SetBinContent(63,4);
   ResoRow07->SetBinContent(64,4);
   ResoRow07->SetBinContent(65,10);
   ResoRow07->SetBinContent(66,2);
   ResoRow07->SetBinContent(67,7);
   ResoRow07->SetBinContent(68,4);
   ResoRow07->SetBinContent(69,3);
   ResoRow07->SetBinContent(70,3);
   ResoRow07->SetBinContent(72,2);
   ResoRow07->SetBinContent(73,1);
   ResoRow07->SetBinContent(74,1);
   ResoRow07->SetBinContent(75,2);
   ResoRow07->SetBinContent(77,2);
   ResoRow07->SetBinContent(78,2);
   ResoRow07->SetBinContent(80,2);
   ResoRow07->SetBinContent(82,1);
   ResoRow07->SetBinContent(83,2);
   ResoRow07->SetBinContent(85,1);
   ResoRow07->SetBinContent(87,1);
   ResoRow07->SetBinContent(89,1);
   ResoRow07->SetBinContent(92,1);
   ResoRow07->SetBinContent(96,2);
   ResoRow07->SetBinContent(101,18);
   ResoRow07->SetEntries(1501);
   
   TF1 *ResoRowFit07 = new TF1("ResoRowFit07","gaus",-1,1);
   ResoRowFit07->SetFillColor(19);
   ResoRowFit07->SetFillStyle(0);
   ResoRowFit07->SetLineWidth(3);
   ResoRowFit07->SetChisquare(114.3781);
   ResoRowFit07->SetNDF(67);
   ResoRowFit07->SetParameter(0,108.8943);
   ResoRowFit07->SetParError(0,3.990156);
   ResoRowFit07->SetParLimits(0,0,0);
   ResoRowFit07->SetParameter(1,-0.007584745);
   ResoRowFit07->SetParError(1,0.002711082);
   ResoRowFit07->SetParLimits(1,0,0);
   ResoRowFit07->SetParameter(2,0.09979161);
   ResoRowFit07->SetParError(2,0.002466819);
   ResoRowFit07->SetParLimits(2,0,1.587074);
   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 = 1501   ");
   text = ptstats->AddText("Mean  = -0.007369");
   text = ptstats->AddText("RMS   = 0.1584");
   text = ptstats->AddText("#chi^{2} / ndf = 114.4 / 67");
   text = ptstats->AddText("Constant = 108.9 #pm 4.0 ");
   text = ptstats->AddText("Mean     = -0.007585 #pm 0.002711 ");
   text = ptstats->AddText("Sigma    = 0.09979 #pm 0.00247 ");
   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.66875,1.25,150.0188);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow08 = new TH1F("ResoRow08","",100,-1,1);
   ResoRow08->SetBinContent(0,6);
   ResoRow08->SetBinContent(5,1);
   ResoRow08->SetBinContent(7,1);
   ResoRow08->SetBinContent(9,1);
   ResoRow08->SetBinContent(10,2);
   ResoRow08->SetBinContent(13,1);
   ResoRow08->SetBinContent(18,1);
   ResoRow08->SetBinContent(19,1);
   ResoRow08->SetBinContent(20,1);
   ResoRow08->SetBinContent(21,1);
   ResoRow08->SetBinContent(22,2);
   ResoRow08->SetBinContent(24,3);
   ResoRow08->SetBinContent(25,2);
   ResoRow08->SetBinContent(27,2);
   ResoRow08->SetBinContent(29,1);
   ResoRow08->SetBinContent(30,6);
   ResoRow08->SetBinContent(31,1);
   ResoRow08->SetBinContent(32,1);
   ResoRow08->SetBinContent(33,4);
   ResoRow08->SetBinContent(34,6);
   ResoRow08->SetBinContent(35,2);
   ResoRow08->SetBinContent(36,7);
   ResoRow08->SetBinContent(37,9);
   ResoRow08->SetBinContent(38,9);
   ResoRow08->SetBinContent(39,12);
   ResoRow08->SetBinContent(40,13);
   ResoRow08->SetBinContent(41,13);
   ResoRow08->SetBinContent(42,24);
   ResoRow08->SetBinContent(43,34);
   ResoRow08->SetBinContent(44,39);
   ResoRow08->SetBinContent(45,52);
   ResoRow08->SetBinContent(46,75);
   ResoRow08->SetBinContent(47,98);
   ResoRow08->SetBinContent(48,82);
   ResoRow08->SetBinContent(49,110);
   ResoRow08->SetBinContent(50,115);
   ResoRow08->SetBinContent(51,127);
   ResoRow08->SetBinContent(52,122);
   ResoRow08->SetBinContent(53,98);
   ResoRow08->SetBinContent(54,74);
   ResoRow08->SetBinContent(55,64);
   ResoRow08->SetBinContent(56,51);
   ResoRow08->SetBinContent(57,42);
   ResoRow08->SetBinContent(58,29);
   ResoRow08->SetBinContent(59,21);
   ResoRow08->SetBinContent(60,21);
   ResoRow08->SetBinContent(61,10);
   ResoRow08->SetBinContent(62,13);
   ResoRow08->SetBinContent(63,6);
   ResoRow08->SetBinContent(64,10);
   ResoRow08->SetBinContent(65,9);
   ResoRow08->SetBinContent(66,6);
   ResoRow08->SetBinContent(67,4);
   ResoRow08->SetBinContent(68,4);
   ResoRow08->SetBinContent(69,1);
   ResoRow08->SetBinContent(70,6);
   ResoRow08->SetBinContent(71,4);
   ResoRow08->SetBinContent(72,2);
   ResoRow08->SetBinContent(73,1);
   ResoRow08->SetBinContent(74,3);
   ResoRow08->SetBinContent(75,1);
   ResoRow08->SetBinContent(76,2);
   ResoRow08->SetBinContent(78,3);
   ResoRow08->SetBinContent(79,2);
   ResoRow08->SetBinContent(80,3);
   ResoRow08->SetBinContent(84,3);
   ResoRow08->SetBinContent(85,1);
   ResoRow08->SetBinContent(88,1);
   ResoRow08->SetBinContent(92,1);
   ResoRow08->SetBinContent(98,1);
   ResoRow08->SetBinContent(101,17);
   ResoRow08->SetEntries(1501);
   
   TF1 *ResoRowFit08 = new TF1("ResoRowFit08","gaus",-1,1);
   ResoRowFit08->SetFillColor(19);
   ResoRowFit08->SetFillStyle(0);
   ResoRowFit08->SetLineWidth(3);
   ResoRowFit08->SetChisquare(129.664);
   ResoRowFit08->SetNDF(66);
   ResoRowFit08->SetParameter(0,104.9119);
   ResoRowFit08->SetParError(0,4.100221);
   ResoRowFit08->SetParLimits(0,0,0);
   ResoRowFit08->SetParameter(1,-0.001246928);
   ResoRowFit08->SetParError(1,0.002793717);
   ResoRowFit08->SetParLimits(1,0,0);
   ResoRowFit08->SetParameter(2,0.1025454);
   ResoRowFit08->SetParError(2,0.002873737);
   ResoRowFit08->SetParLimits(2,0,1.602879);
   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 = 1501   ");
   text = ptstats->AddText("Mean  = 0.001363");
   text = ptstats->AddText("RMS   = 0.1602");
   text = ptstats->AddText("#chi^{2} / ndf = 129.7 / 66");
   text = ptstats->AddText("Constant = 104.9 #pm 4.1 ");
   text = ptstats->AddText("Mean     = -0.001247 #pm 0.002794 ");
   text = ptstats->AddText("Sigma    = 0.1025 #pm 0.0029 ");
   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,-15.88125,1.25,142.9313);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow09 = new TH1F("ResoRow09","",100,-1,1);
   ResoRow09->SetBinContent(0,5);
   ResoRow09->SetBinContent(8,1);
   ResoRow09->SetBinContent(10,1);
   ResoRow09->SetBinContent(12,2);
   ResoRow09->SetBinContent(15,1);
   ResoRow09->SetBinContent(20,2);
   ResoRow09->SetBinContent(25,1);
   ResoRow09->SetBinContent(26,1);
   ResoRow09->SetBinContent(27,2);
   ResoRow09->SetBinContent(28,4);
   ResoRow09->SetBinContent(29,4);
   ResoRow09->SetBinContent(30,4);
   ResoRow09->SetBinContent(31,4);
   ResoRow09->SetBinContent(32,2);
   ResoRow09->SetBinContent(33,2);
   ResoRow09->SetBinContent(34,5);
   ResoRow09->SetBinContent(35,4);
   ResoRow09->SetBinContent(36,1);
   ResoRow09->SetBinContent(37,1);
   ResoRow09->SetBinContent(38,7);
   ResoRow09->SetBinContent(39,16);
   ResoRow09->SetBinContent(40,18);
   ResoRow09->SetBinContent(41,16);
   ResoRow09->SetBinContent(42,25);
   ResoRow09->SetBinContent(43,28);
   ResoRow09->SetBinContent(44,39);
   ResoRow09->SetBinContent(45,66);
   ResoRow09->SetBinContent(46,87);
   ResoRow09->SetBinContent(47,90);
   ResoRow09->SetBinContent(48,103);
   ResoRow09->SetBinContent(49,101);
   ResoRow09->SetBinContent(50,121);
   ResoRow09->SetBinContent(51,112);
   ResoRow09->SetBinContent(52,111);
   ResoRow09->SetBinContent(53,79);
   ResoRow09->SetBinContent(54,80);
   ResoRow09->SetBinContent(55,71);
   ResoRow09->SetBinContent(56,56);
   ResoRow09->SetBinContent(57,36);
   ResoRow09->SetBinContent(58,33);
   ResoRow09->SetBinContent(59,26);
   ResoRow09->SetBinContent(60,7);
   ResoRow09->SetBinContent(61,20);
   ResoRow09->SetBinContent(62,7);
   ResoRow09->SetBinContent(63,17);
   ResoRow09->SetBinContent(64,8);
   ResoRow09->SetBinContent(65,7);
   ResoRow09->SetBinContent(66,5);
   ResoRow09->SetBinContent(67,4);
   ResoRow09->SetBinContent(68,3);
   ResoRow09->SetBinContent(69,5);
   ResoRow09->SetBinContent(70,2);
   ResoRow09->SetBinContent(71,5);
   ResoRow09->SetBinContent(72,4);
   ResoRow09->SetBinContent(73,3);
   ResoRow09->SetBinContent(75,1);
   ResoRow09->SetBinContent(76,3);
   ResoRow09->SetBinContent(77,1);
   ResoRow09->SetBinContent(79,2);
   ResoRow09->SetBinContent(81,1);
   ResoRow09->SetBinContent(82,1);
   ResoRow09->SetBinContent(84,1);
   ResoRow09->SetBinContent(86,2);
   ResoRow09->SetBinContent(87,1);
   ResoRow09->SetBinContent(89,1);
   ResoRow09->SetBinContent(90,1);
   ResoRow09->SetBinContent(93,1);
   ResoRow09->SetBinContent(94,1);
   ResoRow09->SetBinContent(100,1);
   ResoRow09->SetBinContent(101,18);
   ResoRow09->SetEntries(1501);
   
   TF1 *ResoRowFit09 = new TF1("ResoRowFit09","gaus",-1,1);
   ResoRowFit09->SetFillColor(19);
   ResoRowFit09->SetFillStyle(0);
   ResoRowFit09->SetLineWidth(3);
   ResoRowFit09->SetChisquare(142.2136);
   ResoRowFit09->SetNDF(65);
   ResoRowFit09->SetParameter(0,109.0964);
   ResoRowFit09->SetParError(0,3.893916);
   ResoRowFit09->SetParLimits(0,0,0);
   ResoRowFit09->SetParameter(1,-0.004682072);
   ResoRowFit09->SetParError(1,0.002697228);
   ResoRowFit09->SetParLimits(1,0,0);
   ResoRowFit09->SetParameter(2,0.09769376);
   ResoRowFit09->SetParError(2,0.002239419);
   ResoRowFit09->SetParLimits(2,0,1.577678);
   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 = 1501   ");
   text = ptstats->AddText("Mean  = 0.003236");
   text = ptstats->AddText("RMS   = 0.1579");
   text = ptstats->AddText("#chi^{2} / ndf = 142.2 / 65");
   text = ptstats->AddText("Constant = 109.1 #pm 3.9 ");
   text = ptstats->AddText("Mean     = -0.004682 #pm 0.002697 ");
   text = ptstats->AddText("Sigma    = 0.09769 #pm 0.00224 ");
   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,-17.0625,1.25,153.5625);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow10 = new TH1F("ResoRow10","",100,-1,1);
   ResoRow10->SetBinContent(0,7);
   ResoRow10->SetBinContent(3,2);
   ResoRow10->SetBinContent(9,1);
   ResoRow10->SetBinContent(13,1);
   ResoRow10->SetBinContent(14,1);
   ResoRow10->SetBinContent(15,1);
   ResoRow10->SetBinContent(19,1);
   ResoRow10->SetBinContent(21,1);
   ResoRow10->SetBinContent(26,1);
   ResoRow10->SetBinContent(28,4);
   ResoRow10->SetBinContent(29,2);
   ResoRow10->SetBinContent(31,1);
   ResoRow10->SetBinContent(32,4);
   ResoRow10->SetBinContent(33,6);
   ResoRow10->SetBinContent(34,4);
   ResoRow10->SetBinContent(35,3);
   ResoRow10->SetBinContent(36,6);
   ResoRow10->SetBinContent(37,4);
   ResoRow10->SetBinContent(38,6);
   ResoRow10->SetBinContent(39,14);
   ResoRow10->SetBinContent(40,15);
   ResoRow10->SetBinContent(41,13);
   ResoRow10->SetBinContent(42,32);
   ResoRow10->SetBinContent(43,36);
   ResoRow10->SetBinContent(44,41);
   ResoRow10->SetBinContent(45,64);
   ResoRow10->SetBinContent(46,72);
   ResoRow10->SetBinContent(47,86);
   ResoRow10->SetBinContent(48,95);
   ResoRow10->SetBinContent(49,114);
   ResoRow10->SetBinContent(50,130);
   ResoRow10->SetBinContent(51,116);
   ResoRow10->SetBinContent(52,110);
   ResoRow10->SetBinContent(53,90);
   ResoRow10->SetBinContent(54,75);
   ResoRow10->SetBinContent(55,49);
   ResoRow10->SetBinContent(56,65);
   ResoRow10->SetBinContent(57,43);
   ResoRow10->SetBinContent(58,34);
   ResoRow10->SetBinContent(59,22);
   ResoRow10->SetBinContent(60,19);
   ResoRow10->SetBinContent(61,15);
   ResoRow10->SetBinContent(62,8);
   ResoRow10->SetBinContent(63,7);
   ResoRow10->SetBinContent(64,15);
   ResoRow10->SetBinContent(65,3);
   ResoRow10->SetBinContent(66,5);
   ResoRow10->SetBinContent(67,6);
   ResoRow10->SetBinContent(68,7);
   ResoRow10->SetBinContent(69,3);
   ResoRow10->SetBinContent(70,3);
   ResoRow10->SetBinContent(71,1);
   ResoRow10->SetBinContent(72,3);
   ResoRow10->SetBinContent(73,2);
   ResoRow10->SetBinContent(74,1);
   ResoRow10->SetBinContent(75,3);
   ResoRow10->SetBinContent(78,1);
   ResoRow10->SetBinContent(81,1);
   ResoRow10->SetBinContent(82,1);
   ResoRow10->SetBinContent(83,1);
   ResoRow10->SetBinContent(84,1);
   ResoRow10->SetBinContent(86,1);
   ResoRow10->SetBinContent(89,1);
   ResoRow10->SetBinContent(92,1);
   ResoRow10->SetBinContent(93,1);
   ResoRow10->SetBinContent(99,1);
   ResoRow10->SetBinContent(101,18);
   ResoRow10->SetEntries(1501);
   
   TF1 *ResoRowFit10 = new TF1("ResoRowFit10","gaus",-1,1);
   ResoRowFit10->SetFillColor(19);
   ResoRowFit10->SetFillStyle(0);
   ResoRowFit10->SetLineWidth(3);
   ResoRowFit10->SetChisquare(108.8796);
   ResoRowFit10->SetNDF(62);
   ResoRowFit10->SetParameter(0,104.3415);
   ResoRowFit10->SetParError(0,3.88896);
   ResoRowFit10->SetParLimits(0,0,0);
   ResoRowFit10->SetParameter(1,-0.00333727);
   ResoRowFit10->SetParError(1,0.002843524);
   ResoRowFit10->SetParLimits(1,0,0);
   ResoRowFit10->SetParameter(2,0.1045464);
   ResoRowFit10->SetParError(2,0.00268186);
   ResoRowFit10->SetParLimits(2,0,1.515613);
   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 = 1501   ");
   text = ptstats->AddText("Mean  = 0.001113");
   text = ptstats->AddText("RMS   = 0.1517");
   text = ptstats->AddText("#chi^{2} / ndf = 108.9 / 62");
   text = ptstats->AddText("Constant = 104.3 #pm 3.9 ");
   text = ptstats->AddText("Mean     = -0.003337 #pm 0.002844 ");
   text = ptstats->AddText("Sigma    = 0.1045 #pm 0.0027 ");
   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,-17.5875,1.25,158.2875);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow11 = new TH1F("ResoRow11","",100,-1,1);
   ResoRow11->SetBinContent(0,5);
   ResoRow11->SetBinContent(10,1);
   ResoRow11->SetBinContent(11,1);
   ResoRow11->SetBinContent(12,1);
   ResoRow11->SetBinContent(15,1);
   ResoRow11->SetBinContent(17,1);
   ResoRow11->SetBinContent(19,1);
   ResoRow11->SetBinContent(20,1);
   ResoRow11->SetBinContent(21,2);
   ResoRow11->SetBinContent(23,1);
   ResoRow11->SetBinContent(24,1);
   ResoRow11->SetBinContent(25,3);
   ResoRow11->SetBinContent(27,1);
   ResoRow11->SetBinContent(28,1);
   ResoRow11->SetBinContent(29,3);
   ResoRow11->SetBinContent(30,4);
   ResoRow11->SetBinContent(31,2);
   ResoRow11->SetBinContent(32,5);
   ResoRow11->SetBinContent(33,3);
   ResoRow11->SetBinContent(34,4);
   ResoRow11->SetBinContent(35,3);
   ResoRow11->SetBinContent(36,7);
   ResoRow11->SetBinContent(37,7);
   ResoRow11->SetBinContent(38,7);
   ResoRow11->SetBinContent(39,14);
   ResoRow11->SetBinContent(40,10);
   ResoRow11->SetBinContent(41,20);
   ResoRow11->SetBinContent(42,10);
   ResoRow11->SetBinContent(43,43);
   ResoRow11->SetBinContent(44,33);
   ResoRow11->SetBinContent(45,52);
   ResoRow11->SetBinContent(46,73);
   ResoRow11->SetBinContent(47,90);
   ResoRow11->SetBinContent(48,86);
   ResoRow11->SetBinContent(49,108);
   ResoRow11->SetBinContent(50,119);
   ResoRow11->SetBinContent(51,134);
   ResoRow11->SetBinContent(52,107);
   ResoRow11->SetBinContent(53,91);
   ResoRow11->SetBinContent(54,68);
   ResoRow11->SetBinContent(55,80);
   ResoRow11->SetBinContent(56,61);
   ResoRow11->SetBinContent(57,54);
   ResoRow11->SetBinContent(58,35);
   ResoRow11->SetBinContent(59,20);
   ResoRow11->SetBinContent(60,20);
   ResoRow11->SetBinContent(61,13);
   ResoRow11->SetBinContent(62,10);
   ResoRow11->SetBinContent(63,6);
   ResoRow11->SetBinContent(64,10);
   ResoRow11->SetBinContent(65,11);
   ResoRow11->SetBinContent(66,2);
   ResoRow11->SetBinContent(68,3);
   ResoRow11->SetBinContent(69,5);
   ResoRow11->SetBinContent(70,2);
   ResoRow11->SetBinContent(71,1);
   ResoRow11->SetBinContent(73,3);
   ResoRow11->SetBinContent(74,2);
   ResoRow11->SetBinContent(75,1);
   ResoRow11->SetBinContent(76,1);
   ResoRow11->SetBinContent(77,2);
   ResoRow11->SetBinContent(78,1);
   ResoRow11->SetBinContent(81,1);
   ResoRow11->SetBinContent(84,1);
   ResoRow11->SetBinContent(85,1);
   ResoRow11->SetBinContent(86,2);
   ResoRow11->SetBinContent(89,1);
   ResoRow11->SetBinContent(93,1);
   ResoRow11->SetBinContent(100,2);
   ResoRow11->SetBinContent(101,25);
   ResoRow11->SetEntries(1501);
   
   TF1 *ResoRowFit11 = new TF1("ResoRowFit11","gaus",-1,1);
   ResoRowFit11->SetFillColor(19);
   ResoRowFit11->SetFillStyle(0);
   ResoRowFit11->SetLineWidth(3);
   ResoRowFit11->SetChisquare(134.0637);
   ResoRowFit11->SetNDF(65);
   ResoRowFit11->SetParameter(0,106.5405);
   ResoRowFit11->SetParError(0,4.039408);
   ResoRowFit11->SetParLimits(0,0,0);
   ResoRowFit11->SetParameter(1,0.005986315);
   ResoRowFit11->SetParError(1,0.00274859);
   ResoRowFit11->SetParLimits(1,0,0);
   ResoRowFit11->SetParameter(2,0.1001673);
   ResoRowFit11->SetParError(2,0.002640478);
   ResoRowFit11->SetParLimits(2,0,1.53185);
   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 = 1501   ");
   text = ptstats->AddText("Mean  = 0.002253");
   text = ptstats->AddText("RMS   = 0.1532");
   text = ptstats->AddText("#chi^{2} / ndf = 134.1 / 65");
   text = ptstats->AddText("Constant = 106.5 #pm 4.0 ");
   text = ptstats->AddText("Mean     = 0.005986 #pm 0.002749 ");
   text = ptstats->AddText("Sigma    = 0.1002 #pm 0.0026 ");
   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,-16.93125,1.25,152.3813);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow12 = new TH1F("ResoRow12","",100,-1,1);
   ResoRow12->SetBinContent(0,7);
   ResoRow12->SetBinContent(7,1);
   ResoRow12->SetBinContent(8,2);
   ResoRow12->SetBinContent(10,1);
   ResoRow12->SetBinContent(11,1);
   ResoRow12->SetBinContent(13,1);
   ResoRow12->SetBinContent(17,1);
   ResoRow12->SetBinContent(22,1);
   ResoRow12->SetBinContent(23,1);
   ResoRow12->SetBinContent(24,1);
   ResoRow12->SetBinContent(25,2);
   ResoRow12->SetBinContent(26,2);
   ResoRow12->SetBinContent(27,1);
   ResoRow12->SetBinContent(28,3);
   ResoRow12->SetBinContent(29,1);
   ResoRow12->SetBinContent(30,2);
   ResoRow12->SetBinContent(31,3);
   ResoRow12->SetBinContent(32,3);
   ResoRow12->SetBinContent(33,5);
   ResoRow12->SetBinContent(34,3);
   ResoRow12->SetBinContent(35,2);
   ResoRow12->SetBinContent(36,6);
   ResoRow12->SetBinContent(37,6);
   ResoRow12->SetBinContent(38,11);
   ResoRow12->SetBinContent(39,8);
   ResoRow12->SetBinContent(40,10);
   ResoRow12->SetBinContent(41,24);
   ResoRow12->SetBinContent(42,27);
   ResoRow12->SetBinContent(43,27);
   ResoRow12->SetBinContent(44,43);
   ResoRow12->SetBinContent(45,56);
   ResoRow12->SetBinContent(46,70);
   ResoRow12->SetBinContent(47,96);
   ResoRow12->SetBinContent(48,90);
   ResoRow12->SetBinContent(49,94);
   ResoRow12->SetBinContent(50,115);
   ResoRow12->SetBinContent(51,129);
   ResoRow12->SetBinContent(52,110);
   ResoRow12->SetBinContent(53,95);
   ResoRow12->SetBinContent(54,80);
   ResoRow12->SetBinContent(55,72);
   ResoRow12->SetBinContent(56,51);
   ResoRow12->SetBinContent(57,49);
   ResoRow12->SetBinContent(58,33);
   ResoRow12->SetBinContent(59,19);
   ResoRow12->SetBinContent(60,26);
   ResoRow12->SetBinContent(61,18);
   ResoRow12->SetBinContent(62,12);
   ResoRow12->SetBinContent(63,9);
   ResoRow12->SetBinContent(64,6);
   ResoRow12->SetBinContent(65,2);
   ResoRow12->SetBinContent(66,8);
   ResoRow12->SetBinContent(67,2);
   ResoRow12->SetBinContent(68,10);
   ResoRow12->SetBinContent(69,2);
   ResoRow12->SetBinContent(70,2);
   ResoRow12->SetBinContent(71,3);
   ResoRow12->SetBinContent(72,2);
   ResoRow12->SetBinContent(73,3);
   ResoRow12->SetBinContent(74,2);
   ResoRow12->SetBinContent(75,2);
   ResoRow12->SetBinContent(76,1);
   ResoRow12->SetBinContent(83,1);
   ResoRow12->SetBinContent(85,1);
   ResoRow12->SetBinContent(87,2);
   ResoRow12->SetBinContent(90,1);
   ResoRow12->SetBinContent(94,1);
   ResoRow12->SetBinContent(96,1);
   ResoRow12->SetBinContent(98,1);
   ResoRow12->SetBinContent(99,1);
   ResoRow12->SetBinContent(101,17);
   ResoRow12->SetEntries(1501);
   
   TF1 *ResoRowFit12 = new TF1("ResoRowFit12","gaus",-1,1);
   ResoRowFit12->SetFillColor(19);
   ResoRowFit12->SetFillStyle(0);
   ResoRowFit12->SetLineWidth(3);
   ResoRowFit12->SetChisquare(106.1317);
   ResoRowFit12->SetNDF(66);
   ResoRowFit12->SetParameter(0,103.5041);
   ResoRowFit12->SetParError(0,3.827197);
   ResoRowFit12->SetParLimits(0,0,0);
   ResoRowFit12->SetParameter(1,0.001454358);
   ResoRowFit12->SetParError(1,0.002855678);
   ResoRowFit12->SetParLimits(1,0,0);
   ResoRowFit12->SetParameter(2,0.1056765);
   ResoRowFit12->SetParError(2,0.002667828);
   ResoRowFit12->SetParLimits(2,0,1.568017);
   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 = 1501   ");
   text = ptstats->AddText("Mean  = 0.003109");
   text = ptstats->AddText("RMS   = 0.1565");
   text = ptstats->AddText("#chi^{2} / ndf = 106.1 / 66");
   text = ptstats->AddText("Constant = 103.5 #pm 3.8 ");
   text = ptstats->AddText("Mean     = 0.001454 #pm 0.002856 ");
   text = ptstats->AddText("Sigma    = 0.1057 #pm 0.0027 ");
   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);
}
