{
//=========Macro generated from canvas: c2/
//=========  (Fri Jun 11 11:05:13 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,-6.95625,1.25,62.60625);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow07 = new TH1F("ResoRow07","",100,-1,1);
   ResoRow07->SetBinContent(0,1);
   ResoRow07->SetBinContent(14,1);
   ResoRow07->SetBinContent(15,1);
   ResoRow07->SetBinContent(24,1);
   ResoRow07->SetBinContent(25,1);
   ResoRow07->SetBinContent(29,1);
   ResoRow07->SetBinContent(30,1);
   ResoRow07->SetBinContent(31,1);
   ResoRow07->SetBinContent(32,1);
   ResoRow07->SetBinContent(33,1);
   ResoRow07->SetBinContent(34,4);
   ResoRow07->SetBinContent(35,3);
   ResoRow07->SetBinContent(36,2);
   ResoRow07->SetBinContent(37,5);
   ResoRow07->SetBinContent(38,7);
   ResoRow07->SetBinContent(39,8);
   ResoRow07->SetBinContent(40,5);
   ResoRow07->SetBinContent(41,15);
   ResoRow07->SetBinContent(42,12);
   ResoRow07->SetBinContent(43,24);
   ResoRow07->SetBinContent(44,17);
   ResoRow07->SetBinContent(45,30);
   ResoRow07->SetBinContent(46,23);
   ResoRow07->SetBinContent(47,45);
   ResoRow07->SetBinContent(48,35);
   ResoRow07->SetBinContent(49,35);
   ResoRow07->SetBinContent(50,37);
   ResoRow07->SetBinContent(51,53);
   ResoRow07->SetBinContent(52,37);
   ResoRow07->SetBinContent(53,39);
   ResoRow07->SetBinContent(54,37);
   ResoRow07->SetBinContent(55,31);
   ResoRow07->SetBinContent(56,29);
   ResoRow07->SetBinContent(57,25);
   ResoRow07->SetBinContent(58,25);
   ResoRow07->SetBinContent(59,20);
   ResoRow07->SetBinContent(60,7);
   ResoRow07->SetBinContent(61,3);
   ResoRow07->SetBinContent(62,14);
   ResoRow07->SetBinContent(63,6);
   ResoRow07->SetBinContent(64,5);
   ResoRow07->SetBinContent(65,5);
   ResoRow07->SetBinContent(66,2);
   ResoRow07->SetBinContent(67,2);
   ResoRow07->SetBinContent(68,1);
   ResoRow07->SetBinContent(69,2);
   ResoRow07->SetBinContent(70,1);
   ResoRow07->SetBinContent(71,3);
   ResoRow07->SetBinContent(72,1);
   ResoRow07->SetBinContent(73,2);
   ResoRow07->SetBinContent(75,1);
   ResoRow07->SetBinContent(77,2);
   ResoRow07->SetBinContent(81,1);
   ResoRow07->SetBinContent(100,1);
   ResoRow07->SetBinContent(101,1);
   ResoRow07->SetEntries(673);
   
   TF1 *ResoRowFit07 = new TF1("ResoRowFit07","gaus",-1,1);
   ResoRowFit07->SetFillColor(19);
   ResoRowFit07->SetFillStyle(0);
   ResoRowFit07->SetLineWidth(3);
   ResoRowFit07->SetChisquare(66.31112);
   ResoRowFit07->SetNDF(50);
   ResoRowFit07->SetParameter(0,39.52094);
   ResoRowFit07->SetParError(0,2.193085);
   ResoRowFit07->SetParLimits(0,0,0);
   ResoRowFit07->SetParameter(1,-0.0001846539);
   ResoRowFit07->SetParError(1,0.004995917);
   ResoRowFit07->SetParLimits(1,0,0);
   ResoRowFit07->SetParameter(2,0.1221037);
   ResoRowFit07->SetParError(2,0.004620932);
   ResoRowFit07->SetParLimits(2,0,1.555134);
   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 = 673    ");
   text = ptstats->AddText("Mean  = 0.007338");
   text = ptstats->AddText("RMS   = 0.1554");
   text = ptstats->AddText("#chi^{2} / ndf = 66.31 / 50");
   text = ptstats->AddText("Constant = 39.52 #pm 2.19 ");
   text = ptstats->AddText("Mean     = -0.0001847 #pm 0.0049959 ");
   text = ptstats->AddText("Sigma    = 0.1221 #pm 0.0046 ");
   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,-6.3,1.25,56.7);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow08 = new TH1F("ResoRow08","",100,-1,1);
   ResoRow08->SetBinContent(0,1);
   ResoRow08->SetBinContent(2,1);
   ResoRow08->SetBinContent(25,1);
   ResoRow08->SetBinContent(26,2);
   ResoRow08->SetBinContent(27,1);
   ResoRow08->SetBinContent(28,1);
   ResoRow08->SetBinContent(29,3);
   ResoRow08->SetBinContent(31,2);
   ResoRow08->SetBinContent(32,1);
   ResoRow08->SetBinContent(34,1);
   ResoRow08->SetBinContent(35,2);
   ResoRow08->SetBinContent(36,3);
   ResoRow08->SetBinContent(37,6);
   ResoRow08->SetBinContent(38,8);
   ResoRow08->SetBinContent(39,7);
   ResoRow08->SetBinContent(40,4);
   ResoRow08->SetBinContent(41,9);
   ResoRow08->SetBinContent(42,11);
   ResoRow08->SetBinContent(43,17);
   ResoRow08->SetBinContent(44,16);
   ResoRow08->SetBinContent(45,26);
   ResoRow08->SetBinContent(46,28);
   ResoRow08->SetBinContent(47,38);
   ResoRow08->SetBinContent(48,44);
   ResoRow08->SetBinContent(49,39);
   ResoRow08->SetBinContent(50,36);
   ResoRow08->SetBinContent(51,44);
   ResoRow08->SetBinContent(52,48);
   ResoRow08->SetBinContent(53,42);
   ResoRow08->SetBinContent(54,35);
   ResoRow08->SetBinContent(55,35);
   ResoRow08->SetBinContent(56,28);
   ResoRow08->SetBinContent(57,19);
   ResoRow08->SetBinContent(58,14);
   ResoRow08->SetBinContent(59,16);
   ResoRow08->SetBinContent(60,13);
   ResoRow08->SetBinContent(61,20);
   ResoRow08->SetBinContent(62,11);
   ResoRow08->SetBinContent(63,8);
   ResoRow08->SetBinContent(64,7);
   ResoRow08->SetBinContent(65,3);
   ResoRow08->SetBinContent(66,3);
   ResoRow08->SetBinContent(67,5);
   ResoRow08->SetBinContent(69,1);
   ResoRow08->SetBinContent(71,1);
   ResoRow08->SetBinContent(72,3);
   ResoRow08->SetBinContent(74,1);
   ResoRow08->SetBinContent(75,1);
   ResoRow08->SetBinContent(77,1);
   ResoRow08->SetBinContent(79,1);
   ResoRow08->SetBinContent(84,1);
   ResoRow08->SetBinContent(94,1);
   ResoRow08->SetBinContent(101,3);
   ResoRow08->SetEntries(673);
   
   TF1 *ResoRowFit08 = new TF1("ResoRowFit08","gaus",-1,1);
   ResoRowFit08->SetFillColor(19);
   ResoRowFit08->SetFillStyle(0);
   ResoRowFit08->SetLineWidth(3);
   ResoRowFit08->SetChisquare(50.37168);
   ResoRowFit08->SetNDF(48);
   ResoRowFit08->SetParameter(0,39.21397);
   ResoRowFit08->SetParError(0,2.190607);
   ResoRowFit08->SetParLimits(0,0,0);
   ResoRowFit08->SetParameter(1,0.01385455);
   ResoRowFit08->SetParError(1,0.005220061);
   ResoRowFit08->SetParLimits(1,0,0);
   ResoRowFit08->SetParameter(2,0.1263818);
   ResoRowFit08->SetParError(2,0.005051671);
   ResoRowFit08->SetParLimits(2,0,1.566105);
   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 = 673    ");
   text = ptstats->AddText("Mean  = 0.0125");
   text = ptstats->AddText("RMS   = 0.1566");
   text = ptstats->AddText("#chi^{2} / ndf = 50.37 / 48");
   text = ptstats->AddText("Constant = 39.21 #pm 2.19 ");
   text = ptstats->AddText("Mean     = 0.01385 #pm 0.00522 ");
   text = ptstats->AddText("Sigma    = 0.1264 #pm 0.0051 ");
   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,-6.69375,1.25,60.24375);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow09 = new TH1F("ResoRow09","",100,-1,1);
   ResoRow09->SetBinContent(0,1);
   ResoRow09->SetBinContent(18,1);
   ResoRow09->SetBinContent(19,1);
   ResoRow09->SetBinContent(26,1);
   ResoRow09->SetBinContent(28,1);
   ResoRow09->SetBinContent(29,1);
   ResoRow09->SetBinContent(32,1);
   ResoRow09->SetBinContent(33,4);
   ResoRow09->SetBinContent(34,1);
   ResoRow09->SetBinContent(35,1);
   ResoRow09->SetBinContent(36,9);
   ResoRow09->SetBinContent(37,3);
   ResoRow09->SetBinContent(38,8);
   ResoRow09->SetBinContent(39,8);
   ResoRow09->SetBinContent(40,7);
   ResoRow09->SetBinContent(41,11);
   ResoRow09->SetBinContent(42,13);
   ResoRow09->SetBinContent(43,23);
   ResoRow09->SetBinContent(44,18);
   ResoRow09->SetBinContent(45,28);
   ResoRow09->SetBinContent(46,37);
   ResoRow09->SetBinContent(47,22);
   ResoRow09->SetBinContent(48,41);
   ResoRow09->SetBinContent(49,30);
   ResoRow09->SetBinContent(50,37);
   ResoRow09->SetBinContent(51,51);
   ResoRow09->SetBinContent(52,39);
   ResoRow09->SetBinContent(53,37);
   ResoRow09->SetBinContent(54,42);
   ResoRow09->SetBinContent(55,27);
   ResoRow09->SetBinContent(56,33);
   ResoRow09->SetBinContent(57,28);
   ResoRow09->SetBinContent(58,17);
   ResoRow09->SetBinContent(59,26);
   ResoRow09->SetBinContent(60,15);
   ResoRow09->SetBinContent(61,8);
   ResoRow09->SetBinContent(62,4);
   ResoRow09->SetBinContent(63,8);
   ResoRow09->SetBinContent(64,6);
   ResoRow09->SetBinContent(65,2);
   ResoRow09->SetBinContent(66,3);
   ResoRow09->SetBinContent(67,2);
   ResoRow09->SetBinContent(68,2);
   ResoRow09->SetBinContent(70,4);
   ResoRow09->SetBinContent(71,1);
   ResoRow09->SetBinContent(72,2);
   ResoRow09->SetBinContent(74,4);
   ResoRow09->SetBinContent(82,2);
   ResoRow09->SetBinContent(87,1);
   ResoRow09->SetBinContent(101,1);
   ResoRow09->SetEntries(673);
   
   TF1 *ResoRowFit09 = new TF1("ResoRowFit09","gaus",-1,1);
   ResoRowFit09->SetFillColor(19);
   ResoRowFit09->SetFillStyle(0);
   ResoRowFit09->SetLineWidth(3);
   ResoRowFit09->SetChisquare(56.85979);
   ResoRowFit09->SetNDF(45);
   ResoRowFit09->SetParameter(0,38.69388);
   ResoRowFit09->SetParError(0,2.022149);
   ResoRowFit09->SetParLimits(0,0,0);
   ResoRowFit09->SetParameter(1,0.00677208);
   ResoRowFit09->SetParError(1,0.005183317);
   ResoRowFit09->SetParLimits(1,0,0);
   ResoRowFit09->SetParameter(2,0.1269084);
   ResoRowFit09->SetParError(2,0.004292848);
   ResoRowFit09->SetParLimits(2,0,1.533413);
   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 = 673    ");
   text = ptstats->AddText("Mean  = 0.009791");
   text = ptstats->AddText("RMS   = 0.1532");
   text = ptstats->AddText("#chi^{2} / ndf = 56.86 / 45");
   text = ptstats->AddText("Constant = 38.69 #pm 2.02 ");
   text = ptstats->AddText("Mean     = 0.006772 #pm 0.005183 ");
   text = ptstats->AddText("Sigma    = 0.1269 #pm 0.0043 ");
   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,-6.825,1.25,61.425);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow10 = new TH1F("ResoRow10","",100,-1,1);
   ResoRow10->SetBinContent(0,1);
   ResoRow10->SetBinContent(16,1);
   ResoRow10->SetBinContent(24,1);
   ResoRow10->SetBinContent(26,1);
   ResoRow10->SetBinContent(30,1);
   ResoRow10->SetBinContent(31,1);
   ResoRow10->SetBinContent(32,2);
   ResoRow10->SetBinContent(33,3);
   ResoRow10->SetBinContent(34,5);
   ResoRow10->SetBinContent(35,2);
   ResoRow10->SetBinContent(36,5);
   ResoRow10->SetBinContent(37,2);
   ResoRow10->SetBinContent(38,7);
   ResoRow10->SetBinContent(39,6);
   ResoRow10->SetBinContent(40,7);
   ResoRow10->SetBinContent(41,10);
   ResoRow10->SetBinContent(42,14);
   ResoRow10->SetBinContent(43,17);
   ResoRow10->SetBinContent(44,24);
   ResoRow10->SetBinContent(45,20);
   ResoRow10->SetBinContent(46,25);
   ResoRow10->SetBinContent(47,37);
   ResoRow10->SetBinContent(48,39);
   ResoRow10->SetBinContent(49,46);
   ResoRow10->SetBinContent(50,52);
   ResoRow10->SetBinContent(51,49);
   ResoRow10->SetBinContent(52,33);
   ResoRow10->SetBinContent(53,50);
   ResoRow10->SetBinContent(54,33);
   ResoRow10->SetBinContent(55,25);
   ResoRow10->SetBinContent(56,21);
   ResoRow10->SetBinContent(57,19);
   ResoRow10->SetBinContent(58,19);
   ResoRow10->SetBinContent(59,18);
   ResoRow10->SetBinContent(60,22);
   ResoRow10->SetBinContent(61,8);
   ResoRow10->SetBinContent(62,7);
   ResoRow10->SetBinContent(63,6);
   ResoRow10->SetBinContent(64,8);
   ResoRow10->SetBinContent(65,2);
   ResoRow10->SetBinContent(67,4);
   ResoRow10->SetBinContent(68,5);
   ResoRow10->SetBinContent(69,5);
   ResoRow10->SetBinContent(71,1);
   ResoRow10->SetBinContent(73,1);
   ResoRow10->SetBinContent(74,2);
   ResoRow10->SetBinContent(80,1);
   ResoRow10->SetBinContent(83,1);
   ResoRow10->SetBinContent(88,1);
   ResoRow10->SetBinContent(101,3);
   ResoRow10->SetEntries(673);
   
   TF1 *ResoRowFit10 = new TF1("ResoRowFit10","gaus",-1,1);
   ResoRowFit10->SetFillColor(19);
   ResoRowFit10->SetFillStyle(0);
   ResoRowFit10->SetLineWidth(3);
   ResoRowFit10->SetChisquare(55.98496);
   ResoRowFit10->SetNDF(45);
   ResoRowFit10->SetParameter(0,38.97701);
   ResoRowFit10->SetParError(0,2.18896);
   ResoRowFit10->SetParLimits(0,0,0);
   ResoRowFit10->SetParameter(1,0.005212282);
   ResoRowFit10->SetParError(1,0.005213739);
   ResoRowFit10->SetParLimits(1,0,0);
   ResoRowFit10->SetParameter(2,0.1260724);
   ResoRowFit10->SetParError(2,0.005071446);
   ResoRowFit10->SetParLimits(2,0,1.505822);
   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 = 673    ");
   text = ptstats->AddText("Mean  = 0.008576");
   text = ptstats->AddText("RMS   = 0.1505");
   text = ptstats->AddText("#chi^{2} / ndf = 55.98 / 45");
   text = ptstats->AddText("Constant = 38.98 #pm 2.19 ");
   text = ptstats->AddText("Mean     = 0.005212 #pm 0.005214 ");
   text = ptstats->AddText("Sigma    = 0.1261 #pm 0.0051 ");
   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,-6.16875,1.25,55.51875);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow11 = new TH1F("ResoRow11","",100,-1,1);
   ResoRow11->SetBinContent(0,1);
   ResoRow11->SetBinContent(16,2);
   ResoRow11->SetBinContent(22,1);
   ResoRow11->SetBinContent(27,1);
   ResoRow11->SetBinContent(29,2);
   ResoRow11->SetBinContent(31,1);
   ResoRow11->SetBinContent(32,2);
   ResoRow11->SetBinContent(33,1);
   ResoRow11->SetBinContent(34,5);
   ResoRow11->SetBinContent(35,4);
   ResoRow11->SetBinContent(36,5);
   ResoRow11->SetBinContent(37,8);
   ResoRow11->SetBinContent(38,7);
   ResoRow11->SetBinContent(39,7);
   ResoRow11->SetBinContent(40,9);
   ResoRow11->SetBinContent(41,13);
   ResoRow11->SetBinContent(42,6);
   ResoRow11->SetBinContent(43,20);
   ResoRow11->SetBinContent(44,16);
   ResoRow11->SetBinContent(45,28);
   ResoRow11->SetBinContent(46,26);
   ResoRow11->SetBinContent(47,40);
   ResoRow11->SetBinContent(48,34);
   ResoRow11->SetBinContent(49,39);
   ResoRow11->SetBinContent(50,34);
   ResoRow11->SetBinContent(51,39);
   ResoRow11->SetBinContent(52,47);
   ResoRow11->SetBinContent(53,37);
   ResoRow11->SetBinContent(54,45);
   ResoRow11->SetBinContent(55,31);
   ResoRow11->SetBinContent(56,19);
   ResoRow11->SetBinContent(57,26);
   ResoRow11->SetBinContent(58,20);
   ResoRow11->SetBinContent(59,25);
   ResoRow11->SetBinContent(60,12);
   ResoRow11->SetBinContent(61,18);
   ResoRow11->SetBinContent(62,11);
   ResoRow11->SetBinContent(63,8);
   ResoRow11->SetBinContent(64,5);
   ResoRow11->SetBinContent(65,6);
   ResoRow11->SetBinContent(66,1);
   ResoRow11->SetBinContent(68,2);
   ResoRow11->SetBinContent(69,2);
   ResoRow11->SetBinContent(71,1);
   ResoRow11->SetBinContent(74,1);
   ResoRow11->SetBinContent(76,1);
   ResoRow11->SetBinContent(80,1);
   ResoRow11->SetBinContent(93,1);
   ResoRow11->SetBinContent(97,2);
   ResoRow11->SetEntries(673);
   
   TF1 *ResoRowFit11 = new TF1("ResoRowFit11","gaus",-1,1);
   ResoRowFit11->SetFillColor(19);
   ResoRowFit11->SetFillStyle(0);
   ResoRowFit11->SetLineWidth(3);
   ResoRowFit11->SetChisquare(57.41512);
   ResoRowFit11->SetNDF(45);
   ResoRowFit11->SetParameter(0,37.45985);
   ResoRowFit11->SetParError(0,2.039316);
   ResoRowFit11->SetParLimits(0,0,0);
   ResoRowFit11->SetParameter(1,0.01252737);
   ResoRowFit11->SetParError(1,0.005474406);
   ResoRowFit11->SetParLimits(1,0,0);
   ResoRowFit11->SetParameter(2,0.131648);
   ResoRowFit11->SetParError(2,0.004986716);
   ResoRowFit11->SetParLimits(2,0,1.610413);
   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 = 673    ");
   text = ptstats->AddText("Mean  = 0.008739");
   text = ptstats->AddText("RMS   = 0.1611");
   text = ptstats->AddText("#chi^{2} / ndf = 57.42 / 45");
   text = ptstats->AddText("Constant = 37.46 #pm 2.04 ");
   text = ptstats->AddText("Mean     = 0.01253 #pm 0.00547 ");
   text = ptstats->AddText("Sigma    = 0.1316 #pm 0.0050 ");
   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,-6.95625,1.25,62.60625);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow12 = new TH1F("ResoRow12","",100,-1,1);
   ResoRow12->SetBinContent(5,1);
   ResoRow12->SetBinContent(13,1);
   ResoRow12->SetBinContent(29,1);
   ResoRow12->SetBinContent(30,1);
   ResoRow12->SetBinContent(31,3);
   ResoRow12->SetBinContent(33,2);
   ResoRow12->SetBinContent(34,5);
   ResoRow12->SetBinContent(35,5);
   ResoRow12->SetBinContent(36,2);
   ResoRow12->SetBinContent(37,5);
   ResoRow12->SetBinContent(38,5);
   ResoRow12->SetBinContent(39,11);
   ResoRow12->SetBinContent(40,9);
   ResoRow12->SetBinContent(41,9);
   ResoRow12->SetBinContent(42,23);
   ResoRow12->SetBinContent(43,18);
   ResoRow12->SetBinContent(44,21);
   ResoRow12->SetBinContent(45,31);
   ResoRow12->SetBinContent(46,19);
   ResoRow12->SetBinContent(47,30);
   ResoRow12->SetBinContent(48,37);
   ResoRow12->SetBinContent(49,44);
   ResoRow12->SetBinContent(50,53);
   ResoRow12->SetBinContent(51,39);
   ResoRow12->SetBinContent(52,35);
   ResoRow12->SetBinContent(53,37);
   ResoRow12->SetBinContent(54,34);
   ResoRow12->SetBinContent(55,31);
   ResoRow12->SetBinContent(56,24);
   ResoRow12->SetBinContent(57,24);
   ResoRow12->SetBinContent(58,19);
   ResoRow12->SetBinContent(59,12);
   ResoRow12->SetBinContent(60,18);
   ResoRow12->SetBinContent(61,10);
   ResoRow12->SetBinContent(62,13);
   ResoRow12->SetBinContent(63,6);
   ResoRow12->SetBinContent(64,8);
   ResoRow12->SetBinContent(65,2);
   ResoRow12->SetBinContent(66,5);
   ResoRow12->SetBinContent(67,4);
   ResoRow12->SetBinContent(68,2);
   ResoRow12->SetBinContent(72,2);
   ResoRow12->SetBinContent(74,1);
   ResoRow12->SetBinContent(75,1);
   ResoRow12->SetBinContent(77,2);
   ResoRow12->SetBinContent(85,1);
   ResoRow12->SetBinContent(89,2);
   ResoRow12->SetBinContent(93,1);
   ResoRow12->SetBinContent(101,4);
   ResoRow12->SetEntries(673);
   
   TF1 *ResoRowFit12 = new TF1("ResoRowFit12","gaus",-1,1);
   ResoRowFit12->SetFillColor(19);
   ResoRowFit12->SetFillStyle(0);
   ResoRowFit12->SetLineWidth(3);
   ResoRowFit12->SetChisquare(48.04098);
   ResoRowFit12->SetNDF(45);
   ResoRowFit12->SetParameter(0,36.9877);
   ResoRowFit12->SetParError(0,1.996607);
   ResoRowFit12->SetParLimits(0,0,0);
   ResoRowFit12->SetParameter(1,0.004443406);
   ResoRowFit12->SetParError(1,0.005513701);
   ResoRowFit12->SetParLimits(1,0,0);
   ResoRowFit12->SetParameter(2,0.1346449);
   ResoRowFit12->SetParError(2,0.005059661);
   ResoRowFit12->SetParLimits(2,0,1.626054);
   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 = 673    ");
   text = ptstats->AddText("Mean  = 0.006446");
   text = ptstats->AddText("RMS   = 0.1626");
   text = ptstats->AddText("#chi^{2} / ndf = 48.04 / 45");
   text = ptstats->AddText("Constant = 36.99 #pm 2.00 ");
   text = ptstats->AddText("Mean     = 0.004443 #pm 0.005514 ");
   text = ptstats->AddText("Sigma    = 0.1346 #pm 0.0051 ");
   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);
}
