{
//=========Macro generated from canvas: c2/
//=========  (Thu Jun 10 07:43: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,-10.2375,1.25,92.1375);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow13 = new TH1F("ResoRow13","",100,-1,1);
   ResoRow13->SetBinContent(0,15);
   ResoRow13->SetBinContent(1,1);
   ResoRow13->SetBinContent(3,1);
   ResoRow13->SetBinContent(8,1);
   ResoRow13->SetBinContent(9,1);
   ResoRow13->SetBinContent(10,1);
   ResoRow13->SetBinContent(12,2);
   ResoRow13->SetBinContent(15,2);
   ResoRow13->SetBinContent(16,2);
   ResoRow13->SetBinContent(17,2);
   ResoRow13->SetBinContent(18,5);
   ResoRow13->SetBinContent(20,2);
   ResoRow13->SetBinContent(22,4);
   ResoRow13->SetBinContent(23,1);
   ResoRow13->SetBinContent(25,3);
   ResoRow13->SetBinContent(26,7);
   ResoRow13->SetBinContent(27,6);
   ResoRow13->SetBinContent(28,3);
   ResoRow13->SetBinContent(29,4);
   ResoRow13->SetBinContent(30,8);
   ResoRow13->SetBinContent(31,6);
   ResoRow13->SetBinContent(32,9);
   ResoRow13->SetBinContent(33,7);
   ResoRow13->SetBinContent(34,10);
   ResoRow13->SetBinContent(35,7);
   ResoRow13->SetBinContent(36,16);
   ResoRow13->SetBinContent(37,22);
   ResoRow13->SetBinContent(38,18);
   ResoRow13->SetBinContent(39,28);
   ResoRow13->SetBinContent(40,22);
   ResoRow13->SetBinContent(41,33);
   ResoRow13->SetBinContent(42,48);
   ResoRow13->SetBinContent(43,42);
   ResoRow13->SetBinContent(44,45);
   ResoRow13->SetBinContent(45,42);
   ResoRow13->SetBinContent(46,54);
   ResoRow13->SetBinContent(47,56);
   ResoRow13->SetBinContent(48,68);
   ResoRow13->SetBinContent(49,76);
   ResoRow13->SetBinContent(50,78);
   ResoRow13->SetBinContent(51,74);
   ResoRow13->SetBinContent(52,60);
   ResoRow13->SetBinContent(53,71);
   ResoRow13->SetBinContent(54,67);
   ResoRow13->SetBinContent(55,58);
   ResoRow13->SetBinContent(56,52);
   ResoRow13->SetBinContent(57,45);
   ResoRow13->SetBinContent(58,42);
   ResoRow13->SetBinContent(59,35);
   ResoRow13->SetBinContent(60,32);
   ResoRow13->SetBinContent(61,31);
   ResoRow13->SetBinContent(62,28);
   ResoRow13->SetBinContent(63,15);
   ResoRow13->SetBinContent(64,15);
   ResoRow13->SetBinContent(65,20);
   ResoRow13->SetBinContent(66,18);
   ResoRow13->SetBinContent(67,7);
   ResoRow13->SetBinContent(68,9);
   ResoRow13->SetBinContent(69,5);
   ResoRow13->SetBinContent(70,6);
   ResoRow13->SetBinContent(71,4);
   ResoRow13->SetBinContent(72,6);
   ResoRow13->SetBinContent(73,3);
   ResoRow13->SetBinContent(74,2);
   ResoRow13->SetBinContent(75,1);
   ResoRow13->SetBinContent(76,4);
   ResoRow13->SetBinContent(77,3);
   ResoRow13->SetBinContent(78,2);
   ResoRow13->SetBinContent(80,1);
   ResoRow13->SetBinContent(81,1);
   ResoRow13->SetBinContent(83,2);
   ResoRow13->SetBinContent(84,1);
   ResoRow13->SetBinContent(85,2);
   ResoRow13->SetBinContent(87,1);
   ResoRow13->SetBinContent(90,1);
   ResoRow13->SetBinContent(91,1);
   ResoRow13->SetBinContent(96,1);
   ResoRow13->SetBinContent(99,2);
   ResoRow13->SetBinContent(100,1);
   ResoRow13->SetBinContent(101,21);
   ResoRow13->SetEntries(1508);
   
   TF1 *ResoRowFit13 = new TF1("ResoRowFit13","gaus",-1,1);
   ResoRowFit13->SetFillColor(19);
   ResoRowFit13->SetFillStyle(0);
   ResoRowFit13->SetLineWidth(3);
   ResoRowFit13->SetChisquare(92.15946);
   ResoRowFit13->SetNDF(75);
   ResoRowFit13->SetParameter(0,63.91802);
   ResoRowFit13->SetParError(0,2.335612);
   ResoRowFit13->SetParLimits(0,0,0);
   ResoRowFit13->SetParameter(1,0.0007817843);
   ResoRowFit13->SetParError(1,0.004670535);
   ResoRowFit13->SetParLimits(1,0,0);
   ResoRowFit13->SetParameter(2,0.1723959);
   ResoRowFit13->SetParError(2,0.004295989);
   ResoRowFit13->SetParLimits(2,0,2.137466);
   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 = 1508   ");
   text = ptstats->AddText("Mean  = -0.005239");
   text = ptstats->AddText("RMS   = 0.2134");
   text = ptstats->AddText("#chi^{2} / ndf = 92.16 / 75");
   text = ptstats->AddText("Constant = 63.92 #pm 2.34 ");
   text = ptstats->AddText("Mean     = 0.0007818 #pm 0.0046705 ");
   text = ptstats->AddText("Sigma    = 0.1724 #pm 0.0043 ");
   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,-10.36875,1.25,93.31875);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow14 = new TH1F("ResoRow14","",100,-1,1);
   ResoRow14->SetBinContent(0,12);
   ResoRow14->SetBinContent(3,1);
   ResoRow14->SetBinContent(4,1);
   ResoRow14->SetBinContent(6,1);
   ResoRow14->SetBinContent(11,1);
   ResoRow14->SetBinContent(15,3);
   ResoRow14->SetBinContent(16,2);
   ResoRow14->SetBinContent(17,2);
   ResoRow14->SetBinContent(18,1);
   ResoRow14->SetBinContent(21,1);
   ResoRow14->SetBinContent(22,1);
   ResoRow14->SetBinContent(23,4);
   ResoRow14->SetBinContent(24,5);
   ResoRow14->SetBinContent(25,4);
   ResoRow14->SetBinContent(26,1);
   ResoRow14->SetBinContent(27,1);
   ResoRow14->SetBinContent(28,5);
   ResoRow14->SetBinContent(29,5);
   ResoRow14->SetBinContent(30,4);
   ResoRow14->SetBinContent(31,9);
   ResoRow14->SetBinContent(32,9);
   ResoRow14->SetBinContent(33,17);
   ResoRow14->SetBinContent(34,9);
   ResoRow14->SetBinContent(35,11);
   ResoRow14->SetBinContent(36,6);
   ResoRow14->SetBinContent(37,11);
   ResoRow14->SetBinContent(38,26);
   ResoRow14->SetBinContent(39,27);
   ResoRow14->SetBinContent(40,26);
   ResoRow14->SetBinContent(41,36);
   ResoRow14->SetBinContent(42,49);
   ResoRow14->SetBinContent(43,54);
   ResoRow14->SetBinContent(44,48);
   ResoRow14->SetBinContent(45,52);
   ResoRow14->SetBinContent(46,58);
   ResoRow14->SetBinContent(47,51);
   ResoRow14->SetBinContent(48,65);
   ResoRow14->SetBinContent(49,68);
   ResoRow14->SetBinContent(50,79);
   ResoRow14->SetBinContent(51,62);
   ResoRow14->SetBinContent(52,54);
   ResoRow14->SetBinContent(53,75);
   ResoRow14->SetBinContent(54,59);
   ResoRow14->SetBinContent(55,53);
   ResoRow14->SetBinContent(56,52);
   ResoRow14->SetBinContent(57,56);
   ResoRow14->SetBinContent(58,39);
   ResoRow14->SetBinContent(59,24);
   ResoRow14->SetBinContent(60,43);
   ResoRow14->SetBinContent(61,29);
   ResoRow14->SetBinContent(62,28);
   ResoRow14->SetBinContent(63,20);
   ResoRow14->SetBinContent(64,10);
   ResoRow14->SetBinContent(65,20);
   ResoRow14->SetBinContent(66,4);
   ResoRow14->SetBinContent(67,9);
   ResoRow14->SetBinContent(68,7);
   ResoRow14->SetBinContent(69,9);
   ResoRow14->SetBinContent(70,7);
   ResoRow14->SetBinContent(71,10);
   ResoRow14->SetBinContent(72,2);
   ResoRow14->SetBinContent(73,7);
   ResoRow14->SetBinContent(74,3);
   ResoRow14->SetBinContent(75,4);
   ResoRow14->SetBinContent(77,5);
   ResoRow14->SetBinContent(78,1);
   ResoRow14->SetBinContent(79,3);
   ResoRow14->SetBinContent(80,3);
   ResoRow14->SetBinContent(81,1);
   ResoRow14->SetBinContent(82,2);
   ResoRow14->SetBinContent(83,2);
   ResoRow14->SetBinContent(84,2);
   ResoRow14->SetBinContent(87,2);
   ResoRow14->SetBinContent(91,1);
   ResoRow14->SetBinContent(92,2);
   ResoRow14->SetBinContent(93,3);
   ResoRow14->SetBinContent(95,1);
   ResoRow14->SetBinContent(98,1);
   ResoRow14->SetBinContent(101,27);
   ResoRow14->SetEntries(1508);
   
   TF1 *ResoRowFit14 = new TF1("ResoRowFit14","gaus",-1,1);
   ResoRowFit14->SetFillColor(19);
   ResoRowFit14->SetFillStyle(0);
   ResoRowFit14->SetLineWidth(3);
   ResoRowFit14->SetChisquare(140.8815);
   ResoRowFit14->SetNDF(74);
   ResoRowFit14->SetParameter(0,63.96369);
   ResoRowFit14->SetParError(0,2.380888);
   ResoRowFit14->SetParLimits(0,0,0);
   ResoRowFit14->SetParameter(1,-0.005399323);
   ResoRowFit14->SetParError(1,0.004560598);
   ResoRowFit14->SetParLimits(1,0,0);
   ResoRowFit14->SetParameter(2,0.1657538);
   ResoRowFit14->SetParError(2,0.004188117);
   ResoRowFit14->SetParLimits(2,0,2.154728);
   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 = 1508   ");
   text = ptstats->AddText("Mean  = -0.0004768");
   text = ptstats->AddText("RMS   = 0.2156");
   text = ptstats->AddText("#chi^{2} / ndf = 140.9 / 74");
   text = ptstats->AddText("Constant = 63.96 #pm 2.38 ");
   text = ptstats->AddText("Mean     = -0.005399 #pm 0.004561 ");
   text = ptstats->AddText("Sigma    = 0.1658 #pm 0.0042 ");
   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,-11.025,1.25,99.225);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow15 = new TH1F("ResoRow15","",100,-1,1);
   ResoRow15->SetBinContent(0,10);
   ResoRow15->SetBinContent(2,1);
   ResoRow15->SetBinContent(3,1);
   ResoRow15->SetBinContent(5,2);
   ResoRow15->SetBinContent(11,2);
   ResoRow15->SetBinContent(12,1);
   ResoRow15->SetBinContent(13,2);
   ResoRow15->SetBinContent(14,1);
   ResoRow15->SetBinContent(15,3);
   ResoRow15->SetBinContent(16,1);
   ResoRow15->SetBinContent(17,2);
   ResoRow15->SetBinContent(18,1);
   ResoRow15->SetBinContent(19,2);
   ResoRow15->SetBinContent(20,2);
   ResoRow15->SetBinContent(21,2);
   ResoRow15->SetBinContent(22,1);
   ResoRow15->SetBinContent(23,2);
   ResoRow15->SetBinContent(25,1);
   ResoRow15->SetBinContent(26,2);
   ResoRow15->SetBinContent(27,3);
   ResoRow15->SetBinContent(28,7);
   ResoRow15->SetBinContent(29,9);
   ResoRow15->SetBinContent(30,5);
   ResoRow15->SetBinContent(31,5);
   ResoRow15->SetBinContent(32,7);
   ResoRow15->SetBinContent(33,7);
   ResoRow15->SetBinContent(34,8);
   ResoRow15->SetBinContent(35,13);
   ResoRow15->SetBinContent(36,16);
   ResoRow15->SetBinContent(37,26);
   ResoRow15->SetBinContent(38,27);
   ResoRow15->SetBinContent(39,21);
   ResoRow15->SetBinContent(40,29);
   ResoRow15->SetBinContent(41,43);
   ResoRow15->SetBinContent(42,37);
   ResoRow15->SetBinContent(43,42);
   ResoRow15->SetBinContent(44,40);
   ResoRow15->SetBinContent(45,46);
   ResoRow15->SetBinContent(46,51);
   ResoRow15->SetBinContent(47,68);
   ResoRow15->SetBinContent(48,56);
   ResoRow15->SetBinContent(49,58);
   ResoRow15->SetBinContent(50,84);
   ResoRow15->SetBinContent(51,72);
   ResoRow15->SetBinContent(52,69);
   ResoRow15->SetBinContent(53,57);
   ResoRow15->SetBinContent(54,55);
   ResoRow15->SetBinContent(55,57);
   ResoRow15->SetBinContent(56,68);
   ResoRow15->SetBinContent(57,37);
   ResoRow15->SetBinContent(58,46);
   ResoRow15->SetBinContent(59,23);
   ResoRow15->SetBinContent(60,30);
   ResoRow15->SetBinContent(61,25);
   ResoRow15->SetBinContent(62,24);
   ResoRow15->SetBinContent(63,23);
   ResoRow15->SetBinContent(64,23);
   ResoRow15->SetBinContent(65,17);
   ResoRow15->SetBinContent(66,17);
   ResoRow15->SetBinContent(67,13);
   ResoRow15->SetBinContent(68,11);
   ResoRow15->SetBinContent(69,9);
   ResoRow15->SetBinContent(70,2);
   ResoRow15->SetBinContent(71,8);
   ResoRow15->SetBinContent(72,5);
   ResoRow15->SetBinContent(73,5);
   ResoRow15->SetBinContent(74,3);
   ResoRow15->SetBinContent(75,2);
   ResoRow15->SetBinContent(76,2);
   ResoRow15->SetBinContent(77,4);
   ResoRow15->SetBinContent(78,3);
   ResoRow15->SetBinContent(79,4);
   ResoRow15->SetBinContent(81,2);
   ResoRow15->SetBinContent(82,3);
   ResoRow15->SetBinContent(83,2);
   ResoRow15->SetBinContent(84,2);
   ResoRow15->SetBinContent(87,2);
   ResoRow15->SetBinContent(98,1);
   ResoRow15->SetBinContent(100,2);
   ResoRow15->SetBinContent(101,33);
   ResoRow15->SetEntries(1508);
   
   TF1 *ResoRowFit15 = new TF1("ResoRowFit15","gaus",-1,1);
   ResoRowFit15->SetFillColor(19);
   ResoRowFit15->SetFillStyle(0);
   ResoRowFit15->SetLineWidth(3);
   ResoRowFit15->SetChisquare(104.8217);
   ResoRowFit15->SetNDF(75);
   ResoRowFit15->SetParameter(0,59.96562);
   ResoRowFit15->SetParError(0,2.169432);
   ResoRowFit15->SetParLimits(0,0,0);
   ResoRowFit15->SetParameter(1,-0.002869017);
   ResoRowFit15->SetParError(1,0.004933662);
   ResoRowFit15->SetParLimits(1,0,0);
   ResoRowFit15->SetParameter(2,0.181148);
   ResoRowFit15->SetParError(2,0.004371577);
   ResoRowFit15->SetParLimits(2,0,2.192994);
   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 = 1508   ");
   text = ptstats->AddText("Mean  = -0.002227");
   text = ptstats->AddText("RMS   = 0.2192");
   text = ptstats->AddText("#chi^{2} / ndf = 104.8 / 75");
   text = ptstats->AddText("Constant = 59.97 #pm 2.17 ");
   text = ptstats->AddText("Mean     = -0.002869 #pm 0.004934 ");
   text = ptstats->AddText("Sigma    = 0.1811 #pm 0.0044 ");
   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,-10.63125,1.25,95.68125);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow16 = new TH1F("ResoRow16","",100,-1,1);
   ResoRow16->SetBinContent(0,11);
   ResoRow16->SetBinContent(1,1);
   ResoRow16->SetBinContent(2,1);
   ResoRow16->SetBinContent(6,1);
   ResoRow16->SetBinContent(9,1);
   ResoRow16->SetBinContent(11,1);
   ResoRow16->SetBinContent(12,1);
   ResoRow16->SetBinContent(13,2);
   ResoRow16->SetBinContent(15,3);
   ResoRow16->SetBinContent(16,1);
   ResoRow16->SetBinContent(18,1);
   ResoRow16->SetBinContent(20,2);
   ResoRow16->SetBinContent(21,1);
   ResoRow16->SetBinContent(23,6);
   ResoRow16->SetBinContent(24,6);
   ResoRow16->SetBinContent(25,5);
   ResoRow16->SetBinContent(26,4);
   ResoRow16->SetBinContent(27,3);
   ResoRow16->SetBinContent(28,2);
   ResoRow16->SetBinContent(29,7);
   ResoRow16->SetBinContent(30,6);
   ResoRow16->SetBinContent(31,4);
   ResoRow16->SetBinContent(32,8);
   ResoRow16->SetBinContent(33,3);
   ResoRow16->SetBinContent(34,18);
   ResoRow16->SetBinContent(35,15);
   ResoRow16->SetBinContent(36,15);
   ResoRow16->SetBinContent(37,16);
   ResoRow16->SetBinContent(38,14);
   ResoRow16->SetBinContent(39,29);
   ResoRow16->SetBinContent(40,38);
   ResoRow16->SetBinContent(41,38);
   ResoRow16->SetBinContent(42,35);
   ResoRow16->SetBinContent(43,34);
   ResoRow16->SetBinContent(44,48);
   ResoRow16->SetBinContent(45,45);
   ResoRow16->SetBinContent(46,59);
   ResoRow16->SetBinContent(47,78);
   ResoRow16->SetBinContent(48,58);
   ResoRow16->SetBinContent(49,78);
   ResoRow16->SetBinContent(50,63);
   ResoRow16->SetBinContent(51,81);
   ResoRow16->SetBinContent(52,64);
   ResoRow16->SetBinContent(53,60);
   ResoRow16->SetBinContent(54,65);
   ResoRow16->SetBinContent(55,54);
   ResoRow16->SetBinContent(56,46);
   ResoRow16->SetBinContent(57,46);
   ResoRow16->SetBinContent(58,41);
   ResoRow16->SetBinContent(59,47);
   ResoRow16->SetBinContent(60,34);
   ResoRow16->SetBinContent(61,23);
   ResoRow16->SetBinContent(62,20);
   ResoRow16->SetBinContent(63,15);
   ResoRow16->SetBinContent(64,14);
   ResoRow16->SetBinContent(65,8);
   ResoRow16->SetBinContent(66,16);
   ResoRow16->SetBinContent(67,16);
   ResoRow16->SetBinContent(68,10);
   ResoRow16->SetBinContent(69,10);
   ResoRow16->SetBinContent(70,14);
   ResoRow16->SetBinContent(71,3);
   ResoRow16->SetBinContent(72,2);
   ResoRow16->SetBinContent(73,4);
   ResoRow16->SetBinContent(74,1);
   ResoRow16->SetBinContent(75,5);
   ResoRow16->SetBinContent(76,1);
   ResoRow16->SetBinContent(77,2);
   ResoRow16->SetBinContent(78,2);
   ResoRow16->SetBinContent(79,2);
   ResoRow16->SetBinContent(81,2);
   ResoRow16->SetBinContent(82,2);
   ResoRow16->SetBinContent(84,2);
   ResoRow16->SetBinContent(86,1);
   ResoRow16->SetBinContent(87,1);
   ResoRow16->SetBinContent(88,1);
   ResoRow16->SetBinContent(89,1);
   ResoRow16->SetBinContent(90,1);
   ResoRow16->SetBinContent(92,1);
   ResoRow16->SetBinContent(93,1);
   ResoRow16->SetBinContent(94,1);
   ResoRow16->SetBinContent(96,1);
   ResoRow16->SetBinContent(101,25);
   ResoRow16->SetEntries(1508);
   
   TF1 *ResoRowFit16 = new TF1("ResoRowFit16","gaus",-1,1);
   ResoRowFit16->SetFillColor(19);
   ResoRowFit16->SetFillStyle(0);
   ResoRowFit16->SetLineWidth(3);
   ResoRowFit16->SetChisquare(122.8969);
   ResoRowFit16->SetNDF(78);
   ResoRowFit16->SetParameter(0,63.72064);
   ResoRowFit16->SetParError(0,2.345634);
   ResoRowFit16->SetParLimits(0,0,0);
   ResoRowFit16->SetParameter(1,-0.002824759);
   ResoRowFit16->SetParError(1,0.004613208);
   ResoRowFit16->SetParLimits(1,0,0);
   ResoRowFit16->SetParameter(2,0.1689937);
   ResoRowFit16->SetParError(2,0.004203828);
   ResoRowFit16->SetParLimits(2,0,2.14684);
   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 = 1508   ");
   text = ptstats->AddText("Mean  = -0.006572");
   text = ptstats->AddText("RMS   = 0.2146");
   text = ptstats->AddText("#chi^{2} / ndf = 122.9 / 78");
   text = ptstats->AddText("Constant = 63.72 #pm 2.35 ");
   text = ptstats->AddText("Mean     = -0.002825 #pm 0.004613 ");
   text = ptstats->AddText("Sigma    = 0.169 #pm 0.004 ");
   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,-10.36875,1.25,93.31875);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow17 = new TH1F("ResoRow17","",100,-1,1);
   ResoRow17->SetBinContent(0,9);
   ResoRow17->SetBinContent(8,1);
   ResoRow17->SetBinContent(9,1);
   ResoRow17->SetBinContent(10,1);
   ResoRow17->SetBinContent(13,1);
   ResoRow17->SetBinContent(14,1);
   ResoRow17->SetBinContent(15,1);
   ResoRow17->SetBinContent(17,1);
   ResoRow17->SetBinContent(18,1);
   ResoRow17->SetBinContent(19,2);
   ResoRow17->SetBinContent(20,1);
   ResoRow17->SetBinContent(21,3);
   ResoRow17->SetBinContent(22,5);
   ResoRow17->SetBinContent(23,2);
   ResoRow17->SetBinContent(24,3);
   ResoRow17->SetBinContent(25,2);
   ResoRow17->SetBinContent(26,6);
   ResoRow17->SetBinContent(27,4);
   ResoRow17->SetBinContent(28,6);
   ResoRow17->SetBinContent(29,7);
   ResoRow17->SetBinContent(30,7);
   ResoRow17->SetBinContent(31,10);
   ResoRow17->SetBinContent(32,9);
   ResoRow17->SetBinContent(33,3);
   ResoRow17->SetBinContent(34,20);
   ResoRow17->SetBinContent(35,11);
   ResoRow17->SetBinContent(36,23);
   ResoRow17->SetBinContent(37,15);
   ResoRow17->SetBinContent(38,16);
   ResoRow17->SetBinContent(39,21);
   ResoRow17->SetBinContent(40,21);
   ResoRow17->SetBinContent(41,30);
   ResoRow17->SetBinContent(42,34);
   ResoRow17->SetBinContent(43,38);
   ResoRow17->SetBinContent(44,52);
   ResoRow17->SetBinContent(45,65);
   ResoRow17->SetBinContent(46,62);
   ResoRow17->SetBinContent(47,53);
   ResoRow17->SetBinContent(48,54);
   ResoRow17->SetBinContent(49,75);
   ResoRow17->SetBinContent(50,74);
   ResoRow17->SetBinContent(51,79);
   ResoRow17->SetBinContent(52,76);
   ResoRow17->SetBinContent(53,51);
   ResoRow17->SetBinContent(54,60);
   ResoRow17->SetBinContent(55,70);
   ResoRow17->SetBinContent(56,58);
   ResoRow17->SetBinContent(57,48);
   ResoRow17->SetBinContent(58,39);
   ResoRow17->SetBinContent(59,38);
   ResoRow17->SetBinContent(60,33);
   ResoRow17->SetBinContent(61,27);
   ResoRow17->SetBinContent(62,25);
   ResoRow17->SetBinContent(63,14);
   ResoRow17->SetBinContent(64,17);
   ResoRow17->SetBinContent(65,12);
   ResoRow17->SetBinContent(66,10);
   ResoRow17->SetBinContent(67,13);
   ResoRow17->SetBinContent(68,10);
   ResoRow17->SetBinContent(69,1);
   ResoRow17->SetBinContent(70,8);
   ResoRow17->SetBinContent(71,3);
   ResoRow17->SetBinContent(72,3);
   ResoRow17->SetBinContent(73,7);
   ResoRow17->SetBinContent(74,2);
   ResoRow17->SetBinContent(75,3);
   ResoRow17->SetBinContent(76,3);
   ResoRow17->SetBinContent(77,1);
   ResoRow17->SetBinContent(78,5);
   ResoRow17->SetBinContent(79,1);
   ResoRow17->SetBinContent(81,1);
   ResoRow17->SetBinContent(82,1);
   ResoRow17->SetBinContent(83,2);
   ResoRow17->SetBinContent(84,1);
   ResoRow17->SetBinContent(87,1);
   ResoRow17->SetBinContent(88,1);
   ResoRow17->SetBinContent(93,1);
   ResoRow17->SetBinContent(95,1);
   ResoRow17->SetBinContent(96,1);
   ResoRow17->SetBinContent(97,1);
   ResoRow17->SetBinContent(98,2);
   ResoRow17->SetBinContent(101,27);
   ResoRow17->SetEntries(1508);
   
   TF1 *ResoRowFit17 = new TF1("ResoRowFit17","gaus",-1,1);
   ResoRowFit17->SetFillColor(19);
   ResoRowFit17->SetFillStyle(0);
   ResoRowFit17->SetLineWidth(3);
   ResoRowFit17->SetChisquare(135.4437);
   ResoRowFit17->SetNDF(77);
   ResoRowFit17->SetParameter(0,66.09483);
   ResoRowFit17->SetParError(0,2.441272);
   ResoRowFit17->SetParLimits(0,0,0);
   ResoRowFit17->SetParameter(1,-0.003244992);
   ResoRowFit17->SetParError(1,0.004521773);
   ResoRowFit17->SetParLimits(1,0,0);
   ResoRowFit17->SetParameter(2,0.1613585);
   ResoRowFit17->SetParError(2,0.004007308);
   ResoRowFit17->SetParLimits(2,0,2.106405);
   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 = 1508   ");
   text = ptstats->AddText("Mean  = -0.006463");
   text = ptstats->AddText("RMS   = 0.2105");
   text = ptstats->AddText("#chi^{2} / ndf = 135.4 / 77");
   text = ptstats->AddText("Constant = 66.09 #pm 2.44 ");
   text = ptstats->AddText("Mean     = -0.003245 #pm 0.004522 ");
   text = ptstats->AddText("Sigma    = 0.1614 #pm 0.0040 ");
   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,-10.2375,1.25,92.1375);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow18 = new TH1F("ResoRow18","",100,-1,1);
   ResoRow18->SetBinContent(0,10);
   ResoRow18->SetBinContent(2,1);
   ResoRow18->SetBinContent(4,1);
   ResoRow18->SetBinContent(8,1);
   ResoRow18->SetBinContent(9,2);
   ResoRow18->SetBinContent(10,1);
   ResoRow18->SetBinContent(11,1);
   ResoRow18->SetBinContent(13,1);
   ResoRow18->SetBinContent(15,2);
   ResoRow18->SetBinContent(16,2);
   ResoRow18->SetBinContent(19,1);
   ResoRow18->SetBinContent(20,2);
   ResoRow18->SetBinContent(22,1);
   ResoRow18->SetBinContent(23,1);
   ResoRow18->SetBinContent(24,3);
   ResoRow18->SetBinContent(25,6);
   ResoRow18->SetBinContent(26,2);
   ResoRow18->SetBinContent(27,4);
   ResoRow18->SetBinContent(28,5);
   ResoRow18->SetBinContent(29,2);
   ResoRow18->SetBinContent(30,9);
   ResoRow18->SetBinContent(31,4);
   ResoRow18->SetBinContent(32,9);
   ResoRow18->SetBinContent(33,15);
   ResoRow18->SetBinContent(34,10);
   ResoRow18->SetBinContent(35,18);
   ResoRow18->SetBinContent(36,16);
   ResoRow18->SetBinContent(37,10);
   ResoRow18->SetBinContent(38,26);
   ResoRow18->SetBinContent(39,31);
   ResoRow18->SetBinContent(40,32);
   ResoRow18->SetBinContent(41,42);
   ResoRow18->SetBinContent(42,45);
   ResoRow18->SetBinContent(43,44);
   ResoRow18->SetBinContent(44,40);
   ResoRow18->SetBinContent(45,60);
   ResoRow18->SetBinContent(46,64);
   ResoRow18->SetBinContent(47,74);
   ResoRow18->SetBinContent(48,55);
   ResoRow18->SetBinContent(49,59);
   ResoRow18->SetBinContent(50,78);
   ResoRow18->SetBinContent(51,56);
   ResoRow18->SetBinContent(52,70);
   ResoRow18->SetBinContent(53,59);
   ResoRow18->SetBinContent(54,57);
   ResoRow18->SetBinContent(55,51);
   ResoRow18->SetBinContent(56,53);
   ResoRow18->SetBinContent(57,40);
   ResoRow18->SetBinContent(58,33);
   ResoRow18->SetBinContent(59,34);
   ResoRow18->SetBinContent(60,39);
   ResoRow18->SetBinContent(61,35);
   ResoRow18->SetBinContent(62,29);
   ResoRow18->SetBinContent(63,15);
   ResoRow18->SetBinContent(64,22);
   ResoRow18->SetBinContent(65,16);
   ResoRow18->SetBinContent(66,15);
   ResoRow18->SetBinContent(67,10);
   ResoRow18->SetBinContent(68,9);
   ResoRow18->SetBinContent(69,6);
   ResoRow18->SetBinContent(70,9);
   ResoRow18->SetBinContent(71,8);
   ResoRow18->SetBinContent(72,4);
   ResoRow18->SetBinContent(73,3);
   ResoRow18->SetBinContent(74,1);
   ResoRow18->SetBinContent(75,1);
   ResoRow18->SetBinContent(77,2);
   ResoRow18->SetBinContent(78,1);
   ResoRow18->SetBinContent(79,2);
   ResoRow18->SetBinContent(80,1);
   ResoRow18->SetBinContent(81,2);
   ResoRow18->SetBinContent(84,2);
   ResoRow18->SetBinContent(85,1);
   ResoRow18->SetBinContent(86,3);
   ResoRow18->SetBinContent(87,1);
   ResoRow18->SetBinContent(91,2);
   ResoRow18->SetBinContent(95,1);
   ResoRow18->SetBinContent(97,2);
   ResoRow18->SetBinContent(98,1);
   ResoRow18->SetBinContent(101,22);
   ResoRow18->SetEntries(1508);
   
   TF1 *ResoRowFit18 = new TF1("ResoRowFit18","gaus",-1,1);
   ResoRowFit18->SetFillColor(19);
   ResoRowFit18->SetFillStyle(0);
   ResoRowFit18->SetLineWidth(3);
   ResoRowFit18->SetChisquare(88.54021);
   ResoRowFit18->SetNDF(75);
   ResoRowFit18->SetParameter(0,61.68811);
   ResoRowFit18->SetParError(0,2.149946);
   ResoRowFit18->SetParLimits(0,0,0);
   ResoRowFit18->SetParameter(1,-0.005457965);
   ResoRowFit18->SetParError(1,0.0048541);
   ResoRowFit18->SetParLimits(1,0,0);
   ResoRowFit18->SetParameter(2,0.17968);
   ResoRowFit18->SetParError(2,0.00403693);
   ResoRowFit18->SetParLimits(2,0,2.140384);
   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 = 1508   ");
   text = ptstats->AddText("Mean  = -0.008883");
   text = ptstats->AddText("RMS   =  0.214");
   text = ptstats->AddText("#chi^{2} / ndf = 88.54 / 75");
   text = ptstats->AddText("Constant = 61.69 #pm 2.15 ");
   text = ptstats->AddText("Mean     = -0.005458 #pm 0.004854 ");
   text = ptstats->AddText("Sigma    = 0.1797 #pm 0.0040 ");
   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);
}
