{
//=========Macro generated from canvas: c2/
//=========  (Fri Jun 11 07:51:00 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,-11.55,1.25,103.95);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow07 = new TH1F("ResoRow07","",100,-1,1);
   ResoRow07->SetBinContent(0,3);
   ResoRow07->SetBinContent(7,1);
   ResoRow07->SetBinContent(11,1);
   ResoRow07->SetBinContent(21,1);
   ResoRow07->SetBinContent(26,2);
   ResoRow07->SetBinContent(28,1);
   ResoRow07->SetBinContent(29,1);
   ResoRow07->SetBinContent(32,3);
   ResoRow07->SetBinContent(33,3);
   ResoRow07->SetBinContent(34,3);
   ResoRow07->SetBinContent(35,2);
   ResoRow07->SetBinContent(36,4);
   ResoRow07->SetBinContent(37,3);
   ResoRow07->SetBinContent(38,5);
   ResoRow07->SetBinContent(39,8);
   ResoRow07->SetBinContent(40,8);
   ResoRow07->SetBinContent(41,16);
   ResoRow07->SetBinContent(42,18);
   ResoRow07->SetBinContent(43,22);
   ResoRow07->SetBinContent(44,38);
   ResoRow07->SetBinContent(45,36);
   ResoRow07->SetBinContent(46,44);
   ResoRow07->SetBinContent(47,66);
   ResoRow07->SetBinContent(48,83);
   ResoRow07->SetBinContent(49,77);
   ResoRow07->SetBinContent(50,88);
   ResoRow07->SetBinContent(51,85);
   ResoRow07->SetBinContent(52,75);
   ResoRow07->SetBinContent(53,73);
   ResoRow07->SetBinContent(54,66);
   ResoRow07->SetBinContent(55,37);
   ResoRow07->SetBinContent(56,42);
   ResoRow07->SetBinContent(57,38);
   ResoRow07->SetBinContent(58,19);
   ResoRow07->SetBinContent(59,18);
   ResoRow07->SetBinContent(60,13);
   ResoRow07->SetBinContent(61,15);
   ResoRow07->SetBinContent(62,12);
   ResoRow07->SetBinContent(63,6);
   ResoRow07->SetBinContent(64,6);
   ResoRow07->SetBinContent(65,5);
   ResoRow07->SetBinContent(67,4);
   ResoRow07->SetBinContent(68,1);
   ResoRow07->SetBinContent(69,2);
   ResoRow07->SetBinContent(71,2);
   ResoRow07->SetBinContent(73,2);
   ResoRow07->SetBinContent(75,2);
   ResoRow07->SetBinContent(76,1);
   ResoRow07->SetBinContent(77,1);
   ResoRow07->SetBinContent(82,1);
   ResoRow07->SetBinContent(86,1);
   ResoRow07->SetBinContent(89,1);
   ResoRow07->SetBinContent(101,5);
   ResoRow07->SetEntries(1070);
   
   TF1 *ResoRowFit07 = new TF1("ResoRowFit07","gaus",-1,1);
   ResoRowFit07->SetFillColor(19);
   ResoRowFit07->SetFillStyle(0);
   ResoRowFit07->SetLineWidth(3);
   ResoRowFit07->SetChisquare(64.41667);
   ResoRowFit07->SetNDF(48);
   ResoRowFit07->SetParameter(0,75.56903);
   ResoRowFit07->SetParError(0,3.352252);
   ResoRowFit07->SetParLimits(0,0,0);
   ResoRowFit07->SetParameter(1,0.0001155126);
   ResoRowFit07->SetParError(1,0.003387664);
   ResoRowFit07->SetParLimits(1,0,0);
   ResoRowFit07->SetParameter(2,0.1054589);
   ResoRowFit07->SetParError(2,0.003312588);
   ResoRowFit07->SetParLimits(2,0,1.345766);
   ResoRow07->GetListOfFunctions()->Add(ResoRowFit07);
   
   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("ResoRow07");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1070   ");
   text = ptstats->AddText("Mean  = 0.002539");
   text = ptstats->AddText("RMS   = 0.1346");
   text = ptstats->AddText("#chi^{2} / ndf = 64.42 / 48");
   text = ptstats->AddText("Constant = 75.57 #pm 3.35 ");
   text = ptstats->AddText("Mean     = 0.0001155 #pm 0.0033877 ");
   text = ptstats->AddText("Sigma    = 0.1055 #pm 0.0033 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow07->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow07->GetListOfFunctions());
   ResoRow07->GetXaxis()->SetTitle("residual / mm");
   ResoRow07->GetYaxis()->SetTitle("counts");
   ResoRow07->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,-12.20625,1.25,109.8563);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow08 = new TH1F("ResoRow08","",100,-1,1);
   ResoRow08->SetBinContent(0,3);
   ResoRow08->SetBinContent(14,1);
   ResoRow08->SetBinContent(21,1);
   ResoRow08->SetBinContent(25,1);
   ResoRow08->SetBinContent(29,2);
   ResoRow08->SetBinContent(31,2);
   ResoRow08->SetBinContent(33,1);
   ResoRow08->SetBinContent(34,1);
   ResoRow08->SetBinContent(35,4);
   ResoRow08->SetBinContent(36,3);
   ResoRow08->SetBinContent(37,3);
   ResoRow08->SetBinContent(38,8);
   ResoRow08->SetBinContent(39,8);
   ResoRow08->SetBinContent(40,14);
   ResoRow08->SetBinContent(41,16);
   ResoRow08->SetBinContent(42,11);
   ResoRow08->SetBinContent(43,24);
   ResoRow08->SetBinContent(44,23);
   ResoRow08->SetBinContent(45,42);
   ResoRow08->SetBinContent(46,45);
   ResoRow08->SetBinContent(47,59);
   ResoRow08->SetBinContent(48,72);
   ResoRow08->SetBinContent(49,70);
   ResoRow08->SetBinContent(50,85);
   ResoRow08->SetBinContent(51,93);
   ResoRow08->SetBinContent(52,81);
   ResoRow08->SetBinContent(53,64);
   ResoRow08->SetBinContent(54,70);
   ResoRow08->SetBinContent(55,52);
   ResoRow08->SetBinContent(56,35);
   ResoRow08->SetBinContent(57,51);
   ResoRow08->SetBinContent(58,28);
   ResoRow08->SetBinContent(59,23);
   ResoRow08->SetBinContent(60,24);
   ResoRow08->SetBinContent(61,10);
   ResoRow08->SetBinContent(62,2);
   ResoRow08->SetBinContent(63,6);
   ResoRow08->SetBinContent(64,3);
   ResoRow08->SetBinContent(65,3);
   ResoRow08->SetBinContent(66,2);
   ResoRow08->SetBinContent(67,3);
   ResoRow08->SetBinContent(68,3);
   ResoRow08->SetBinContent(69,1);
   ResoRow08->SetBinContent(70,1);
   ResoRow08->SetBinContent(71,3);
   ResoRow08->SetBinContent(79,1);
   ResoRow08->SetBinContent(80,1);
   ResoRow08->SetBinContent(81,1);
   ResoRow08->SetBinContent(82,1);
   ResoRow08->SetBinContent(83,1);
   ResoRow08->SetBinContent(87,1);
   ResoRow08->SetBinContent(91,1);
   ResoRow08->SetBinContent(98,1);
   ResoRow08->SetBinContent(101,5);
   ResoRow08->SetEntries(1070);
   
   TF1 *ResoRowFit08 = new TF1("ResoRowFit08","gaus",-1,1);
   ResoRowFit08->SetFillColor(19);
   ResoRowFit08->SetFillStyle(0);
   ResoRowFit08->SetLineWidth(3);
   ResoRowFit08->SetChisquare(74.19493);
   ResoRowFit08->SetNDF(49);
   ResoRowFit08->SetParameter(0,78.2214);
   ResoRowFit08->SetParError(0,3.299849);
   ResoRowFit08->SetParLimits(0,0,0);
   ResoRowFit08->SetParameter(1,0.004844744);
   ResoRowFit08->SetParError(1,0.00326887);
   ResoRowFit08->SetParLimits(1,0,0);
   ResoRowFit08->SetParameter(2,0.1007713);
   ResoRowFit08->SetParError(2,0.002795383);
   ResoRowFit08->SetParLimits(2,0,1.339575);
   ResoRow08->GetListOfFunctions()->Add(ResoRowFit08);
   
   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("ResoRow08");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1070   ");
   text = ptstats->AddText("Mean  = 0.01009");
   text = ptstats->AddText("RMS   = 0.1338");
   text = ptstats->AddText("#chi^{2} / ndf = 74.19 / 49");
   text = ptstats->AddText("Constant = 78.22 #pm 3.30 ");
   text = ptstats->AddText("Mean     = 0.004845 #pm 0.003269 ");
   text = ptstats->AddText("Sigma    = 0.1008 #pm 0.0028 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow08->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow08->GetListOfFunctions());
   ResoRow08->GetXaxis()->SetTitle("residual / mm");
   ResoRow08->GetYaxis()->SetTitle("counts");
   ResoRow08->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.41875,1.25,102.7688);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow09 = new TH1F("ResoRow09","",100,-1,1);
   ResoRow09->SetBinContent(0,2);
   ResoRow09->SetBinContent(1,1);
   ResoRow09->SetBinContent(2,1);
   ResoRow09->SetBinContent(5,1);
   ResoRow09->SetBinContent(21,1);
   ResoRow09->SetBinContent(23,1);
   ResoRow09->SetBinContent(25,1);
   ResoRow09->SetBinContent(28,1);
   ResoRow09->SetBinContent(29,1);
   ResoRow09->SetBinContent(32,1);
   ResoRow09->SetBinContent(33,2);
   ResoRow09->SetBinContent(34,4);
   ResoRow09->SetBinContent(35,4);
   ResoRow09->SetBinContent(36,2);
   ResoRow09->SetBinContent(37,6);
   ResoRow09->SetBinContent(38,5);
   ResoRow09->SetBinContent(39,3);
   ResoRow09->SetBinContent(40,13);
   ResoRow09->SetBinContent(41,11);
   ResoRow09->SetBinContent(42,20);
   ResoRow09->SetBinContent(43,25);
   ResoRow09->SetBinContent(44,30);
   ResoRow09->SetBinContent(45,35);
   ResoRow09->SetBinContent(46,42);
   ResoRow09->SetBinContent(47,62);
   ResoRow09->SetBinContent(48,70);
   ResoRow09->SetBinContent(49,78);
   ResoRow09->SetBinContent(50,68);
   ResoRow09->SetBinContent(51,87);
   ResoRow09->SetBinContent(52,81);
   ResoRow09->SetBinContent(53,78);
   ResoRow09->SetBinContent(54,66);
   ResoRow09->SetBinContent(55,65);
   ResoRow09->SetBinContent(56,36);
   ResoRow09->SetBinContent(57,43);
   ResoRow09->SetBinContent(58,25);
   ResoRow09->SetBinContent(59,28);
   ResoRow09->SetBinContent(60,11);
   ResoRow09->SetBinContent(61,10);
   ResoRow09->SetBinContent(62,8);
   ResoRow09->SetBinContent(63,3);
   ResoRow09->SetBinContent(64,4);
   ResoRow09->SetBinContent(65,8);
   ResoRow09->SetBinContent(66,4);
   ResoRow09->SetBinContent(67,1);
   ResoRow09->SetBinContent(68,1);
   ResoRow09->SetBinContent(69,1);
   ResoRow09->SetBinContent(70,1);
   ResoRow09->SetBinContent(71,1);
   ResoRow09->SetBinContent(73,1);
   ResoRow09->SetBinContent(75,1);
   ResoRow09->SetBinContent(77,1);
   ResoRow09->SetBinContent(78,1);
   ResoRow09->SetBinContent(83,1);
   ResoRow09->SetBinContent(84,1);
   ResoRow09->SetBinContent(87,1);
   ResoRow09->SetBinContent(88,1);
   ResoRow09->SetBinContent(93,1);
   ResoRow09->SetBinContent(101,8);
   ResoRow09->SetEntries(1070);
   
   TF1 *ResoRowFit09 = new TF1("ResoRowFit09","gaus",-1,1);
   ResoRowFit09->SetFillColor(19);
   ResoRowFit09->SetFillStyle(0);
   ResoRowFit09->SetLineWidth(3);
   ResoRowFit09->SetChisquare(60.49918);
   ResoRowFit09->SetNDF(54);
   ResoRowFit09->SetParameter(0,77.62841);
   ResoRowFit09->SetParError(0,3.232499);
   ResoRowFit09->SetParLimits(0,0,0);
   ResoRowFit09->SetParameter(1,0.006729477);
   ResoRowFit09->SetParError(1,0.003257852);
   ResoRowFit09->SetParLimits(1,0,0);
   ResoRowFit09->SetParameter(2,0.1027402);
   ResoRowFit09->SetParError(2,0.002785244);
   ResoRowFit09->SetParLimits(2,0,1.410109);
   ResoRow09->GetListOfFunctions()->Add(ResoRowFit09);
   
   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("ResoRow09");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1070   ");
   text = ptstats->AddText("Mean  = 0.006731");
   text = ptstats->AddText("RMS   = 0.1406");
   text = ptstats->AddText("#chi^{2} / ndf =  60.5 / 54");
   text = ptstats->AddText("Constant = 77.63 #pm 3.23 ");
   text = ptstats->AddText("Mean     = 0.006729 #pm 0.003258 ");
   text = ptstats->AddText("Sigma    = 0.1027 #pm 0.0028 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow09->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow09->GetListOfFunctions());
   ResoRow09->GetXaxis()->SetTitle("residual / mm");
   ResoRow09->GetYaxis()->SetTitle("counts");
   ResoRow09->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,-12.3375,1.25,111.0375);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow10 = new TH1F("ResoRow10","",100,-1,1);
   ResoRow10->SetBinContent(0,1);
   ResoRow10->SetBinContent(7,1);
   ResoRow10->SetBinContent(9,2);
   ResoRow10->SetBinContent(20,1);
   ResoRow10->SetBinContent(23,1);
   ResoRow10->SetBinContent(27,3);
   ResoRow10->SetBinContent(29,2);
   ResoRow10->SetBinContent(30,1);
   ResoRow10->SetBinContent(31,2);
   ResoRow10->SetBinContent(32,3);
   ResoRow10->SetBinContent(33,1);
   ResoRow10->SetBinContent(34,2);
   ResoRow10->SetBinContent(35,4);
   ResoRow10->SetBinContent(36,4);
   ResoRow10->SetBinContent(37,4);
   ResoRow10->SetBinContent(38,2);
   ResoRow10->SetBinContent(39,6);
   ResoRow10->SetBinContent(40,11);
   ResoRow10->SetBinContent(41,12);
   ResoRow10->SetBinContent(42,17);
   ResoRow10->SetBinContent(43,25);
   ResoRow10->SetBinContent(44,29);
   ResoRow10->SetBinContent(45,28);
   ResoRow10->SetBinContent(46,40);
   ResoRow10->SetBinContent(47,62);
   ResoRow10->SetBinContent(48,76);
   ResoRow10->SetBinContent(49,81);
   ResoRow10->SetBinContent(50,94);
   ResoRow10->SetBinContent(51,71);
   ResoRow10->SetBinContent(52,73);
   ResoRow10->SetBinContent(53,74);
   ResoRow10->SetBinContent(54,63);
   ResoRow10->SetBinContent(55,61);
   ResoRow10->SetBinContent(56,52);
   ResoRow10->SetBinContent(57,43);
   ResoRow10->SetBinContent(58,23);
   ResoRow10->SetBinContent(59,19);
   ResoRow10->SetBinContent(60,20);
   ResoRow10->SetBinContent(61,9);
   ResoRow10->SetBinContent(62,10);
   ResoRow10->SetBinContent(63,5);
   ResoRow10->SetBinContent(64,6);
   ResoRow10->SetBinContent(65,1);
   ResoRow10->SetBinContent(66,7);
   ResoRow10->SetBinContent(67,2);
   ResoRow10->SetBinContent(72,2);
   ResoRow10->SetBinContent(73,1);
   ResoRow10->SetBinContent(74,1);
   ResoRow10->SetBinContent(76,1);
   ResoRow10->SetBinContent(77,2);
   ResoRow10->SetBinContent(87,1);
   ResoRow10->SetBinContent(93,1);
   ResoRow10->SetBinContent(95,2);
   ResoRow10->SetBinContent(98,1);
   ResoRow10->SetBinContent(101,4);
   ResoRow10->SetEntries(1070);
   
   TF1 *ResoRowFit10 = new TF1("ResoRowFit10","gaus",-1,1);
   ResoRowFit10->SetFillColor(19);
   ResoRowFit10->SetFillStyle(0);
   ResoRowFit10->SetLineWidth(3);
   ResoRowFit10->SetChisquare(65.2794);
   ResoRowFit10->SetNDF(50);
   ResoRowFit10->SetParameter(0,77.76696);
   ResoRowFit10->SetParError(0,3.218411);
   ResoRowFit10->SetParLimits(0,0,0);
   ResoRowFit10->SetParameter(1,0.009319053);
   ResoRowFit10->SetParError(1,0.003261945);
   ResoRowFit10->SetParLimits(1,0,0);
   ResoRowFit10->SetParameter(2,0.1026323);
   ResoRowFit10->SetParError(2,0.002756561);
   ResoRowFit10->SetParLimits(2,0,1.449263);
   ResoRow10->GetListOfFunctions()->Add(ResoRowFit10);
   
   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("ResoRow10");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1070   ");
   text = ptstats->AddText("Mean  = 0.007781");
   text = ptstats->AddText("RMS   = 0.1444");
   text = ptstats->AddText("#chi^{2} / ndf = 65.28 / 50");
   text = ptstats->AddText("Constant = 77.77 #pm 3.22 ");
   text = ptstats->AddText("Mean     = 0.009319 #pm 0.003262 ");
   text = ptstats->AddText("Sigma    = 0.1026 #pm 0.0028 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow10->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow10->GetListOfFunctions());
   ResoRow10->GetXaxis()->SetTitle("residual / mm");
   ResoRow10->GetYaxis()->SetTitle("counts");
   ResoRow10->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,-12.73125,1.25,114.5813);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow11 = new TH1F("ResoRow11","",100,-1,1);
   ResoRow11->SetBinContent(0,3);
   ResoRow11->SetBinContent(20,1);
   ResoRow11->SetBinContent(23,2);
   ResoRow11->SetBinContent(24,1);
   ResoRow11->SetBinContent(25,1);
   ResoRow11->SetBinContent(26,1);
   ResoRow11->SetBinContent(27,2);
   ResoRow11->SetBinContent(28,1);
   ResoRow11->SetBinContent(31,1);
   ResoRow11->SetBinContent(32,1);
   ResoRow11->SetBinContent(33,1);
   ResoRow11->SetBinContent(34,2);
   ResoRow11->SetBinContent(35,3);
   ResoRow11->SetBinContent(36,6);
   ResoRow11->SetBinContent(37,10);
   ResoRow11->SetBinContent(38,8);
   ResoRow11->SetBinContent(39,8);
   ResoRow11->SetBinContent(40,9);
   ResoRow11->SetBinContent(41,11);
   ResoRow11->SetBinContent(42,19);
   ResoRow11->SetBinContent(43,31);
   ResoRow11->SetBinContent(44,30);
   ResoRow11->SetBinContent(45,41);
   ResoRow11->SetBinContent(46,36);
   ResoRow11->SetBinContent(47,52);
   ResoRow11->SetBinContent(48,71);
   ResoRow11->SetBinContent(49,85);
   ResoRow11->SetBinContent(50,75);
   ResoRow11->SetBinContent(51,80);
   ResoRow11->SetBinContent(52,97);
   ResoRow11->SetBinContent(53,70);
   ResoRow11->SetBinContent(54,70);
   ResoRow11->SetBinContent(55,45);
   ResoRow11->SetBinContent(56,45);
   ResoRow11->SetBinContent(57,36);
   ResoRow11->SetBinContent(58,21);
   ResoRow11->SetBinContent(59,16);
   ResoRow11->SetBinContent(60,14);
   ResoRow11->SetBinContent(61,11);
   ResoRow11->SetBinContent(62,9);
   ResoRow11->SetBinContent(63,7);
   ResoRow11->SetBinContent(64,8);
   ResoRow11->SetBinContent(65,6);
   ResoRow11->SetBinContent(66,6);
   ResoRow11->SetBinContent(67,1);
   ResoRow11->SetBinContent(68,1);
   ResoRow11->SetBinContent(69,3);
   ResoRow11->SetBinContent(70,2);
   ResoRow11->SetBinContent(73,2);
   ResoRow11->SetBinContent(77,1);
   ResoRow11->SetBinContent(80,1);
   ResoRow11->SetBinContent(86,1);
   ResoRow11->SetBinContent(95,1);
   ResoRow11->SetBinContent(101,4);
   ResoRow11->SetEntries(1070);
   
   TF1 *ResoRowFit11 = new TF1("ResoRowFit11","gaus",-1,1);
   ResoRowFit11->SetFillColor(19);
   ResoRowFit11->SetFillStyle(0);
   ResoRowFit11->SetLineWidth(3);
   ResoRowFit11->SetChisquare(71.28471);
   ResoRowFit11->SetNDF(49);
   ResoRowFit11->SetParameter(0,73.06011);
   ResoRowFit11->SetParError(0,3.326546);
   ResoRowFit11->SetParLimits(0,0,0);
   ResoRowFit11->SetParameter(1,0.003048641);
   ResoRowFit11->SetParError(1,0.003451542);
   ResoRowFit11->SetParLimits(1,0,0);
   ResoRowFit11->SetParameter(2,0.1083243);
   ResoRowFit11->SetParError(2,0.003542582);
   ResoRowFit11->SetParLimits(2,0,1.345064);
   ResoRow11->GetListOfFunctions()->Add(ResoRowFit11);
   
   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("ResoRow11");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1070   ");
   text = ptstats->AddText("Mean  = 0.002386");
   text = ptstats->AddText("RMS   = 0.1344");
   text = ptstats->AddText("#chi^{2} / ndf = 71.28 / 49");
   text = ptstats->AddText("Constant = 73.06 #pm 3.33 ");
   text = ptstats->AddText("Mean     = 0.003049 #pm 0.003452 ");
   text = ptstats->AddText("Sigma    = 0.1083 #pm 0.0035 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow11->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow11->GetListOfFunctions());
   ResoRow11->GetXaxis()->SetTitle("residual / mm");
   ResoRow11->GetYaxis()->SetTitle("counts");
   ResoRow11->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,-13.51875,1.25,121.6688);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow12 = new TH1F("ResoRow12","",100,-1,1);
   ResoRow12->SetBinContent(0,3);
   ResoRow12->SetBinContent(14,1);
   ResoRow12->SetBinContent(18,1);
   ResoRow12->SetBinContent(19,1);
   ResoRow12->SetBinContent(25,1);
   ResoRow12->SetBinContent(26,1);
   ResoRow12->SetBinContent(27,1);
   ResoRow12->SetBinContent(30,1);
   ResoRow12->SetBinContent(31,3);
   ResoRow12->SetBinContent(32,3);
   ResoRow12->SetBinContent(34,4);
   ResoRow12->SetBinContent(35,2);
   ResoRow12->SetBinContent(36,2);
   ResoRow12->SetBinContent(37,7);
   ResoRow12->SetBinContent(38,4);
   ResoRow12->SetBinContent(39,9);
   ResoRow12->SetBinContent(40,6);
   ResoRow12->SetBinContent(41,19);
   ResoRow12->SetBinContent(42,24);
   ResoRow12->SetBinContent(43,14);
   ResoRow12->SetBinContent(44,21);
   ResoRow12->SetBinContent(45,36);
   ResoRow12->SetBinContent(46,61);
   ResoRow12->SetBinContent(47,53);
   ResoRow12->SetBinContent(48,64);
   ResoRow12->SetBinContent(49,76);
   ResoRow12->SetBinContent(50,95);
   ResoRow12->SetBinContent(51,103);
   ResoRow12->SetBinContent(52,74);
   ResoRow12->SetBinContent(53,75);
   ResoRow12->SetBinContent(54,77);
   ResoRow12->SetBinContent(55,39);
   ResoRow12->SetBinContent(56,39);
   ResoRow12->SetBinContent(57,35);
   ResoRow12->SetBinContent(58,25);
   ResoRow12->SetBinContent(59,18);
   ResoRow12->SetBinContent(60,19);
   ResoRow12->SetBinContent(61,12);
   ResoRow12->SetBinContent(62,7);
   ResoRow12->SetBinContent(63,6);
   ResoRow12->SetBinContent(64,5);
   ResoRow12->SetBinContent(65,5);
   ResoRow12->SetBinContent(66,4);
   ResoRow12->SetBinContent(67,1);
   ResoRow12->SetBinContent(68,1);
   ResoRow12->SetBinContent(72,1);
   ResoRow12->SetBinContent(73,1);
   ResoRow12->SetBinContent(74,1);
   ResoRow12->SetBinContent(80,2);
   ResoRow12->SetBinContent(81,1);
   ResoRow12->SetBinContent(84,1);
   ResoRow12->SetBinContent(94,1);
   ResoRow12->SetBinContent(101,4);
   ResoRow12->SetEntries(1070);
   
   TF1 *ResoRowFit12 = new TF1("ResoRowFit12","gaus",-1,1);
   ResoRowFit12->SetFillColor(19);
   ResoRowFit12->SetFillStyle(0);
   ResoRowFit12->SetLineWidth(3);
   ResoRowFit12->SetChisquare(81.28873);
   ResoRowFit12->SetNDF(48);
   ResoRowFit12->SetParameter(0,76.61081);
   ResoRowFit12->SetParError(0,3.453178);
   ResoRowFit12->SetParLimits(0,0,0);
   ResoRowFit12->SetParameter(1,0.007219946);
   ResoRowFit12->SetParError(1,0.003276771);
   ResoRowFit12->SetParLimits(1,0,0);
   ResoRowFit12->SetParameter(2,0.1022879);
   ResoRowFit12->SetParError(2,0.003271843);
   ResoRowFit12->SetParLimits(2,0,1.309206);
   ResoRow12->GetListOfFunctions()->Add(ResoRowFit12);
   
   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("ResoRow12");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1070   ");
   text = ptstats->AddText("Mean  = 0.003352");
   text = ptstats->AddText("RMS   = 0.1308");
   text = ptstats->AddText("#chi^{2} / ndf = 81.29 / 48");
   text = ptstats->AddText("Constant = 76.61 #pm 3.45 ");
   text = ptstats->AddText("Mean     = 0.00722 #pm 0.00328 ");
   text = ptstats->AddText("Sigma    = 0.1023 #pm 0.0033 ");
   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_6->Modified();
   c2->cd();
   c2->Modified();
   c2->cd();
   c2->SetSelected(c2);
}
