{
//=========Macro generated from canvas: c2/
//=========  (Fri Jun 11 09:52:05 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,-12.20625,1.25,109.8563);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow07 = new TH1F("ResoRow07","",100,-1,1);
   ResoRow07->SetBinContent(0,2);
   ResoRow07->SetBinContent(23,1);
   ResoRow07->SetBinContent(25,1);
   ResoRow07->SetBinContent(27,1);
   ResoRow07->SetBinContent(28,1);
   ResoRow07->SetBinContent(30,1);
   ResoRow07->SetBinContent(31,2);
   ResoRow07->SetBinContent(33,2);
   ResoRow07->SetBinContent(34,1);
   ResoRow07->SetBinContent(35,2);
   ResoRow07->SetBinContent(36,4);
   ResoRow07->SetBinContent(37,8);
   ResoRow07->SetBinContent(38,7);
   ResoRow07->SetBinContent(39,9);
   ResoRow07->SetBinContent(40,13);
   ResoRow07->SetBinContent(41,21);
   ResoRow07->SetBinContent(42,28);
   ResoRow07->SetBinContent(43,39);
   ResoRow07->SetBinContent(44,41);
   ResoRow07->SetBinContent(45,46);
   ResoRow07->SetBinContent(46,60);
   ResoRow07->SetBinContent(47,57);
   ResoRow07->SetBinContent(48,53);
   ResoRow07->SetBinContent(49,90);
   ResoRow07->SetBinContent(50,71);
   ResoRow07->SetBinContent(51,93);
   ResoRow07->SetBinContent(52,72);
   ResoRow07->SetBinContent(53,60);
   ResoRow07->SetBinContent(54,67);
   ResoRow07->SetBinContent(55,53);
   ResoRow07->SetBinContent(56,47);
   ResoRow07->SetBinContent(57,38);
   ResoRow07->SetBinContent(58,29);
   ResoRow07->SetBinContent(59,29);
   ResoRow07->SetBinContent(60,20);
   ResoRow07->SetBinContent(61,14);
   ResoRow07->SetBinContent(62,17);
   ResoRow07->SetBinContent(63,3);
   ResoRow07->SetBinContent(64,7);
   ResoRow07->SetBinContent(65,2);
   ResoRow07->SetBinContent(66,5);
   ResoRow07->SetBinContent(67,3);
   ResoRow07->SetBinContent(68,1);
   ResoRow07->SetBinContent(70,2);
   ResoRow07->SetBinContent(71,1);
   ResoRow07->SetBinContent(72,2);
   ResoRow07->SetBinContent(73,1);
   ResoRow07->SetBinContent(76,1);
   ResoRow07->SetBinContent(78,1);
   ResoRow07->SetBinContent(79,1);
   ResoRow07->SetBinContent(86,1);
   ResoRow07->SetBinContent(89,1);
   ResoRow07->SetBinContent(101,4);
   ResoRow07->SetEntries(1136);
   
   TF1 *ResoRowFit07 = new TF1("ResoRowFit07","gaus",-1,1);
   ResoRowFit07->SetFillColor(19);
   ResoRowFit07->SetFillStyle(0);
   ResoRowFit07->SetLineWidth(3);
   ResoRowFit07->SetChisquare(47.53458);
   ResoRowFit07->SetNDF(48);
   ResoRowFit07->SetParameter(0,74.37179);
   ResoRowFit07->SetParError(0,2.843029);
   ResoRowFit07->SetParLimits(0,0,0);
   ResoRowFit07->SetParameter(1,-0.002380588);
   ResoRowFit07->SetParError(1,0.003551952);
   ResoRowFit07->SetParLimits(1,0,0);
   ResoRowFit07->SetParameter(2,0.1162453);
   ResoRowFit07->SetParError(2,0.002720492);
   ResoRowFit07->SetParLimits(2,0,1.324834);
   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 = 1136   ");
   text = ptstats->AddText("Mean  = 0.001895");
   text = ptstats->AddText("RMS   = 0.1324");
   text = ptstats->AddText("#chi^{2} / ndf = 47.53 / 48");
   text = ptstats->AddText("Constant = 74.37 #pm 2.84 ");
   text = ptstats->AddText("Mean     = -0.002381 #pm 0.003552 ");
   text = ptstats->AddText("Sigma    = 0.1162 #pm 0.0027 ");
   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.2875,1.25,101.5875);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow08 = new TH1F("ResoRow08","",100,-1,1);
   ResoRow08->SetBinContent(0,4);
   ResoRow08->SetBinContent(21,1);
   ResoRow08->SetBinContent(22,1);
   ResoRow08->SetBinContent(23,2);
   ResoRow08->SetBinContent(26,1);
   ResoRow08->SetBinContent(28,1);
   ResoRow08->SetBinContent(29,1);
   ResoRow08->SetBinContent(30,2);
   ResoRow08->SetBinContent(32,1);
   ResoRow08->SetBinContent(33,3);
   ResoRow08->SetBinContent(34,5);
   ResoRow08->SetBinContent(35,2);
   ResoRow08->SetBinContent(36,8);
   ResoRow08->SetBinContent(37,5);
   ResoRow08->SetBinContent(38,11);
   ResoRow08->SetBinContent(39,5);
   ResoRow08->SetBinContent(40,14);
   ResoRow08->SetBinContent(41,18);
   ResoRow08->SetBinContent(42,15);
   ResoRow08->SetBinContent(43,29);
   ResoRow08->SetBinContent(44,40);
   ResoRow08->SetBinContent(45,49);
   ResoRow08->SetBinContent(46,52);
   ResoRow08->SetBinContent(47,60);
   ResoRow08->SetBinContent(48,86);
   ResoRow08->SetBinContent(49,76);
   ResoRow08->SetBinContent(50,81);
   ResoRow08->SetBinContent(51,76);
   ResoRow08->SetBinContent(52,75);
   ResoRow08->SetBinContent(53,71);
   ResoRow08->SetBinContent(54,68);
   ResoRow08->SetBinContent(55,43);
   ResoRow08->SetBinContent(56,40);
   ResoRow08->SetBinContent(57,44);
   ResoRow08->SetBinContent(58,32);
   ResoRow08->SetBinContent(59,25);
   ResoRow08->SetBinContent(60,21);
   ResoRow08->SetBinContent(61,15);
   ResoRow08->SetBinContent(62,10);
   ResoRow08->SetBinContent(63,8);
   ResoRow08->SetBinContent(64,7);
   ResoRow08->SetBinContent(65,6);
   ResoRow08->SetBinContent(66,1);
   ResoRow08->SetBinContent(67,3);
   ResoRow08->SetBinContent(68,1);
   ResoRow08->SetBinContent(69,2);
   ResoRow08->SetBinContent(70,2);
   ResoRow08->SetBinContent(71,1);
   ResoRow08->SetBinContent(72,1);
   ResoRow08->SetBinContent(79,1);
   ResoRow08->SetBinContent(80,1);
   ResoRow08->SetBinContent(81,1);
   ResoRow08->SetBinContent(82,1);
   ResoRow08->SetBinContent(84,1);
   ResoRow08->SetBinContent(90,1);
   ResoRow08->SetBinContent(97,1);
   ResoRow08->SetBinContent(100,1);
   ResoRow08->SetBinContent(101,3);
   ResoRow08->SetEntries(1136);
   
   TF1 *ResoRowFit08 = new TF1("ResoRowFit08","gaus",-1,1);
   ResoRowFit08->SetFillColor(19);
   ResoRowFit08->SetFillStyle(0);
   ResoRowFit08->SetLineWidth(3);
   ResoRowFit08->SetChisquare(56.88322);
   ResoRowFit08->SetNDF(53);
   ResoRowFit08->SetParameter(0,74.98662);
   ResoRowFit08->SetParError(0,3.008363);
   ResoRowFit08->SetParLimits(0,0,0);
   ResoRowFit08->SetParameter(1,0.00328749);
   ResoRowFit08->SetParError(1,0.003493918);
   ResoRowFit08->SetParLimits(1,0,0);
   ResoRowFit08->SetParameter(2,0.1141072);
   ResoRowFit08->SetParError(2,0.002977214);
   ResoRowFit08->SetParLimits(2,0,1.427142);
   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 = 1136   ");
   text = ptstats->AddText("Mean  = 0.002846");
   text = ptstats->AddText("RMS   = 0.1425");
   text = ptstats->AddText("#chi^{2} / ndf = 56.88 / 53");
   text = ptstats->AddText("Constant = 74.99 #pm 3.01 ");
   text = ptstats->AddText("Mean     = 0.003287 #pm 0.003494 ");
   text = ptstats->AddText("Sigma    = 0.1141 #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,-12.20625,1.25,109.8563);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow09 = new TH1F("ResoRow09","",100,-1,1);
   ResoRow09->SetBinContent(0,3);
   ResoRow09->SetBinContent(2,1);
   ResoRow09->SetBinContent(5,1);
   ResoRow09->SetBinContent(14,1);
   ResoRow09->SetBinContent(19,1);
   ResoRow09->SetBinContent(20,1);
   ResoRow09->SetBinContent(28,1);
   ResoRow09->SetBinContent(29,2);
   ResoRow09->SetBinContent(30,4);
   ResoRow09->SetBinContent(33,5);
   ResoRow09->SetBinContent(34,2);
   ResoRow09->SetBinContent(35,4);
   ResoRow09->SetBinContent(36,5);
   ResoRow09->SetBinContent(37,5);
   ResoRow09->SetBinContent(38,10);
   ResoRow09->SetBinContent(39,9);
   ResoRow09->SetBinContent(40,9);
   ResoRow09->SetBinContent(41,9);
   ResoRow09->SetBinContent(42,23);
   ResoRow09->SetBinContent(43,28);
   ResoRow09->SetBinContent(44,39);
   ResoRow09->SetBinContent(45,43);
   ResoRow09->SetBinContent(46,51);
   ResoRow09->SetBinContent(47,62);
   ResoRow09->SetBinContent(48,70);
   ResoRow09->SetBinContent(49,88);
   ResoRow09->SetBinContent(50,88);
   ResoRow09->SetBinContent(51,68);
   ResoRow09->SetBinContent(52,93);
   ResoRow09->SetBinContent(53,68);
   ResoRow09->SetBinContent(54,62);
   ResoRow09->SetBinContent(55,60);
   ResoRow09->SetBinContent(56,54);
   ResoRow09->SetBinContent(57,31);
   ResoRow09->SetBinContent(58,22);
   ResoRow09->SetBinContent(59,26);
   ResoRow09->SetBinContent(60,16);
   ResoRow09->SetBinContent(61,12);
   ResoRow09->SetBinContent(62,8);
   ResoRow09->SetBinContent(63,7);
   ResoRow09->SetBinContent(64,12);
   ResoRow09->SetBinContent(65,6);
   ResoRow09->SetBinContent(66,6);
   ResoRow09->SetBinContent(67,1);
   ResoRow09->SetBinContent(68,3);
   ResoRow09->SetBinContent(69,2);
   ResoRow09->SetBinContent(70,1);
   ResoRow09->SetBinContent(71,2);
   ResoRow09->SetBinContent(75,2);
   ResoRow09->SetBinContent(76,1);
   ResoRow09->SetBinContent(86,1);
   ResoRow09->SetBinContent(96,1);
   ResoRow09->SetBinContent(101,6);
   ResoRow09->SetEntries(1136);
   
   TF1 *ResoRowFit09 = new TF1("ResoRowFit09","gaus",-1,1);
   ResoRowFit09->SetFillColor(19);
   ResoRowFit09->SetFillStyle(0);
   ResoRowFit09->SetLineWidth(3);
   ResoRowFit09->SetChisquare(68.60024);
   ResoRowFit09->SetNDF(48);
   ResoRowFit09->SetParameter(0,76.96365);
   ResoRowFit09->SetParError(0,3.262278);
   ResoRowFit09->SetParLimits(0,0,0);
   ResoRowFit09->SetParameter(1,0.003002445);
   ResoRowFit09->SetParError(1,0.003387832);
   ResoRowFit09->SetParLimits(1,0,0);
   ResoRowFit09->SetParameter(2,0.1097711);
   ResoRowFit09->SetParError(2,0.003218698);
   ResoRowFit09->SetParLimits(2,0,1.406628);
   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 = 1136   ");
   text = ptstats->AddText("Mean  = 0.001485");
   text = ptstats->AddText("RMS   = 0.1406");
   text = ptstats->AddText("#chi^{2} / ndf =  68.6 / 48");
   text = ptstats->AddText("Constant = 76.96 #pm 3.26 ");
   text = ptstats->AddText("Mean     = 0.003002 #pm 0.003388 ");
   text = ptstats->AddText("Sigma    = 0.1098 #pm 0.0032 ");
   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,-11.2875,1.25,101.5875);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow10 = new TH1F("ResoRow10","",100,-1,1);
   ResoRow10->SetBinContent(0,3);
   ResoRow10->SetBinContent(15,1);
   ResoRow10->SetBinContent(20,1);
   ResoRow10->SetBinContent(26,2);
   ResoRow10->SetBinContent(28,1);
   ResoRow10->SetBinContent(29,1);
   ResoRow10->SetBinContent(30,3);
   ResoRow10->SetBinContent(32,2);
   ResoRow10->SetBinContent(34,2);
   ResoRow10->SetBinContent(35,5);
   ResoRow10->SetBinContent(36,5);
   ResoRow10->SetBinContent(37,2);
   ResoRow10->SetBinContent(38,6);
   ResoRow10->SetBinContent(39,14);
   ResoRow10->SetBinContent(40,7);
   ResoRow10->SetBinContent(41,20);
   ResoRow10->SetBinContent(42,19);
   ResoRow10->SetBinContent(43,39);
   ResoRow10->SetBinContent(44,50);
   ResoRow10->SetBinContent(45,45);
   ResoRow10->SetBinContent(46,50);
   ResoRow10->SetBinContent(47,57);
   ResoRow10->SetBinContent(48,73);
   ResoRow10->SetBinContent(49,77);
   ResoRow10->SetBinContent(50,67);
   ResoRow10->SetBinContent(51,86);
   ResoRow10->SetBinContent(52,80);
   ResoRow10->SetBinContent(53,77);
   ResoRow10->SetBinContent(54,62);
   ResoRow10->SetBinContent(55,61);
   ResoRow10->SetBinContent(56,36);
   ResoRow10->SetBinContent(57,39);
   ResoRow10->SetBinContent(58,42);
   ResoRow10->SetBinContent(59,16);
   ResoRow10->SetBinContent(60,15);
   ResoRow10->SetBinContent(61,14);
   ResoRow10->SetBinContent(62,9);
   ResoRow10->SetBinContent(63,10);
   ResoRow10->SetBinContent(64,5);
   ResoRow10->SetBinContent(65,5);
   ResoRow10->SetBinContent(66,3);
   ResoRow10->SetBinContent(67,3);
   ResoRow10->SetBinContent(69,4);
   ResoRow10->SetBinContent(70,3);
   ResoRow10->SetBinContent(71,1);
   ResoRow10->SetBinContent(73,1);
   ResoRow10->SetBinContent(74,1);
   ResoRow10->SetBinContent(75,2);
   ResoRow10->SetBinContent(77,1);
   ResoRow10->SetBinContent(81,1);
   ResoRow10->SetBinContent(89,1);
   ResoRow10->SetBinContent(98,1);
   ResoRow10->SetBinContent(101,5);
   ResoRow10->SetEntries(1136);
   
   TF1 *ResoRowFit10 = new TF1("ResoRowFit10","gaus",-1,1);
   ResoRowFit10->SetFillColor(19);
   ResoRowFit10->SetFillStyle(0);
   ResoRowFit10->SetLineWidth(3);
   ResoRowFit10->SetChisquare(64.8722);
   ResoRowFit10->SetNDF(48);
   ResoRowFit10->SetParameter(0,76.06242);
   ResoRowFit10->SetParError(0,3.057866);
   ResoRowFit10->SetParLimits(0,0,0);
   ResoRowFit10->SetParameter(1,0.001355158);
   ResoRowFit10->SetParError(1,0.003462425);
   ResoRowFit10->SetParLimits(1,0,0);
   ResoRowFit10->SetParameter(2,0.111662);
   ResoRowFit10->SetParError(2,0.002936266);
   ResoRowFit10->SetParLimits(2,0,1.369026);
   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 = 1136   ");
   text = ptstats->AddText("Mean  = 0.002566");
   text = ptstats->AddText("RMS   = 0.1369");
   text = ptstats->AddText("#chi^{2} / ndf = 64.87 / 48");
   text = ptstats->AddText("Constant = 76.06 #pm 3.06 ");
   text = ptstats->AddText("Mean     = 0.001355 #pm 0.003462 ");
   text = ptstats->AddText("Sigma    = 0.1117 #pm 0.0029 ");
   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,-12.46875,1.25,112.2188);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow11 = new TH1F("ResoRow11","",100,-1,1);
   ResoRow11->SetBinContent(0,2);
   ResoRow11->SetBinContent(15,1);
   ResoRow11->SetBinContent(19,1);
   ResoRow11->SetBinContent(20,1);
   ResoRow11->SetBinContent(21,1);
   ResoRow11->SetBinContent(25,1);
   ResoRow11->SetBinContent(28,2);
   ResoRow11->SetBinContent(33,3);
   ResoRow11->SetBinContent(34,2);
   ResoRow11->SetBinContent(35,4);
   ResoRow11->SetBinContent(36,4);
   ResoRow11->SetBinContent(37,9);
   ResoRow11->SetBinContent(38,7);
   ResoRow11->SetBinContent(39,11);
   ResoRow11->SetBinContent(40,12);
   ResoRow11->SetBinContent(41,17);
   ResoRow11->SetBinContent(42,24);
   ResoRow11->SetBinContent(43,27);
   ResoRow11->SetBinContent(44,35);
   ResoRow11->SetBinContent(45,55);
   ResoRow11->SetBinContent(46,43);
   ResoRow11->SetBinContent(47,63);
   ResoRow11->SetBinContent(48,71);
   ResoRow11->SetBinContent(49,75);
   ResoRow11->SetBinContent(50,74);
   ResoRow11->SetBinContent(51,95);
   ResoRow11->SetBinContent(52,80);
   ResoRow11->SetBinContent(53,79);
   ResoRow11->SetBinContent(54,65);
   ResoRow11->SetBinContent(55,55);
   ResoRow11->SetBinContent(56,48);
   ResoRow11->SetBinContent(57,37);
   ResoRow11->SetBinContent(58,28);
   ResoRow11->SetBinContent(59,19);
   ResoRow11->SetBinContent(60,14);
   ResoRow11->SetBinContent(61,15);
   ResoRow11->SetBinContent(62,18);
   ResoRow11->SetBinContent(63,3);
   ResoRow11->SetBinContent(64,8);
   ResoRow11->SetBinContent(65,3);
   ResoRow11->SetBinContent(66,4);
   ResoRow11->SetBinContent(67,2);
   ResoRow11->SetBinContent(68,4);
   ResoRow11->SetBinContent(70,1);
   ResoRow11->SetBinContent(71,2);
   ResoRow11->SetBinContent(74,1);
   ResoRow11->SetBinContent(77,2);
   ResoRow11->SetBinContent(79,2);
   ResoRow11->SetBinContent(87,1);
   ResoRow11->SetBinContent(101,5);
   ResoRow11->SetEntries(1136);
   
   TF1 *ResoRowFit11 = new TF1("ResoRowFit11","gaus",-1,1);
   ResoRowFit11->SetFillColor(19);
   ResoRowFit11->SetFillStyle(0);
   ResoRowFit11->SetLineWidth(3);
   ResoRowFit11->SetChisquare(52.0357);
   ResoRowFit11->SetNDF(45);
   ResoRowFit11->SetParameter(0,76.73294);
   ResoRowFit11->SetParError(0,3.128119);
   ResoRowFit11->SetParLimits(0,0,0);
   ResoRowFit11->SetParameter(1,-0.0005660613);
   ResoRowFit11->SetParError(1,0.003458121);
   ResoRowFit11->SetParLimits(1,0,0);
   ResoRowFit11->SetParameter(2,0.1120983);
   ResoRowFit11->SetParError(2,0.003069332);
   ResoRowFit11->SetParLimits(2,0,1.330681);
   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 = 1136   ");
   text = ptstats->AddText("Mean  = 0.001715");
   text = ptstats->AddText("RMS   = 0.1329");
   text = ptstats->AddText("#chi^{2} / ndf = 52.04 / 45");
   text = ptstats->AddText("Constant = 76.73 #pm 3.13 ");
   text = ptstats->AddText("Mean     = -0.0005661 #pm 0.0034581 ");
   text = ptstats->AddText("Sigma    = 0.1121 #pm 0.0031 ");
   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,-11.55,1.25,103.95);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow12 = new TH1F("ResoRow12","",100,-1,1);
   ResoRow12->SetBinContent(0,2);
   ResoRow12->SetBinContent(7,1);
   ResoRow12->SetBinContent(13,1);
   ResoRow12->SetBinContent(15,2);
   ResoRow12->SetBinContent(20,1);
   ResoRow12->SetBinContent(23,1);
   ResoRow12->SetBinContent(25,1);
   ResoRow12->SetBinContent(27,3);
   ResoRow12->SetBinContent(28,2);
   ResoRow12->SetBinContent(29,2);
   ResoRow12->SetBinContent(33,2);
   ResoRow12->SetBinContent(34,1);
   ResoRow12->SetBinContent(35,7);
   ResoRow12->SetBinContent(36,4);
   ResoRow12->SetBinContent(37,3);
   ResoRow12->SetBinContent(38,7);
   ResoRow12->SetBinContent(39,15);
   ResoRow12->SetBinContent(40,13);
   ResoRow12->SetBinContent(41,13);
   ResoRow12->SetBinContent(42,22);
   ResoRow12->SetBinContent(43,29);
   ResoRow12->SetBinContent(44,29);
   ResoRow12->SetBinContent(45,52);
   ResoRow12->SetBinContent(46,53);
   ResoRow12->SetBinContent(47,58);
   ResoRow12->SetBinContent(48,71);
   ResoRow12->SetBinContent(49,88);
   ResoRow12->SetBinContent(50,82);
   ResoRow12->SetBinContent(51,78);
   ResoRow12->SetBinContent(52,73);
   ResoRow12->SetBinContent(53,80);
   ResoRow12->SetBinContent(54,58);
   ResoRow12->SetBinContent(55,70);
   ResoRow12->SetBinContent(56,47);
   ResoRow12->SetBinContent(57,31);
   ResoRow12->SetBinContent(58,22);
   ResoRow12->SetBinContent(59,24);
   ResoRow12->SetBinContent(60,17);
   ResoRow12->SetBinContent(61,18);
   ResoRow12->SetBinContent(62,16);
   ResoRow12->SetBinContent(63,5);
   ResoRow12->SetBinContent(64,5);
   ResoRow12->SetBinContent(65,3);
   ResoRow12->SetBinContent(66,4);
   ResoRow12->SetBinContent(67,3);
   ResoRow12->SetBinContent(68,5);
   ResoRow12->SetBinContent(69,1);
   ResoRow12->SetBinContent(70,1);
   ResoRow12->SetBinContent(71,2);
   ResoRow12->SetBinContent(75,1);
   ResoRow12->SetBinContent(81,1);
   ResoRow12->SetBinContent(85,1);
   ResoRow12->SetBinContent(88,1);
   ResoRow12->SetBinContent(89,1);
   ResoRow12->SetBinContent(101,3);
   ResoRow12->SetEntries(1136);
   
   TF1 *ResoRowFit12 = new TF1("ResoRowFit12","gaus",-1,1);
   ResoRowFit12->SetFillColor(19);
   ResoRowFit12->SetFillStyle(0);
   ResoRowFit12->SetLineWidth(3);
   ResoRowFit12->SetChisquare(61.41327);
   ResoRowFit12->SetNDF(50);
   ResoRowFit12->SetParameter(0,76.09821);
   ResoRowFit12->SetParError(0,3.112377);
   ResoRowFit12->SetParLimits(0,0,0);
   ResoRowFit12->SetParameter(1,0.002001596);
   ResoRowFit12->SetParError(1,0.003445785);
   ResoRowFit12->SetParLimits(1,0,0);
   ResoRowFit12->SetParameter(2,0.1122163);
   ResoRowFit12->SetParError(2,0.003069011);
   ResoRowFit12->SetParLimits(2,0,1.41742);
   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 = 1136   ");
   text = ptstats->AddText("Mean  = 6.537e-05");
   text = ptstats->AddText("RMS   = 0.1415");
   text = ptstats->AddText("#chi^{2} / ndf = 61.41 / 50");
   text = ptstats->AddText("Constant =  76.1 #pm 3.1 ");
   text = ptstats->AddText("Mean     = 0.002002 #pm 0.003446 ");
   text = ptstats->AddText("Sigma    = 0.1122 #pm 0.0031 ");
   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);
}
