{
//=========Macro generated from canvas: c2/
//=========  (Tue Jun  8 17:35:36 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,-13.25625,1.25,119.3063);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow12 = new TH1F("ResoRow12","",100,-1,1);
   ResoRow12->SetBinContent(0,1);
   ResoRow12->SetBinContent(4,1);
   ResoRow12->SetBinContent(13,1);
   ResoRow12->SetBinContent(16,1);
   ResoRow12->SetBinContent(24,1);
   ResoRow12->SetBinContent(29,1);
   ResoRow12->SetBinContent(30,1);
   ResoRow12->SetBinContent(31,1);
   ResoRow12->SetBinContent(32,2);
   ResoRow12->SetBinContent(33,1);
   ResoRow12->SetBinContent(34,3);
   ResoRow12->SetBinContent(35,4);
   ResoRow12->SetBinContent(36,6);
   ResoRow12->SetBinContent(37,5);
   ResoRow12->SetBinContent(38,4);
   ResoRow12->SetBinContent(39,13);
   ResoRow12->SetBinContent(40,16);
   ResoRow12->SetBinContent(41,19);
   ResoRow12->SetBinContent(42,21);
   ResoRow12->SetBinContent(43,35);
   ResoRow12->SetBinContent(44,35);
   ResoRow12->SetBinContent(45,45);
   ResoRow12->SetBinContent(46,46);
   ResoRow12->SetBinContent(47,71);
   ResoRow12->SetBinContent(48,74);
   ResoRow12->SetBinContent(49,84);
   ResoRow12->SetBinContent(50,101);
   ResoRow12->SetBinContent(51,79);
   ResoRow12->SetBinContent(52,80);
   ResoRow12->SetBinContent(53,68);
   ResoRow12->SetBinContent(54,68);
   ResoRow12->SetBinContent(55,58);
   ResoRow12->SetBinContent(56,52);
   ResoRow12->SetBinContent(57,41);
   ResoRow12->SetBinContent(58,34);
   ResoRow12->SetBinContent(59,19);
   ResoRow12->SetBinContent(60,11);
   ResoRow12->SetBinContent(61,12);
   ResoRow12->SetBinContent(62,9);
   ResoRow12->SetBinContent(63,6);
   ResoRow12->SetBinContent(64,6);
   ResoRow12->SetBinContent(65,2);
   ResoRow12->SetBinContent(66,3);
   ResoRow12->SetBinContent(68,1);
   ResoRow12->SetBinContent(69,1);
   ResoRow12->SetBinContent(70,1);
   ResoRow12->SetBinContent(72,1);
   ResoRow12->SetBinContent(74,2);
   ResoRow12->SetBinContent(75,1);
   ResoRow12->SetBinContent(76,1);
   ResoRow12->SetBinContent(86,1);
   ResoRow12->SetBinContent(95,1);
   ResoRow12->SetBinContent(101,1);
   ResoRow12->SetEntries(1152);
   
   TF1 *ResoRowFit12 = new TF1("ResoRowFit12","gaus",-1,1);
   ResoRowFit12->SetFillColor(19);
   ResoRowFit12->SetFillStyle(0);
   ResoRowFit12->SetLineWidth(3);
   ResoRowFit12->SetChisquare(43.01636);
   ResoRowFit12->SetNDF(48);
   ResoRowFit12->SetParameter(0,80.65226);
   ResoRowFit12->SetParError(0,3.199671);
   ResoRowFit12->SetParLimits(0,0,0);
   ResoRowFit12->SetParameter(1,-0.001913658);
   ResoRowFit12->SetParError(1,0.003323708);
   ResoRowFit12->SetParLimits(1,0,0);
   ResoRowFit12->SetParameter(2,0.1096061);
   ResoRowFit12->SetParError(2,0.002858614);
   ResoRowFit12->SetParLimits(2,0,1.308803);
   ResoRow12->GetListOfFunctions()->Add(ResoRowFit12);
   
   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("ResoRow12");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1152   ");
   text = ptstats->AddText("Mean  = -0.003404");
   text = ptstats->AddText("RMS   = 0.1307");
   text = ptstats->AddText("#chi^{2} / ndf = 43.02 / 48");
   text = ptstats->AddText("Constant = 80.65 #pm 3.20 ");
   text = ptstats->AddText("Mean     = -0.001914 #pm 0.003324 ");
   text = ptstats->AddText("Sigma    = 0.1096 #pm 0.0029 ");
   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_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.8125,1.25,106.3125);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow13 = new TH1F("ResoRow13","",100,-1,1);
   ResoRow13->SetBinContent(0,1);
   ResoRow13->SetBinContent(3,1);
   ResoRow13->SetBinContent(4,1);
   ResoRow13->SetBinContent(21,1);
   ResoRow13->SetBinContent(23,1);
   ResoRow13->SetBinContent(24,1);
   ResoRow13->SetBinContent(26,1);
   ResoRow13->SetBinContent(29,1);
   ResoRow13->SetBinContent(31,5);
   ResoRow13->SetBinContent(32,3);
   ResoRow13->SetBinContent(33,5);
   ResoRow13->SetBinContent(34,2);
   ResoRow13->SetBinContent(35,6);
   ResoRow13->SetBinContent(36,6);
   ResoRow13->SetBinContent(37,5);
   ResoRow13->SetBinContent(38,9);
   ResoRow13->SetBinContent(39,9);
   ResoRow13->SetBinContent(40,11);
   ResoRow13->SetBinContent(41,17);
   ResoRow13->SetBinContent(42,17);
   ResoRow13->SetBinContent(43,35);
   ResoRow13->SetBinContent(44,46);
   ResoRow13->SetBinContent(45,48);
   ResoRow13->SetBinContent(46,74);
   ResoRow13->SetBinContent(47,62);
   ResoRow13->SetBinContent(48,82);
   ResoRow13->SetBinContent(49,64);
   ResoRow13->SetBinContent(50,90);
   ResoRow13->SetBinContent(51,82);
   ResoRow13->SetBinContent(52,86);
   ResoRow13->SetBinContent(53,71);
   ResoRow13->SetBinContent(54,57);
   ResoRow13->SetBinContent(55,49);
   ResoRow13->SetBinContent(56,40);
   ResoRow13->SetBinContent(57,45);
   ResoRow13->SetBinContent(58,29);
   ResoRow13->SetBinContent(59,19);
   ResoRow13->SetBinContent(60,17);
   ResoRow13->SetBinContent(61,10);
   ResoRow13->SetBinContent(62,10);
   ResoRow13->SetBinContent(63,7);
   ResoRow13->SetBinContent(64,1);
   ResoRow13->SetBinContent(65,5);
   ResoRow13->SetBinContent(66,3);
   ResoRow13->SetBinContent(67,3);
   ResoRow13->SetBinContent(68,5);
   ResoRow13->SetBinContent(70,3);
   ResoRow13->SetBinContent(74,2);
   ResoRow13->SetBinContent(75,1);
   ResoRow13->SetBinContent(77,1);
   ResoRow13->SetBinContent(83,1);
   ResoRow13->SetBinContent(101,1);
   ResoRow13->SetEntries(1152);
   
   TF1 *ResoRowFit13 = new TF1("ResoRowFit13","gaus",-1,1);
   ResoRowFit13->SetFillColor(19);
   ResoRowFit13->SetFillStyle(0);
   ResoRowFit13->SetLineWidth(3);
   ResoRowFit13->SetChisquare(66.93766);
   ResoRowFit13->SetNDF(47);
   ResoRowFit13->SetParameter(0,79.49301);
   ResoRowFit13->SetParError(0,3.131553);
   ResoRowFit13->SetParLimits(0,0,0);
   ResoRowFit13->SetParameter(1,-0.006503676);
   ResoRowFit13->SetParError(1,0.003324646);
   ResoRowFit13->SetParLimits(1,0,0);
   ResoRowFit13->SetParameter(2,0.108749);
   ResoRowFit13->SetParError(2,0.002738183);
   ResoRowFit13->SetParLimits(2,0,1.364023);
   ResoRow13->GetListOfFunctions()->Add(ResoRowFit13);
   
   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("ResoRow13");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1152   ");
   text = ptstats->AddText("Mean  = -0.008988");
   text = ptstats->AddText("RMS   = 0.1364");
   text = ptstats->AddText("#chi^{2} / ndf = 66.94 / 47");
   text = ptstats->AddText("Constant = 79.49 #pm 3.13 ");
   text = ptstats->AddText("Mean     = -0.006504 #pm 0.003325 ");
   text = ptstats->AddText("Sigma    = 0.1087 #pm 0.0027 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow13->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow13->GetListOfFunctions());
   ResoRow13->GetXaxis()->SetTitle("residual / mm");
   ResoRow13->GetYaxis()->SetTitle("counts");
   ResoRow13->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.3375,1.25,111.0375);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow14 = new TH1F("ResoRow14","",100,-1,1);
   ResoRow14->SetBinContent(0,1);
   ResoRow14->SetBinContent(1,1);
   ResoRow14->SetBinContent(11,1);
   ResoRow14->SetBinContent(14,1);
   ResoRow14->SetBinContent(15,1);
   ResoRow14->SetBinContent(28,1);
   ResoRow14->SetBinContent(29,1);
   ResoRow14->SetBinContent(30,2);
   ResoRow14->SetBinContent(32,2);
   ResoRow14->SetBinContent(33,2);
   ResoRow14->SetBinContent(34,2);
   ResoRow14->SetBinContent(35,2);
   ResoRow14->SetBinContent(36,1);
   ResoRow14->SetBinContent(37,5);
   ResoRow14->SetBinContent(38,8);
   ResoRow14->SetBinContent(39,4);
   ResoRow14->SetBinContent(40,11);
   ResoRow14->SetBinContent(41,11);
   ResoRow14->SetBinContent(42,21);
   ResoRow14->SetBinContent(43,25);
   ResoRow14->SetBinContent(44,35);
   ResoRow14->SetBinContent(45,45);
   ResoRow14->SetBinContent(46,58);
   ResoRow14->SetBinContent(47,77);
   ResoRow14->SetBinContent(48,76);
   ResoRow14->SetBinContent(49,92);
   ResoRow14->SetBinContent(50,94);
   ResoRow14->SetBinContent(51,94);
   ResoRow14->SetBinContent(52,74);
   ResoRow14->SetBinContent(53,87);
   ResoRow14->SetBinContent(54,63);
   ResoRow14->SetBinContent(55,58);
   ResoRow14->SetBinContent(56,60);
   ResoRow14->SetBinContent(57,41);
   ResoRow14->SetBinContent(58,26);
   ResoRow14->SetBinContent(59,19);
   ResoRow14->SetBinContent(60,14);
   ResoRow14->SetBinContent(61,7);
   ResoRow14->SetBinContent(62,7);
   ResoRow14->SetBinContent(63,5);
   ResoRow14->SetBinContent(64,3);
   ResoRow14->SetBinContent(65,1);
   ResoRow14->SetBinContent(66,1);
   ResoRow14->SetBinContent(67,3);
   ResoRow14->SetBinContent(68,1);
   ResoRow14->SetBinContent(69,1);
   ResoRow14->SetBinContent(70,1);
   ResoRow14->SetBinContent(71,1);
   ResoRow14->SetBinContent(76,1);
   ResoRow14->SetBinContent(78,1);
   ResoRow14->SetBinContent(101,3);
   ResoRow14->SetEntries(1152);
   
   TF1 *ResoRowFit14 = new TF1("ResoRowFit14","gaus",-1,1);
   ResoRowFit14->SetFillColor(19);
   ResoRowFit14->SetFillStyle(0);
   ResoRowFit14->SetLineWidth(3);
   ResoRowFit14->SetChisquare(38.13131);
   ResoRowFit14->SetNDF(46);
   ResoRowFit14->SetParameter(0,89.4895);
   ResoRowFit14->SetParError(0,3.428018);
   ResoRowFit14->SetParLimits(0,0,0);
   ResoRowFit14->SetParameter(1,0.001052355);
   ResoRowFit14->SetParError(1,0.002972019);
   ResoRowFit14->SetParLimits(1,0,0);
   ResoRowFit14->SetParameter(2,0.0989599);
   ResoRowFit14->SetParError(2,0.002356197);
   ResoRowFit14->SetParLimits(2,0,1.207936);
   ResoRow14->GetListOfFunctions()->Add(ResoRowFit14);
   
   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("ResoRow14");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1152   ");
   text = ptstats->AddText("Mean  = -0.002797");
   text = ptstats->AddText("RMS   = 0.1205");
   text = ptstats->AddText("#chi^{2} / ndf = 38.13 / 46");
   text = ptstats->AddText("Constant = 89.49 #pm 3.43 ");
   text = ptstats->AddText("Mean     = 0.001052 #pm 0.002972 ");
   text = ptstats->AddText("Sigma    = 0.09896 #pm 0.00236 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow14->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow14->GetListOfFunctions());
   ResoRow14->GetXaxis()->SetTitle("residual / mm");
   ResoRow14->GetYaxis()->SetTitle("counts");
   ResoRow14->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,-13.3875,1.25,120.4875);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow15 = new TH1F("ResoRow15","",100,-1,1);
   ResoRow15->SetBinContent(0,2);
   ResoRow15->SetBinContent(3,1);
   ResoRow15->SetBinContent(20,1);
   ResoRow15->SetBinContent(23,1);
   ResoRow15->SetBinContent(26,3);
   ResoRow15->SetBinContent(29,1);
   ResoRow15->SetBinContent(30,1);
   ResoRow15->SetBinContent(31,2);
   ResoRow15->SetBinContent(34,1);
   ResoRow15->SetBinContent(35,1);
   ResoRow15->SetBinContent(36,5);
   ResoRow15->SetBinContent(37,2);
   ResoRow15->SetBinContent(38,6);
   ResoRow15->SetBinContent(39,7);
   ResoRow15->SetBinContent(40,11);
   ResoRow15->SetBinContent(41,15);
   ResoRow15->SetBinContent(42,22);
   ResoRow15->SetBinContent(43,22);
   ResoRow15->SetBinContent(44,29);
   ResoRow15->SetBinContent(45,54);
   ResoRow15->SetBinContent(46,48);
   ResoRow15->SetBinContent(47,58);
   ResoRow15->SetBinContent(48,92);
   ResoRow15->SetBinContent(49,101);
   ResoRow15->SetBinContent(50,102);
   ResoRow15->SetBinContent(51,95);
   ResoRow15->SetBinContent(52,81);
   ResoRow15->SetBinContent(53,73);
   ResoRow15->SetBinContent(54,70);
   ResoRow15->SetBinContent(55,59);
   ResoRow15->SetBinContent(56,53);
   ResoRow15->SetBinContent(57,39);
   ResoRow15->SetBinContent(58,26);
   ResoRow15->SetBinContent(59,13);
   ResoRow15->SetBinContent(60,11);
   ResoRow15->SetBinContent(61,9);
   ResoRow15->SetBinContent(62,8);
   ResoRow15->SetBinContent(63,3);
   ResoRow15->SetBinContent(64,8);
   ResoRow15->SetBinContent(65,2);
   ResoRow15->SetBinContent(66,2);
   ResoRow15->SetBinContent(67,2);
   ResoRow15->SetBinContent(68,1);
   ResoRow15->SetBinContent(71,1);
   ResoRow15->SetBinContent(72,3);
   ResoRow15->SetBinContent(75,1);
   ResoRow15->SetBinContent(92,1);
   ResoRow15->SetBinContent(101,3);
   ResoRow15->SetEntries(1152);
   
   TF1 *ResoRowFit15 = new TF1("ResoRowFit15","gaus",-1,1);
   ResoRowFit15->SetFillColor(19);
   ResoRowFit15->SetFillStyle(0);
   ResoRowFit15->SetLineWidth(3);
   ResoRowFit15->SetChisquare(51.425);
   ResoRowFit15->SetNDF(43);
   ResoRowFit15->SetParameter(0,89.3502);
   ResoRowFit15->SetParError(0,3.586453);
   ResoRowFit15->SetParLimits(0,0,0);
   ResoRowFit15->SetParameter(1,-0.0002068514);
   ResoRowFit15->SetParError(1,0.002969532);
   ResoRowFit15->SetParLimits(1,0,0);
   ResoRowFit15->SetParameter(2,0.09786276);
   ResoRowFit15->SetParError(2,0.002595644);
   ResoRowFit15->SetParLimits(2,0,1.197974);
   ResoRow15->GetListOfFunctions()->Add(ResoRowFit15);
   
   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("ResoRow15");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1152   ");
   text = ptstats->AddText("Mean  = -0.001314");
   text = ptstats->AddText("RMS   = 0.1194");
   text = ptstats->AddText("#chi^{2} / ndf = 51.43 / 43");
   text = ptstats->AddText("Constant = 89.35 #pm 3.59 ");
   text = ptstats->AddText("Mean     = -0.0002069 #pm 0.0029695 ");
   text = ptstats->AddText("Sigma    = 0.09786 #pm 0.00260 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow15->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow15->GetListOfFunctions());
   ResoRow15->GetXaxis()->SetTitle("residual / mm");
   ResoRow15->GetYaxis()->SetTitle("counts");
   ResoRow15->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.8625,1.25,115.7625);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow16 = new TH1F("ResoRow16","",100,-1,1);
   ResoRow16->SetBinContent(0,1);
   ResoRow16->SetBinContent(3,1);
   ResoRow16->SetBinContent(9,1);
   ResoRow16->SetBinContent(17,1);
   ResoRow16->SetBinContent(23,1);
   ResoRow16->SetBinContent(26,2);
   ResoRow16->SetBinContent(30,3);
   ResoRow16->SetBinContent(32,1);
   ResoRow16->SetBinContent(33,1);
   ResoRow16->SetBinContent(34,1);
   ResoRow16->SetBinContent(35,4);
   ResoRow16->SetBinContent(36,8);
   ResoRow16->SetBinContent(37,2);
   ResoRow16->SetBinContent(38,9);
   ResoRow16->SetBinContent(39,8);
   ResoRow16->SetBinContent(40,14);
   ResoRow16->SetBinContent(41,15);
   ResoRow16->SetBinContent(42,17);
   ResoRow16->SetBinContent(43,32);
   ResoRow16->SetBinContent(44,40);
   ResoRow16->SetBinContent(45,43);
   ResoRow16->SetBinContent(46,50);
   ResoRow16->SetBinContent(47,53);
   ResoRow16->SetBinContent(48,72);
   ResoRow16->SetBinContent(49,84);
   ResoRow16->SetBinContent(50,92);
   ResoRow16->SetBinContent(51,98);
   ResoRow16->SetBinContent(52,92);
   ResoRow16->SetBinContent(53,83);
   ResoRow16->SetBinContent(54,87);
   ResoRow16->SetBinContent(55,56);
   ResoRow16->SetBinContent(56,52);
   ResoRow16->SetBinContent(57,33);
   ResoRow16->SetBinContent(58,21);
   ResoRow16->SetBinContent(59,20);
   ResoRow16->SetBinContent(60,14);
   ResoRow16->SetBinContent(61,11);
   ResoRow16->SetBinContent(62,2);
   ResoRow16->SetBinContent(63,6);
   ResoRow16->SetBinContent(64,5);
   ResoRow16->SetBinContent(65,5);
   ResoRow16->SetBinContent(66,3);
   ResoRow16->SetBinContent(69,1);
   ResoRow16->SetBinContent(73,2);
   ResoRow16->SetBinContent(74,1);
   ResoRow16->SetBinContent(80,1);
   ResoRow16->SetBinContent(101,3);
   ResoRow16->SetEntries(1152);
   
   TF1 *ResoRowFit16 = new TF1("ResoRowFit16","gaus",-1,1);
   ResoRowFit16->SetFillColor(19);
   ResoRowFit16->SetFillStyle(0);
   ResoRowFit16->SetLineWidth(3);
   ResoRowFit16->SetChisquare(62.58152);
   ResoRowFit16->SetNDF(42);
   ResoRowFit16->SetParameter(0,87.36489);
   ResoRowFit16->SetParError(0,3.514254);
   ResoRowFit16->SetParLimits(0,0,0);
   ResoRowFit16->SetParameter(1,-0.0008839163);
   ResoRowFit16->SetParError(1,0.003131277);
   ResoRowFit16->SetParLimits(1,0,0);
   ResoRowFit16->SetParameter(2,0.09918508);
   ResoRowFit16->SetParError(2,0.002633121);
   ResoRowFit16->SetParLimits(2,0,1.232376);
   ResoRow16->GetListOfFunctions()->Add(ResoRowFit16);
   
   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("ResoRow16");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1152   ");
   text = ptstats->AddText("Mean  = -0.00385");
   text = ptstats->AddText("RMS   = 0.1231");
   text = ptstats->AddText("#chi^{2} / ndf = 62.58 / 42");
   text = ptstats->AddText("Constant = 87.36 #pm 3.51 ");
   text = ptstats->AddText("Mean     = -0.0008839 #pm 0.0031313 ");
   text = ptstats->AddText("Sigma    = 0.09919 #pm 0.00263 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow16->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow16->GetListOfFunctions());
   ResoRow16->GetXaxis()->SetTitle("residual / mm");
   ResoRow16->GetYaxis()->SetTitle("counts");
   ResoRow16->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,-13.3875,1.25,120.4875);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow17 = new TH1F("ResoRow17","",100,-1,1);
   ResoRow17->SetBinContent(0,1);
   ResoRow17->SetBinContent(4,1);
   ResoRow17->SetBinContent(6,1);
   ResoRow17->SetBinContent(29,2);
   ResoRow17->SetBinContent(31,1);
   ResoRow17->SetBinContent(32,1);
   ResoRow17->SetBinContent(33,2);
   ResoRow17->SetBinContent(34,3);
   ResoRow17->SetBinContent(35,1);
   ResoRow17->SetBinContent(36,6);
   ResoRow17->SetBinContent(37,6);
   ResoRow17->SetBinContent(38,3);
   ResoRow17->SetBinContent(39,8);
   ResoRow17->SetBinContent(40,9);
   ResoRow17->SetBinContent(41,12);
   ResoRow17->SetBinContent(42,20);
   ResoRow17->SetBinContent(43,28);
   ResoRow17->SetBinContent(44,42);
   ResoRow17->SetBinContent(45,53);
   ResoRow17->SetBinContent(46,63);
   ResoRow17->SetBinContent(47,76);
   ResoRow17->SetBinContent(48,89);
   ResoRow17->SetBinContent(49,92);
   ResoRow17->SetBinContent(50,80);
   ResoRow17->SetBinContent(51,102);
   ResoRow17->SetBinContent(52,81);
   ResoRow17->SetBinContent(53,78);
   ResoRow17->SetBinContent(54,68);
   ResoRow17->SetBinContent(55,47);
   ResoRow17->SetBinContent(56,43);
   ResoRow17->SetBinContent(57,31);
   ResoRow17->SetBinContent(58,26);
   ResoRow17->SetBinContent(59,18);
   ResoRow17->SetBinContent(60,9);
   ResoRow17->SetBinContent(61,17);
   ResoRow17->SetBinContent(62,7);
   ResoRow17->SetBinContent(63,3);
   ResoRow17->SetBinContent(64,5);
   ResoRow17->SetBinContent(65,4);
   ResoRow17->SetBinContent(66,1);
   ResoRow17->SetBinContent(67,1);
   ResoRow17->SetBinContent(69,2);
   ResoRow17->SetBinContent(77,1);
   ResoRow17->SetBinContent(83,1);
   ResoRow17->SetBinContent(101,7);
   ResoRow17->SetEntries(1152);
   
   TF1 *ResoRowFit17 = new TF1("ResoRowFit17","gaus",-1,1);
   ResoRowFit17->SetFillColor(19);
   ResoRowFit17->SetFillStyle(0);
   ResoRowFit17->SetLineWidth(3);
   ResoRowFit17->SetChisquare(39.69285);
   ResoRowFit17->SetNDF(40);
   ResoRowFit17->SetParameter(0,88.96251);
   ResoRowFit17->SetParError(0,3.514792);
   ResoRowFit17->SetParLimits(0,0,0);
   ResoRowFit17->SetParameter(1,-0.006021447);
   ResoRowFit17->SetParError(1,0.002999039);
   ResoRowFit17->SetParLimits(1,0,0);
   ResoRowFit17->SetParameter(2,0.09906253);
   ResoRowFit17->SetParError(2,0.002542383);
   ResoRowFit17->SetParLimits(2,0,1.171953);
   ResoRow17->GetListOfFunctions()->Add(ResoRowFit17);
   
   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("ResoRow17");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1152   ");
   text = ptstats->AddText("Mean  = -0.007938");
   text = ptstats->AddText("RMS   = 0.1171");
   text = ptstats->AddText("#chi^{2} / ndf = 39.69 / 40");
   text = ptstats->AddText("Constant = 88.96 #pm 3.51 ");
   text = ptstats->AddText("Mean     = -0.006021 #pm 0.002999 ");
   text = ptstats->AddText("Sigma    = 0.09906 #pm 0.00254 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow17->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow17->GetListOfFunctions());
   ResoRow17->GetXaxis()->SetTitle("residual / mm");
   ResoRow17->GetYaxis()->SetTitle("counts");
   ResoRow17->Draw("");
   c2_6->Modified();
   c2->cd();
   c2->Modified();
   c2->cd();
   c2->SetSelected(c2);
}
