{
//=========Macro generated from canvas: c2/
//=========  (Tue Jun  8 07:10:12 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,-8.1375,1.25,73.2375);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow13 = new TH1F("ResoRow13","",100,-1,1);
   ResoRow13->SetBinContent(0,30);
   ResoRow13->SetBinContent(1,1);
   ResoRow13->SetBinContent(2,1);
   ResoRow13->SetBinContent(3,1);
   ResoRow13->SetBinContent(4,1);
   ResoRow13->SetBinContent(6,3);
   ResoRow13->SetBinContent(8,3);
   ResoRow13->SetBinContent(9,1);
   ResoRow13->SetBinContent(10,1);
   ResoRow13->SetBinContent(11,2);
   ResoRow13->SetBinContent(12,1);
   ResoRow13->SetBinContent(13,4);
   ResoRow13->SetBinContent(14,7);
   ResoRow13->SetBinContent(15,6);
   ResoRow13->SetBinContent(16,3);
   ResoRow13->SetBinContent(17,3);
   ResoRow13->SetBinContent(18,7);
   ResoRow13->SetBinContent(19,5);
   ResoRow13->SetBinContent(20,4);
   ResoRow13->SetBinContent(21,8);
   ResoRow13->SetBinContent(22,10);
   ResoRow13->SetBinContent(23,7);
   ResoRow13->SetBinContent(24,7);
   ResoRow13->SetBinContent(25,7);
   ResoRow13->SetBinContent(26,8);
   ResoRow13->SetBinContent(27,11);
   ResoRow13->SetBinContent(28,11);
   ResoRow13->SetBinContent(29,12);
   ResoRow13->SetBinContent(30,17);
   ResoRow13->SetBinContent(31,14);
   ResoRow13->SetBinContent(32,19);
   ResoRow13->SetBinContent(33,23);
   ResoRow13->SetBinContent(34,14);
   ResoRow13->SetBinContent(35,23);
   ResoRow13->SetBinContent(36,25);
   ResoRow13->SetBinContent(37,23);
   ResoRow13->SetBinContent(38,28);
   ResoRow13->SetBinContent(39,23);
   ResoRow13->SetBinContent(40,26);
   ResoRow13->SetBinContent(41,34);
   ResoRow13->SetBinContent(42,31);
   ResoRow13->SetBinContent(43,36);
   ResoRow13->SetBinContent(44,33);
   ResoRow13->SetBinContent(45,54);
   ResoRow13->SetBinContent(46,52);
   ResoRow13->SetBinContent(47,62);
   ResoRow13->SetBinContent(48,45);
   ResoRow13->SetBinContent(49,29);
   ResoRow13->SetBinContent(50,44);
   ResoRow13->SetBinContent(51,49);
   ResoRow13->SetBinContent(52,35);
   ResoRow13->SetBinContent(53,36);
   ResoRow13->SetBinContent(54,30);
   ResoRow13->SetBinContent(55,30);
   ResoRow13->SetBinContent(56,38);
   ResoRow13->SetBinContent(57,32);
   ResoRow13->SetBinContent(58,29);
   ResoRow13->SetBinContent(59,31);
   ResoRow13->SetBinContent(60,33);
   ResoRow13->SetBinContent(61,27);
   ResoRow13->SetBinContent(62,24);
   ResoRow13->SetBinContent(63,17);
   ResoRow13->SetBinContent(64,17);
   ResoRow13->SetBinContent(65,23);
   ResoRow13->SetBinContent(66,20);
   ResoRow13->SetBinContent(67,22);
   ResoRow13->SetBinContent(68,16);
   ResoRow13->SetBinContent(69,24);
   ResoRow13->SetBinContent(70,13);
   ResoRow13->SetBinContent(71,15);
   ResoRow13->SetBinContent(72,12);
   ResoRow13->SetBinContent(73,12);
   ResoRow13->SetBinContent(74,12);
   ResoRow13->SetBinContent(75,17);
   ResoRow13->SetBinContent(76,10);
   ResoRow13->SetBinContent(77,8);
   ResoRow13->SetBinContent(78,10);
   ResoRow13->SetBinContent(79,8);
   ResoRow13->SetBinContent(80,1);
   ResoRow13->SetBinContent(81,6);
   ResoRow13->SetBinContent(82,10);
   ResoRow13->SetBinContent(83,3);
   ResoRow13->SetBinContent(84,4);
   ResoRow13->SetBinContent(85,3);
   ResoRow13->SetBinContent(86,3);
   ResoRow13->SetBinContent(87,2);
   ResoRow13->SetBinContent(88,5);
   ResoRow13->SetBinContent(89,3);
   ResoRow13->SetBinContent(90,2);
   ResoRow13->SetBinContent(91,1);
   ResoRow13->SetBinContent(93,2);
   ResoRow13->SetBinContent(94,3);
   ResoRow13->SetBinContent(95,3);
   ResoRow13->SetBinContent(96,3);
   ResoRow13->SetBinContent(97,1);
   ResoRow13->SetBinContent(98,2);
   ResoRow13->SetBinContent(99,2);
   ResoRow13->SetBinContent(100,2);
   ResoRow13->SetBinContent(101,33);
   ResoRow13->SetEntries(1564);
   
   TF1 *ResoRowFit13 = new TF1("ResoRowFit13","gaus",-1,1);
   ResoRowFit13->SetFillColor(19);
   ResoRowFit13->SetFillStyle(0);
   ResoRowFit13->SetLineWidth(3);
   ResoRowFit13->SetChisquare(114.673);
   ResoRowFit13->SetNDF(94);
   ResoRowFit13->SetParameter(0,36.58074);
   ResoRowFit13->SetParError(0,1.305664);
   ResoRowFit13->SetParLimits(0,0,0);
   ResoRowFit13->SetParameter(1,-0.01398945);
   ResoRowFit13->SetParError(1,0.008228489);
   ResoRowFit13->SetParLimits(1,0,0);
   ResoRowFit13->SetParameter(2,0.303091);
   ResoRowFit13->SetParError(2,0.007276438);
   ResoRowFit13->SetParLimits(2,0,3.259545);
   ResoRow13->GetListOfFunctions()->Add(ResoRowFit13);
   
   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("ResoRow13");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1564   ");
   text = ptstats->AddText("Mean  = -0.002105");
   text = ptstats->AddText("RMS   = 0.3259");
   text = ptstats->AddText("#chi^{2} / ndf = 114.7 / 94");
   text = ptstats->AddText("Constant = 36.58 #pm 1.31 ");
   text = ptstats->AddText("Mean     = -0.01399 #pm 0.00823 ");
   text = ptstats->AddText("Sigma    = 0.3031 #pm 0.0073 ");
   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_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.16875,1.25,55.51875);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow14 = new TH1F("ResoRow14","",100,-1,1);
   ResoRow14->SetBinContent(0,30);
   ResoRow14->SetBinContent(1,2);
   ResoRow14->SetBinContent(2,2);
   ResoRow14->SetBinContent(3,1);
   ResoRow14->SetBinContent(4,1);
   ResoRow14->SetBinContent(5,3);
   ResoRow14->SetBinContent(6,4);
   ResoRow14->SetBinContent(8,4);
   ResoRow14->SetBinContent(9,2);
   ResoRow14->SetBinContent(10,2);
   ResoRow14->SetBinContent(11,2);
   ResoRow14->SetBinContent(12,1);
   ResoRow14->SetBinContent(13,4);
   ResoRow14->SetBinContent(14,4);
   ResoRow14->SetBinContent(15,4);
   ResoRow14->SetBinContent(16,5);
   ResoRow14->SetBinContent(17,5);
   ResoRow14->SetBinContent(18,5);
   ResoRow14->SetBinContent(19,4);
   ResoRow14->SetBinContent(20,7);
   ResoRow14->SetBinContent(21,6);
   ResoRow14->SetBinContent(22,6);
   ResoRow14->SetBinContent(23,9);
   ResoRow14->SetBinContent(24,7);
   ResoRow14->SetBinContent(25,11);
   ResoRow14->SetBinContent(26,8);
   ResoRow14->SetBinContent(27,9);
   ResoRow14->SetBinContent(28,13);
   ResoRow14->SetBinContent(29,18);
   ResoRow14->SetBinContent(30,15);
   ResoRow14->SetBinContent(31,11);
   ResoRow14->SetBinContent(32,16);
   ResoRow14->SetBinContent(33,15);
   ResoRow14->SetBinContent(34,20);
   ResoRow14->SetBinContent(35,25);
   ResoRow14->SetBinContent(36,22);
   ResoRow14->SetBinContent(37,28);
   ResoRow14->SetBinContent(38,32);
   ResoRow14->SetBinContent(39,27);
   ResoRow14->SetBinContent(40,32);
   ResoRow14->SetBinContent(41,34);
   ResoRow14->SetBinContent(42,33);
   ResoRow14->SetBinContent(43,30);
   ResoRow14->SetBinContent(44,41);
   ResoRow14->SetBinContent(45,34);
   ResoRow14->SetBinContent(46,28);
   ResoRow14->SetBinContent(47,47);
   ResoRow14->SetBinContent(48,46);
   ResoRow14->SetBinContent(49,29);
   ResoRow14->SetBinContent(50,40);
   ResoRow14->SetBinContent(51,39);
   ResoRow14->SetBinContent(52,42);
   ResoRow14->SetBinContent(53,43);
   ResoRow14->SetBinContent(54,37);
   ResoRow14->SetBinContent(55,46);
   ResoRow14->SetBinContent(56,29);
   ResoRow14->SetBinContent(57,35);
   ResoRow14->SetBinContent(58,37);
   ResoRow14->SetBinContent(59,41);
   ResoRow14->SetBinContent(60,32);
   ResoRow14->SetBinContent(61,23);
   ResoRow14->SetBinContent(62,26);
   ResoRow14->SetBinContent(63,24);
   ResoRow14->SetBinContent(64,22);
   ResoRow14->SetBinContent(65,12);
   ResoRow14->SetBinContent(66,21);
   ResoRow14->SetBinContent(67,17);
   ResoRow14->SetBinContent(68,20);
   ResoRow14->SetBinContent(69,24);
   ResoRow14->SetBinContent(70,16);
   ResoRow14->SetBinContent(71,14);
   ResoRow14->SetBinContent(72,18);
   ResoRow14->SetBinContent(73,8);
   ResoRow14->SetBinContent(74,11);
   ResoRow14->SetBinContent(75,9);
   ResoRow14->SetBinContent(76,12);
   ResoRow14->SetBinContent(77,9);
   ResoRow14->SetBinContent(78,5);
   ResoRow14->SetBinContent(79,4);
   ResoRow14->SetBinContent(80,5);
   ResoRow14->SetBinContent(81,6);
   ResoRow14->SetBinContent(82,1);
   ResoRow14->SetBinContent(83,6);
   ResoRow14->SetBinContent(84,2);
   ResoRow14->SetBinContent(85,4);
   ResoRow14->SetBinContent(86,3);
   ResoRow14->SetBinContent(87,2);
   ResoRow14->SetBinContent(88,3);
   ResoRow14->SetBinContent(89,1);
   ResoRow14->SetBinContent(90,3);
   ResoRow14->SetBinContent(91,4);
   ResoRow14->SetBinContent(92,3);
   ResoRow14->SetBinContent(93,2);
   ResoRow14->SetBinContent(94,2);
   ResoRow14->SetBinContent(95,3);
   ResoRow14->SetBinContent(96,1);
   ResoRow14->SetBinContent(97,3);
   ResoRow14->SetBinContent(98,1);
   ResoRow14->SetBinContent(99,1);
   ResoRow14->SetBinContent(100,3);
   ResoRow14->SetBinContent(101,45);
   ResoRow14->SetEntries(1564);
   
   TF1 *ResoRowFit14 = new TF1("ResoRowFit14","gaus",-1,1);
   ResoRowFit14->SetFillColor(19);
   ResoRowFit14->SetFillStyle(0);
   ResoRowFit14->SetLineWidth(3);
   ResoRowFit14->SetChisquare(94.53148);
   ResoRowFit14->SetNDF(96);
   ResoRowFit14->SetParameter(0,36.66364);
   ResoRowFit14->SetParError(0,1.307918);
   ResoRowFit14->SetParLimits(0,0,0);
   ResoRowFit14->SetParameter(1,-0.01593988);
   ResoRowFit14->SetParError(1,0.008234273);
   ResoRowFit14->SetParLimits(1,0,0);
   ResoRowFit14->SetParameter(2,0.3039306);
   ResoRowFit14->SetParError(2,0.007273805);
   ResoRowFit14->SetParLimits(2,0,3.297109);
   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 = 1564   ");
   text = ptstats->AddText("Mean  = -0.007411");
   text = ptstats->AddText("RMS   = 0.3296");
   text = ptstats->AddText("#chi^{2} / ndf = 94.53 / 96");
   text = ptstats->AddText("Constant = 36.66 #pm 1.31 ");
   text = ptstats->AddText("Mean     = -0.01594 #pm 0.00823 ");
   text = ptstats->AddText("Sigma    = 0.3039 #pm 0.0073 ");
   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_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.16875,1.25,55.51875);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow15 = new TH1F("ResoRow15","",100,-1,1);
   ResoRow15->SetBinContent(0,36);
   ResoRow15->SetBinContent(1,1);
   ResoRow15->SetBinContent(3,2);
   ResoRow15->SetBinContent(4,3);
   ResoRow15->SetBinContent(5,4);
   ResoRow15->SetBinContent(6,4);
   ResoRow15->SetBinContent(7,4);
   ResoRow15->SetBinContent(8,4);
   ResoRow15->SetBinContent(10,1);
   ResoRow15->SetBinContent(11,3);
   ResoRow15->SetBinContent(12,3);
   ResoRow15->SetBinContent(13,4);
   ResoRow15->SetBinContent(14,2);
   ResoRow15->SetBinContent(15,4);
   ResoRow15->SetBinContent(16,6);
   ResoRow15->SetBinContent(17,3);
   ResoRow15->SetBinContent(18,3);
   ResoRow15->SetBinContent(19,6);
   ResoRow15->SetBinContent(20,7);
   ResoRow15->SetBinContent(21,3);
   ResoRow15->SetBinContent(22,9);
   ResoRow15->SetBinContent(23,7);
   ResoRow15->SetBinContent(24,8);
   ResoRow15->SetBinContent(25,6);
   ResoRow15->SetBinContent(26,9);
   ResoRow15->SetBinContent(27,7);
   ResoRow15->SetBinContent(28,15);
   ResoRow15->SetBinContent(29,10);
   ResoRow15->SetBinContent(30,12);
   ResoRow15->SetBinContent(31,16);
   ResoRow15->SetBinContent(32,21);
   ResoRow15->SetBinContent(33,14);
   ResoRow15->SetBinContent(34,23);
   ResoRow15->SetBinContent(35,33);
   ResoRow15->SetBinContent(36,31);
   ResoRow15->SetBinContent(37,27);
   ResoRow15->SetBinContent(38,30);
   ResoRow15->SetBinContent(39,22);
   ResoRow15->SetBinContent(40,34);
   ResoRow15->SetBinContent(41,35);
   ResoRow15->SetBinContent(42,34);
   ResoRow15->SetBinContent(43,32);
   ResoRow15->SetBinContent(44,38);
   ResoRow15->SetBinContent(45,38);
   ResoRow15->SetBinContent(46,31);
   ResoRow15->SetBinContent(47,36);
   ResoRow15->SetBinContent(48,30);
   ResoRow15->SetBinContent(49,42);
   ResoRow15->SetBinContent(50,47);
   ResoRow15->SetBinContent(51,35);
   ResoRow15->SetBinContent(52,46);
   ResoRow15->SetBinContent(53,32);
   ResoRow15->SetBinContent(54,42);
   ResoRow15->SetBinContent(55,33);
   ResoRow15->SetBinContent(56,36);
   ResoRow15->SetBinContent(57,38);
   ResoRow15->SetBinContent(58,30);
   ResoRow15->SetBinContent(59,25);
   ResoRow15->SetBinContent(60,24);
   ResoRow15->SetBinContent(61,28);
   ResoRow15->SetBinContent(62,30);
   ResoRow15->SetBinContent(63,31);
   ResoRow15->SetBinContent(64,18);
   ResoRow15->SetBinContent(65,21);
   ResoRow15->SetBinContent(66,14);
   ResoRow15->SetBinContent(67,25);
   ResoRow15->SetBinContent(68,23);
   ResoRow15->SetBinContent(69,22);
   ResoRow15->SetBinContent(70,12);
   ResoRow15->SetBinContent(71,15);
   ResoRow15->SetBinContent(72,8);
   ResoRow15->SetBinContent(73,12);
   ResoRow15->SetBinContent(74,14);
   ResoRow15->SetBinContent(75,11);
   ResoRow15->SetBinContent(76,6);
   ResoRow15->SetBinContent(77,13);
   ResoRow15->SetBinContent(78,10);
   ResoRow15->SetBinContent(79,9);
   ResoRow15->SetBinContent(80,7);
   ResoRow15->SetBinContent(81,5);
   ResoRow15->SetBinContent(82,2);
   ResoRow15->SetBinContent(83,6);
   ResoRow15->SetBinContent(84,3);
   ResoRow15->SetBinContent(85,3);
   ResoRow15->SetBinContent(86,8);
   ResoRow15->SetBinContent(87,6);
   ResoRow15->SetBinContent(88,4);
   ResoRow15->SetBinContent(89,3);
   ResoRow15->SetBinContent(90,2);
   ResoRow15->SetBinContent(91,2);
   ResoRow15->SetBinContent(92,2);
   ResoRow15->SetBinContent(93,2);
   ResoRow15->SetBinContent(94,1);
   ResoRow15->SetBinContent(95,4);
   ResoRow15->SetBinContent(96,4);
   ResoRow15->SetBinContent(97,2);
   ResoRow15->SetBinContent(98,1);
   ResoRow15->SetBinContent(100,1);
   ResoRow15->SetBinContent(101,33);
   ResoRow15->SetEntries(1564);
   
   TF1 *ResoRowFit15 = new TF1("ResoRowFit15","gaus",-1,1);
   ResoRowFit15->SetFillColor(19);
   ResoRowFit15->SetFillStyle(0);
   ResoRowFit15->SetLineWidth(3);
   ResoRowFit15->SetChisquare(101.2336);
   ResoRowFit15->SetNDF(94);
   ResoRowFit15->SetParameter(0,35.59777);
   ResoRowFit15->SetParError(0,1.288291);
   ResoRowFit15->SetParLimits(0,0,0);
   ResoRowFit15->SetParameter(1,-0.00261994);
   ResoRowFit15->SetParError(1,0.008522875);
   ResoRowFit15->SetParLimits(1,0,0);
   ResoRowFit15->SetParameter(2,0.3132137);
   ResoRowFit15->SetParError(2,0.007804547);
   ResoRowFit15->SetParLimits(2,0,3.367302);
   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 = 1564   ");
   text = ptstats->AddText("Mean  = -0.002589");
   text = ptstats->AddText("RMS   = 0.3363");
   text = ptstats->AddText("#chi^{2} / ndf = 101.2 / 94");
   text = ptstats->AddText("Constant =  35.6 #pm 1.3 ");
   text = ptstats->AddText("Mean     = -0.00262 #pm 0.00852 ");
   text = ptstats->AddText("Sigma    = 0.3132 #pm 0.0078 ");
   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_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.5625,1.25,59.0625);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow16 = new TH1F("ResoRow16","",100,-1,1);
   ResoRow16->SetBinContent(0,30);
   ResoRow16->SetBinContent(1,2);
   ResoRow16->SetBinContent(3,1);
   ResoRow16->SetBinContent(4,3);
   ResoRow16->SetBinContent(6,1);
   ResoRow16->SetBinContent(7,2);
   ResoRow16->SetBinContent(8,3);
   ResoRow16->SetBinContent(9,1);
   ResoRow16->SetBinContent(10,3);
   ResoRow16->SetBinContent(11,4);
   ResoRow16->SetBinContent(12,2);
   ResoRow16->SetBinContent(13,4);
   ResoRow16->SetBinContent(14,2);
   ResoRow16->SetBinContent(15,2);
   ResoRow16->SetBinContent(16,9);
   ResoRow16->SetBinContent(17,3);
   ResoRow16->SetBinContent(18,8);
   ResoRow16->SetBinContent(19,8);
   ResoRow16->SetBinContent(20,7);
   ResoRow16->SetBinContent(21,10);
   ResoRow16->SetBinContent(22,5);
   ResoRow16->SetBinContent(23,5);
   ResoRow16->SetBinContent(24,9);
   ResoRow16->SetBinContent(25,11);
   ResoRow16->SetBinContent(26,9);
   ResoRow16->SetBinContent(27,11);
   ResoRow16->SetBinContent(28,13);
   ResoRow16->SetBinContent(29,13);
   ResoRow16->SetBinContent(30,21);
   ResoRow16->SetBinContent(31,14);
   ResoRow16->SetBinContent(32,16);
   ResoRow16->SetBinContent(33,23);
   ResoRow16->SetBinContent(34,19);
   ResoRow16->SetBinContent(35,16);
   ResoRow16->SetBinContent(36,15);
   ResoRow16->SetBinContent(37,18);
   ResoRow16->SetBinContent(38,25);
   ResoRow16->SetBinContent(39,25);
   ResoRow16->SetBinContent(40,28);
   ResoRow16->SetBinContent(41,31);
   ResoRow16->SetBinContent(42,37);
   ResoRow16->SetBinContent(43,41);
   ResoRow16->SetBinContent(44,38);
   ResoRow16->SetBinContent(45,35);
   ResoRow16->SetBinContent(46,34);
   ResoRow16->SetBinContent(47,50);
   ResoRow16->SetBinContent(48,46);
   ResoRow16->SetBinContent(49,27);
   ResoRow16->SetBinContent(50,38);
   ResoRow16->SetBinContent(51,33);
   ResoRow16->SetBinContent(52,44);
   ResoRow16->SetBinContent(53,42);
   ResoRow16->SetBinContent(54,30);
   ResoRow16->SetBinContent(55,40);
   ResoRow16->SetBinContent(56,32);
   ResoRow16->SetBinContent(57,44);
   ResoRow16->SetBinContent(58,44);
   ResoRow16->SetBinContent(59,35);
   ResoRow16->SetBinContent(60,25);
   ResoRow16->SetBinContent(61,31);
   ResoRow16->SetBinContent(62,27);
   ResoRow16->SetBinContent(63,28);
   ResoRow16->SetBinContent(64,25);
   ResoRow16->SetBinContent(65,17);
   ResoRow16->SetBinContent(66,23);
   ResoRow16->SetBinContent(67,22);
   ResoRow16->SetBinContent(68,15);
   ResoRow16->SetBinContent(69,20);
   ResoRow16->SetBinContent(70,25);
   ResoRow16->SetBinContent(71,9);
   ResoRow16->SetBinContent(72,15);
   ResoRow16->SetBinContent(73,14);
   ResoRow16->SetBinContent(74,10);
   ResoRow16->SetBinContent(75,10);
   ResoRow16->SetBinContent(76,12);
   ResoRow16->SetBinContent(77,8);
   ResoRow16->SetBinContent(78,13);
   ResoRow16->SetBinContent(79,7);
   ResoRow16->SetBinContent(80,9);
   ResoRow16->SetBinContent(81,6);
   ResoRow16->SetBinContent(82,5);
   ResoRow16->SetBinContent(83,6);
   ResoRow16->SetBinContent(84,3);
   ResoRow16->SetBinContent(85,4);
   ResoRow16->SetBinContent(86,2);
   ResoRow16->SetBinContent(87,3);
   ResoRow16->SetBinContent(88,2);
   ResoRow16->SetBinContent(91,5);
   ResoRow16->SetBinContent(92,2);
   ResoRow16->SetBinContent(93,3);
   ResoRow16->SetBinContent(94,1);
   ResoRow16->SetBinContent(95,4);
   ResoRow16->SetBinContent(96,1);
   ResoRow16->SetBinContent(97,1);
   ResoRow16->SetBinContent(101,29);
   ResoRow16->SetEntries(1564);
   
   TF1 *ResoRowFit16 = new TF1("ResoRowFit16","gaus",-1,1);
   ResoRowFit16->SetFillColor(19);
   ResoRowFit16->SetFillStyle(0);
   ResoRowFit16->SetLineWidth(3);
   ResoRowFit16->SetChisquare(84.20944);
   ResoRowFit16->SetNDF(90);
   ResoRowFit16->SetParameter(0,35.6489);
   ResoRowFit16->SetParError(0,1.254669);
   ResoRowFit16->SetParLimits(0,0,0);
   ResoRowFit16->SetParameter(1,0.00514771);
   ResoRowFit16->SetParError(1,0.008678635);
   ResoRowFit16->SetParLimits(1,0,0);
   ResoRowFit16->SetParameter(2,0.3198808);
   ResoRowFit16->SetParError(2,0.007729768);
   ResoRowFit16->SetParLimits(2,0,3.269507);
   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 = 1564   ");
   text = ptstats->AddText("Mean  = -0.00104");
   text = ptstats->AddText("RMS   =  0.327");
   text = ptstats->AddText("#chi^{2} / ndf = 84.21 / 90");
   text = ptstats->AddText("Constant = 35.65 #pm 1.25 ");
   text = ptstats->AddText("Mean     = 0.005148 #pm 0.008679 ");
   text = ptstats->AddText("Sigma    = 0.3199 #pm 0.0077 ");
   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_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.0375,1.25,54.3375);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow17 = new TH1F("ResoRow17","",100,-1,1);
   ResoRow17->SetBinContent(0,34);
   ResoRow17->SetBinContent(1,2);
   ResoRow17->SetBinContent(2,1);
   ResoRow17->SetBinContent(3,2);
   ResoRow17->SetBinContent(6,1);
   ResoRow17->SetBinContent(8,3);
   ResoRow17->SetBinContent(9,3);
   ResoRow17->SetBinContent(10,2);
   ResoRow17->SetBinContent(11,1);
   ResoRow17->SetBinContent(12,1);
   ResoRow17->SetBinContent(13,2);
   ResoRow17->SetBinContent(14,3);
   ResoRow17->SetBinContent(15,3);
   ResoRow17->SetBinContent(16,8);
   ResoRow17->SetBinContent(17,4);
   ResoRow17->SetBinContent(18,5);
   ResoRow17->SetBinContent(19,7);
   ResoRow17->SetBinContent(20,5);
   ResoRow17->SetBinContent(21,4);
   ResoRow17->SetBinContent(22,4);
   ResoRow17->SetBinContent(23,10);
   ResoRow17->SetBinContent(24,13);
   ResoRow17->SetBinContent(25,9);
   ResoRow17->SetBinContent(26,16);
   ResoRow17->SetBinContent(27,9);
   ResoRow17->SetBinContent(28,10);
   ResoRow17->SetBinContent(29,8);
   ResoRow17->SetBinContent(30,23);
   ResoRow17->SetBinContent(31,20);
   ResoRow17->SetBinContent(32,22);
   ResoRow17->SetBinContent(33,21);
   ResoRow17->SetBinContent(34,23);
   ResoRow17->SetBinContent(35,21);
   ResoRow17->SetBinContent(36,17);
   ResoRow17->SetBinContent(37,23);
   ResoRow17->SetBinContent(38,26);
   ResoRow17->SetBinContent(39,33);
   ResoRow17->SetBinContent(40,34);
   ResoRow17->SetBinContent(41,30);
   ResoRow17->SetBinContent(42,26);
   ResoRow17->SetBinContent(43,33);
   ResoRow17->SetBinContent(44,41);
   ResoRow17->SetBinContent(45,40);
   ResoRow17->SetBinContent(46,44);
   ResoRow17->SetBinContent(47,41);
   ResoRow17->SetBinContent(48,37);
   ResoRow17->SetBinContent(49,41);
   ResoRow17->SetBinContent(50,41);
   ResoRow17->SetBinContent(51,46);
   ResoRow17->SetBinContent(52,32);
   ResoRow17->SetBinContent(53,36);
   ResoRow17->SetBinContent(54,36);
   ResoRow17->SetBinContent(55,35);
   ResoRow17->SetBinContent(56,36);
   ResoRow17->SetBinContent(57,29);
   ResoRow17->SetBinContent(58,35);
   ResoRow17->SetBinContent(59,36);
   ResoRow17->SetBinContent(60,25);
   ResoRow17->SetBinContent(61,33);
   ResoRow17->SetBinContent(62,28);
   ResoRow17->SetBinContent(63,27);
   ResoRow17->SetBinContent(64,23);
   ResoRow17->SetBinContent(65,23);
   ResoRow17->SetBinContent(66,19);
   ResoRow17->SetBinContent(67,15);
   ResoRow17->SetBinContent(68,20);
   ResoRow17->SetBinContent(69,14);
   ResoRow17->SetBinContent(70,13);
   ResoRow17->SetBinContent(71,15);
   ResoRow17->SetBinContent(72,19);
   ResoRow17->SetBinContent(73,18);
   ResoRow17->SetBinContent(74,10);
   ResoRow17->SetBinContent(75,4);
   ResoRow17->SetBinContent(76,7);
   ResoRow17->SetBinContent(77,8);
   ResoRow17->SetBinContent(78,9);
   ResoRow17->SetBinContent(79,8);
   ResoRow17->SetBinContent(80,6);
   ResoRow17->SetBinContent(81,3);
   ResoRow17->SetBinContent(82,5);
   ResoRow17->SetBinContent(83,7);
   ResoRow17->SetBinContent(84,1);
   ResoRow17->SetBinContent(85,3);
   ResoRow17->SetBinContent(86,2);
   ResoRow17->SetBinContent(87,1);
   ResoRow17->SetBinContent(88,5);
   ResoRow17->SetBinContent(89,5);
   ResoRow17->SetBinContent(90,2);
   ResoRow17->SetBinContent(91,2);
   ResoRow17->SetBinContent(92,2);
   ResoRow17->SetBinContent(93,2);
   ResoRow17->SetBinContent(94,2);
   ResoRow17->SetBinContent(95,2);
   ResoRow17->SetBinContent(96,3);
   ResoRow17->SetBinContent(97,2);
   ResoRow17->SetBinContent(99,1);
   ResoRow17->SetBinContent(100,2);
   ResoRow17->SetBinContent(101,40);
   ResoRow17->SetEntries(1564);
   
   TF1 *ResoRowFit17 = new TF1("ResoRowFit17","gaus",-1,1);
   ResoRowFit17->SetFillColor(19);
   ResoRowFit17->SetFillStyle(0);
   ResoRowFit17->SetLineWidth(3);
   ResoRowFit17->SetChisquare(85.35948);
   ResoRowFit17->SetNDF(93);
   ResoRowFit17->SetParameter(0,37.27219);
   ResoRowFit17->SetParError(0,1.299834);
   ResoRowFit17->SetParLimits(0,0,0);
   ResoRowFit17->SetParameter(1,-0.01371442);
   ResoRowFit17->SetParError(1,0.008125641);
   ResoRowFit17->SetParLimits(1,0,0);
   ResoRowFit17->SetParameter(2,0.301329);
   ResoRowFit17->SetParError(2,0.006905084);
   ResoRowFit17->SetParLimits(2,0,3.242997);
   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 = 1564   ");
   text = ptstats->AddText("Mean  = -0.007249");
   text = ptstats->AddText("RMS   = 0.3243");
   text = ptstats->AddText("#chi^{2} / ndf = 85.36 / 93");
   text = ptstats->AddText("Constant = 37.27 #pm 1.30 ");
   text = ptstats->AddText("Mean     = -0.01371 #pm 0.00813 ");
   text = ptstats->AddText("Sigma    = 0.3013 #pm 0.0069 ");
   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_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.43125,1.25,57.88125);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow18 = new TH1F("ResoRow18","",100,-1,1);
   ResoRow18->SetBinContent(0,31);
   ResoRow18->SetBinContent(1,2);
   ResoRow18->SetBinContent(3,1);
   ResoRow18->SetBinContent(4,1);
   ResoRow18->SetBinContent(5,1);
   ResoRow18->SetBinContent(6,2);
   ResoRow18->SetBinContent(7,1);
   ResoRow18->SetBinContent(8,4);
   ResoRow18->SetBinContent(9,2);
   ResoRow18->SetBinContent(11,4);
   ResoRow18->SetBinContent(12,2);
   ResoRow18->SetBinContent(13,3);
   ResoRow18->SetBinContent(14,1);
   ResoRow18->SetBinContent(15,5);
   ResoRow18->SetBinContent(16,9);
   ResoRow18->SetBinContent(17,1);
   ResoRow18->SetBinContent(18,7);
   ResoRow18->SetBinContent(19,2);
   ResoRow18->SetBinContent(20,6);
   ResoRow18->SetBinContent(21,6);
   ResoRow18->SetBinContent(22,9);
   ResoRow18->SetBinContent(23,9);
   ResoRow18->SetBinContent(24,17);
   ResoRow18->SetBinContent(25,10);
   ResoRow18->SetBinContent(26,10);
   ResoRow18->SetBinContent(27,9);
   ResoRow18->SetBinContent(28,15);
   ResoRow18->SetBinContent(29,13);
   ResoRow18->SetBinContent(30,13);
   ResoRow18->SetBinContent(31,10);
   ResoRow18->SetBinContent(32,20);
   ResoRow18->SetBinContent(33,19);
   ResoRow18->SetBinContent(34,18);
   ResoRow18->SetBinContent(35,26);
   ResoRow18->SetBinContent(36,23);
   ResoRow18->SetBinContent(37,32);
   ResoRow18->SetBinContent(38,23);
   ResoRow18->SetBinContent(39,29);
   ResoRow18->SetBinContent(40,32);
   ResoRow18->SetBinContent(41,32);
   ResoRow18->SetBinContent(42,38);
   ResoRow18->SetBinContent(43,26);
   ResoRow18->SetBinContent(44,23);
   ResoRow18->SetBinContent(45,46);
   ResoRow18->SetBinContent(46,36);
   ResoRow18->SetBinContent(47,33);
   ResoRow18->SetBinContent(48,42);
   ResoRow18->SetBinContent(49,42);
   ResoRow18->SetBinContent(50,49);
   ResoRow18->SetBinContent(51,46);
   ResoRow18->SetBinContent(52,39);
   ResoRow18->SetBinContent(53,41);
   ResoRow18->SetBinContent(54,34);
   ResoRow18->SetBinContent(55,32);
   ResoRow18->SetBinContent(56,35);
   ResoRow18->SetBinContent(57,29);
   ResoRow18->SetBinContent(58,38);
   ResoRow18->SetBinContent(59,21);
   ResoRow18->SetBinContent(60,42);
   ResoRow18->SetBinContent(61,30);
   ResoRow18->SetBinContent(62,34);
   ResoRow18->SetBinContent(63,27);
   ResoRow18->SetBinContent(64,22);
   ResoRow18->SetBinContent(65,18);
   ResoRow18->SetBinContent(66,16);
   ResoRow18->SetBinContent(67,23);
   ResoRow18->SetBinContent(68,19);
   ResoRow18->SetBinContent(69,29);
   ResoRow18->SetBinContent(70,10);
   ResoRow18->SetBinContent(71,11);
   ResoRow18->SetBinContent(72,14);
   ResoRow18->SetBinContent(73,14);
   ResoRow18->SetBinContent(74,11);
   ResoRow18->SetBinContent(75,11);
   ResoRow18->SetBinContent(76,9);
   ResoRow18->SetBinContent(77,6);
   ResoRow18->SetBinContent(78,5);
   ResoRow18->SetBinContent(79,5);
   ResoRow18->SetBinContent(80,4);
   ResoRow18->SetBinContent(81,6);
   ResoRow18->SetBinContent(82,3);
   ResoRow18->SetBinContent(83,3);
   ResoRow18->SetBinContent(84,4);
   ResoRow18->SetBinContent(85,3);
   ResoRow18->SetBinContent(86,2);
   ResoRow18->SetBinContent(87,3);
   ResoRow18->SetBinContent(88,4);
   ResoRow18->SetBinContent(89,2);
   ResoRow18->SetBinContent(90,5);
   ResoRow18->SetBinContent(91,3);
   ResoRow18->SetBinContent(92,3);
   ResoRow18->SetBinContent(93,4);
   ResoRow18->SetBinContent(94,1);
   ResoRow18->SetBinContent(95,6);
   ResoRow18->SetBinContent(97,5);
   ResoRow18->SetBinContent(99,1);
   ResoRow18->SetBinContent(100,2);
   ResoRow18->SetBinContent(101,34);
   ResoRow18->SetEntries(1564);
   
   TF1 *ResoRowFit18 = new TF1("ResoRowFit18","gaus",-1,1);
   ResoRowFit18->SetFillColor(19);
   ResoRowFit18->SetFillStyle(0);
   ResoRowFit18->SetLineWidth(3);
   ResoRowFit18->SetChisquare(109.904);
   ResoRowFit18->SetNDF(93);
   ResoRowFit18->SetParameter(0,36.61043);
   ResoRowFit18->SetParError(0,1.28983);
   ResoRowFit18->SetParLimits(0,0,0);
   ResoRowFit18->SetParameter(1,-0.005061472);
   ResoRowFit18->SetParError(1,0.008241615);
   ResoRowFit18->SetParLimits(1,0,0);
   ResoRowFit18->SetParameter(2,0.3034652);
   ResoRowFit18->SetParError(2,0.007079643);
   ResoRowFit18->SetParLimits(2,0,3.301364);
   ResoRow18->GetListOfFunctions()->Add(ResoRowFit18);
   
   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("ResoRow18");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1564   ");
   text = ptstats->AddText("Mean  = -0.003924");
   text = ptstats->AddText("RMS   = 0.3298");
   text = ptstats->AddText("#chi^{2} / ndf = 109.9 / 93");
   text = ptstats->AddText("Constant = 36.61 #pm 1.29 ");
   text = ptstats->AddText("Mean     = -0.005061 #pm 0.008242 ");
   text = ptstats->AddText("Sigma    = 0.3035 #pm 0.0071 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow18->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow18->GetListOfFunctions());
   ResoRow18->GetXaxis()->SetTitle("residual / mm");
   ResoRow18->GetYaxis()->SetTitle("counts");
   ResoRow18->Draw("");
   c2_6->Modified();
   c2->cd();
   c2->Modified();
   c2->cd();
   c2->SetSelected(c2);
}
