{
//=========Macro generated from canvas: c2/
//=========  (Mon Jun  7 20:50:39 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,-16.275,1.25,146.475);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow13 = new TH1F("ResoRow13","",100,-1,1);
   ResoRow13->SetBinContent(0,12);
   ResoRow13->SetBinContent(2,1);
   ResoRow13->SetBinContent(3,1);
   ResoRow13->SetBinContent(6,1);
   ResoRow13->SetBinContent(14,1);
   ResoRow13->SetBinContent(15,2);
   ResoRow13->SetBinContent(17,3);
   ResoRow13->SetBinContent(18,1);
   ResoRow13->SetBinContent(19,1);
   ResoRow13->SetBinContent(20,1);
   ResoRow13->SetBinContent(21,2);
   ResoRow13->SetBinContent(22,3);
   ResoRow13->SetBinContent(23,5);
   ResoRow13->SetBinContent(24,1);
   ResoRow13->SetBinContent(25,2);
   ResoRow13->SetBinContent(26,1);
   ResoRow13->SetBinContent(27,1);
   ResoRow13->SetBinContent(28,1);
   ResoRow13->SetBinContent(29,2);
   ResoRow13->SetBinContent(30,2);
   ResoRow13->SetBinContent(31,2);
   ResoRow13->SetBinContent(32,2);
   ResoRow13->SetBinContent(33,7);
   ResoRow13->SetBinContent(34,7);
   ResoRow13->SetBinContent(35,3);
   ResoRow13->SetBinContent(36,7);
   ResoRow13->SetBinContent(37,6);
   ResoRow13->SetBinContent(38,7);
   ResoRow13->SetBinContent(39,17);
   ResoRow13->SetBinContent(40,18);
   ResoRow13->SetBinContent(41,19);
   ResoRow13->SetBinContent(42,33);
   ResoRow13->SetBinContent(43,32);
   ResoRow13->SetBinContent(44,43);
   ResoRow13->SetBinContent(45,58);
   ResoRow13->SetBinContent(46,68);
   ResoRow13->SetBinContent(47,99);
   ResoRow13->SetBinContent(48,118);
   ResoRow13->SetBinContent(49,119);
   ResoRow13->SetBinContent(50,124);
   ResoRow13->SetBinContent(51,109);
   ResoRow13->SetBinContent(52,113);
   ResoRow13->SetBinContent(53,92);
   ResoRow13->SetBinContent(54,75);
   ResoRow13->SetBinContent(55,73);
   ResoRow13->SetBinContent(56,69);
   ResoRow13->SetBinContent(57,40);
   ResoRow13->SetBinContent(58,33);
   ResoRow13->SetBinContent(59,20);
   ResoRow13->SetBinContent(60,18);
   ResoRow13->SetBinContent(61,12);
   ResoRow13->SetBinContent(62,18);
   ResoRow13->SetBinContent(63,8);
   ResoRow13->SetBinContent(64,11);
   ResoRow13->SetBinContent(65,7);
   ResoRow13->SetBinContent(66,5);
   ResoRow13->SetBinContent(67,3);
   ResoRow13->SetBinContent(68,1);
   ResoRow13->SetBinContent(69,3);
   ResoRow13->SetBinContent(70,5);
   ResoRow13->SetBinContent(71,3);
   ResoRow13->SetBinContent(72,3);
   ResoRow13->SetBinContent(73,2);
   ResoRow13->SetBinContent(74,1);
   ResoRow13->SetBinContent(75,2);
   ResoRow13->SetBinContent(76,1);
   ResoRow13->SetBinContent(77,2);
   ResoRow13->SetBinContent(79,1);
   ResoRow13->SetBinContent(80,1);
   ResoRow13->SetBinContent(81,1);
   ResoRow13->SetBinContent(83,1);
   ResoRow13->SetBinContent(86,2);
   ResoRow13->SetBinContent(99,1);
   ResoRow13->SetBinContent(101,22);
   ResoRow13->SetEntries(1591);
   
   TF1 *ResoRowFit13 = new TF1("ResoRowFit13","gaus",-1,1);
   ResoRowFit13->SetFillColor(19);
   ResoRowFit13->SetFillStyle(0);
   ResoRowFit13->SetLineWidth(3);
   ResoRowFit13->SetChisquare(123.4822);
   ResoRowFit13->SetNDF(69);
   ResoRowFit13->SetParameter(0,106.9571);
   ResoRowFit13->SetParError(0,4.013392);
   ResoRowFit13->SetParLimits(0,0,0);
   ResoRowFit13->SetParameter(1,-0.004023556);
   ResoRowFit13->SetParError(1,0.002824922);
   ResoRowFit13->SetParLimits(1,0,0);
   ResoRowFit13->SetParameter(2,0.1069386);
   ResoRowFit13->SetParError(2,0.002849235);
   ResoRowFit13->SetParLimits(2,0,1.592833);
   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 = 1591   ");
   text = ptstats->AddText("Mean  = -0.008252");
   text = ptstats->AddText("RMS   = 0.1593");
   text = ptstats->AddText("#chi^{2} / ndf = 123.5 / 69");
   text = ptstats->AddText("Constant =   107 #pm 4.0 ");
   text = ptstats->AddText("Mean     = -0.004024 #pm 0.002825 ");
   text = ptstats->AddText("Sigma    = 0.1069 #pm 0.0028 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow13->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow13->GetListOfFunctions());
   ResoRow13->GetXaxis()->SetTitle("residual / mm");
   ResoRow13->GetYaxis()->SetTitle("counts");
   ResoRow13->Draw("");
   c2_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,-16.14375,1.25,145.2938);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow14 = new TH1F("ResoRow14","",100,-1,1);
   ResoRow14->SetBinContent(0,7);
   ResoRow14->SetBinContent(5,1);
   ResoRow14->SetBinContent(7,3);
   ResoRow14->SetBinContent(9,1);
   ResoRow14->SetBinContent(10,1);
   ResoRow14->SetBinContent(13,2);
   ResoRow14->SetBinContent(14,1);
   ResoRow14->SetBinContent(17,2);
   ResoRow14->SetBinContent(19,4);
   ResoRow14->SetBinContent(20,1);
   ResoRow14->SetBinContent(21,3);
   ResoRow14->SetBinContent(24,1);
   ResoRow14->SetBinContent(25,4);
   ResoRow14->SetBinContent(26,2);
   ResoRow14->SetBinContent(27,2);
   ResoRow14->SetBinContent(28,3);
   ResoRow14->SetBinContent(29,2);
   ResoRow14->SetBinContent(30,2);
   ResoRow14->SetBinContent(31,5);
   ResoRow14->SetBinContent(33,3);
   ResoRow14->SetBinContent(34,6);
   ResoRow14->SetBinContent(35,6);
   ResoRow14->SetBinContent(36,12);
   ResoRow14->SetBinContent(37,5);
   ResoRow14->SetBinContent(38,17);
   ResoRow14->SetBinContent(39,9);
   ResoRow14->SetBinContent(40,16);
   ResoRow14->SetBinContent(41,21);
   ResoRow14->SetBinContent(42,38);
   ResoRow14->SetBinContent(43,42);
   ResoRow14->SetBinContent(44,52);
   ResoRow14->SetBinContent(45,53);
   ResoRow14->SetBinContent(46,100);
   ResoRow14->SetBinContent(47,82);
   ResoRow14->SetBinContent(48,98);
   ResoRow14->SetBinContent(49,123);
   ResoRow14->SetBinContent(50,113);
   ResoRow14->SetBinContent(51,105);
   ResoRow14->SetBinContent(52,122);
   ResoRow14->SetBinContent(53,106);
   ResoRow14->SetBinContent(54,74);
   ResoRow14->SetBinContent(55,54);
   ResoRow14->SetBinContent(56,41);
   ResoRow14->SetBinContent(57,44);
   ResoRow14->SetBinContent(58,44);
   ResoRow14->SetBinContent(59,20);
   ResoRow14->SetBinContent(60,20);
   ResoRow14->SetBinContent(61,18);
   ResoRow14->SetBinContent(62,17);
   ResoRow14->SetBinContent(63,8);
   ResoRow14->SetBinContent(64,7);
   ResoRow14->SetBinContent(65,10);
   ResoRow14->SetBinContent(66,7);
   ResoRow14->SetBinContent(67,5);
   ResoRow14->SetBinContent(68,3);
   ResoRow14->SetBinContent(69,6);
   ResoRow14->SetBinContent(70,2);
   ResoRow14->SetBinContent(71,1);
   ResoRow14->SetBinContent(72,3);
   ResoRow14->SetBinContent(73,2);
   ResoRow14->SetBinContent(75,1);
   ResoRow14->SetBinContent(76,1);
   ResoRow14->SetBinContent(77,1);
   ResoRow14->SetBinContent(78,2);
   ResoRow14->SetBinContent(80,1);
   ResoRow14->SetBinContent(81,1);
   ResoRow14->SetBinContent(82,1);
   ResoRow14->SetBinContent(86,2);
   ResoRow14->SetBinContent(91,1);
   ResoRow14->SetBinContent(97,1);
   ResoRow14->SetBinContent(100,1);
   ResoRow14->SetBinContent(101,16);
   ResoRow14->SetEntries(1591);
   
   TF1 *ResoRowFit14 = new TF1("ResoRowFit14","gaus",-1,1);
   ResoRowFit14->SetFillColor(19);
   ResoRowFit14->SetFillStyle(0);
   ResoRowFit14->SetLineWidth(3);
   ResoRowFit14->SetChisquare(143.8913);
   ResoRowFit14->SetNDF(67);
   ResoRowFit14->SetParameter(0,101.7658);
   ResoRowFit14->SetParError(0,3.874269);
   ResoRowFit14->SetParLimits(0,0,0);
   ResoRowFit14->SetParameter(1,-0.007531989);
   ResoRowFit14->SetParError(1,0.002993615);
   ResoRowFit14->SetParLimits(1,0,0);
   ResoRowFit14->SetParameter(2,0.111698);
   ResoRowFit14->SetParError(2,0.00307855);
   ResoRowFit14->SetParLimits(2,0,1.662237);
   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 = 1591   ");
   text = ptstats->AddText("Mean  = -0.01218");
   text = ptstats->AddText("RMS   = 0.1663");
   text = ptstats->AddText("#chi^{2} / ndf = 143.9 / 67");
   text = ptstats->AddText("Constant = 101.8 #pm 3.9 ");
   text = ptstats->AddText("Mean     = -0.007532 #pm 0.002994 ");
   text = ptstats->AddText("Sigma    = 0.1117 #pm 0.0031 ");
   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,-17.45625,1.25,157.1063);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow15 = new TH1F("ResoRow15","",100,-1,1);
   ResoRow15->SetBinContent(0,6);
   ResoRow15->SetBinContent(1,1);
   ResoRow15->SetBinContent(2,1);
   ResoRow15->SetBinContent(3,1);
   ResoRow15->SetBinContent(4,1);
   ResoRow15->SetBinContent(7,1);
   ResoRow15->SetBinContent(8,2);
   ResoRow15->SetBinContent(9,1);
   ResoRow15->SetBinContent(11,1);
   ResoRow15->SetBinContent(12,1);
   ResoRow15->SetBinContent(14,1);
   ResoRow15->SetBinContent(15,3);
   ResoRow15->SetBinContent(17,1);
   ResoRow15->SetBinContent(18,1);
   ResoRow15->SetBinContent(20,1);
   ResoRow15->SetBinContent(22,2);
   ResoRow15->SetBinContent(24,2);
   ResoRow15->SetBinContent(25,1);
   ResoRow15->SetBinContent(27,3);
   ResoRow15->SetBinContent(28,3);
   ResoRow15->SetBinContent(29,2);
   ResoRow15->SetBinContent(30,4);
   ResoRow15->SetBinContent(31,2);
   ResoRow15->SetBinContent(32,1);
   ResoRow15->SetBinContent(33,5);
   ResoRow15->SetBinContent(34,6);
   ResoRow15->SetBinContent(35,6);
   ResoRow15->SetBinContent(36,11);
   ResoRow15->SetBinContent(37,8);
   ResoRow15->SetBinContent(38,14);
   ResoRow15->SetBinContent(39,11);
   ResoRow15->SetBinContent(40,8);
   ResoRow15->SetBinContent(41,24);
   ResoRow15->SetBinContent(42,16);
   ResoRow15->SetBinContent(43,34);
   ResoRow15->SetBinContent(44,53);
   ResoRow15->SetBinContent(45,57);
   ResoRow15->SetBinContent(46,63);
   ResoRow15->SetBinContent(47,94);
   ResoRow15->SetBinContent(48,105);
   ResoRow15->SetBinContent(49,108);
   ResoRow15->SetBinContent(50,131);
   ResoRow15->SetBinContent(51,108);
   ResoRow15->SetBinContent(52,133);
   ResoRow15->SetBinContent(53,99);
   ResoRow15->SetBinContent(54,107);
   ResoRow15->SetBinContent(55,64);
   ResoRow15->SetBinContent(56,56);
   ResoRow15->SetBinContent(57,46);
   ResoRow15->SetBinContent(58,22);
   ResoRow15->SetBinContent(59,30);
   ResoRow15->SetBinContent(60,16);
   ResoRow15->SetBinContent(61,8);
   ResoRow15->SetBinContent(62,15);
   ResoRow15->SetBinContent(63,18);
   ResoRow15->SetBinContent(64,10);
   ResoRow15->SetBinContent(65,7);
   ResoRow15->SetBinContent(66,2);
   ResoRow15->SetBinContent(67,6);
   ResoRow15->SetBinContent(68,7);
   ResoRow15->SetBinContent(70,3);
   ResoRow15->SetBinContent(73,1);
   ResoRow15->SetBinContent(75,1);
   ResoRow15->SetBinContent(76,1);
   ResoRow15->SetBinContent(79,1);
   ResoRow15->SetBinContent(82,2);
   ResoRow15->SetBinContent(84,1);
   ResoRow15->SetBinContent(89,2);
   ResoRow15->SetBinContent(93,1);
   ResoRow15->SetBinContent(95,1);
   ResoRow15->SetBinContent(97,1);
   ResoRow15->SetBinContent(101,25);
   ResoRow15->SetEntries(1591);
   
   TF1 *ResoRowFit15 = new TF1("ResoRowFit15","gaus",-1,1);
   ResoRowFit15->SetFillColor(19);
   ResoRowFit15->SetFillStyle(0);
   ResoRowFit15->SetLineWidth(3);
   ResoRowFit15->SetChisquare(157.9335);
   ResoRowFit15->SetNDF(67);
   ResoRowFit15->SetParameter(0,112.7612);
   ResoRowFit15->SetParError(0,4.292234);
   ResoRowFit15->SetParLimits(0,0,0);
   ResoRowFit15->SetParameter(1,-0.0005591042);
   ResoRowFit15->SetParError(1,0.002651628);
   ResoRowFit15->SetParLimits(1,0,0);
   ResoRowFit15->SetParameter(2,0.09921824);
   ResoRowFit15->SetParError(2,0.002693721);
   ResoRowFit15->SetParLimits(2,0,1.636491);
   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 = 1591   ");
   text = ptstats->AddText("Mean  = -0.008729");
   text = ptstats->AddText("RMS   = 0.1638");
   text = ptstats->AddText("#chi^{2} / ndf = 157.9 / 67");
   text = ptstats->AddText("Constant = 112.8 #pm 4.3 ");
   text = ptstats->AddText("Mean     = -0.0005591 #pm 0.0026516 ");
   text = ptstats->AddText("Sigma    = 0.09922 #pm 0.00269 ");
   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,-17.71875,1.25,159.4688);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow16 = new TH1F("ResoRow16","",100,-1,1);
   ResoRow16->SetBinContent(0,10);
   ResoRow16->SetBinContent(5,1);
   ResoRow16->SetBinContent(7,1);
   ResoRow16->SetBinContent(8,2);
   ResoRow16->SetBinContent(9,2);
   ResoRow16->SetBinContent(12,1);
   ResoRow16->SetBinContent(14,2);
   ResoRow16->SetBinContent(15,2);
   ResoRow16->SetBinContent(16,1);
   ResoRow16->SetBinContent(18,2);
   ResoRow16->SetBinContent(21,3);
   ResoRow16->SetBinContent(23,2);
   ResoRow16->SetBinContent(24,2);
   ResoRow16->SetBinContent(25,3);
   ResoRow16->SetBinContent(26,2);
   ResoRow16->SetBinContent(27,3);
   ResoRow16->SetBinContent(28,3);
   ResoRow16->SetBinContent(29,4);
   ResoRow16->SetBinContent(30,2);
   ResoRow16->SetBinContent(31,5);
   ResoRow16->SetBinContent(32,4);
   ResoRow16->SetBinContent(33,3);
   ResoRow16->SetBinContent(34,3);
   ResoRow16->SetBinContent(35,4);
   ResoRow16->SetBinContent(36,6);
   ResoRow16->SetBinContent(37,9);
   ResoRow16->SetBinContent(38,10);
   ResoRow16->SetBinContent(39,13);
   ResoRow16->SetBinContent(40,15);
   ResoRow16->SetBinContent(41,19);
   ResoRow16->SetBinContent(42,27);
   ResoRow16->SetBinContent(43,33);
   ResoRow16->SetBinContent(44,54);
   ResoRow16->SetBinContent(45,36);
   ResoRow16->SetBinContent(46,69);
   ResoRow16->SetBinContent(47,82);
   ResoRow16->SetBinContent(48,100);
   ResoRow16->SetBinContent(49,110);
   ResoRow16->SetBinContent(50,130);
   ResoRow16->SetBinContent(51,135);
   ResoRow16->SetBinContent(52,107);
   ResoRow16->SetBinContent(53,112);
   ResoRow16->SetBinContent(54,77);
   ResoRow16->SetBinContent(55,79);
   ResoRow16->SetBinContent(56,66);
   ResoRow16->SetBinContent(57,46);
   ResoRow16->SetBinContent(58,38);
   ResoRow16->SetBinContent(59,28);
   ResoRow16->SetBinContent(60,12);
   ResoRow16->SetBinContent(61,18);
   ResoRow16->SetBinContent(62,15);
   ResoRow16->SetBinContent(63,8);
   ResoRow16->SetBinContent(64,8);
   ResoRow16->SetBinContent(65,7);
   ResoRow16->SetBinContent(66,4);
   ResoRow16->SetBinContent(67,2);
   ResoRow16->SetBinContent(68,1);
   ResoRow16->SetBinContent(69,3);
   ResoRow16->SetBinContent(70,2);
   ResoRow16->SetBinContent(72,1);
   ResoRow16->SetBinContent(73,1);
   ResoRow16->SetBinContent(74,3);
   ResoRow16->SetBinContent(76,1);
   ResoRow16->SetBinContent(79,1);
   ResoRow16->SetBinContent(80,1);
   ResoRow16->SetBinContent(81,1);
   ResoRow16->SetBinContent(82,1);
   ResoRow16->SetBinContent(85,1);
   ResoRow16->SetBinContent(91,1);
   ResoRow16->SetBinContent(93,2);
   ResoRow16->SetBinContent(94,2);
   ResoRow16->SetBinContent(96,1);
   ResoRow16->SetBinContent(100,1);
   ResoRow16->SetBinContent(101,25);
   ResoRow16->SetEntries(1591);
   
   TF1 *ResoRowFit16 = new TF1("ResoRowFit16","gaus",-1,1);
   ResoRowFit16->SetFillColor(19);
   ResoRowFit16->SetFillStyle(0);
   ResoRowFit16->SetLineWidth(3);
   ResoRowFit16->SetChisquare(133.3841);
   ResoRowFit16->SetNDF(69);
   ResoRowFit16->SetParameter(0,106.9647);
   ResoRowFit16->SetParError(0,4.072565);
   ResoRowFit16->SetParLimits(0,0,0);
   ResoRowFit16->SetParameter(1,0.002885413);
   ResoRowFit16->SetParError(1,0.002836132);
   ResoRowFit16->SetParLimits(1,0,0);
   ResoRowFit16->SetParameter(2,0.1061229);
   ResoRowFit16->SetParError(2,0.002900782);
   ResoRowFit16->SetParLimits(2,0,1.662134);
   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 = 1591   ");
   text = ptstats->AddText("Mean  = -0.006128");
   text = ptstats->AddText("RMS   = 0.1663");
   text = ptstats->AddText("#chi^{2} / ndf = 133.4 / 69");
   text = ptstats->AddText("Constant =   107 #pm 4.1 ");
   text = ptstats->AddText("Mean     = 0.002885 #pm 0.002836 ");
   text = ptstats->AddText("Sigma    = 0.1061 #pm 0.0029 ");
   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,-17.45625,1.25,157.1063);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow17 = new TH1F("ResoRow17","",100,-1,1);
   ResoRow17->SetBinContent(0,14);
   ResoRow17->SetBinContent(4,1);
   ResoRow17->SetBinContent(9,1);
   ResoRow17->SetBinContent(10,1);
   ResoRow17->SetBinContent(11,3);
   ResoRow17->SetBinContent(13,2);
   ResoRow17->SetBinContent(14,1);
   ResoRow17->SetBinContent(15,1);
   ResoRow17->SetBinContent(20,1);
   ResoRow17->SetBinContent(21,2);
   ResoRow17->SetBinContent(22,2);
   ResoRow17->SetBinContent(23,1);
   ResoRow17->SetBinContent(25,1);
   ResoRow17->SetBinContent(28,1);
   ResoRow17->SetBinContent(29,4);
   ResoRow17->SetBinContent(30,4);
   ResoRow17->SetBinContent(31,5);
   ResoRow17->SetBinContent(32,2);
   ResoRow17->SetBinContent(33,3);
   ResoRow17->SetBinContent(34,4);
   ResoRow17->SetBinContent(35,4);
   ResoRow17->SetBinContent(36,10);
   ResoRow17->SetBinContent(37,4);
   ResoRow17->SetBinContent(38,13);
   ResoRow17->SetBinContent(39,18);
   ResoRow17->SetBinContent(40,17);
   ResoRow17->SetBinContent(41,25);
   ResoRow17->SetBinContent(42,27);
   ResoRow17->SetBinContent(43,32);
   ResoRow17->SetBinContent(44,38);
   ResoRow17->SetBinContent(45,58);
   ResoRow17->SetBinContent(46,68);
   ResoRow17->SetBinContent(47,69);
   ResoRow17->SetBinContent(48,104);
   ResoRow17->SetBinContent(49,120);
   ResoRow17->SetBinContent(50,108);
   ResoRow17->SetBinContent(51,130);
   ResoRow17->SetBinContent(52,133);
   ResoRow17->SetBinContent(53,122);
   ResoRow17->SetBinContent(54,87);
   ResoRow17->SetBinContent(55,95);
   ResoRow17->SetBinContent(56,55);
   ResoRow17->SetBinContent(57,36);
   ResoRow17->SetBinContent(58,26);
   ResoRow17->SetBinContent(59,24);
   ResoRow17->SetBinContent(60,17);
   ResoRow17->SetBinContent(61,13);
   ResoRow17->SetBinContent(62,11);
   ResoRow17->SetBinContent(63,6);
   ResoRow17->SetBinContent(64,9);
   ResoRow17->SetBinContent(65,2);
   ResoRow17->SetBinContent(66,1);
   ResoRow17->SetBinContent(67,5);
   ResoRow17->SetBinContent(68,3);
   ResoRow17->SetBinContent(69,1);
   ResoRow17->SetBinContent(70,2);
   ResoRow17->SetBinContent(71,3);
   ResoRow17->SetBinContent(72,2);
   ResoRow17->SetBinContent(73,2);
   ResoRow17->SetBinContent(74,4);
   ResoRow17->SetBinContent(75,2);
   ResoRow17->SetBinContent(76,1);
   ResoRow17->SetBinContent(77,1);
   ResoRow17->SetBinContent(79,2);
   ResoRow17->SetBinContent(82,1);
   ResoRow17->SetBinContent(85,1);
   ResoRow17->SetBinContent(86,1);
   ResoRow17->SetBinContent(88,1);
   ResoRow17->SetBinContent(89,1);
   ResoRow17->SetBinContent(91,1);
   ResoRow17->SetBinContent(94,1);
   ResoRow17->SetBinContent(95,1);
   ResoRow17->SetBinContent(96,1);
   ResoRow17->SetBinContent(101,18);
   ResoRow17->SetEntries(1591);
   
   TF1 *ResoRowFit17 = new TF1("ResoRowFit17","gaus",-1,1);
   ResoRowFit17->SetFillColor(19);
   ResoRowFit17->SetFillStyle(0);
   ResoRowFit17->SetLineWidth(3);
   ResoRowFit17->SetChisquare(137.4597);
   ResoRowFit17->SetNDF(69);
   ResoRowFit17->SetParameter(0,110.7748);
   ResoRowFit17->SetParError(0,4.194142);
   ResoRowFit17->SetParLimits(0,0,0);
   ResoRowFit17->SetParameter(1,-0.001336237);
   ResoRowFit17->SetParError(1,0.002804502);
   ResoRowFit17->SetParLimits(1,0,0);
   ResoRowFit17->SetParameter(2,0.1023905);
   ResoRowFit17->SetParError(2,0.002765744);
   ResoRowFit17->SetParLimits(2,0,1.581655);
   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 = 1591   ");
   text = ptstats->AddText("Mean  = -0.004089");
   text = ptstats->AddText("RMS   = 0.1584");
   text = ptstats->AddText("#chi^{2} / ndf = 137.5 / 69");
   text = ptstats->AddText("Constant = 110.8 #pm 4.2 ");
   text = ptstats->AddText("Mean     = -0.001336 #pm 0.002805 ");
   text = ptstats->AddText("Sigma    = 0.1024 #pm 0.0028 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow17->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow17->GetListOfFunctions());
   ResoRow17->GetXaxis()->SetTitle("residual / mm");
   ResoRow17->GetYaxis()->SetTitle("counts");
   ResoRow17->Draw("");
   c2_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,-17.45625,1.25,157.1063);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow18 = new TH1F("ResoRow18","",100,-1,1);
   ResoRow18->SetBinContent(0,15);
   ResoRow18->SetBinContent(8,1);
   ResoRow18->SetBinContent(9,1);
   ResoRow18->SetBinContent(12,1);
   ResoRow18->SetBinContent(13,1);
   ResoRow18->SetBinContent(14,1);
   ResoRow18->SetBinContent(15,1);
   ResoRow18->SetBinContent(18,1);
   ResoRow18->SetBinContent(21,2);
   ResoRow18->SetBinContent(23,1);
   ResoRow18->SetBinContent(25,4);
   ResoRow18->SetBinContent(27,1);
   ResoRow18->SetBinContent(28,1);
   ResoRow18->SetBinContent(29,3);
   ResoRow18->SetBinContent(30,2);
   ResoRow18->SetBinContent(31,1);
   ResoRow18->SetBinContent(32,5);
   ResoRow18->SetBinContent(33,4);
   ResoRow18->SetBinContent(34,6);
   ResoRow18->SetBinContent(35,7);
   ResoRow18->SetBinContent(36,6);
   ResoRow18->SetBinContent(37,11);
   ResoRow18->SetBinContent(38,10);
   ResoRow18->SetBinContent(39,11);
   ResoRow18->SetBinContent(40,19);
   ResoRow18->SetBinContent(41,17);
   ResoRow18->SetBinContent(42,23);
   ResoRow18->SetBinContent(43,42);
   ResoRow18->SetBinContent(44,46);
   ResoRow18->SetBinContent(45,56);
   ResoRow18->SetBinContent(46,66);
   ResoRow18->SetBinContent(47,93);
   ResoRow18->SetBinContent(48,108);
   ResoRow18->SetBinContent(49,111);
   ResoRow18->SetBinContent(50,119);
   ResoRow18->SetBinContent(51,133);
   ResoRow18->SetBinContent(52,103);
   ResoRow18->SetBinContent(53,116);
   ResoRow18->SetBinContent(54,90);
   ResoRow18->SetBinContent(55,76);
   ResoRow18->SetBinContent(56,65);
   ResoRow18->SetBinContent(57,51);
   ResoRow18->SetBinContent(58,30);
   ResoRow18->SetBinContent(59,20);
   ResoRow18->SetBinContent(60,11);
   ResoRow18->SetBinContent(61,12);
   ResoRow18->SetBinContent(62,9);
   ResoRow18->SetBinContent(63,13);
   ResoRow18->SetBinContent(64,3);
   ResoRow18->SetBinContent(65,6);
   ResoRow18->SetBinContent(66,7);
   ResoRow18->SetBinContent(67,1);
   ResoRow18->SetBinContent(68,3);
   ResoRow18->SetBinContent(69,4);
   ResoRow18->SetBinContent(71,2);
   ResoRow18->SetBinContent(72,5);
   ResoRow18->SetBinContent(74,3);
   ResoRow18->SetBinContent(75,1);
   ResoRow18->SetBinContent(76,2);
   ResoRow18->SetBinContent(79,1);
   ResoRow18->SetBinContent(80,2);
   ResoRow18->SetBinContent(81,1);
   ResoRow18->SetBinContent(83,2);
   ResoRow18->SetBinContent(84,2);
   ResoRow18->SetBinContent(86,1);
   ResoRow18->SetBinContent(88,1);
   ResoRow18->SetBinContent(89,1);
   ResoRow18->SetBinContent(97,1);
   ResoRow18->SetBinContent(100,1);
   ResoRow18->SetBinContent(101,15);
   ResoRow18->SetEntries(1591);
   
   TF1 *ResoRowFit18 = new TF1("ResoRowFit18","gaus",-1,1);
   ResoRowFit18->SetFillColor(19);
   ResoRowFit18->SetFillStyle(0);
   ResoRowFit18->SetLineWidth(3);
   ResoRowFit18->SetChisquare(118.7853);
   ResoRowFit18->SetNDF(65);
   ResoRowFit18->SetParameter(0,113.5963);
   ResoRowFit18->SetParError(0,4.161738);
   ResoRowFit18->SetParLimits(0,0,0);
   ResoRowFit18->SetParameter(1,-0.003145889);
   ResoRowFit18->SetParError(1,0.002715483);
   ResoRowFit18->SetParLimits(1,0,0);
   ResoRowFit18->SetParameter(2,0.1013039);
   ResoRowFit18->SetParError(2,0.002572685);
   ResoRowFit18->SetParLimits(2,0,1.534093);
   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 = 1591   ");
   text = ptstats->AddText("Mean  = -0.002425");
   text = ptstats->AddText("RMS   = 0.1533");
   text = ptstats->AddText("#chi^{2} / ndf = 118.8 / 65");
   text = ptstats->AddText("Constant = 113.6 #pm 4.2 ");
   text = ptstats->AddText("Mean     = -0.003146 #pm 0.002715 ");
   text = ptstats->AddText("Sigma    = 0.1013 #pm 0.0026 ");
   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);
}
