{
//=========Macro generated from canvas: c2/
//=========  (Wed Jun  9 12:04:36 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,-5.775,1.25,51.975);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow12 = new TH1F("ResoRow12","",100,-1,1);
   ResoRow12->SetBinContent(0,32);
   ResoRow12->SetBinContent(1,2);
   ResoRow12->SetBinContent(2,1);
   ResoRow12->SetBinContent(3,2);
   ResoRow12->SetBinContent(5,2);
   ResoRow12->SetBinContent(6,3);
   ResoRow12->SetBinContent(7,6);
   ResoRow12->SetBinContent(8,3);
   ResoRow12->SetBinContent(9,7);
   ResoRow12->SetBinContent(10,3);
   ResoRow12->SetBinContent(11,6);
   ResoRow12->SetBinContent(12,2);
   ResoRow12->SetBinContent(13,2);
   ResoRow12->SetBinContent(14,5);
   ResoRow12->SetBinContent(15,5);
   ResoRow12->SetBinContent(16,5);
   ResoRow12->SetBinContent(17,6);
   ResoRow12->SetBinContent(18,2);
   ResoRow12->SetBinContent(19,2);
   ResoRow12->SetBinContent(20,8);
   ResoRow12->SetBinContent(21,13);
   ResoRow12->SetBinContent(22,9);
   ResoRow12->SetBinContent(23,11);
   ResoRow12->SetBinContent(24,9);
   ResoRow12->SetBinContent(25,12);
   ResoRow12->SetBinContent(26,17);
   ResoRow12->SetBinContent(27,18);
   ResoRow12->SetBinContent(28,16);
   ResoRow12->SetBinContent(29,18);
   ResoRow12->SetBinContent(30,17);
   ResoRow12->SetBinContent(31,20);
   ResoRow12->SetBinContent(32,17);
   ResoRow12->SetBinContent(33,15);
   ResoRow12->SetBinContent(34,29);
   ResoRow12->SetBinContent(35,23);
   ResoRow12->SetBinContent(36,17);
   ResoRow12->SetBinContent(37,25);
   ResoRow12->SetBinContent(38,23);
   ResoRow12->SetBinContent(39,27);
   ResoRow12->SetBinContent(40,29);
   ResoRow12->SetBinContent(41,29);
   ResoRow12->SetBinContent(42,35);
   ResoRow12->SetBinContent(43,35);
   ResoRow12->SetBinContent(44,42);
   ResoRow12->SetBinContent(45,37);
   ResoRow12->SetBinContent(46,35);
   ResoRow12->SetBinContent(47,30);
   ResoRow12->SetBinContent(48,35);
   ResoRow12->SetBinContent(49,25);
   ResoRow12->SetBinContent(50,26);
   ResoRow12->SetBinContent(51,43);
   ResoRow12->SetBinContent(52,34);
   ResoRow12->SetBinContent(53,37);
   ResoRow12->SetBinContent(54,34);
   ResoRow12->SetBinContent(55,31);
   ResoRow12->SetBinContent(56,33);
   ResoRow12->SetBinContent(57,44);
   ResoRow12->SetBinContent(58,30);
   ResoRow12->SetBinContent(59,24);
   ResoRow12->SetBinContent(60,34);
   ResoRow12->SetBinContent(61,26);
   ResoRow12->SetBinContent(62,34);
   ResoRow12->SetBinContent(63,20);
   ResoRow12->SetBinContent(64,18);
   ResoRow12->SetBinContent(65,18);
   ResoRow12->SetBinContent(66,15);
   ResoRow12->SetBinContent(67,24);
   ResoRow12->SetBinContent(68,22);
   ResoRow12->SetBinContent(69,19);
   ResoRow12->SetBinContent(70,13);
   ResoRow12->SetBinContent(71,14);
   ResoRow12->SetBinContent(72,18);
   ResoRow12->SetBinContent(73,15);
   ResoRow12->SetBinContent(74,19);
   ResoRow12->SetBinContent(75,14);
   ResoRow12->SetBinContent(76,11);
   ResoRow12->SetBinContent(77,12);
   ResoRow12->SetBinContent(78,7);
   ResoRow12->SetBinContent(79,8);
   ResoRow12->SetBinContent(80,10);
   ResoRow12->SetBinContent(81,4);
   ResoRow12->SetBinContent(82,9);
   ResoRow12->SetBinContent(83,7);
   ResoRow12->SetBinContent(84,5);
   ResoRow12->SetBinContent(85,9);
   ResoRow12->SetBinContent(86,6);
   ResoRow12->SetBinContent(87,9);
   ResoRow12->SetBinContent(88,5);
   ResoRow12->SetBinContent(89,4);
   ResoRow12->SetBinContent(90,7);
   ResoRow12->SetBinContent(91,2);
   ResoRow12->SetBinContent(92,1);
   ResoRow12->SetBinContent(93,3);
   ResoRow12->SetBinContent(94,3);
   ResoRow12->SetBinContent(95,1);
   ResoRow12->SetBinContent(96,8);
   ResoRow12->SetBinContent(97,3);
   ResoRow12->SetBinContent(98,2);
   ResoRow12->SetBinContent(99,1);
   ResoRow12->SetBinContent(100,2);
   ResoRow12->SetBinContent(101,50);
   ResoRow12->SetEntries(1620);
   
   TF1 *ResoRowFit12 = new TF1("ResoRowFit12","gaus",-1,1);
   ResoRowFit12->SetFillColor(19);
   ResoRowFit12->SetFillStyle(0);
   ResoRowFit12->SetLineWidth(3);
   ResoRowFit12->SetChisquare(105.6421);
   ResoRowFit12->SetNDF(96);
   ResoRowFit12->SetParameter(0,32.5515);
   ResoRowFit12->SetParError(0,1.126835);
   ResoRowFit12->SetParLimits(0,0,0);
   ResoRowFit12->SetParameter(1,0.002930762);
   ResoRowFit12->SetParError(1,0.009595532);
   ResoRowFit12->SetParLimits(1,0,0);
   ResoRowFit12->SetParameter(2,0.3529596);
   ResoRowFit12->SetParError(2,0.008262812);
   ResoRowFit12->SetParLimits(2,0,3.677637);
   ResoRow12->GetListOfFunctions()->Add(ResoRowFit12);
   
   TPaveStats *ptstats = new TPaveStats(0.62,0.635,0.98,0.995,"brNDC");
   ptstats->SetName("stats");
   ptstats->SetBorderSize(2);
   ptstats->SetFillColor(19);
   ptstats->SetTextAlign(12);
   TText *text = ptstats->AddText("ResoRow12");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1620   ");
   text = ptstats->AddText("Mean  = 0.0006811");
   text = ptstats->AddText("RMS   = 0.3676");
   text = ptstats->AddText("#chi^{2} / ndf = 105.6 / 96");
   text = ptstats->AddText("Constant = 32.55 #pm 1.13 ");
   text = ptstats->AddText("Mean     = 0.002931 #pm 0.009596 ");
   text = ptstats->AddText("Sigma    = 0.353 #pm 0.008 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow12->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow12->GetListOfFunctions());
   ResoRow12->GetXaxis()->SetTitle("residual / mm");
   ResoRow12->GetYaxis()->SetTitle("counts");
   ResoRow12->Draw("");
   c2_1->Modified();
   c2->cd();
  
// ------------>Primitives in pad: c2_2
   c2_2 = new TPad("c2_2", "c2_2",0.3433333,0.51,0.6566667,0.99);
   c2_2->Draw();
   c2_2->cd();
   c2_2->Range(-1.25,-6.69375,1.25,60.24375);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow13 = new TH1F("ResoRow13","",100,-1,1);
   ResoRow13->SetBinContent(0,37);
   ResoRow13->SetBinContent(1,1);
   ResoRow13->SetBinContent(2,1);
   ResoRow13->SetBinContent(3,1);
   ResoRow13->SetBinContent(4,1);
   ResoRow13->SetBinContent(5,2);
   ResoRow13->SetBinContent(6,2);
   ResoRow13->SetBinContent(7,4);
   ResoRow13->SetBinContent(8,2);
   ResoRow13->SetBinContent(9,2);
   ResoRow13->SetBinContent(10,7);
   ResoRow13->SetBinContent(11,4);
   ResoRow13->SetBinContent(12,6);
   ResoRow13->SetBinContent(13,5);
   ResoRow13->SetBinContent(14,3);
   ResoRow13->SetBinContent(15,2);
   ResoRow13->SetBinContent(16,5);
   ResoRow13->SetBinContent(17,3);
   ResoRow13->SetBinContent(18,8);
   ResoRow13->SetBinContent(19,4);
   ResoRow13->SetBinContent(20,8);
   ResoRow13->SetBinContent(21,11);
   ResoRow13->SetBinContent(22,7);
   ResoRow13->SetBinContent(23,9);
   ResoRow13->SetBinContent(24,9);
   ResoRow13->SetBinContent(25,18);
   ResoRow13->SetBinContent(26,7);
   ResoRow13->SetBinContent(27,19);
   ResoRow13->SetBinContent(28,8);
   ResoRow13->SetBinContent(29,13);
   ResoRow13->SetBinContent(30,15);
   ResoRow13->SetBinContent(31,23);
   ResoRow13->SetBinContent(32,18);
   ResoRow13->SetBinContent(33,22);
   ResoRow13->SetBinContent(34,29);
   ResoRow13->SetBinContent(35,23);
   ResoRow13->SetBinContent(36,29);
   ResoRow13->SetBinContent(37,26);
   ResoRow13->SetBinContent(38,29);
   ResoRow13->SetBinContent(39,33);
   ResoRow13->SetBinContent(40,30);
   ResoRow13->SetBinContent(41,30);
   ResoRow13->SetBinContent(42,42);
   ResoRow13->SetBinContent(43,38);
   ResoRow13->SetBinContent(44,34);
   ResoRow13->SetBinContent(45,28);
   ResoRow13->SetBinContent(46,25);
   ResoRow13->SetBinContent(47,22);
   ResoRow13->SetBinContent(48,47);
   ResoRow13->SetBinContent(49,35);
   ResoRow13->SetBinContent(50,30);
   ResoRow13->SetBinContent(51,36);
   ResoRow13->SetBinContent(52,31);
   ResoRow13->SetBinContent(53,33);
   ResoRow13->SetBinContent(54,36);
   ResoRow13->SetBinContent(55,41);
   ResoRow13->SetBinContent(56,29);
   ResoRow13->SetBinContent(57,36);
   ResoRow13->SetBinContent(58,51);
   ResoRow13->SetBinContent(59,29);
   ResoRow13->SetBinContent(60,32);
   ResoRow13->SetBinContent(61,25);
   ResoRow13->SetBinContent(62,20);
   ResoRow13->SetBinContent(63,28);
   ResoRow13->SetBinContent(64,30);
   ResoRow13->SetBinContent(65,19);
   ResoRow13->SetBinContent(66,14);
   ResoRow13->SetBinContent(67,20);
   ResoRow13->SetBinContent(68,18);
   ResoRow13->SetBinContent(69,13);
   ResoRow13->SetBinContent(70,16);
   ResoRow13->SetBinContent(71,12);
   ResoRow13->SetBinContent(72,13);
   ResoRow13->SetBinContent(73,16);
   ResoRow13->SetBinContent(74,11);
   ResoRow13->SetBinContent(75,10);
   ResoRow13->SetBinContent(76,12);
   ResoRow13->SetBinContent(77,14);
   ResoRow13->SetBinContent(78,4);
   ResoRow13->SetBinContent(79,9);
   ResoRow13->SetBinContent(80,9);
   ResoRow13->SetBinContent(81,6);
   ResoRow13->SetBinContent(82,10);
   ResoRow13->SetBinContent(83,6);
   ResoRow13->SetBinContent(84,7);
   ResoRow13->SetBinContent(85,10);
   ResoRow13->SetBinContent(86,6);
   ResoRow13->SetBinContent(87,3);
   ResoRow13->SetBinContent(88,1);
   ResoRow13->SetBinContent(89,8);
   ResoRow13->SetBinContent(90,5);
   ResoRow13->SetBinContent(91,4);
   ResoRow13->SetBinContent(92,7);
   ResoRow13->SetBinContent(93,4);
   ResoRow13->SetBinContent(94,2);
   ResoRow13->SetBinContent(95,2);
   ResoRow13->SetBinContent(97,4);
   ResoRow13->SetBinContent(98,1);
   ResoRow13->SetBinContent(99,1);
   ResoRow13->SetBinContent(100,2);
   ResoRow13->SetBinContent(101,47);
   ResoRow13->SetEntries(1620);
   
   TF1 *ResoRowFit13 = new TF1("ResoRowFit13","gaus",-1,1);
   ResoRowFit13->SetFillColor(19);
   ResoRowFit13->SetFillStyle(0);
   ResoRowFit13->SetLineWidth(3);
   ResoRowFit13->SetChisquare(115.4807);
   ResoRowFit13->SetNDF(96);
   ResoRowFit13->SetParameter(0,33.09336);
   ResoRowFit13->SetParError(0,1.164867);
   ResoRowFit13->SetParLimits(0,0,0);
   ResoRowFit13->SetParameter(1,-0.009795665);
   ResoRowFit13->SetParError(1,0.009356226);
   ResoRowFit13->SetParLimits(1,0,0);
   ResoRowFit13->SetParameter(2,0.3439696);
   ResoRowFit13->SetParError(2,0.008269008);
   ResoRowFit13->SetParLimits(2,0,3.574754);
   ResoRow13->GetListOfFunctions()->Add(ResoRowFit13);
   
   ptstats = new TPaveStats(0.62,0.635,0.98,0.995,"brNDC");
   ptstats->SetName("stats");
   ptstats->SetBorderSize(2);
   ptstats->SetFillColor(19);
   ptstats->SetTextAlign(12);
   text = ptstats->AddText("ResoRow13");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1620   ");
   text = ptstats->AddText("Mean  = -0.003629");
   text = ptstats->AddText("RMS   = 0.3575");
   text = ptstats->AddText("#chi^{2} / ndf = 115.5 / 96");
   text = ptstats->AddText("Constant = 33.09 #pm 1.16 ");
   text = ptstats->AddText("Mean     = -0.009796 #pm 0.009356 ");
   text = ptstats->AddText("Sigma    = 0.344 #pm 0.008 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow13->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow13->GetListOfFunctions());
   ResoRow13->GetXaxis()->SetTitle("residual / mm");
   ResoRow13->GetYaxis()->SetTitle("counts");
   ResoRow13->Draw("");
   c2_2->Modified();
   c2->cd();
  
// ------------>Primitives in pad: c2_3
   c2_3 = new TPad("c2_3", "c2_3",0.6766667,0.51,0.99,0.99);
   c2_3->Draw();
   c2_3->cd();
   c2_3->Range(-1.25,-6.825,1.25,61.425);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow14 = new TH1F("ResoRow14","",100,-1,1);
   ResoRow14->SetBinContent(0,35);
   ResoRow14->SetBinContent(2,3);
   ResoRow14->SetBinContent(4,2);
   ResoRow14->SetBinContent(5,3);
   ResoRow14->SetBinContent(6,2);
   ResoRow14->SetBinContent(7,6);
   ResoRow14->SetBinContent(8,4);
   ResoRow14->SetBinContent(9,3);
   ResoRow14->SetBinContent(11,5);
   ResoRow14->SetBinContent(12,3);
   ResoRow14->SetBinContent(13,4);
   ResoRow14->SetBinContent(14,9);
   ResoRow14->SetBinContent(15,7);
   ResoRow14->SetBinContent(16,4);
   ResoRow14->SetBinContent(17,7);
   ResoRow14->SetBinContent(18,3);
   ResoRow14->SetBinContent(19,7);
   ResoRow14->SetBinContent(20,3);
   ResoRow14->SetBinContent(21,5);
   ResoRow14->SetBinContent(22,12);
   ResoRow14->SetBinContent(23,9);
   ResoRow14->SetBinContent(24,11);
   ResoRow14->SetBinContent(25,5);
   ResoRow14->SetBinContent(26,9);
   ResoRow14->SetBinContent(27,12);
   ResoRow14->SetBinContent(28,18);
   ResoRow14->SetBinContent(29,15);
   ResoRow14->SetBinContent(30,17);
   ResoRow14->SetBinContent(31,18);
   ResoRow14->SetBinContent(32,18);
   ResoRow14->SetBinContent(33,17);
   ResoRow14->SetBinContent(34,31);
   ResoRow14->SetBinContent(35,30);
   ResoRow14->SetBinContent(36,32);
   ResoRow14->SetBinContent(37,25);
   ResoRow14->SetBinContent(38,24);
   ResoRow14->SetBinContent(39,35);
   ResoRow14->SetBinContent(40,29);
   ResoRow14->SetBinContent(41,32);
   ResoRow14->SetBinContent(42,33);
   ResoRow14->SetBinContent(43,39);
   ResoRow14->SetBinContent(44,17);
   ResoRow14->SetBinContent(45,33);
   ResoRow14->SetBinContent(46,30);
   ResoRow14->SetBinContent(47,38);
   ResoRow14->SetBinContent(48,30);
   ResoRow14->SetBinContent(49,41);
   ResoRow14->SetBinContent(50,40);
   ResoRow14->SetBinContent(51,30);
   ResoRow14->SetBinContent(52,42);
   ResoRow14->SetBinContent(53,52);
   ResoRow14->SetBinContent(54,33);
   ResoRow14->SetBinContent(55,33);
   ResoRow14->SetBinContent(56,50);
   ResoRow14->SetBinContent(57,31);
   ResoRow14->SetBinContent(58,31);
   ResoRow14->SetBinContent(59,29);
   ResoRow14->SetBinContent(60,21);
   ResoRow14->SetBinContent(61,31);
   ResoRow14->SetBinContent(62,33);
   ResoRow14->SetBinContent(63,17);
   ResoRow14->SetBinContent(64,22);
   ResoRow14->SetBinContent(65,16);
   ResoRow14->SetBinContent(66,28);
   ResoRow14->SetBinContent(67,17);
   ResoRow14->SetBinContent(68,25);
   ResoRow14->SetBinContent(69,16);
   ResoRow14->SetBinContent(70,14);
   ResoRow14->SetBinContent(71,12);
   ResoRow14->SetBinContent(72,17);
   ResoRow14->SetBinContent(73,12);
   ResoRow14->SetBinContent(74,16);
   ResoRow14->SetBinContent(75,17);
   ResoRow14->SetBinContent(76,16);
   ResoRow14->SetBinContent(77,8);
   ResoRow14->SetBinContent(78,9);
   ResoRow14->SetBinContent(79,10);
   ResoRow14->SetBinContent(80,4);
   ResoRow14->SetBinContent(81,5);
   ResoRow14->SetBinContent(82,7);
   ResoRow14->SetBinContent(83,8);
   ResoRow14->SetBinContent(84,5);
   ResoRow14->SetBinContent(85,8);
   ResoRow14->SetBinContent(86,3);
   ResoRow14->SetBinContent(87,5);
   ResoRow14->SetBinContent(88,10);
   ResoRow14->SetBinContent(89,2);
   ResoRow14->SetBinContent(90,3);
   ResoRow14->SetBinContent(91,4);
   ResoRow14->SetBinContent(92,3);
   ResoRow14->SetBinContent(93,4);
   ResoRow14->SetBinContent(94,2);
   ResoRow14->SetBinContent(96,3);
   ResoRow14->SetBinContent(97,2);
   ResoRow14->SetBinContent(98,1);
   ResoRow14->SetBinContent(99,2);
   ResoRow14->SetBinContent(100,1);
   ResoRow14->SetBinContent(101,35);
   ResoRow14->SetEntries(1620);
   
   TF1 *ResoRowFit14 = new TF1("ResoRowFit14","gaus",-1,1);
   ResoRowFit14->SetFillColor(19);
   ResoRowFit14->SetFillStyle(0);
   ResoRowFit14->SetLineWidth(3);
   ResoRowFit14->SetChisquare(122.3005);
   ResoRowFit14->SetNDF(93);
   ResoRowFit14->SetParameter(0,33.19666);
   ResoRowFit14->SetParError(0,1.183869);
   ResoRowFit14->SetParLimits(0,0,0);
   ResoRowFit14->SetParameter(1,-0.0005579109);
   ResoRowFit14->SetParError(1,0.009411569);
   ResoRowFit14->SetParLimits(1,0,0);
   ResoRowFit14->SetParameter(2,0.3455804);
   ResoRowFit14->SetParError(2,0.008717709);
   ResoRowFit14->SetParLimits(2,0,3.533996);
   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 = 1620   ");
   text = ptstats->AddText("Mean  = -0.003764");
   text = ptstats->AddText("RMS   = 0.3535");
   text = ptstats->AddText("#chi^{2} / ndf = 122.3 / 93");
   text = ptstats->AddText("Constant =  33.2 #pm 1.2 ");
   text = ptstats->AddText("Mean     = -0.0005579 #pm 0.0094116 ");
   text = ptstats->AddText("Sigma    = 0.3456 #pm 0.0087 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow14->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow14->GetListOfFunctions());
   ResoRow14->GetXaxis()->SetTitle("residual / mm");
   ResoRow14->GetYaxis()->SetTitle("counts");
   ResoRow14->Draw("");
   c2_3->Modified();
   c2->cd();
  
// ------------>Primitives in pad: c2_4
   c2_4 = new TPad("c2_4", "c2_4",0.01,0.01,0.3233333,0.49);
   c2_4->Draw();
   c2_4->cd();
   c2_4->Range(-1.25,-5.775,1.25,51.975);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow15 = new TH1F("ResoRow15","",100,-1,1);
   ResoRow15->SetBinContent(0,38);
   ResoRow15->SetBinContent(1,2);
   ResoRow15->SetBinContent(2,3);
   ResoRow15->SetBinContent(3,1);
   ResoRow15->SetBinContent(4,1);
   ResoRow15->SetBinContent(5,3);
   ResoRow15->SetBinContent(6,4);
   ResoRow15->SetBinContent(7,1);
   ResoRow15->SetBinContent(8,1);
   ResoRow15->SetBinContent(9,2);
   ResoRow15->SetBinContent(10,5);
   ResoRow15->SetBinContent(12,2);
   ResoRow15->SetBinContent(13,5);
   ResoRow15->SetBinContent(14,5);
   ResoRow15->SetBinContent(15,8);
   ResoRow15->SetBinContent(16,6);
   ResoRow15->SetBinContent(17,4);
   ResoRow15->SetBinContent(18,8);
   ResoRow15->SetBinContent(19,5);
   ResoRow15->SetBinContent(20,10);
   ResoRow15->SetBinContent(21,7);
   ResoRow15->SetBinContent(22,17);
   ResoRow15->SetBinContent(23,11);
   ResoRow15->SetBinContent(24,11);
   ResoRow15->SetBinContent(25,8);
   ResoRow15->SetBinContent(26,9);
   ResoRow15->SetBinContent(27,7);
   ResoRow15->SetBinContent(28,8);
   ResoRow15->SetBinContent(29,12);
   ResoRow15->SetBinContent(30,19);
   ResoRow15->SetBinContent(31,21);
   ResoRow15->SetBinContent(32,25);
   ResoRow15->SetBinContent(33,25);
   ResoRow15->SetBinContent(34,19);
   ResoRow15->SetBinContent(35,18);
   ResoRow15->SetBinContent(36,20);
   ResoRow15->SetBinContent(37,29);
   ResoRow15->SetBinContent(38,21);
   ResoRow15->SetBinContent(39,36);
   ResoRow15->SetBinContent(40,35);
   ResoRow15->SetBinContent(41,20);
   ResoRow15->SetBinContent(42,27);
   ResoRow15->SetBinContent(43,35);
   ResoRow15->SetBinContent(44,36);
   ResoRow15->SetBinContent(45,39);
   ResoRow15->SetBinContent(46,36);
   ResoRow15->SetBinContent(47,33);
   ResoRow15->SetBinContent(48,44);
   ResoRow15->SetBinContent(49,44);
   ResoRow15->SetBinContent(50,35);
   ResoRow15->SetBinContent(51,42);
   ResoRow15->SetBinContent(52,35);
   ResoRow15->SetBinContent(53,28);
   ResoRow15->SetBinContent(54,39);
   ResoRow15->SetBinContent(55,36);
   ResoRow15->SetBinContent(56,43);
   ResoRow15->SetBinContent(57,37);
   ResoRow15->SetBinContent(58,23);
   ResoRow15->SetBinContent(59,32);
   ResoRow15->SetBinContent(60,30);
   ResoRow15->SetBinContent(61,37);
   ResoRow15->SetBinContent(62,22);
   ResoRow15->SetBinContent(63,31);
   ResoRow15->SetBinContent(64,29);
   ResoRow15->SetBinContent(65,17);
   ResoRow15->SetBinContent(66,17);
   ResoRow15->SetBinContent(67,24);
   ResoRow15->SetBinContent(68,21);
   ResoRow15->SetBinContent(69,21);
   ResoRow15->SetBinContent(70,15);
   ResoRow15->SetBinContent(71,10);
   ResoRow15->SetBinContent(72,17);
   ResoRow15->SetBinContent(73,10);
   ResoRow15->SetBinContent(74,14);
   ResoRow15->SetBinContent(75,18);
   ResoRow15->SetBinContent(76,11);
   ResoRow15->SetBinContent(77,10);
   ResoRow15->SetBinContent(78,7);
   ResoRow15->SetBinContent(79,6);
   ResoRow15->SetBinContent(80,7);
   ResoRow15->SetBinContent(81,8);
   ResoRow15->SetBinContent(82,5);
   ResoRow15->SetBinContent(83,9);
   ResoRow15->SetBinContent(84,1);
   ResoRow15->SetBinContent(85,4);
   ResoRow15->SetBinContent(86,4);
   ResoRow15->SetBinContent(87,7);
   ResoRow15->SetBinContent(88,3);
   ResoRow15->SetBinContent(89,3);
   ResoRow15->SetBinContent(90,3);
   ResoRow15->SetBinContent(91,5);
   ResoRow15->SetBinContent(92,1);
   ResoRow15->SetBinContent(93,3);
   ResoRow15->SetBinContent(94,2);
   ResoRow15->SetBinContent(95,4);
   ResoRow15->SetBinContent(96,1);
   ResoRow15->SetBinContent(97,1);
   ResoRow15->SetBinContent(100,1);
   ResoRow15->SetBinContent(101,45);
   ResoRow15->SetEntries(1620);
   
   TF1 *ResoRowFit15 = new TF1("ResoRowFit15","gaus",-1,1);
   ResoRowFit15->SetFillColor(19);
   ResoRowFit15->SetFillStyle(0);
   ResoRowFit15->SetLineWidth(3);
   ResoRowFit15->SetChisquare(107.6422);
   ResoRowFit15->SetNDF(94);
   ResoRowFit15->SetParameter(0,34.70189);
   ResoRowFit15->SetParError(0,1.214328);
   ResoRowFit15->SetParLimits(0,0,0);
   ResoRowFit15->SetParameter(1,-0.008136254);
   ResoRowFit15->SetParError(1,0.008941136);
   ResoRowFit15->SetParLimits(1,0,0);
   ResoRowFit15->SetParameter(2,0.330158);
   ResoRowFit15->SetParError(2,0.007850331);
   ResoRowFit15->SetParLimits(2,0,3.445975);
   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 = 1620   ");
   text = ptstats->AddText("Mean  = -0.008485");
   text = ptstats->AddText("RMS   = 0.3444");
   text = ptstats->AddText("#chi^{2} / ndf = 107.6 / 94");
   text = ptstats->AddText("Constant =  34.7 #pm 1.2 ");
   text = ptstats->AddText("Mean     = -0.008136 #pm 0.008941 ");
   text = ptstats->AddText("Sigma    = 0.3302 #pm 0.0079 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow15->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow15->GetListOfFunctions());
   ResoRow15->GetXaxis()->SetTitle("residual / mm");
   ResoRow15->GetYaxis()->SetTitle("counts");
   ResoRow15->Draw("");
   c2_4->Modified();
   c2->cd();
  
// ------------>Primitives in pad: c2_5
   c2_5 = new TPad("c2_5", "c2_5",0.3433333,0.01,0.6566667,0.49);
   c2_5->Draw();
   c2_5->cd();
   c2_5->Range(-1.25,-6.825,1.25,61.425);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow16 = new TH1F("ResoRow16","",100,-1,1);
   ResoRow16->SetBinContent(0,38);
   ResoRow16->SetBinContent(1,4);
   ResoRow16->SetBinContent(3,1);
   ResoRow16->SetBinContent(4,5);
   ResoRow16->SetBinContent(5,1);
   ResoRow16->SetBinContent(6,1);
   ResoRow16->SetBinContent(7,3);
   ResoRow16->SetBinContent(8,3);
   ResoRow16->SetBinContent(9,6);
   ResoRow16->SetBinContent(10,3);
   ResoRow16->SetBinContent(11,4);
   ResoRow16->SetBinContent(12,4);
   ResoRow16->SetBinContent(13,4);
   ResoRow16->SetBinContent(14,1);
   ResoRow16->SetBinContent(15,6);
   ResoRow16->SetBinContent(16,3);
   ResoRow16->SetBinContent(17,8);
   ResoRow16->SetBinContent(18,4);
   ResoRow16->SetBinContent(19,5);
   ResoRow16->SetBinContent(20,2);
   ResoRow16->SetBinContent(21,5);
   ResoRow16->SetBinContent(22,7);
   ResoRow16->SetBinContent(23,7);
   ResoRow16->SetBinContent(24,13);
   ResoRow16->SetBinContent(25,14);
   ResoRow16->SetBinContent(26,10);
   ResoRow16->SetBinContent(27,14);
   ResoRow16->SetBinContent(28,9);
   ResoRow16->SetBinContent(29,15);
   ResoRow16->SetBinContent(30,20);
   ResoRow16->SetBinContent(31,22);
   ResoRow16->SetBinContent(32,23);
   ResoRow16->SetBinContent(33,20);
   ResoRow16->SetBinContent(34,33);
   ResoRow16->SetBinContent(35,23);
   ResoRow16->SetBinContent(36,27);
   ResoRow16->SetBinContent(37,27);
   ResoRow16->SetBinContent(38,23);
   ResoRow16->SetBinContent(39,22);
   ResoRow16->SetBinContent(40,28);
   ResoRow16->SetBinContent(41,29);
   ResoRow16->SetBinContent(42,34);
   ResoRow16->SetBinContent(43,24);
   ResoRow16->SetBinContent(44,38);
   ResoRow16->SetBinContent(45,36);
   ResoRow16->SetBinContent(46,31);
   ResoRow16->SetBinContent(47,33);
   ResoRow16->SetBinContent(48,39);
   ResoRow16->SetBinContent(49,38);
   ResoRow16->SetBinContent(50,27);
   ResoRow16->SetBinContent(51,35);
   ResoRow16->SetBinContent(52,52);
   ResoRow16->SetBinContent(53,30);
   ResoRow16->SetBinContent(54,46);
   ResoRow16->SetBinContent(55,35);
   ResoRow16->SetBinContent(56,43);
   ResoRow16->SetBinContent(57,36);
   ResoRow16->SetBinContent(58,32);
   ResoRow16->SetBinContent(59,34);
   ResoRow16->SetBinContent(60,37);
   ResoRow16->SetBinContent(61,19);
   ResoRow16->SetBinContent(62,18);
   ResoRow16->SetBinContent(63,34);
   ResoRow16->SetBinContent(64,23);
   ResoRow16->SetBinContent(65,19);
   ResoRow16->SetBinContent(66,25);
   ResoRow16->SetBinContent(67,22);
   ResoRow16->SetBinContent(68,11);
   ResoRow16->SetBinContent(69,21);
   ResoRow16->SetBinContent(70,15);
   ResoRow16->SetBinContent(71,15);
   ResoRow16->SetBinContent(72,20);
   ResoRow16->SetBinContent(73,7);
   ResoRow16->SetBinContent(74,15);
   ResoRow16->SetBinContent(75,13);
   ResoRow16->SetBinContent(76,10);
   ResoRow16->SetBinContent(77,14);
   ResoRow16->SetBinContent(78,9);
   ResoRow16->SetBinContent(79,11);
   ResoRow16->SetBinContent(80,8);
   ResoRow16->SetBinContent(81,5);
   ResoRow16->SetBinContent(82,6);
   ResoRow16->SetBinContent(83,7);
   ResoRow16->SetBinContent(84,7);
   ResoRow16->SetBinContent(85,5);
   ResoRow16->SetBinContent(86,3);
   ResoRow16->SetBinContent(87,5);
   ResoRow16->SetBinContent(88,4);
   ResoRow16->SetBinContent(89,1);
   ResoRow16->SetBinContent(90,2);
   ResoRow16->SetBinContent(91,3);
   ResoRow16->SetBinContent(92,7);
   ResoRow16->SetBinContent(93,3);
   ResoRow16->SetBinContent(94,4);
   ResoRow16->SetBinContent(96,1);
   ResoRow16->SetBinContent(98,3);
   ResoRow16->SetBinContent(99,1);
   ResoRow16->SetBinContent(100,3);
   ResoRow16->SetBinContent(101,44);
   ResoRow16->SetEntries(1620);
   
   TF1 *ResoRowFit16 = new TF1("ResoRowFit16","gaus",-1,1);
   ResoRowFit16->SetFillColor(19);
   ResoRowFit16->SetFillStyle(0);
   ResoRowFit16->SetLineWidth(3);
   ResoRowFit16->SetChisquare(117.9872);
   ResoRowFit16->SetNDF(94);
   ResoRowFit16->SetParameter(0,34.40056);
   ResoRowFit16->SetParError(0,1.197074);
   ResoRowFit16->SetParLimits(0,0,0);
   ResoRowFit16->SetParameter(1,0.001395291);
   ResoRowFit16->SetParError(1,0.009002198);
   ResoRowFit16->SetParLimits(1,0,0);
   ResoRowFit16->SetParameter(2,0.3306567);
   ResoRowFit16->SetParError(2,0.007710613);
   ResoRowFit16->SetParLimits(2,0,3.502554);
   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 = 1620   ");
   text = ptstats->AddText("Mean  = -0.002406");
   text = ptstats->AddText("RMS   = 0.3501");
   text = ptstats->AddText("#chi^{2} / ndf =   118 / 94");
   text = ptstats->AddText("Constant =  34.4 #pm 1.2 ");
   text = ptstats->AddText("Mean     = 0.001395 #pm 0.009002 ");
   text = ptstats->AddText("Sigma    = 0.3307 #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_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.16875,1.25,55.51875);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow17 = new TH1F("ResoRow17","",100,-1,1);
   ResoRow17->SetBinContent(0,45);
   ResoRow17->SetBinContent(2,1);
   ResoRow17->SetBinContent(3,2);
   ResoRow17->SetBinContent(4,2);
   ResoRow17->SetBinContent(5,2);
   ResoRow17->SetBinContent(6,1);
   ResoRow17->SetBinContent(7,2);
   ResoRow17->SetBinContent(9,1);
   ResoRow17->SetBinContent(11,5);
   ResoRow17->SetBinContent(12,4);
   ResoRow17->SetBinContent(13,1);
   ResoRow17->SetBinContent(14,4);
   ResoRow17->SetBinContent(15,9);
   ResoRow17->SetBinContent(16,9);
   ResoRow17->SetBinContent(17,6);
   ResoRow17->SetBinContent(18,4);
   ResoRow17->SetBinContent(19,7);
   ResoRow17->SetBinContent(20,9);
   ResoRow17->SetBinContent(21,8);
   ResoRow17->SetBinContent(22,6);
   ResoRow17->SetBinContent(23,7);
   ResoRow17->SetBinContent(24,9);
   ResoRow17->SetBinContent(25,16);
   ResoRow17->SetBinContent(26,15);
   ResoRow17->SetBinContent(27,16);
   ResoRow17->SetBinContent(28,14);
   ResoRow17->SetBinContent(29,20);
   ResoRow17->SetBinContent(30,19);
   ResoRow17->SetBinContent(31,14);
   ResoRow17->SetBinContent(32,17);
   ResoRow17->SetBinContent(33,11);
   ResoRow17->SetBinContent(34,26);
   ResoRow17->SetBinContent(35,20);
   ResoRow17->SetBinContent(36,26);
   ResoRow17->SetBinContent(37,21);
   ResoRow17->SetBinContent(38,28);
   ResoRow17->SetBinContent(39,27);
   ResoRow17->SetBinContent(40,22);
   ResoRow17->SetBinContent(41,33);
   ResoRow17->SetBinContent(42,38);
   ResoRow17->SetBinContent(43,39);
   ResoRow17->SetBinContent(44,26);
   ResoRow17->SetBinContent(45,46);
   ResoRow17->SetBinContent(46,35);
   ResoRow17->SetBinContent(47,34);
   ResoRow17->SetBinContent(48,36);
   ResoRow17->SetBinContent(49,41);
   ResoRow17->SetBinContent(50,47);
   ResoRow17->SetBinContent(51,40);
   ResoRow17->SetBinContent(52,31);
   ResoRow17->SetBinContent(53,41);
   ResoRow17->SetBinContent(54,39);
   ResoRow17->SetBinContent(55,32);
   ResoRow17->SetBinContent(56,45);
   ResoRow17->SetBinContent(57,28);
   ResoRow17->SetBinContent(58,25);
   ResoRow17->SetBinContent(59,27);
   ResoRow17->SetBinContent(60,38);
   ResoRow17->SetBinContent(61,32);
   ResoRow17->SetBinContent(62,28);
   ResoRow17->SetBinContent(63,32);
   ResoRow17->SetBinContent(64,15);
   ResoRow17->SetBinContent(65,23);
   ResoRow17->SetBinContent(66,25);
   ResoRow17->SetBinContent(67,25);
   ResoRow17->SetBinContent(68,15);
   ResoRow17->SetBinContent(69,15);
   ResoRow17->SetBinContent(70,18);
   ResoRow17->SetBinContent(71,29);
   ResoRow17->SetBinContent(72,9);
   ResoRow17->SetBinContent(73,13);
   ResoRow17->SetBinContent(74,13);
   ResoRow17->SetBinContent(75,12);
   ResoRow17->SetBinContent(76,14);
   ResoRow17->SetBinContent(77,11);
   ResoRow17->SetBinContent(78,12);
   ResoRow17->SetBinContent(79,6);
   ResoRow17->SetBinContent(80,8);
   ResoRow17->SetBinContent(81,7);
   ResoRow17->SetBinContent(82,4);
   ResoRow17->SetBinContent(83,9);
   ResoRow17->SetBinContent(84,3);
   ResoRow17->SetBinContent(85,3);
   ResoRow17->SetBinContent(86,3);
   ResoRow17->SetBinContent(87,4);
   ResoRow17->SetBinContent(88,2);
   ResoRow17->SetBinContent(89,3);
   ResoRow17->SetBinContent(90,2);
   ResoRow17->SetBinContent(92,3);
   ResoRow17->SetBinContent(93,3);
   ResoRow17->SetBinContent(94,2);
   ResoRow17->SetBinContent(95,5);
   ResoRow17->SetBinContent(96,1);
   ResoRow17->SetBinContent(97,2);
   ResoRow17->SetBinContent(98,3);
   ResoRow17->SetBinContent(99,2);
   ResoRow17->SetBinContent(100,1);
   ResoRow17->SetBinContent(101,26);
   ResoRow17->SetEntries(1620);
   
   TF1 *ResoRowFit17 = new TF1("ResoRowFit17","gaus",-1,1);
   ResoRowFit17->SetFillColor(19);
   ResoRowFit17->SetFillStyle(0);
   ResoRowFit17->SetLineWidth(3);
   ResoRowFit17->SetChisquare(96.17223);
   ResoRowFit17->SetNDF(93);
   ResoRowFit17->SetParameter(0,34.89711);
   ResoRowFit17->SetParError(0,1.194579);
   ResoRowFit17->SetParLimits(0,0,0);
   ResoRowFit17->SetParameter(1,-0.0037156);
   ResoRowFit17->SetParError(1,0.008989011);
   ResoRowFit17->SetParLimits(1,0,0);
   ResoRowFit17->SetParameter(2,0.3343797);
   ResoRowFit17->SetParError(2,0.007716606);
   ResoRowFit17->SetParLimits(2,0,3.414788);
   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 = 1620   ");
   text = ptstats->AddText("Mean  = -0.001424");
   text = ptstats->AddText("RMS   = 0.3415");
   text = ptstats->AddText("#chi^{2} / ndf = 96.17 / 93");
   text = ptstats->AddText("Constant =  34.9 #pm 1.2 ");
   text = ptstats->AddText("Mean     = -0.003716 #pm 0.008989 ");
   text = ptstats->AddText("Sigma    = 0.3344 #pm 0.0077 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow17->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow17->GetListOfFunctions());
   ResoRow17->GetXaxis()->SetTitle("residual / mm");
   ResoRow17->GetYaxis()->SetTitle("counts");
   ResoRow17->Draw("");
   c2_6->Modified();
   c2->cd();
   c2->Modified();
   c2->cd();
   c2->SetSelected(c2);
}
