{
//=========Macro generated from canvas: c2/
//=========  (Tue Jun  8 17:00:44 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.3875,1.25,120.4875);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow12 = new TH1F("ResoRow12","",100,-1,1);
   ResoRow12->SetBinContent(0,5);
   ResoRow12->SetBinContent(11,1);
   ResoRow12->SetBinContent(12,1);
   ResoRow12->SetBinContent(16,1);
   ResoRow12->SetBinContent(20,1);
   ResoRow12->SetBinContent(26,1);
   ResoRow12->SetBinContent(27,1);
   ResoRow12->SetBinContent(29,1);
   ResoRow12->SetBinContent(31,3);
   ResoRow12->SetBinContent(32,4);
   ResoRow12->SetBinContent(33,1);
   ResoRow12->SetBinContent(34,3);
   ResoRow12->SetBinContent(35,1);
   ResoRow12->SetBinContent(36,7);
   ResoRow12->SetBinContent(37,7);
   ResoRow12->SetBinContent(38,11);
   ResoRow12->SetBinContent(39,8);
   ResoRow12->SetBinContent(40,14);
   ResoRow12->SetBinContent(41,21);
   ResoRow12->SetBinContent(42,28);
   ResoRow12->SetBinContent(43,34);
   ResoRow12->SetBinContent(44,37);
   ResoRow12->SetBinContent(45,38);
   ResoRow12->SetBinContent(46,46);
   ResoRow12->SetBinContent(47,60);
   ResoRow12->SetBinContent(48,81);
   ResoRow12->SetBinContent(49,102);
   ResoRow12->SetBinContent(50,86);
   ResoRow12->SetBinContent(51,83);
   ResoRow12->SetBinContent(52,98);
   ResoRow12->SetBinContent(53,63);
   ResoRow12->SetBinContent(54,59);
   ResoRow12->SetBinContent(55,43);
   ResoRow12->SetBinContent(56,55);
   ResoRow12->SetBinContent(57,43);
   ResoRow12->SetBinContent(58,24);
   ResoRow12->SetBinContent(59,14);
   ResoRow12->SetBinContent(60,20);
   ResoRow12->SetBinContent(61,9);
   ResoRow12->SetBinContent(62,8);
   ResoRow12->SetBinContent(63,5);
   ResoRow12->SetBinContent(64,2);
   ResoRow12->SetBinContent(65,3);
   ResoRow12->SetBinContent(66,3);
   ResoRow12->SetBinContent(67,1);
   ResoRow12->SetBinContent(68,1);
   ResoRow12->SetBinContent(69,2);
   ResoRow12->SetBinContent(74,2);
   ResoRow12->SetBinContent(80,1);
   ResoRow12->SetBinContent(81,2);
   ResoRow12->SetBinContent(82,2);
   ResoRow12->SetBinContent(84,1);
   ResoRow12->SetBinContent(85,1);
   ResoRow12->SetBinContent(91,1);
   ResoRow12->SetBinContent(101,1);
   ResoRow12->SetEntries(1151);
   
   TF1 *ResoRowFit12 = new TF1("ResoRowFit12","gaus",-1,1);
   ResoRowFit12->SetFillColor(19);
   ResoRowFit12->SetFillStyle(0);
   ResoRowFit12->SetLineWidth(3);
   ResoRowFit12->SetChisquare(69.95639);
   ResoRowFit12->SetNDF(50);
   ResoRowFit12->SetParameter(0,78.99526);
   ResoRowFit12->SetParError(0,3.168709);
   ResoRowFit12->SetParLimits(0,0,0);
   ResoRowFit12->SetParameter(1,-0.006742025);
   ResoRowFit12->SetParError(1,0.003349739);
   ResoRowFit12->SetParLimits(1,0,0);
   ResoRowFit12->SetParameter(2,0.1086133);
   ResoRowFit12->SetParError(2,0.002839226);
   ResoRowFit12->SetParLimits(2,0,1.373592);
   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 = 1151   ");
   text = ptstats->AddText("Mean  = -0.006595");
   text = ptstats->AddText("RMS   = 0.1372");
   text = ptstats->AddText("#chi^{2} / ndf = 69.96 / 50");
   text = ptstats->AddText("Constant =    79 #pm 3.2 ");
   text = ptstats->AddText("Mean     = -0.006742 #pm 0.003350 ");
   text = ptstats->AddText("Sigma    = 0.1086 #pm 0.0028 ");
   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.075,1.25,108.675);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow13 = new TH1F("ResoRow13","",100,-1,1);
   ResoRow13->SetBinContent(0,4);
   ResoRow13->SetBinContent(4,1);
   ResoRow13->SetBinContent(16,1);
   ResoRow13->SetBinContent(17,1);
   ResoRow13->SetBinContent(21,1);
   ResoRow13->SetBinContent(22,1);
   ResoRow13->SetBinContent(24,1);
   ResoRow13->SetBinContent(27,1);
   ResoRow13->SetBinContent(28,1);
   ResoRow13->SetBinContent(29,2);
   ResoRow13->SetBinContent(31,2);
   ResoRow13->SetBinContent(32,2);
   ResoRow13->SetBinContent(33,3);
   ResoRow13->SetBinContent(34,3);
   ResoRow13->SetBinContent(35,1);
   ResoRow13->SetBinContent(36,4);
   ResoRow13->SetBinContent(37,8);
   ResoRow13->SetBinContent(38,7);
   ResoRow13->SetBinContent(39,12);
   ResoRow13->SetBinContent(40,20);
   ResoRow13->SetBinContent(41,18);
   ResoRow13->SetBinContent(42,18);
   ResoRow13->SetBinContent(43,38);
   ResoRow13->SetBinContent(44,44);
   ResoRow13->SetBinContent(45,51);
   ResoRow13->SetBinContent(46,51);
   ResoRow13->SetBinContent(47,65);
   ResoRow13->SetBinContent(48,64);
   ResoRow13->SetBinContent(49,79);
   ResoRow13->SetBinContent(50,76);
   ResoRow13->SetBinContent(51,89);
   ResoRow13->SetBinContent(52,92);
   ResoRow13->SetBinContent(53,87);
   ResoRow13->SetBinContent(54,65);
   ResoRow13->SetBinContent(55,56);
   ResoRow13->SetBinContent(56,37);
   ResoRow13->SetBinContent(57,37);
   ResoRow13->SetBinContent(58,31);
   ResoRow13->SetBinContent(59,15);
   ResoRow13->SetBinContent(60,10);
   ResoRow13->SetBinContent(61,10);
   ResoRow13->SetBinContent(62,6);
   ResoRow13->SetBinContent(63,4);
   ResoRow13->SetBinContent(64,3);
   ResoRow13->SetBinContent(65,4);
   ResoRow13->SetBinContent(66,1);
   ResoRow13->SetBinContent(67,2);
   ResoRow13->SetBinContent(68,2);
   ResoRow13->SetBinContent(69,2);
   ResoRow13->SetBinContent(70,2);
   ResoRow13->SetBinContent(71,1);
   ResoRow13->SetBinContent(73,2);
   ResoRow13->SetBinContent(75,1);
   ResoRow13->SetBinContent(76,1);
   ResoRow13->SetBinContent(77,1);
   ResoRow13->SetBinContent(78,3);
   ResoRow13->SetBinContent(79,1);
   ResoRow13->SetBinContent(98,1);
   ResoRow13->SetBinContent(101,5);
   ResoRow13->SetEntries(1151);
   
   TF1 *ResoRowFit13 = new TF1("ResoRowFit13","gaus",-1,1);
   ResoRowFit13->SetFillColor(19);
   ResoRowFit13->SetFillStyle(0);
   ResoRowFit13->SetLineWidth(3);
   ResoRowFit13->SetChisquare(61.86733);
   ResoRowFit13->SetNDF(54);
   ResoRowFit13->SetParameter(0,80.05457);
   ResoRowFit13->SetParError(0,3.180854);
   ResoRowFit13->SetParLimits(0,0,0);
   ResoRowFit13->SetParameter(1,-0.0083157);
   ResoRowFit13->SetParError(1,0.003328675);
   ResoRowFit13->SetParLimits(1,0,0);
   ResoRowFit13->SetParameter(2,0.1076648);
   ResoRowFit13->SetParError(2,0.002754187);
   ResoRowFit13->SetParLimits(2,0,1.384594);
   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 = 1151   ");
   text = ptstats->AddText("Mean  = -0.008085");
   text = ptstats->AddText("RMS   = 0.1384");
   text = ptstats->AddText("#chi^{2} / ndf = 61.87 / 54");
   text = ptstats->AddText("Constant = 80.05 #pm 3.18 ");
   text = ptstats->AddText("Mean     = -0.008316 #pm 0.003329 ");
   text = ptstats->AddText("Sigma    = 0.1077 #pm 0.0028 ");
   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,-15.4875,1.25,139.3875);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow14 = new TH1F("ResoRow14","",100,-1,1);
   ResoRow14->SetBinContent(0,2);
   ResoRow14->SetBinContent(2,1);
   ResoRow14->SetBinContent(11,1);
   ResoRow14->SetBinContent(17,1);
   ResoRow14->SetBinContent(20,1);
   ResoRow14->SetBinContent(21,3);
   ResoRow14->SetBinContent(25,1);
   ResoRow14->SetBinContent(26,3);
   ResoRow14->SetBinContent(28,1);
   ResoRow14->SetBinContent(32,1);
   ResoRow14->SetBinContent(34,1);
   ResoRow14->SetBinContent(35,1);
   ResoRow14->SetBinContent(36,7);
   ResoRow14->SetBinContent(37,3);
   ResoRow14->SetBinContent(38,7);
   ResoRow14->SetBinContent(40,15);
   ResoRow14->SetBinContent(41,12);
   ResoRow14->SetBinContent(42,13);
   ResoRow14->SetBinContent(43,32);
   ResoRow14->SetBinContent(44,28);
   ResoRow14->SetBinContent(45,41);
   ResoRow14->SetBinContent(46,52);
   ResoRow14->SetBinContent(47,64);
   ResoRow14->SetBinContent(48,80);
   ResoRow14->SetBinContent(49,74);
   ResoRow14->SetBinContent(50,107);
   ResoRow14->SetBinContent(51,118);
   ResoRow14->SetBinContent(52,91);
   ResoRow14->SetBinContent(53,92);
   ResoRow14->SetBinContent(54,63);
   ResoRow14->SetBinContent(55,71);
   ResoRow14->SetBinContent(56,49);
   ResoRow14->SetBinContent(57,31);
   ResoRow14->SetBinContent(58,20);
   ResoRow14->SetBinContent(59,20);
   ResoRow14->SetBinContent(60,10);
   ResoRow14->SetBinContent(61,9);
   ResoRow14->SetBinContent(62,2);
   ResoRow14->SetBinContent(63,2);
   ResoRow14->SetBinContent(64,1);
   ResoRow14->SetBinContent(65,2);
   ResoRow14->SetBinContent(66,2);
   ResoRow14->SetBinContent(67,2);
   ResoRow14->SetBinContent(71,2);
   ResoRow14->SetBinContent(72,1);
   ResoRow14->SetBinContent(76,1);
   ResoRow14->SetBinContent(78,2);
   ResoRow14->SetBinContent(79,1);
   ResoRow14->SetBinContent(80,1);
   ResoRow14->SetBinContent(81,1);
   ResoRow14->SetBinContent(92,1);
   ResoRow14->SetBinContent(99,1);
   ResoRow14->SetBinContent(101,3);
   ResoRow14->SetEntries(1151);
   
   TF1 *ResoRowFit14 = new TF1("ResoRowFit14","gaus",-1,1);
   ResoRowFit14->SetFillColor(19);
   ResoRowFit14->SetFillStyle(0);
   ResoRowFit14->SetLineWidth(3);
   ResoRowFit14->SetChisquare(69.1443);
   ResoRowFit14->SetNDF(48);
   ResoRowFit14->SetParameter(0,94.72621);
   ResoRowFit14->SetParError(0,3.793508);
   ResoRowFit14->SetParLimits(0,0,0);
   ResoRowFit14->SetParameter(1,0.001344672);
   ResoRowFit14->SetParError(1,0.002927074);
   ResoRowFit14->SetParLimits(1,0,0);
   ResoRowFit14->SetParameter(2,0.0910343);
   ResoRowFit14->SetParError(2,0.002423502);
   ResoRowFit14->SetParLimits(2,0,1.301871);
   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 = 1151   ");
   text = ptstats->AddText("Mean  = -0.001129");
   text = ptstats->AddText("RMS   = 0.1301");
   text = ptstats->AddText("#chi^{2} / ndf = 69.14 / 48");
   text = ptstats->AddText("Constant = 94.73 #pm 3.79 ");
   text = ptstats->AddText("Mean     = 0.001345 #pm 0.002927 ");
   text = ptstats->AddText("Sigma    = 0.09103 #pm 0.00242 ");
   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,-14.4375,1.25,129.9375);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow15 = new TH1F("ResoRow15","",100,-1,1);
   ResoRow15->SetBinContent(0,3);
   ResoRow15->SetBinContent(1,1);
   ResoRow15->SetBinContent(4,1);
   ResoRow15->SetBinContent(9,1);
   ResoRow15->SetBinContent(15,1);
   ResoRow15->SetBinContent(17,1);
   ResoRow15->SetBinContent(20,1);
   ResoRow15->SetBinContent(25,1);
   ResoRow15->SetBinContent(26,1);
   ResoRow15->SetBinContent(30,1);
   ResoRow15->SetBinContent(31,1);
   ResoRow15->SetBinContent(32,2);
   ResoRow15->SetBinContent(33,2);
   ResoRow15->SetBinContent(34,1);
   ResoRow15->SetBinContent(35,4);
   ResoRow15->SetBinContent(36,3);
   ResoRow15->SetBinContent(37,3);
   ResoRow15->SetBinContent(38,2);
   ResoRow15->SetBinContent(39,4);
   ResoRow15->SetBinContent(40,7);
   ResoRow15->SetBinContent(41,13);
   ResoRow15->SetBinContent(42,22);
   ResoRow15->SetBinContent(43,24);
   ResoRow15->SetBinContent(44,37);
   ResoRow15->SetBinContent(45,48);
   ResoRow15->SetBinContent(46,51);
   ResoRow15->SetBinContent(47,73);
   ResoRow15->SetBinContent(48,79);
   ResoRow15->SetBinContent(49,110);
   ResoRow15->SetBinContent(50,89);
   ResoRow15->SetBinContent(51,104);
   ResoRow15->SetBinContent(52,98);
   ResoRow15->SetBinContent(53,69);
   ResoRow15->SetBinContent(54,66);
   ResoRow15->SetBinContent(55,59);
   ResoRow15->SetBinContent(56,53);
   ResoRow15->SetBinContent(57,30);
   ResoRow15->SetBinContent(58,24);
   ResoRow15->SetBinContent(59,18);
   ResoRow15->SetBinContent(60,13);
   ResoRow15->SetBinContent(61,8);
   ResoRow15->SetBinContent(62,6);
   ResoRow15->SetBinContent(63,4);
   ResoRow15->SetBinContent(64,1);
   ResoRow15->SetBinContent(65,2);
   ResoRow15->SetBinContent(70,1);
   ResoRow15->SetBinContent(72,1);
   ResoRow15->SetBinContent(74,1);
   ResoRow15->SetBinContent(77,2);
   ResoRow15->SetBinContent(79,1);
   ResoRow15->SetBinContent(80,1);
   ResoRow15->SetBinContent(87,1);
   ResoRow15->SetBinContent(88,1);
   ResoRow15->SetEntries(1151);
   
   TF1 *ResoRowFit15 = new TF1("ResoRowFit15","gaus",-1,1);
   ResoRowFit15->SetFillColor(19);
   ResoRowFit15->SetFillStyle(0);
   ResoRowFit15->SetLineWidth(3);
   ResoRowFit15->SetChisquare(44.08803);
   ResoRowFit15->SetNDF(49);
   ResoRowFit15->SetParameter(0,93.68352);
   ResoRowFit15->SetParError(0,3.592319);
   ResoRowFit15->SetParLimits(0,0,0);
   ResoRowFit15->SetParameter(1,-0.001006914);
   ResoRowFit15->SetParError(1,0.002843183);
   ResoRowFit15->SetParLimits(1,0,0);
   ResoRowFit15->SetParameter(2,0.09408019);
   ResoRowFit15->SetParError(2,0.002251284);
   ResoRowFit15->SetParLimits(2,0,1.269657);
   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 = 1151   ");
   text = ptstats->AddText("Mean  = -0.005059");
   text = ptstats->AddText("RMS   = 0.1266");
   text = ptstats->AddText("#chi^{2} / ndf = 44.09 / 49");
   text = ptstats->AddText("Constant = 93.68 #pm 3.59 ");
   text = ptstats->AddText("Mean     = -0.001007 #pm 0.002843 ");
   text = ptstats->AddText("Sigma    = 0.09408 #pm 0.00225 ");
   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.46875,1.25,112.2188);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow16 = new TH1F("ResoRow16","",100,-1,1);
   ResoRow16->SetBinContent(0,5);
   ResoRow16->SetBinContent(10,1);
   ResoRow16->SetBinContent(14,1);
   ResoRow16->SetBinContent(15,1);
   ResoRow16->SetBinContent(17,1);
   ResoRow16->SetBinContent(19,2);
   ResoRow16->SetBinContent(27,2);
   ResoRow16->SetBinContent(31,2);
   ResoRow16->SetBinContent(32,2);
   ResoRow16->SetBinContent(33,2);
   ResoRow16->SetBinContent(34,2);
   ResoRow16->SetBinContent(35,4);
   ResoRow16->SetBinContent(36,4);
   ResoRow16->SetBinContent(37,4);
   ResoRow16->SetBinContent(38,5);
   ResoRow16->SetBinContent(39,8);
   ResoRow16->SetBinContent(40,11);
   ResoRow16->SetBinContent(41,15);
   ResoRow16->SetBinContent(42,15);
   ResoRow16->SetBinContent(43,22);
   ResoRow16->SetBinContent(44,35);
   ResoRow16->SetBinContent(45,44);
   ResoRow16->SetBinContent(46,51);
   ResoRow16->SetBinContent(47,80);
   ResoRow16->SetBinContent(48,74);
   ResoRow16->SetBinContent(49,87);
   ResoRow16->SetBinContent(50,95);
   ResoRow16->SetBinContent(51,88);
   ResoRow16->SetBinContent(52,94);
   ResoRow16->SetBinContent(53,89);
   ResoRow16->SetBinContent(54,74);
   ResoRow16->SetBinContent(55,63);
   ResoRow16->SetBinContent(56,49);
   ResoRow16->SetBinContent(57,42);
   ResoRow16->SetBinContent(58,16);
   ResoRow16->SetBinContent(59,21);
   ResoRow16->SetBinContent(60,10);
   ResoRow16->SetBinContent(61,6);
   ResoRow16->SetBinContent(62,4);
   ResoRow16->SetBinContent(63,4);
   ResoRow16->SetBinContent(64,3);
   ResoRow16->SetBinContent(65,1);
   ResoRow16->SetBinContent(66,2);
   ResoRow16->SetBinContent(68,1);
   ResoRow16->SetBinContent(74,1);
   ResoRow16->SetBinContent(75,1);
   ResoRow16->SetBinContent(77,1);
   ResoRow16->SetBinContent(84,1);
   ResoRow16->SetBinContent(85,1);
   ResoRow16->SetBinContent(90,1);
   ResoRow16->SetBinContent(98,1);
   ResoRow16->SetBinContent(101,2);
   ResoRow16->SetEntries(1151);
   
   TF1 *ResoRowFit16 = new TF1("ResoRowFit16","gaus",-1,1);
   ResoRowFit16->SetFillColor(19);
   ResoRowFit16->SetFillStyle(0);
   ResoRowFit16->SetLineWidth(3);
   ResoRowFit16->SetChisquare(51.97893);
   ResoRowFit16->SetNDF(47);
   ResoRowFit16->SetParameter(0,91.87035);
   ResoRowFit16->SetParError(0,3.680188);
   ResoRowFit16->SetParLimits(0,0,0);
   ResoRowFit16->SetParameter(1,-0.0006614352);
   ResoRowFit16->SetParError(1,0.002934488);
   ResoRowFit16->SetParLimits(1,0,0);
   ResoRowFit16->SetParameter(2,0.094867);
   ResoRowFit16->SetParError(2,0.002497456);
   ResoRowFit16->SetParLimits(2,0,1.277131);
   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 = 1151   ");
   text = ptstats->AddText("Mean  = -0.004103");
   text = ptstats->AddText("RMS   = 0.1275");
   text = ptstats->AddText("#chi^{2} / ndf = 51.98 / 47");
   text = ptstats->AddText("Constant = 91.87 #pm 3.68 ");
   text = ptstats->AddText("Mean     = -0.0006614 #pm 0.0029345 ");
   text = ptstats->AddText("Sigma    = 0.09487 #pm 0.00250 ");
   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,9);
   ResoRow17->SetBinContent(18,2);
   ResoRow17->SetBinContent(19,1);
   ResoRow17->SetBinContent(26,2);
   ResoRow17->SetBinContent(27,1);
   ResoRow17->SetBinContent(28,4);
   ResoRow17->SetBinContent(31,1);
   ResoRow17->SetBinContent(34,2);
   ResoRow17->SetBinContent(35,2);
   ResoRow17->SetBinContent(36,3);
   ResoRow17->SetBinContent(37,5);
   ResoRow17->SetBinContent(38,2);
   ResoRow17->SetBinContent(39,6);
   ResoRow17->SetBinContent(40,13);
   ResoRow17->SetBinContent(41,10);
   ResoRow17->SetBinContent(42,26);
   ResoRow17->SetBinContent(43,19);
   ResoRow17->SetBinContent(44,37);
   ResoRow17->SetBinContent(45,45);
   ResoRow17->SetBinContent(46,53);
   ResoRow17->SetBinContent(47,77);
   ResoRow17->SetBinContent(48,89);
   ResoRow17->SetBinContent(49,97);
   ResoRow17->SetBinContent(50,85);
   ResoRow17->SetBinContent(51,98);
   ResoRow17->SetBinContent(52,99);
   ResoRow17->SetBinContent(53,85);
   ResoRow17->SetBinContent(54,66);
   ResoRow17->SetBinContent(55,52);
   ResoRow17->SetBinContent(56,42);
   ResoRow17->SetBinContent(57,38);
   ResoRow17->SetBinContent(58,18);
   ResoRow17->SetBinContent(59,5);
   ResoRow17->SetBinContent(60,11);
   ResoRow17->SetBinContent(61,15);
   ResoRow17->SetBinContent(62,9);
   ResoRow17->SetBinContent(63,2);
   ResoRow17->SetBinContent(64,3);
   ResoRow17->SetBinContent(65,2);
   ResoRow17->SetBinContent(66,4);
   ResoRow17->SetBinContent(68,1);
   ResoRow17->SetBinContent(71,1);
   ResoRow17->SetBinContent(75,1);
   ResoRow17->SetBinContent(77,2);
   ResoRow17->SetBinContent(78,1);
   ResoRow17->SetBinContent(79,1);
   ResoRow17->SetBinContent(84,1);
   ResoRow17->SetBinContent(101,3);
   ResoRow17->SetEntries(1151);
   
   TF1 *ResoRowFit17 = new TF1("ResoRowFit17","gaus",-1,1);
   ResoRowFit17->SetFillColor(19);
   ResoRowFit17->SetFillStyle(0);
   ResoRowFit17->SetLineWidth(3);
   ResoRowFit17->SetChisquare(76.01569);
   ResoRowFit17->SetNDF(43);
   ResoRowFit17->SetParameter(0,95.11105);
   ResoRowFit17->SetParError(0,3.866063);
   ResoRowFit17->SetParLimits(0,0,0);
   ResoRowFit17->SetParameter(1,-0.00701731);
   ResoRowFit17->SetParError(1,0.002758143);
   ResoRowFit17->SetParLimits(1,0,0);
   ResoRowFit17->SetParameter(2,0.0891887);
   ResoRowFit17->SetParError(2,0.002384027);
   ResoRowFit17->SetParLimits(2,0,1.189213);
   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 = 1151   ");
   text = ptstats->AddText("Mean  = -0.004915");
   text = ptstats->AddText("RMS   = 0.1189");
   text = ptstats->AddText("#chi^{2} / ndf = 76.02 / 43");
   text = ptstats->AddText("Constant = 95.11 #pm 3.87 ");
   text = ptstats->AddText("Mean     = -0.007017 #pm 0.002758 ");
   text = ptstats->AddText("Sigma    = 0.08919 #pm 0.00238 ");
   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);
}
