{
//=========Macro generated from canvas: c2/
//=========  (Thu Jun 10 11:20:22 2010) by ROOT version5.25/04
   TCanvas *c2 = new TCanvas("c2", "",1,1,900,576);
   gStyle->SetOptFit(1);
   c2->Range(0,0,1,1);
   c2->SetFillColor(0);
   c2->SetBorderSize(2);
  
// ------------>Primitives in pad: c2_1
   TPad *c2_1 = new TPad("c2_1", "c2_1",0.01,0.51,0.3233333,0.99);
   c2_1->Draw();
   c2_1->cd();
   c2_1->Range(-1.25,-6.95625,1.25,62.60625);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow13 = new TH1F("ResoRow13","",100,-1,1);
   ResoRow13->SetBinContent(0,32);
   ResoRow13->SetBinContent(1,1);
   ResoRow13->SetBinContent(3,1);
   ResoRow13->SetBinContent(4,2);
   ResoRow13->SetBinContent(5,2);
   ResoRow13->SetBinContent(6,5);
   ResoRow13->SetBinContent(8,1);
   ResoRow13->SetBinContent(9,2);
   ResoRow13->SetBinContent(10,3);
   ResoRow13->SetBinContent(11,1);
   ResoRow13->SetBinContent(12,2);
   ResoRow13->SetBinContent(13,2);
   ResoRow13->SetBinContent(14,3);
   ResoRow13->SetBinContent(15,4);
   ResoRow13->SetBinContent(16,6);
   ResoRow13->SetBinContent(17,4);
   ResoRow13->SetBinContent(18,6);
   ResoRow13->SetBinContent(19,5);
   ResoRow13->SetBinContent(20,3);
   ResoRow13->SetBinContent(21,9);
   ResoRow13->SetBinContent(22,14);
   ResoRow13->SetBinContent(23,8);
   ResoRow13->SetBinContent(24,4);
   ResoRow13->SetBinContent(25,9);
   ResoRow13->SetBinContent(26,8);
   ResoRow13->SetBinContent(27,9);
   ResoRow13->SetBinContent(28,14);
   ResoRow13->SetBinContent(29,15);
   ResoRow13->SetBinContent(30,11);
   ResoRow13->SetBinContent(31,18);
   ResoRow13->SetBinContent(32,22);
   ResoRow13->SetBinContent(33,18);
   ResoRow13->SetBinContent(34,19);
   ResoRow13->SetBinContent(35,27);
   ResoRow13->SetBinContent(36,26);
   ResoRow13->SetBinContent(37,22);
   ResoRow13->SetBinContent(38,27);
   ResoRow13->SetBinContent(39,33);
   ResoRow13->SetBinContent(40,27);
   ResoRow13->SetBinContent(41,31);
   ResoRow13->SetBinContent(42,37);
   ResoRow13->SetBinContent(43,36);
   ResoRow13->SetBinContent(44,41);
   ResoRow13->SetBinContent(45,47);
   ResoRow13->SetBinContent(46,39);
   ResoRow13->SetBinContent(47,43);
   ResoRow13->SetBinContent(48,37);
   ResoRow13->SetBinContent(49,35);
   ResoRow13->SetBinContent(50,49);
   ResoRow13->SetBinContent(51,41);
   ResoRow13->SetBinContent(52,45);
   ResoRow13->SetBinContent(53,48);
   ResoRow13->SetBinContent(54,41);
   ResoRow13->SetBinContent(55,36);
   ResoRow13->SetBinContent(56,53);
   ResoRow13->SetBinContent(57,37);
   ResoRow13->SetBinContent(58,39);
   ResoRow13->SetBinContent(59,46);
   ResoRow13->SetBinContent(60,28);
   ResoRow13->SetBinContent(61,32);
   ResoRow13->SetBinContent(62,29);
   ResoRow13->SetBinContent(63,24);
   ResoRow13->SetBinContent(64,29);
   ResoRow13->SetBinContent(65,27);
   ResoRow13->SetBinContent(66,15);
   ResoRow13->SetBinContent(67,15);
   ResoRow13->SetBinContent(68,18);
   ResoRow13->SetBinContent(69,9);
   ResoRow13->SetBinContent(70,5);
   ResoRow13->SetBinContent(71,12);
   ResoRow13->SetBinContent(72,10);
   ResoRow13->SetBinContent(73,23);
   ResoRow13->SetBinContent(74,11);
   ResoRow13->SetBinContent(75,13);
   ResoRow13->SetBinContent(76,9);
   ResoRow13->SetBinContent(77,12);
   ResoRow13->SetBinContent(78,5);
   ResoRow13->SetBinContent(79,6);
   ResoRow13->SetBinContent(80,7);
   ResoRow13->SetBinContent(81,9);
   ResoRow13->SetBinContent(82,10);
   ResoRow13->SetBinContent(83,4);
   ResoRow13->SetBinContent(84,4);
   ResoRow13->SetBinContent(85,1);
   ResoRow13->SetBinContent(86,6);
   ResoRow13->SetBinContent(87,3);
   ResoRow13->SetBinContent(88,3);
   ResoRow13->SetBinContent(89,2);
   ResoRow13->SetBinContent(90,5);
   ResoRow13->SetBinContent(91,2);
   ResoRow13->SetBinContent(93,1);
   ResoRow13->SetBinContent(94,3);
   ResoRow13->SetBinContent(95,2);
   ResoRow13->SetBinContent(96,3);
   ResoRow13->SetBinContent(97,2);
   ResoRow13->SetBinContent(100,1);
   ResoRow13->SetBinContent(101,34);
   ResoRow13->SetEntries(1640);
   
   TF1 *ResoRowFit13 = new TF1("ResoRowFit13","gaus",-1,1);
   ResoRowFit13->SetFillColor(19);
   ResoRowFit13->SetFillStyle(0);
   ResoRowFit13->SetLineWidth(3);
   ResoRowFit13->SetChisquare(124.7752);
   ResoRowFit13->SetNDF(92);
   ResoRowFit13->SetParameter(0,39.58372);
   ResoRowFit13->SetParError(0,1.447388);
   ResoRowFit13->SetParLimits(0,0,0);
   ResoRowFit13->SetParameter(1,-0.01547236);
   ResoRowFit13->SetParError(1,0.007762568);
   ResoRowFit13->SetParLimits(1,0,0);
   ResoRowFit13->SetParameter(2,0.2926428);
   ResoRowFit13->SetParError(2,0.007573004);
   ResoRowFit13->SetParLimits(2,0,3.197398);
   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 = 1640   ");
   text = ptstats->AddText("Mean  = -0.002503");
   text = ptstats->AddText("RMS   = 0.3198");
   text = ptstats->AddText("#chi^{2} / ndf = 124.8 / 92");
   text = ptstats->AddText("Constant = 39.58 #pm 1.45 ");
   text = ptstats->AddText("Mean     = -0.01547 #pm 0.00776 ");
   text = ptstats->AddText("Sigma    = 0.2926 #pm 0.0076 ");
   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,-7.875,1.25,70.875);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow14 = new TH1F("ResoRow14","",100,-1,1);
   ResoRow14->SetBinContent(0,30);
   ResoRow14->SetBinContent(4,1);
   ResoRow14->SetBinContent(5,2);
   ResoRow14->SetBinContent(6,3);
   ResoRow14->SetBinContent(8,1);
   ResoRow14->SetBinContent(9,1);
   ResoRow14->SetBinContent(10,1);
   ResoRow14->SetBinContent(11,1);
   ResoRow14->SetBinContent(12,6);
   ResoRow14->SetBinContent(13,4);
   ResoRow14->SetBinContent(14,4);
   ResoRow14->SetBinContent(15,5);
   ResoRow14->SetBinContent(16,2);
   ResoRow14->SetBinContent(17,2);
   ResoRow14->SetBinContent(18,7);
   ResoRow14->SetBinContent(19,10);
   ResoRow14->SetBinContent(20,5);
   ResoRow14->SetBinContent(21,5);
   ResoRow14->SetBinContent(22,9);
   ResoRow14->SetBinContent(23,11);
   ResoRow14->SetBinContent(24,11);
   ResoRow14->SetBinContent(25,7);
   ResoRow14->SetBinContent(26,5);
   ResoRow14->SetBinContent(27,11);
   ResoRow14->SetBinContent(28,15);
   ResoRow14->SetBinContent(29,15);
   ResoRow14->SetBinContent(30,21);
   ResoRow14->SetBinContent(31,14);
   ResoRow14->SetBinContent(32,13);
   ResoRow14->SetBinContent(33,21);
   ResoRow14->SetBinContent(34,22);
   ResoRow14->SetBinContent(35,22);
   ResoRow14->SetBinContent(36,22);
   ResoRow14->SetBinContent(37,21);
   ResoRow14->SetBinContent(38,24);
   ResoRow14->SetBinContent(39,31);
   ResoRow14->SetBinContent(40,31);
   ResoRow14->SetBinContent(41,35);
   ResoRow14->SetBinContent(42,46);
   ResoRow14->SetBinContent(43,42);
   ResoRow14->SetBinContent(44,44);
   ResoRow14->SetBinContent(45,35);
   ResoRow14->SetBinContent(46,35);
   ResoRow14->SetBinContent(47,42);
   ResoRow14->SetBinContent(48,38);
   ResoRow14->SetBinContent(49,43);
   ResoRow14->SetBinContent(50,60);
   ResoRow14->SetBinContent(51,25);
   ResoRow14->SetBinContent(52,51);
   ResoRow14->SetBinContent(53,44);
   ResoRow14->SetBinContent(54,49);
   ResoRow14->SetBinContent(55,43);
   ResoRow14->SetBinContent(56,34);
   ResoRow14->SetBinContent(57,33);
   ResoRow14->SetBinContent(58,35);
   ResoRow14->SetBinContent(59,38);
   ResoRow14->SetBinContent(60,36);
   ResoRow14->SetBinContent(61,34);
   ResoRow14->SetBinContent(62,26);
   ResoRow14->SetBinContent(63,37);
   ResoRow14->SetBinContent(64,24);
   ResoRow14->SetBinContent(65,22);
   ResoRow14->SetBinContent(66,29);
   ResoRow14->SetBinContent(67,24);
   ResoRow14->SetBinContent(68,11);
   ResoRow14->SetBinContent(69,22);
   ResoRow14->SetBinContent(70,21);
   ResoRow14->SetBinContent(71,6);
   ResoRow14->SetBinContent(72,8);
   ResoRow14->SetBinContent(73,8);
   ResoRow14->SetBinContent(74,9);
   ResoRow14->SetBinContent(75,8);
   ResoRow14->SetBinContent(76,15);
   ResoRow14->SetBinContent(77,4);
   ResoRow14->SetBinContent(78,11);
   ResoRow14->SetBinContent(79,8);
   ResoRow14->SetBinContent(80,8);
   ResoRow14->SetBinContent(81,4);
   ResoRow14->SetBinContent(82,1);
   ResoRow14->SetBinContent(83,7);
   ResoRow14->SetBinContent(84,4);
   ResoRow14->SetBinContent(85,3);
   ResoRow14->SetBinContent(86,1);
   ResoRow14->SetBinContent(87,2);
   ResoRow14->SetBinContent(88,2);
   ResoRow14->SetBinContent(89,4);
   ResoRow14->SetBinContent(90,2);
   ResoRow14->SetBinContent(91,2);
   ResoRow14->SetBinContent(92,3);
   ResoRow14->SetBinContent(93,4);
   ResoRow14->SetBinContent(94,2);
   ResoRow14->SetBinContent(96,4);
   ResoRow14->SetBinContent(97,3);
   ResoRow14->SetBinContent(100,3);
   ResoRow14->SetBinContent(101,30);
   ResoRow14->SetEntries(1640);
   
   TF1 *ResoRowFit14 = new TF1("ResoRowFit14","gaus",-1,1);
   ResoRowFit14->SetFillColor(19);
   ResoRowFit14->SetFillStyle(0);
   ResoRowFit14->SetLineWidth(3);
   ResoRowFit14->SetChisquare(132.0633);
   ResoRowFit14->SetNDF(90);
   ResoRowFit14->SetParameter(0,40.27266);
   ResoRowFit14->SetParError(0,1.404326);
   ResoRowFit14->SetParLimits(0,0,0);
   ResoRowFit14->SetParameter(1,-0.01484872);
   ResoRowFit14->SetParError(1,0.007644394);
   ResoRowFit14->SetParLimits(1,0,0);
   ResoRowFit14->SetParameter(2,0.2873108);
   ResoRowFit14->SetParError(2,0.0066915);
   ResoRowFit14->SetParLimits(2,0,3.163996);
   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 = 1640   ");
   text = ptstats->AddText("Mean  = -0.002425");
   text = ptstats->AddText("RMS   = 0.3168");
   text = ptstats->AddText("#chi^{2} / ndf = 132.1 / 90");
   text = ptstats->AddText("Constant = 40.27 #pm 1.40 ");
   text = ptstats->AddText("Mean     = -0.01485 #pm 0.00764 ");
   text = ptstats->AddText("Sigma    = 0.2873 #pm 0.0067 ");
   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,-7.74375,1.25,69.69375);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow15 = new TH1F("ResoRow15","",100,-1,1);
   ResoRow15->SetBinContent(0,22);
   ResoRow15->SetBinContent(1,1);
   ResoRow15->SetBinContent(3,1);
   ResoRow15->SetBinContent(4,1);
   ResoRow15->SetBinContent(5,3);
   ResoRow15->SetBinContent(8,6);
   ResoRow15->SetBinContent(9,3);
   ResoRow15->SetBinContent(10,1);
   ResoRow15->SetBinContent(11,1);
   ResoRow15->SetBinContent(12,4);
   ResoRow15->SetBinContent(13,2);
   ResoRow15->SetBinContent(14,2);
   ResoRow15->SetBinContent(15,3);
   ResoRow15->SetBinContent(16,4);
   ResoRow15->SetBinContent(17,6);
   ResoRow15->SetBinContent(18,6);
   ResoRow15->SetBinContent(19,5);
   ResoRow15->SetBinContent(20,9);
   ResoRow15->SetBinContent(21,3);
   ResoRow15->SetBinContent(22,7);
   ResoRow15->SetBinContent(23,6);
   ResoRow15->SetBinContent(24,4);
   ResoRow15->SetBinContent(25,7);
   ResoRow15->SetBinContent(26,7);
   ResoRow15->SetBinContent(27,17);
   ResoRow15->SetBinContent(28,16);
   ResoRow15->SetBinContent(29,21);
   ResoRow15->SetBinContent(30,17);
   ResoRow15->SetBinContent(31,20);
   ResoRow15->SetBinContent(32,14);
   ResoRow15->SetBinContent(33,22);
   ResoRow15->SetBinContent(34,28);
   ResoRow15->SetBinContent(35,24);
   ResoRow15->SetBinContent(36,21);
   ResoRow15->SetBinContent(37,31);
   ResoRow15->SetBinContent(38,32);
   ResoRow15->SetBinContent(39,25);
   ResoRow15->SetBinContent(40,30);
   ResoRow15->SetBinContent(41,34);
   ResoRow15->SetBinContent(42,30);
   ResoRow15->SetBinContent(43,30);
   ResoRow15->SetBinContent(44,39);
   ResoRow15->SetBinContent(45,47);
   ResoRow15->SetBinContent(46,47);
   ResoRow15->SetBinContent(47,37);
   ResoRow15->SetBinContent(48,45);
   ResoRow15->SetBinContent(49,44);
   ResoRow15->SetBinContent(50,43);
   ResoRow15->SetBinContent(51,44);
   ResoRow15->SetBinContent(52,59);
   ResoRow15->SetBinContent(53,35);
   ResoRow15->SetBinContent(54,45);
   ResoRow15->SetBinContent(55,52);
   ResoRow15->SetBinContent(56,41);
   ResoRow15->SetBinContent(57,38);
   ResoRow15->SetBinContent(58,31);
   ResoRow15->SetBinContent(59,44);
   ResoRow15->SetBinContent(60,25);
   ResoRow15->SetBinContent(61,31);
   ResoRow15->SetBinContent(62,26);
   ResoRow15->SetBinContent(63,19);
   ResoRow15->SetBinContent(64,14);
   ResoRow15->SetBinContent(65,18);
   ResoRow15->SetBinContent(66,20);
   ResoRow15->SetBinContent(67,26);
   ResoRow15->SetBinContent(68,19);
   ResoRow15->SetBinContent(69,17);
   ResoRow15->SetBinContent(70,13);
   ResoRow15->SetBinContent(71,17);
   ResoRow15->SetBinContent(72,11);
   ResoRow15->SetBinContent(73,10);
   ResoRow15->SetBinContent(74,18);
   ResoRow15->SetBinContent(75,13);
   ResoRow15->SetBinContent(76,9);
   ResoRow15->SetBinContent(77,7);
   ResoRow15->SetBinContent(78,4);
   ResoRow15->SetBinContent(79,4);
   ResoRow15->SetBinContent(80,7);
   ResoRow15->SetBinContent(81,10);
   ResoRow15->SetBinContent(82,5);
   ResoRow15->SetBinContent(83,5);
   ResoRow15->SetBinContent(84,5);
   ResoRow15->SetBinContent(85,4);
   ResoRow15->SetBinContent(86,5);
   ResoRow15->SetBinContent(87,4);
   ResoRow15->SetBinContent(88,5);
   ResoRow15->SetBinContent(89,2);
   ResoRow15->SetBinContent(90,4);
   ResoRow15->SetBinContent(91,2);
   ResoRow15->SetBinContent(92,1);
   ResoRow15->SetBinContent(93,2);
   ResoRow15->SetBinContent(94,1);
   ResoRow15->SetBinContent(95,2);
   ResoRow15->SetBinContent(96,2);
   ResoRow15->SetBinContent(97,1);
   ResoRow15->SetBinContent(101,35);
   ResoRow15->SetEntries(1640);
   
   TF1 *ResoRowFit15 = new TF1("ResoRowFit15","gaus",-1,1);
   ResoRowFit15->SetFillColor(19);
   ResoRowFit15->SetFillStyle(0);
   ResoRowFit15->SetLineWidth(3);
   ResoRowFit15->SetChisquare(105.73);
   ResoRowFit15->SetNDF(91);
   ResoRowFit15->SetParameter(0,39.38793);
   ResoRowFit15->SetParError(0,1.389913);
   ResoRowFit15->SetParLimits(0,0,0);
   ResoRowFit15->SetParameter(1,-0.009143862);
   ResoRowFit15->SetParError(1,0.007959469);
   ResoRowFit15->SetParLimits(1,0,0);
   ResoRowFit15->SetParameter(2,0.2999108);
   ResoRowFit15->SetParError(2,0.007301189);
   ResoRowFit15->SetParLimits(2,0,3.165106);
   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 = 1640   ");
   text = ptstats->AddText("Mean  = -0.00784");
   text = ptstats->AddText("RMS   = 0.3167");
   text = ptstats->AddText("#chi^{2} / ndf = 105.7 / 91");
   text = ptstats->AddText("Constant = 39.39 #pm 1.39 ");
   text = ptstats->AddText("Mean     = -0.009144 #pm 0.007959 ");
   text = ptstats->AddText("Sigma    = 0.2999 #pm 0.0073 ");
   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,-7.0875,1.25,63.7875);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow16 = new TH1F("ResoRow16","",100,-1,1);
   ResoRow16->SetBinContent(0,25);
   ResoRow16->SetBinContent(1,2);
   ResoRow16->SetBinContent(2,3);
   ResoRow16->SetBinContent(3,1);
   ResoRow16->SetBinContent(4,1);
   ResoRow16->SetBinContent(6,1);
   ResoRow16->SetBinContent(8,3);
   ResoRow16->SetBinContent(9,1);
   ResoRow16->SetBinContent(10,5);
   ResoRow16->SetBinContent(13,6);
   ResoRow16->SetBinContent(14,3);
   ResoRow16->SetBinContent(15,6);
   ResoRow16->SetBinContent(16,5);
   ResoRow16->SetBinContent(17,3);
   ResoRow16->SetBinContent(18,7);
   ResoRow16->SetBinContent(19,7);
   ResoRow16->SetBinContent(20,6);
   ResoRow16->SetBinContent(21,7);
   ResoRow16->SetBinContent(22,6);
   ResoRow16->SetBinContent(23,5);
   ResoRow16->SetBinContent(24,16);
   ResoRow16->SetBinContent(25,10);
   ResoRow16->SetBinContent(26,5);
   ResoRow16->SetBinContent(27,11);
   ResoRow16->SetBinContent(28,18);
   ResoRow16->SetBinContent(29,16);
   ResoRow16->SetBinContent(30,15);
   ResoRow16->SetBinContent(31,20);
   ResoRow16->SetBinContent(32,19);
   ResoRow16->SetBinContent(33,22);
   ResoRow16->SetBinContent(34,19);
   ResoRow16->SetBinContent(35,20);
   ResoRow16->SetBinContent(36,24);
   ResoRow16->SetBinContent(37,26);
   ResoRow16->SetBinContent(38,29);
   ResoRow16->SetBinContent(39,32);
   ResoRow16->SetBinContent(40,23);
   ResoRow16->SetBinContent(41,31);
   ResoRow16->SetBinContent(42,32);
   ResoRow16->SetBinContent(43,40);
   ResoRow16->SetBinContent(44,37);
   ResoRow16->SetBinContent(45,29);
   ResoRow16->SetBinContent(46,34);
   ResoRow16->SetBinContent(47,42);
   ResoRow16->SetBinContent(48,46);
   ResoRow16->SetBinContent(49,37);
   ResoRow16->SetBinContent(50,47);
   ResoRow16->SetBinContent(51,34);
   ResoRow16->SetBinContent(52,54);
   ResoRow16->SetBinContent(53,48);
   ResoRow16->SetBinContent(54,45);
   ResoRow16->SetBinContent(55,33);
   ResoRow16->SetBinContent(56,34);
   ResoRow16->SetBinContent(57,26);
   ResoRow16->SetBinContent(58,39);
   ResoRow16->SetBinContent(59,36);
   ResoRow16->SetBinContent(60,46);
   ResoRow16->SetBinContent(61,36);
   ResoRow16->SetBinContent(62,35);
   ResoRow16->SetBinContent(63,29);
   ResoRow16->SetBinContent(64,35);
   ResoRow16->SetBinContent(65,36);
   ResoRow16->SetBinContent(66,27);
   ResoRow16->SetBinContent(67,17);
   ResoRow16->SetBinContent(68,16);
   ResoRow16->SetBinContent(69,14);
   ResoRow16->SetBinContent(70,10);
   ResoRow16->SetBinContent(71,15);
   ResoRow16->SetBinContent(72,16);
   ResoRow16->SetBinContent(73,6);
   ResoRow16->SetBinContent(74,11);
   ResoRow16->SetBinContent(75,9);
   ResoRow16->SetBinContent(76,6);
   ResoRow16->SetBinContent(77,14);
   ResoRow16->SetBinContent(78,7);
   ResoRow16->SetBinContent(79,4);
   ResoRow16->SetBinContent(80,12);
   ResoRow16->SetBinContent(81,5);
   ResoRow16->SetBinContent(82,3);
   ResoRow16->SetBinContent(83,8);
   ResoRow16->SetBinContent(84,6);
   ResoRow16->SetBinContent(85,4);
   ResoRow16->SetBinContent(86,3);
   ResoRow16->SetBinContent(87,2);
   ResoRow16->SetBinContent(88,5);
   ResoRow16->SetBinContent(89,2);
   ResoRow16->SetBinContent(90,1);
   ResoRow16->SetBinContent(91,1);
   ResoRow16->SetBinContent(92,2);
   ResoRow16->SetBinContent(93,2);
   ResoRow16->SetBinContent(94,1);
   ResoRow16->SetBinContent(95,1);
   ResoRow16->SetBinContent(96,1);
   ResoRow16->SetBinContent(97,2);
   ResoRow16->SetBinContent(99,1);
   ResoRow16->SetBinContent(101,37);
   ResoRow16->SetEntries(1640);
   
   TF1 *ResoRowFit16 = new TF1("ResoRowFit16","gaus",-1,1);
   ResoRowFit16->SetFillColor(19);
   ResoRowFit16->SetFillStyle(0);
   ResoRowFit16->SetLineWidth(3);
   ResoRowFit16->SetChisquare(103.5884);
   ResoRowFit16->SetNDF(91);
   ResoRowFit16->SetParameter(0,38.68333);
   ResoRowFit16->SetParError(0,1.348851);
   ResoRowFit16->SetParLimits(0,0,0);
   ResoRowFit16->SetParameter(1,-0.006838856);
   ResoRowFit16->SetParError(1,0.008148013);
   ResoRowFit16->SetParLimits(1,0,0);
   ResoRowFit16->SetParameter(2,0.3054328);
   ResoRowFit16->SetParError(2,0.007326269);
   ResoRowFit16->SetParLimits(2,0,3.195308);
   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 = 1640   ");
   text = ptstats->AddText("Mean  = -0.003296");
   text = ptstats->AddText("RMS   = 0.3195");
   text = ptstats->AddText("#chi^{2} / ndf = 103.6 / 91");
   text = ptstats->AddText("Constant = 38.68 #pm 1.35 ");
   text = ptstats->AddText("Mean     = -0.006839 #pm 0.008148 ");
   text = ptstats->AddText("Sigma    = 0.3054 #pm 0.0073 ");
   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,-7.21875,1.25,64.96875);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow17 = new TH1F("ResoRow17","",100,-1,1);
   ResoRow17->SetBinContent(0,24);
   ResoRow17->SetBinContent(1,1);
   ResoRow17->SetBinContent(3,1);
   ResoRow17->SetBinContent(4,1);
   ResoRow17->SetBinContent(5,1);
   ResoRow17->SetBinContent(7,1);
   ResoRow17->SetBinContent(8,2);
   ResoRow17->SetBinContent(9,1);
   ResoRow17->SetBinContent(11,3);
   ResoRow17->SetBinContent(12,1);
   ResoRow17->SetBinContent(13,2);
   ResoRow17->SetBinContent(14,4);
   ResoRow17->SetBinContent(16,7);
   ResoRow17->SetBinContent(17,6);
   ResoRow17->SetBinContent(18,5);
   ResoRow17->SetBinContent(19,9);
   ResoRow17->SetBinContent(20,2);
   ResoRow17->SetBinContent(21,8);
   ResoRow17->SetBinContent(22,6);
   ResoRow17->SetBinContent(23,4);
   ResoRow17->SetBinContent(24,9);
   ResoRow17->SetBinContent(25,13);
   ResoRow17->SetBinContent(26,9);
   ResoRow17->SetBinContent(27,11);
   ResoRow17->SetBinContent(28,12);
   ResoRow17->SetBinContent(29,11);
   ResoRow17->SetBinContent(30,11);
   ResoRow17->SetBinContent(31,16);
   ResoRow17->SetBinContent(32,21);
   ResoRow17->SetBinContent(33,19);
   ResoRow17->SetBinContent(34,23);
   ResoRow17->SetBinContent(35,17);
   ResoRow17->SetBinContent(36,31);
   ResoRow17->SetBinContent(37,31);
   ResoRow17->SetBinContent(38,29);
   ResoRow17->SetBinContent(39,42);
   ResoRow17->SetBinContent(40,31);
   ResoRow17->SetBinContent(41,33);
   ResoRow17->SetBinContent(42,30);
   ResoRow17->SetBinContent(43,34);
   ResoRow17->SetBinContent(44,42);
   ResoRow17->SetBinContent(45,34);
   ResoRow17->SetBinContent(46,42);
   ResoRow17->SetBinContent(47,46);
   ResoRow17->SetBinContent(48,47);
   ResoRow17->SetBinContent(49,46);
   ResoRow17->SetBinContent(50,55);
   ResoRow17->SetBinContent(51,44);
   ResoRow17->SetBinContent(52,46);
   ResoRow17->SetBinContent(53,42);
   ResoRow17->SetBinContent(54,38);
   ResoRow17->SetBinContent(55,46);
   ResoRow17->SetBinContent(56,45);
   ResoRow17->SetBinContent(57,37);
   ResoRow17->SetBinContent(58,35);
   ResoRow17->SetBinContent(59,36);
   ResoRow17->SetBinContent(60,26);
   ResoRow17->SetBinContent(61,33);
   ResoRow17->SetBinContent(62,28);
   ResoRow17->SetBinContent(63,28);
   ResoRow17->SetBinContent(64,27);
   ResoRow17->SetBinContent(65,31);
   ResoRow17->SetBinContent(66,24);
   ResoRow17->SetBinContent(67,20);
   ResoRow17->SetBinContent(68,12);
   ResoRow17->SetBinContent(69,14);
   ResoRow17->SetBinContent(70,15);
   ResoRow17->SetBinContent(71,11);
   ResoRow17->SetBinContent(72,15);
   ResoRow17->SetBinContent(73,16);
   ResoRow17->SetBinContent(74,11);
   ResoRow17->SetBinContent(75,11);
   ResoRow17->SetBinContent(76,11);
   ResoRow17->SetBinContent(77,6);
   ResoRow17->SetBinContent(78,7);
   ResoRow17->SetBinContent(79,5);
   ResoRow17->SetBinContent(80,9);
   ResoRow17->SetBinContent(81,1);
   ResoRow17->SetBinContent(82,6);
   ResoRow17->SetBinContent(83,6);
   ResoRow17->SetBinContent(84,6);
   ResoRow17->SetBinContent(85,3);
   ResoRow17->SetBinContent(86,4);
   ResoRow17->SetBinContent(87,1);
   ResoRow17->SetBinContent(89,2);
   ResoRow17->SetBinContent(90,1);
   ResoRow17->SetBinContent(91,1);
   ResoRow17->SetBinContent(92,2);
   ResoRow17->SetBinContent(94,1);
   ResoRow17->SetBinContent(95,3);
   ResoRow17->SetBinContent(98,4);
   ResoRow17->SetBinContent(100,2);
   ResoRow17->SetBinContent(101,34);
   ResoRow17->SetEntries(1640);
   
   TF1 *ResoRowFit17 = new TF1("ResoRowFit17","gaus",-1,1);
   ResoRowFit17->SetFillColor(19);
   ResoRowFit17->SetFillStyle(0);
   ResoRowFit17->SetLineWidth(3);
   ResoRowFit17->SetChisquare(83.44458);
   ResoRowFit17->SetNDF(88);
   ResoRowFit17->SetParameter(0,42.28713);
   ResoRowFit17->SetParError(0,1.436059);
   ResoRowFit17->SetParLimits(0,0,0);
   ResoRowFit17->SetParameter(1,-0.008548047);
   ResoRowFit17->SetParError(1,0.007454661);
   ResoRowFit17->SetParLimits(1,0,0);
   ResoRowFit17->SetParameter(2,0.283893);
   ResoRowFit17->SetParError(2,0.006448995);
   ResoRowFit17->SetParLimits(2,0,3.048408);
   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 = 1640   ");
   text = ptstats->AddText("Mean  = -0.004393");
   text = ptstats->AddText("RMS   = 0.3049");
   text = ptstats->AddText("#chi^{2} / ndf = 83.44 / 88");
   text = ptstats->AddText("Constant = 42.29 #pm 1.44 ");
   text = ptstats->AddText("Mean     = -0.008548 #pm 0.007455 ");
   text = ptstats->AddText("Sigma    = 0.2839 #pm 0.0064 ");
   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,-7.0875,1.25,63.7875);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow18 = new TH1F("ResoRow18","",100,-1,1);
   ResoRow18->SetBinContent(0,22);
   ResoRow18->SetBinContent(4,4);
   ResoRow18->SetBinContent(5,4);
   ResoRow18->SetBinContent(6,2);
   ResoRow18->SetBinContent(8,3);
   ResoRow18->SetBinContent(9,1);
   ResoRow18->SetBinContent(10,3);
   ResoRow18->SetBinContent(11,2);
   ResoRow18->SetBinContent(12,3);
   ResoRow18->SetBinContent(13,3);
   ResoRow18->SetBinContent(14,8);
   ResoRow18->SetBinContent(15,2);
   ResoRow18->SetBinContent(16,6);
   ResoRow18->SetBinContent(17,6);
   ResoRow18->SetBinContent(18,8);
   ResoRow18->SetBinContent(19,6);
   ResoRow18->SetBinContent(20,4);
   ResoRow18->SetBinContent(21,7);
   ResoRow18->SetBinContent(22,4);
   ResoRow18->SetBinContent(23,3);
   ResoRow18->SetBinContent(24,5);
   ResoRow18->SetBinContent(25,6);
   ResoRow18->SetBinContent(26,14);
   ResoRow18->SetBinContent(27,12);
   ResoRow18->SetBinContent(28,13);
   ResoRow18->SetBinContent(29,14);
   ResoRow18->SetBinContent(30,11);
   ResoRow18->SetBinContent(31,17);
   ResoRow18->SetBinContent(32,16);
   ResoRow18->SetBinContent(33,22);
   ResoRow18->SetBinContent(34,27);
   ResoRow18->SetBinContent(35,18);
   ResoRow18->SetBinContent(36,37);
   ResoRow18->SetBinContent(37,22);
   ResoRow18->SetBinContent(38,21);
   ResoRow18->SetBinContent(39,21);
   ResoRow18->SetBinContent(40,31);
   ResoRow18->SetBinContent(41,31);
   ResoRow18->SetBinContent(42,29);
   ResoRow18->SetBinContent(43,37);
   ResoRow18->SetBinContent(44,46);
   ResoRow18->SetBinContent(45,32);
   ResoRow18->SetBinContent(46,52);
   ResoRow18->SetBinContent(47,44);
   ResoRow18->SetBinContent(48,46);
   ResoRow18->SetBinContent(49,52);
   ResoRow18->SetBinContent(50,45);
   ResoRow18->SetBinContent(51,39);
   ResoRow18->SetBinContent(52,54);
   ResoRow18->SetBinContent(53,41);
   ResoRow18->SetBinContent(54,41);
   ResoRow18->SetBinContent(55,43);
   ResoRow18->SetBinContent(56,44);
   ResoRow18->SetBinContent(57,30);
   ResoRow18->SetBinContent(58,32);
   ResoRow18->SetBinContent(59,36);
   ResoRow18->SetBinContent(60,37);
   ResoRow18->SetBinContent(61,31);
   ResoRow18->SetBinContent(62,21);
   ResoRow18->SetBinContent(63,27);
   ResoRow18->SetBinContent(64,32);
   ResoRow18->SetBinContent(65,27);
   ResoRow18->SetBinContent(66,26);
   ResoRow18->SetBinContent(67,26);
   ResoRow18->SetBinContent(68,13);
   ResoRow18->SetBinContent(69,18);
   ResoRow18->SetBinContent(70,15);
   ResoRow18->SetBinContent(71,20);
   ResoRow18->SetBinContent(72,10);
   ResoRow18->SetBinContent(73,15);
   ResoRow18->SetBinContent(74,9);
   ResoRow18->SetBinContent(75,6);
   ResoRow18->SetBinContent(76,14);
   ResoRow18->SetBinContent(77,10);
   ResoRow18->SetBinContent(78,8);
   ResoRow18->SetBinContent(79,3);
   ResoRow18->SetBinContent(80,2);
   ResoRow18->SetBinContent(81,4);
   ResoRow18->SetBinContent(82,5);
   ResoRow18->SetBinContent(83,4);
   ResoRow18->SetBinContent(84,1);
   ResoRow18->SetBinContent(85,5);
   ResoRow18->SetBinContent(86,1);
   ResoRow18->SetBinContent(87,2);
   ResoRow18->SetBinContent(88,4);
   ResoRow18->SetBinContent(89,3);
   ResoRow18->SetBinContent(90,1);
   ResoRow18->SetBinContent(91,3);
   ResoRow18->SetBinContent(92,1);
   ResoRow18->SetBinContent(93,4);
   ResoRow18->SetBinContent(94,1);
   ResoRow18->SetBinContent(95,4);
   ResoRow18->SetBinContent(96,3);
   ResoRow18->SetBinContent(97,1);
   ResoRow18->SetBinContent(100,4);
   ResoRow18->SetBinContent(101,37);
   ResoRow18->SetEntries(1640);
   
   TF1 *ResoRowFit18 = new TF1("ResoRowFit18","gaus",-1,1);
   ResoRowFit18->SetFillColor(19);
   ResoRowFit18->SetFillStyle(0);
   ResoRowFit18->SetLineWidth(3);
   ResoRowFit18->SetChisquare(119.7955);
   ResoRowFit18->SetNDF(91);
   ResoRowFit18->SetParameter(0,41.12012);
   ResoRowFit18->SetParError(0,1.423337);
   ResoRowFit18->SetParLimits(0,0,0);
   ResoRowFit18->SetParameter(1,-0.002770857);
   ResoRowFit18->SetParError(1,0.007532799);
   ResoRowFit18->SetParLimits(1,0,0);
   ResoRowFit18->SetParameter(2,0.2838486);
   ResoRowFit18->SetParError(2,0.006513944);
   ResoRowFit18->SetParLimits(2,0,3.186159);
   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 = 1640   ");
   text = ptstats->AddText("Mean  = -0.003204");
   text = ptstats->AddText("RMS   = 0.3187");
   text = ptstats->AddText("#chi^{2} / ndf = 119.8 / 91");
   text = ptstats->AddText("Constant = 41.12 #pm 1.42 ");
   text = ptstats->AddText("Mean     = -0.002771 #pm 0.007533 ");
   text = ptstats->AddText("Sigma    = 0.2838 #pm 0.0065 ");
   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);
}
