{
//=========Macro generated from canvas: c2/
//=========  (Tue Jun  8 18:13:56 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,-11.2875,1.25,101.5875);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow12 = new TH1F("ResoRow12","",100,-1,1);
   ResoRow12->SetBinContent(5,1);
   ResoRow12->SetBinContent(14,1);
   ResoRow12->SetBinContent(19,2);
   ResoRow12->SetBinContent(24,1);
   ResoRow12->SetBinContent(25,1);
   ResoRow12->SetBinContent(26,1);
   ResoRow12->SetBinContent(30,1);
   ResoRow12->SetBinContent(31,4);
   ResoRow12->SetBinContent(32,3);
   ResoRow12->SetBinContent(33,2);
   ResoRow12->SetBinContent(34,4);
   ResoRow12->SetBinContent(35,5);
   ResoRow12->SetBinContent(36,4);
   ResoRow12->SetBinContent(37,10);
   ResoRow12->SetBinContent(38,7);
   ResoRow12->SetBinContent(39,20);
   ResoRow12->SetBinContent(40,17);
   ResoRow12->SetBinContent(41,18);
   ResoRow12->SetBinContent(42,19);
   ResoRow12->SetBinContent(43,33);
   ResoRow12->SetBinContent(44,42);
   ResoRow12->SetBinContent(45,47);
   ResoRow12->SetBinContent(46,49);
   ResoRow12->SetBinContent(47,62);
   ResoRow12->SetBinContent(48,83);
   ResoRow12->SetBinContent(49,80);
   ResoRow12->SetBinContent(50,86);
   ResoRow12->SetBinContent(51,82);
   ResoRow12->SetBinContent(52,77);
   ResoRow12->SetBinContent(53,83);
   ResoRow12->SetBinContent(54,60);
   ResoRow12->SetBinContent(55,60);
   ResoRow12->SetBinContent(56,50);
   ResoRow12->SetBinContent(57,27);
   ResoRow12->SetBinContent(58,27);
   ResoRow12->SetBinContent(59,24);
   ResoRow12->SetBinContent(60,16);
   ResoRow12->SetBinContent(61,15);
   ResoRow12->SetBinContent(62,10);
   ResoRow12->SetBinContent(63,9);
   ResoRow12->SetBinContent(64,2);
   ResoRow12->SetBinContent(65,3);
   ResoRow12->SetBinContent(66,5);
   ResoRow12->SetBinContent(67,4);
   ResoRow12->SetBinContent(69,2);
   ResoRow12->SetBinContent(70,3);
   ResoRow12->SetBinContent(71,1);
   ResoRow12->SetBinContent(72,1);
   ResoRow12->SetBinContent(85,1);
   ResoRow12->SetBinContent(94,1);
   ResoRow12->SetBinContent(101,3);
   ResoRow12->SetEntries(1169);
   
   TF1 *ResoRowFit12 = new TF1("ResoRowFit12","gaus",-1,1);
   ResoRowFit12->SetFillColor(19);
   ResoRowFit12->SetFillStyle(0);
   ResoRowFit12->SetLineWidth(3);
   ResoRowFit12->SetChisquare(58.01494);
   ResoRowFit12->SetNDF(47);
   ResoRowFit12->SetParameter(0,77.22781);
   ResoRowFit12->SetParError(0,3.140972);
   ResoRowFit12->SetParLimits(0,0,0);
   ResoRowFit12->SetParameter(1,-0.005482083);
   ResoRowFit12->SetParError(1,0.003490485);
   ResoRowFit12->SetParLimits(1,0,0);
   ResoRowFit12->SetParameter(2,0.1145575);
   ResoRowFit12->SetParError(2,0.003162624);
   ResoRowFit12->SetParLimits(2,0,1.376965);
   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 = 1169   ");
   text = ptstats->AddText("Mean  = -0.008512");
   text = ptstats->AddText("RMS   = 0.1377");
   text = ptstats->AddText("#chi^{2} / ndf = 58.01 / 47");
   text = ptstats->AddText("Constant = 77.23 #pm 3.14 ");
   text = ptstats->AddText("Mean     = -0.005482 #pm 0.003490 ");
   text = ptstats->AddText("Sigma    = 0.1146 #pm 0.0032 ");
   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,-12.46875,1.25,112.2188);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow13 = new TH1F("ResoRow13","",100,-1,1);
   ResoRow13->SetBinContent(0,1);
   ResoRow13->SetBinContent(8,1);
   ResoRow13->SetBinContent(18,1);
   ResoRow13->SetBinContent(19,1);
   ResoRow13->SetBinContent(24,3);
   ResoRow13->SetBinContent(29,2);
   ResoRow13->SetBinContent(32,2);
   ResoRow13->SetBinContent(33,2);
   ResoRow13->SetBinContent(34,4);
   ResoRow13->SetBinContent(35,4);
   ResoRow13->SetBinContent(36,6);
   ResoRow13->SetBinContent(37,9);
   ResoRow13->SetBinContent(38,9);
   ResoRow13->SetBinContent(39,9);
   ResoRow13->SetBinContent(40,16);
   ResoRow13->SetBinContent(41,31);
   ResoRow13->SetBinContent(42,26);
   ResoRow13->SetBinContent(43,34);
   ResoRow13->SetBinContent(44,43);
   ResoRow13->SetBinContent(45,37);
   ResoRow13->SetBinContent(46,70);
   ResoRow13->SetBinContent(47,59);
   ResoRow13->SetBinContent(48,82);
   ResoRow13->SetBinContent(49,76);
   ResoRow13->SetBinContent(50,81);
   ResoRow13->SetBinContent(51,83);
   ResoRow13->SetBinContent(52,95);
   ResoRow13->SetBinContent(53,62);
   ResoRow13->SetBinContent(54,61);
   ResoRow13->SetBinContent(55,52);
   ResoRow13->SetBinContent(56,45);
   ResoRow13->SetBinContent(57,43);
   ResoRow13->SetBinContent(58,30);
   ResoRow13->SetBinContent(59,16);
   ResoRow13->SetBinContent(60,14);
   ResoRow13->SetBinContent(61,18);
   ResoRow13->SetBinContent(62,5);
   ResoRow13->SetBinContent(63,13);
   ResoRow13->SetBinContent(64,4);
   ResoRow13->SetBinContent(65,4);
   ResoRow13->SetBinContent(66,4);
   ResoRow13->SetBinContent(67,6);
   ResoRow13->SetBinContent(68,1);
   ResoRow13->SetBinContent(72,2);
   ResoRow13->SetBinContent(80,1);
   ResoRow13->SetBinContent(101,1);
   ResoRow13->SetEntries(1169);
   
   TF1 *ResoRowFit13 = new TF1("ResoRowFit13","gaus",-1,1);
   ResoRowFit13->SetFillColor(19);
   ResoRowFit13->SetFillStyle(0);
   ResoRowFit13->SetLineWidth(3);
   ResoRowFit13->SetChisquare(55.8454);
   ResoRowFit13->SetNDF(41);
   ResoRowFit13->SetParameter(0,76.68121);
   ResoRowFit13->SetParError(0,3.060165);
   ResoRowFit13->SetParLimits(0,0,0);
   ResoRowFit13->SetParameter(1,-0.00888683);
   ResoRowFit13->SetParError(1,0.003513193);
   ResoRowFit13->SetParLimits(1,0,0);
   ResoRowFit13->SetParameter(2,0.11576);
   ResoRowFit13->SetParError(2,0.003087069);
   ResoRowFit13->SetParLimits(2,0,1.312114);
   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 = 1169   ");
   text = ptstats->AddText("Mean  = -0.009795");
   text = ptstats->AddText("RMS   =  0.131");
   text = ptstats->AddText("#chi^{2} / ndf = 55.85 / 41");
   text = ptstats->AddText("Constant = 76.68 #pm 3.06 ");
   text = ptstats->AddText("Mean     = -0.008887 #pm 0.003513 ");
   text = ptstats->AddText("Sigma    = 0.1158 #pm 0.0031 ");
   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,-13.25625,1.25,119.3063);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow14 = new TH1F("ResoRow14","",100,-1,1);
   ResoRow14->SetBinContent(0,2);
   ResoRow14->SetBinContent(14,1);
   ResoRow14->SetBinContent(19,1);
   ResoRow14->SetBinContent(27,1);
   ResoRow14->SetBinContent(28,2);
   ResoRow14->SetBinContent(29,1);
   ResoRow14->SetBinContent(31,2);
   ResoRow14->SetBinContent(32,2);
   ResoRow14->SetBinContent(33,2);
   ResoRow14->SetBinContent(34,1);
   ResoRow14->SetBinContent(35,4);
   ResoRow14->SetBinContent(36,2);
   ResoRow14->SetBinContent(37,6);
   ResoRow14->SetBinContent(38,7);
   ResoRow14->SetBinContent(39,7);
   ResoRow14->SetBinContent(40,8);
   ResoRow14->SetBinContent(41,15);
   ResoRow14->SetBinContent(42,18);
   ResoRow14->SetBinContent(43,35);
   ResoRow14->SetBinContent(44,33);
   ResoRow14->SetBinContent(45,56);
   ResoRow14->SetBinContent(46,58);
   ResoRow14->SetBinContent(47,77);
   ResoRow14->SetBinContent(48,71);
   ResoRow14->SetBinContent(49,81);
   ResoRow14->SetBinContent(50,101);
   ResoRow14->SetBinContent(51,93);
   ResoRow14->SetBinContent(52,68);
   ResoRow14->SetBinContent(53,80);
   ResoRow14->SetBinContent(54,69);
   ResoRow14->SetBinContent(55,60);
   ResoRow14->SetBinContent(56,51);
   ResoRow14->SetBinContent(57,48);
   ResoRow14->SetBinContent(58,29);
   ResoRow14->SetBinContent(59,16);
   ResoRow14->SetBinContent(60,15);
   ResoRow14->SetBinContent(61,16);
   ResoRow14->SetBinContent(62,7);
   ResoRow14->SetBinContent(63,4);
   ResoRow14->SetBinContent(64,4);
   ResoRow14->SetBinContent(65,3);
   ResoRow14->SetBinContent(66,1);
   ResoRow14->SetBinContent(67,4);
   ResoRow14->SetBinContent(68,1);
   ResoRow14->SetBinContent(69,1);
   ResoRow14->SetBinContent(70,1);
   ResoRow14->SetBinContent(71,2);
   ResoRow14->SetBinContent(74,2);
   ResoRow14->SetEntries(1169);
   
   TF1 *ResoRowFit14 = new TF1("ResoRowFit14","gaus",-1,1);
   ResoRowFit14->SetFillColor(19);
   ResoRowFit14->SetFillStyle(0);
   ResoRowFit14->SetLineWidth(3);
   ResoRowFit14->SetChisquare(44.32882);
   ResoRowFit14->SetNDF(44);
   ResoRowFit14->SetParameter(0,85.8297);
   ResoRowFit14->SetParError(0,3.30651);
   ResoRowFit14->SetParLimits(0,0,0);
   ResoRowFit14->SetParameter(1,0.0003900828);
   ResoRowFit14->SetParError(1,0.003116582);
   ResoRowFit14->SetParLimits(1,0,0);
   ResoRowFit14->SetParameter(2,0.1043714);
   ResoRowFit14->SetParError(2,0.002544142);
   ResoRowFit14->SetParLimits(2,0,1.199187);
   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 = 1169   ");
   text = ptstats->AddText("Mean  = -0.001836");
   text = ptstats->AddText("RMS   = 0.1195");
   text = ptstats->AddText("#chi^{2} / ndf = 44.33 / 44");
   text = ptstats->AddText("Constant = 85.83 #pm 3.31 ");
   text = ptstats->AddText("Mean     = 0.0003901 #pm 0.0031166 ");
   text = ptstats->AddText("Sigma    = 0.1044 #pm 0.0025 ");
   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,-12.20625,1.25,109.8563);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow15 = new TH1F("ResoRow15","",100,-1,1);
   ResoRow15->SetBinContent(0,1);
   ResoRow15->SetBinContent(5,1);
   ResoRow15->SetBinContent(18,1);
   ResoRow15->SetBinContent(30,1);
   ResoRow15->SetBinContent(32,3);
   ResoRow15->SetBinContent(33,2);
   ResoRow15->SetBinContent(35,1);
   ResoRow15->SetBinContent(36,5);
   ResoRow15->SetBinContent(37,7);
   ResoRow15->SetBinContent(38,5);
   ResoRow15->SetBinContent(39,10);
   ResoRow15->SetBinContent(40,11);
   ResoRow15->SetBinContent(41,17);
   ResoRow15->SetBinContent(42,22);
   ResoRow15->SetBinContent(43,31);
   ResoRow15->SetBinContent(44,51);
   ResoRow15->SetBinContent(45,36);
   ResoRow15->SetBinContent(46,62);
   ResoRow15->SetBinContent(47,73);
   ResoRow15->SetBinContent(48,86);
   ResoRow15->SetBinContent(49,90);
   ResoRow15->SetBinContent(50,93);
   ResoRow15->SetBinContent(51,87);
   ResoRow15->SetBinContent(52,68);
   ResoRow15->SetBinContent(53,77);
   ResoRow15->SetBinContent(54,74);
   ResoRow15->SetBinContent(55,47);
   ResoRow15->SetBinContent(56,52);
   ResoRow15->SetBinContent(57,41);
   ResoRow15->SetBinContent(58,36);
   ResoRow15->SetBinContent(59,31);
   ResoRow15->SetBinContent(60,15);
   ResoRow15->SetBinContent(61,9);
   ResoRow15->SetBinContent(62,7);
   ResoRow15->SetBinContent(63,2);
   ResoRow15->SetBinContent(64,3);
   ResoRow15->SetBinContent(66,1);
   ResoRow15->SetBinContent(67,3);
   ResoRow15->SetBinContent(69,1);
   ResoRow15->SetBinContent(70,2);
   ResoRow15->SetBinContent(71,1);
   ResoRow15->SetBinContent(75,1);
   ResoRow15->SetBinContent(86,2);
   ResoRow15->SetEntries(1169);
   
   TF1 *ResoRowFit15 = new TF1("ResoRowFit15","gaus",-1,1);
   ResoRowFit15->SetFillColor(19);
   ResoRowFit15->SetFillStyle(0);
   ResoRowFit15->SetLineWidth(3);
   ResoRowFit15->SetChisquare(44.18531);
   ResoRowFit15->SetNDF(39);
   ResoRowFit15->SetParameter(0,85.92605);
   ResoRowFit15->SetParError(0,3.226793);
   ResoRowFit15->SetParLimits(0,0,0);
   ResoRowFit15->SetParameter(1,-0.003376272);
   ResoRowFit15->SetParError(1,0.003164927);
   ResoRowFit15->SetParLimits(1,0,0);
   ResoRowFit15->SetParameter(2,0.1046127);
   ResoRowFit15->SetParError(2,0.00243387);
   ResoRowFit15->SetParLimits(2,0,1.199016);
   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 = 1169   ");
   text = ptstats->AddText("Mean  = -0.003165");
   text = ptstats->AddText("RMS   = 0.1196");
   text = ptstats->AddText("#chi^{2} / ndf = 44.19 / 39");
   text = ptstats->AddText("Constant = 85.93 #pm 3.23 ");
   text = ptstats->AddText("Mean     = -0.003376 #pm 0.003165 ");
   text = ptstats->AddText("Sigma    = 0.1046 #pm 0.0024 ");
   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,-11.94375,1.25,107.4938);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow16 = new TH1F("ResoRow16","",100,-1,1);
   ResoRow16->SetBinContent(0,3);
   ResoRow16->SetBinContent(25,2);
   ResoRow16->SetBinContent(27,2);
   ResoRow16->SetBinContent(30,1);
   ResoRow16->SetBinContent(31,2);
   ResoRow16->SetBinContent(33,1);
   ResoRow16->SetBinContent(34,1);
   ResoRow16->SetBinContent(35,3);
   ResoRow16->SetBinContent(36,6);
   ResoRow16->SetBinContent(37,2);
   ResoRow16->SetBinContent(38,10);
   ResoRow16->SetBinContent(39,11);
   ResoRow16->SetBinContent(40,12);
   ResoRow16->SetBinContent(41,13);
   ResoRow16->SetBinContent(42,19);
   ResoRow16->SetBinContent(43,30);
   ResoRow16->SetBinContent(44,30);
   ResoRow16->SetBinContent(45,56);
   ResoRow16->SetBinContent(46,57);
   ResoRow16->SetBinContent(47,56);
   ResoRow16->SetBinContent(48,67);
   ResoRow16->SetBinContent(49,85);
   ResoRow16->SetBinContent(50,89);
   ResoRow16->SetBinContent(51,87);
   ResoRow16->SetBinContent(52,91);
   ResoRow16->SetBinContent(53,90);
   ResoRow16->SetBinContent(54,80);
   ResoRow16->SetBinContent(55,69);
   ResoRow16->SetBinContent(56,50);
   ResoRow16->SetBinContent(57,36);
   ResoRow16->SetBinContent(58,32);
   ResoRow16->SetBinContent(59,18);
   ResoRow16->SetBinContent(60,20);
   ResoRow16->SetBinContent(61,14);
   ResoRow16->SetBinContent(62,7);
   ResoRow16->SetBinContent(63,4);
   ResoRow16->SetBinContent(64,3);
   ResoRow16->SetBinContent(65,2);
   ResoRow16->SetBinContent(66,3);
   ResoRow16->SetBinContent(75,1);
   ResoRow16->SetBinContent(76,1);
   ResoRow16->SetBinContent(77,1);
   ResoRow16->SetBinContent(79,1);
   ResoRow16->SetBinContent(101,1);
   ResoRow16->SetEntries(1169);
   
   TF1 *ResoRowFit16 = new TF1("ResoRowFit16","gaus",-1,1);
   ResoRowFit16->SetFillColor(19);
   ResoRowFit16->SetFillStyle(0);
   ResoRowFit16->SetLineWidth(3);
   ResoRowFit16->SetChisquare(38.28528);
   ResoRowFit16->SetNDF(39);
   ResoRowFit16->SetParameter(0,86.75735);
   ResoRowFit16->SetParError(0,3.355595);
   ResoRowFit16->SetParLimits(0,0,0);
   ResoRowFit16->SetParameter(1,0.004236527);
   ResoRowFit16->SetParError(1,0.003151479);
   ResoRowFit16->SetParLimits(1,0,0);
   ResoRowFit16->SetParameter(2,0.1037541);
   ResoRowFit16->SetParError(2,0.002591685);
   ResoRowFit16->SetParLimits(2,0,1.15968);
   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 = 1169   ");
   text = ptstats->AddText("Mean  = 0.0008531");
   text = ptstats->AddText("RMS   = 0.1158");
   text = ptstats->AddText("#chi^{2} / ndf = 38.29 / 39");
   text = ptstats->AddText("Constant = 86.76 #pm 3.36 ");
   text = ptstats->AddText("Mean     = 0.004237 #pm 0.003151 ");
   text = ptstats->AddText("Sigma    = 0.1038 #pm 0.0026 ");
   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,-12.99375,1.25,116.9438);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow17 = new TH1F("ResoRow17","",100,-1,1);
   ResoRow17->SetBinContent(0,2);
   ResoRow17->SetBinContent(8,1);
   ResoRow17->SetBinContent(17,1);
   ResoRow17->SetBinContent(28,2);
   ResoRow17->SetBinContent(29,1);
   ResoRow17->SetBinContent(33,2);
   ResoRow17->SetBinContent(34,4);
   ResoRow17->SetBinContent(35,2);
   ResoRow17->SetBinContent(36,3);
   ResoRow17->SetBinContent(37,5);
   ResoRow17->SetBinContent(38,7);
   ResoRow17->SetBinContent(39,11);
   ResoRow17->SetBinContent(40,15);
   ResoRow17->SetBinContent(41,20);
   ResoRow17->SetBinContent(42,24);
   ResoRow17->SetBinContent(43,32);
   ResoRow17->SetBinContent(44,45);
   ResoRow17->SetBinContent(45,50);
   ResoRow17->SetBinContent(46,45);
   ResoRow17->SetBinContent(47,72);
   ResoRow17->SetBinContent(48,64);
   ResoRow17->SetBinContent(49,99);
   ResoRow17->SetBinContent(50,96);
   ResoRow17->SetBinContent(51,90);
   ResoRow17->SetBinContent(52,79);
   ResoRow17->SetBinContent(53,65);
   ResoRow17->SetBinContent(54,62);
   ResoRow17->SetBinContent(55,65);
   ResoRow17->SetBinContent(56,43);
   ResoRow17->SetBinContent(57,44);
   ResoRow17->SetBinContent(58,25);
   ResoRow17->SetBinContent(59,26);
   ResoRow17->SetBinContent(60,8);
   ResoRow17->SetBinContent(61,16);
   ResoRow17->SetBinContent(62,11);
   ResoRow17->SetBinContent(63,10);
   ResoRow17->SetBinContent(64,2);
   ResoRow17->SetBinContent(65,5);
   ResoRow17->SetBinContent(66,3);
   ResoRow17->SetBinContent(68,3);
   ResoRow17->SetBinContent(70,1);
   ResoRow17->SetBinContent(73,2);
   ResoRow17->SetBinContent(75,1);
   ResoRow17->SetBinContent(76,1);
   ResoRow17->SetBinContent(78,1);
   ResoRow17->SetBinContent(97,1);
   ResoRow17->SetBinContent(99,1);
   ResoRow17->SetBinContent(101,1);
   ResoRow17->SetEntries(1169);
   
   TF1 *ResoRowFit17 = new TF1("ResoRowFit17","gaus",-1,1);
   ResoRowFit17->SetFillColor(19);
   ResoRowFit17->SetFillStyle(0);
   ResoRowFit17->SetLineWidth(3);
   ResoRowFit17->SetChisquare(54.83629);
   ResoRowFit17->SetNDF(43);
   ResoRowFit17->SetParameter(0,81.18022);
   ResoRowFit17->SetParError(0,3.181716);
   ResoRowFit17->SetParLimits(0,0,0);
   ResoRowFit17->SetParameter(1,-0.005589573);
   ResoRowFit17->SetParError(1,0.003311473);
   ResoRowFit17->SetParLimits(1,0,0);
   ResoRowFit17->SetParameter(2,0.1093726);
   ResoRowFit17->SetParError(2,0.002799039);
   ResoRowFit17->SetParLimits(2,0,1.298066);
   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 = 1169   ");
   text = ptstats->AddText("Mean  = -0.001453");
   text = ptstats->AddText("RMS   = 0.1297");
   text = ptstats->AddText("#chi^{2} / ndf = 54.84 / 43");
   text = ptstats->AddText("Constant = 81.18 #pm 3.18 ");
   text = ptstats->AddText("Mean     = -0.00559 #pm 0.00331 ");
   text = ptstats->AddText("Sigma    = 0.1094 #pm 0.0028 ");
   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);
}
