{
//=========Macro generated from canvas: c2/
//=========  (Tue Jun  8 17:00:43 2010) by ROOT version5.25/04
   TCanvas *c2 = new TCanvas("c2", "",0,0,900,600);
   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,-15.09375,1.25,135.8438);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow01 = new TH1F("ResoRow01","",100,-1,1);
   ResoRow01->SetBinContent(0,4);
   ResoRow01->SetBinContent(6,1);
   ResoRow01->SetBinContent(17,1);
   ResoRow01->SetBinContent(27,1);
   ResoRow01->SetBinContent(29,1);
   ResoRow01->SetBinContent(31,3);
   ResoRow01->SetBinContent(36,2);
   ResoRow01->SetBinContent(37,4);
   ResoRow01->SetBinContent(38,3);
   ResoRow01->SetBinContent(39,5);
   ResoRow01->SetBinContent(40,11);
   ResoRow01->SetBinContent(41,6);
   ResoRow01->SetBinContent(42,11);
   ResoRow01->SetBinContent(43,24);
   ResoRow01->SetBinContent(44,25);
   ResoRow01->SetBinContent(45,48);
   ResoRow01->SetBinContent(46,52);
   ResoRow01->SetBinContent(47,89);
   ResoRow01->SetBinContent(48,93);
   ResoRow01->SetBinContent(49,104);
   ResoRow01->SetBinContent(50,107);
   ResoRow01->SetBinContent(51,115);
   ResoRow01->SetBinContent(52,115);
   ResoRow01->SetBinContent(53,86);
   ResoRow01->SetBinContent(54,63);
   ResoRow01->SetBinContent(55,40);
   ResoRow01->SetBinContent(56,38);
   ResoRow01->SetBinContent(57,20);
   ResoRow01->SetBinContent(58,18);
   ResoRow01->SetBinContent(59,10);
   ResoRow01->SetBinContent(60,11);
   ResoRow01->SetBinContent(61,4);
   ResoRow01->SetBinContent(62,6);
   ResoRow01->SetBinContent(63,7);
   ResoRow01->SetBinContent(64,4);
   ResoRow01->SetBinContent(65,4);
   ResoRow01->SetBinContent(67,2);
   ResoRow01->SetBinContent(71,1);
   ResoRow01->SetBinContent(72,2);
   ResoRow01->SetBinContent(73,1);
   ResoRow01->SetBinContent(74,1);
   ResoRow01->SetBinContent(76,1);
   ResoRow01->SetBinContent(77,2);
   ResoRow01->SetBinContent(83,1);
   ResoRow01->SetBinContent(84,1);
   ResoRow01->SetBinContent(87,1);
   ResoRow01->SetBinContent(94,1);
   ResoRow01->SetBinContent(101,1);
   ResoRow01->SetEntries(1151);
   
   TF1 *ResoRowFit01 = new TF1("ResoRowFit01","gaus",-1,1);
   ResoRowFit01->SetFillColor(19);
   ResoRowFit01->SetFillStyle(0);
   ResoRowFit01->SetLineWidth(3);
   ResoRowFit01->SetChisquare(68.88097);
   ResoRowFit01->SetNDF(43);
   ResoRowFit01->SetParameter(0,106.7299);
   ResoRowFit01->SetParError(0,4.455798);
   ResoRowFit01->SetParLimits(0,0,0);
   ResoRowFit01->SetParameter(1,-0.005833567);
   ResoRowFit01->SetParError(1,0.002461099);
   ResoRowFit01->SetParLimits(1,0,0);
   ResoRowFit01->SetParameter(2,0.08053693);
   ResoRowFit01->SetParError(2,0.002303637);
   ResoRowFit01->SetParLimits(2,0,1.15714);
   ResoRow01->GetListOfFunctions()->Add(ResoRowFit01);
   
   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("ResoRow01");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1151   ");
   text = ptstats->AddText("Mean  = -0.0006562");
   text = ptstats->AddText("RMS   = 0.1158");
   text = ptstats->AddText("#chi^{2} / ndf = 68.88 / 43");
   text = ptstats->AddText("Constant = 106.7 #pm 4.5 ");
   text = ptstats->AddText("Mean     = -0.005834 #pm 0.002461 ");
   text = ptstats->AddText("Sigma    = 0.08054 #pm 0.00230 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow01->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow01->GetListOfFunctions());
   ResoRow01->GetXaxis()->SetTitle("residual / mm");
   ResoRow01->GetYaxis()->SetTitle("counts");
   ResoRow01->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,-15.61875,1.25,140.5688);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow02 = new TH1F("ResoRow02","",100,-1,1);
   ResoRow02->SetBinContent(23,2);
   ResoRow02->SetBinContent(24,1);
   ResoRow02->SetBinContent(25,1);
   ResoRow02->SetBinContent(30,1);
   ResoRow02->SetBinContent(31,3);
   ResoRow02->SetBinContent(32,1);
   ResoRow02->SetBinContent(33,1);
   ResoRow02->SetBinContent(34,2);
   ResoRow02->SetBinContent(35,3);
   ResoRow02->SetBinContent(36,6);
   ResoRow02->SetBinContent(37,3);
   ResoRow02->SetBinContent(38,4);
   ResoRow02->SetBinContent(39,6);
   ResoRow02->SetBinContent(40,5);
   ResoRow02->SetBinContent(41,9);
   ResoRow02->SetBinContent(42,27);
   ResoRow02->SetBinContent(43,17);
   ResoRow02->SetBinContent(44,38);
   ResoRow02->SetBinContent(45,38);
   ResoRow02->SetBinContent(46,61);
   ResoRow02->SetBinContent(47,77);
   ResoRow02->SetBinContent(48,93);
   ResoRow02->SetBinContent(49,100);
   ResoRow02->SetBinContent(50,88);
   ResoRow02->SetBinContent(51,119);
   ResoRow02->SetBinContent(52,89);
   ResoRow02->SetBinContent(53,70);
   ResoRow02->SetBinContent(54,71);
   ResoRow02->SetBinContent(55,59);
   ResoRow02->SetBinContent(56,41);
   ResoRow02->SetBinContent(57,37);
   ResoRow02->SetBinContent(58,18);
   ResoRow02->SetBinContent(59,13);
   ResoRow02->SetBinContent(60,8);
   ResoRow02->SetBinContent(61,4);
   ResoRow02->SetBinContent(62,8);
   ResoRow02->SetBinContent(63,2);
   ResoRow02->SetBinContent(64,4);
   ResoRow02->SetBinContent(66,1);
   ResoRow02->SetBinContent(67,3);
   ResoRow02->SetBinContent(68,1);
   ResoRow02->SetBinContent(69,1);
   ResoRow02->SetBinContent(72,1);
   ResoRow02->SetBinContent(73,1);
   ResoRow02->SetBinContent(74,1);
   ResoRow02->SetBinContent(75,1);
   ResoRow02->SetBinContent(78,1);
   ResoRow02->SetBinContent(79,1);
   ResoRow02->SetBinContent(82,1);
   ResoRow02->SetBinContent(83,1);
   ResoRow02->SetBinContent(87,1);
   ResoRow02->SetBinContent(98,1);
   ResoRow02->SetBinContent(101,5);
   ResoRow02->SetEntries(1151);
   
   TF1 *ResoRowFit02 = new TF1("ResoRowFit02","gaus",-1,1);
   ResoRowFit02->SetFillColor(19);
   ResoRowFit02->SetFillStyle(0);
   ResoRowFit02->SetLineWidth(3);
   ResoRowFit02->SetChisquare(65.2153);
   ResoRowFit02->SetNDF(49);
   ResoRowFit02->SetParameter(0,97.4323);
   ResoRowFit02->SetParError(0,3.866162);
   ResoRowFit02->SetParLimits(0,0,0);
   ResoRowFit02->SetParameter(1,-0.003391544);
   ResoRowFit02->SetParError(1,0.00269936);
   ResoRowFit02->SetParLimits(1,0,0);
   ResoRowFit02->SetParameter(2,0.0885403);
   ResoRowFit02->SetParError(2,0.002264017);
   ResoRowFit02->SetParLimits(2,0,1.201352);
   ResoRow02->GetListOfFunctions()->Add(ResoRowFit02);
   
   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("ResoRow02");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1151   ");
   text = ptstats->AddText("Mean  = -0.003061");
   text = ptstats->AddText("RMS   = 0.1203");
   text = ptstats->AddText("#chi^{2} / ndf = 65.22 / 49");
   text = ptstats->AddText("Constant = 97.43 #pm 3.87 ");
   text = ptstats->AddText("Mean     = -0.003392 #pm 0.002699 ");
   text = ptstats->AddText("Sigma    = 0.08854 #pm 0.00226 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow02->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow02->GetListOfFunctions());
   ResoRow02->GetXaxis()->SetTitle("residual / mm");
   ResoRow02->GetYaxis()->SetTitle("counts");
   ResoRow02->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,-13.51875,1.25,121.6688);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow03 = new TH1F("ResoRow03","",100,-1,1);
   ResoRow03->SetBinContent(14,2);
   ResoRow03->SetBinContent(22,1);
   ResoRow03->SetBinContent(24,1);
   ResoRow03->SetBinContent(27,1);
   ResoRow03->SetBinContent(28,3);
   ResoRow03->SetBinContent(30,2);
   ResoRow03->SetBinContent(31,1);
   ResoRow03->SetBinContent(32,1);
   ResoRow03->SetBinContent(33,1);
   ResoRow03->SetBinContent(34,1);
   ResoRow03->SetBinContent(35,2);
   ResoRow03->SetBinContent(36,2);
   ResoRow03->SetBinContent(37,4);
   ResoRow03->SetBinContent(38,6);
   ResoRow03->SetBinContent(39,5);
   ResoRow03->SetBinContent(40,14);
   ResoRow03->SetBinContent(41,20);
   ResoRow03->SetBinContent(42,13);
   ResoRow03->SetBinContent(43,25);
   ResoRow03->SetBinContent(44,37);
   ResoRow03->SetBinContent(45,39);
   ResoRow03->SetBinContent(46,53);
   ResoRow03->SetBinContent(47,77);
   ResoRow03->SetBinContent(48,71);
   ResoRow03->SetBinContent(49,86);
   ResoRow03->SetBinContent(50,103);
   ResoRow03->SetBinContent(51,96);
   ResoRow03->SetBinContent(52,103);
   ResoRow03->SetBinContent(53,84);
   ResoRow03->SetBinContent(54,66);
   ResoRow03->SetBinContent(55,54);
   ResoRow03->SetBinContent(56,42);
   ResoRow03->SetBinContent(57,31);
   ResoRow03->SetBinContent(58,27);
   ResoRow03->SetBinContent(59,19);
   ResoRow03->SetBinContent(60,17);
   ResoRow03->SetBinContent(61,9);
   ResoRow03->SetBinContent(62,5);
   ResoRow03->SetBinContent(63,8);
   ResoRow03->SetBinContent(64,2);
   ResoRow03->SetBinContent(65,1);
   ResoRow03->SetBinContent(66,1);
   ResoRow03->SetBinContent(67,1);
   ResoRow03->SetBinContent(69,2);
   ResoRow03->SetBinContent(70,1);
   ResoRow03->SetBinContent(71,1);
   ResoRow03->SetBinContent(72,3);
   ResoRow03->SetBinContent(74,2);
   ResoRow03->SetBinContent(81,1);
   ResoRow03->SetBinContent(84,1);
   ResoRow03->SetBinContent(99,1);
   ResoRow03->SetBinContent(101,2);
   ResoRow03->SetEntries(1151);
   
   TF1 *ResoRowFit03 = new TF1("ResoRowFit03","gaus",-1,1);
   ResoRowFit03->SetFillColor(19);
   ResoRowFit03->SetFillStyle(0);
   ResoRowFit03->SetLineWidth(3);
   ResoRowFit03->SetChisquare(52.40746);
   ResoRowFit03->SetNDF(48);
   ResoRowFit03->SetParameter(0,89.35872);
   ResoRowFit03->SetParError(0,3.59158);
   ResoRowFit03->SetParLimits(0,0,0);
   ResoRowFit03->SetParameter(1,0.0004515005);
   ResoRowFit03->SetParError(1,0.002967796);
   ResoRowFit03->SetParLimits(1,0,0);
   ResoRowFit03->SetParameter(2,0.09792927);
   ResoRowFit03->SetParError(2,0.002601347);
   ResoRowFit03->SetParLimits(2,0,1.248759);
   ResoRow03->GetListOfFunctions()->Add(ResoRowFit03);
   
   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("ResoRow03");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1151   ");
   text = ptstats->AddText("Mean  = -0.001117");
   text = ptstats->AddText("RMS   = 0.1248");
   text = ptstats->AddText("#chi^{2} / ndf = 52.41 / 48");
   text = ptstats->AddText("Constant = 89.36 #pm 3.59 ");
   text = ptstats->AddText("Mean     = 0.0004515 #pm 0.0029678 ");
   text = ptstats->AddText("Sigma    = 0.09793 #pm 0.00260 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow03->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow03->GetListOfFunctions());
   ResoRow03->GetXaxis()->SetTitle("residual / mm");
   ResoRow03->GetYaxis()->SetTitle("counts");
   ResoRow03->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,-11.55,1.25,103.95);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow09 = new TH1F("ResoRow09","",100,-1,1);
   ResoRow09->SetBinContent(0,3);
   ResoRow09->SetBinContent(5,1);
   ResoRow09->SetBinContent(18,1);
   ResoRow09->SetBinContent(20,1);
   ResoRow09->SetBinContent(24,1);
   ResoRow09->SetBinContent(26,1);
   ResoRow09->SetBinContent(27,1);
   ResoRow09->SetBinContent(29,2);
   ResoRow09->SetBinContent(30,2);
   ResoRow09->SetBinContent(31,1);
   ResoRow09->SetBinContent(32,5);
   ResoRow09->SetBinContent(33,2);
   ResoRow09->SetBinContent(34,6);
   ResoRow09->SetBinContent(35,6);
   ResoRow09->SetBinContent(36,3);
   ResoRow09->SetBinContent(37,7);
   ResoRow09->SetBinContent(38,11);
   ResoRow09->SetBinContent(39,15);
   ResoRow09->SetBinContent(40,20);
   ResoRow09->SetBinContent(41,22);
   ResoRow09->SetBinContent(42,31);
   ResoRow09->SetBinContent(43,38);
   ResoRow09->SetBinContent(44,42);
   ResoRow09->SetBinContent(45,52);
   ResoRow09->SetBinContent(46,55);
   ResoRow09->SetBinContent(47,53);
   ResoRow09->SetBinContent(48,73);
   ResoRow09->SetBinContent(49,79);
   ResoRow09->SetBinContent(50,74);
   ResoRow09->SetBinContent(51,88);
   ResoRow09->SetBinContent(52,69);
   ResoRow09->SetBinContent(53,80);
   ResoRow09->SetBinContent(54,64);
   ResoRow09->SetBinContent(55,42);
   ResoRow09->SetBinContent(56,32);
   ResoRow09->SetBinContent(57,43);
   ResoRow09->SetBinContent(58,21);
   ResoRow09->SetBinContent(59,24);
   ResoRow09->SetBinContent(60,13);
   ResoRow09->SetBinContent(61,15);
   ResoRow09->SetBinContent(62,9);
   ResoRow09->SetBinContent(63,8);
   ResoRow09->SetBinContent(64,4);
   ResoRow09->SetBinContent(65,1);
   ResoRow09->SetBinContent(66,3);
   ResoRow09->SetBinContent(67,3);
   ResoRow09->SetBinContent(68,4);
   ResoRow09->SetBinContent(69,1);
   ResoRow09->SetBinContent(70,1);
   ResoRow09->SetBinContent(71,2);
   ResoRow09->SetBinContent(72,1);
   ResoRow09->SetBinContent(73,2);
   ResoRow09->SetBinContent(76,1);
   ResoRow09->SetBinContent(77,1);
   ResoRow09->SetBinContent(82,2);
   ResoRow09->SetBinContent(85,1);
   ResoRow09->SetBinContent(86,1);
   ResoRow09->SetBinContent(89,1);
   ResoRow09->SetBinContent(92,1);
   ResoRow09->SetBinContent(95,1);
   ResoRow09->SetBinContent(101,4);
   ResoRow09->SetEntries(1151);
   
   TF1 *ResoRowFit09 = new TF1("ResoRowFit09","gaus",-1,1);
   ResoRowFit09->SetFillColor(19);
   ResoRowFit09->SetFillStyle(0);
   ResoRowFit09->SetLineWidth(3);
   ResoRowFit09->SetChisquare(62.88272);
   ResoRowFit09->SetNDF(56);
   ResoRowFit09->SetParameter(0,72.8341);
   ResoRowFit09->SetParError(0,2.876637);
   ResoRowFit09->SetParLimits(0,0,0);
   ResoRowFit09->SetParameter(1,-0.01508473);
   ResoRowFit09->SetParError(1,0.003625531);
   ResoRowFit09->SetParLimits(1,0,0);
   ResoRowFit09->SetParameter(2,0.1184486);
   ResoRowFit09->SetParError(2,0.002988807);
   ResoRowFit09->SetParLimits(2,0,1.496748);
   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 = 1151   ");
   text = ptstats->AddText("Mean  = -0.01037");
   text = ptstats->AddText("RMS   = 0.1494");
   text = ptstats->AddText("#chi^{2} / ndf = 62.88 / 56");
   text = ptstats->AddText("Constant = 72.83 #pm 2.88 ");
   text = ptstats->AddText("Mean     = -0.01508 #pm 0.00363 ");
   text = ptstats->AddText("Sigma    = 0.1184 #pm 0.0030 ");
   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_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.46875,1.25,112.2188);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow10 = new TH1F("ResoRow10","",100,-1,1);
   ResoRow10->SetBinContent(0,4);
   ResoRow10->SetBinContent(2,1);
   ResoRow10->SetBinContent(13,1);
   ResoRow10->SetBinContent(21,1);
   ResoRow10->SetBinContent(23,2);
   ResoRow10->SetBinContent(25,1);
   ResoRow10->SetBinContent(27,1);
   ResoRow10->SetBinContent(30,1);
   ResoRow10->SetBinContent(31,1);
   ResoRow10->SetBinContent(33,3);
   ResoRow10->SetBinContent(34,4);
   ResoRow10->SetBinContent(35,2);
   ResoRow10->SetBinContent(36,3);
   ResoRow10->SetBinContent(37,6);
   ResoRow10->SetBinContent(38,5);
   ResoRow10->SetBinContent(39,12);
   ResoRow10->SetBinContent(40,12);
   ResoRow10->SetBinContent(41,17);
   ResoRow10->SetBinContent(42,20);
   ResoRow10->SetBinContent(43,28);
   ResoRow10->SetBinContent(44,41);
   ResoRow10->SetBinContent(45,50);
   ResoRow10->SetBinContent(46,60);
   ResoRow10->SetBinContent(47,69);
   ResoRow10->SetBinContent(48,92);
   ResoRow10->SetBinContent(49,93);
   ResoRow10->SetBinContent(50,81);
   ResoRow10->SetBinContent(51,95);
   ResoRow10->SetBinContent(52,88);
   ResoRow10->SetBinContent(53,76);
   ResoRow10->SetBinContent(54,60);
   ResoRow10->SetBinContent(55,51);
   ResoRow10->SetBinContent(56,36);
   ResoRow10->SetBinContent(57,30);
   ResoRow10->SetBinContent(58,23);
   ResoRow10->SetBinContent(59,17);
   ResoRow10->SetBinContent(60,16);
   ResoRow10->SetBinContent(61,8);
   ResoRow10->SetBinContent(62,10);
   ResoRow10->SetBinContent(63,4);
   ResoRow10->SetBinContent(64,3);
   ResoRow10->SetBinContent(65,5);
   ResoRow10->SetBinContent(67,4);
   ResoRow10->SetBinContent(69,1);
   ResoRow10->SetBinContent(71,1);
   ResoRow10->SetBinContent(72,1);
   ResoRow10->SetBinContent(73,1);
   ResoRow10->SetBinContent(74,1);
   ResoRow10->SetBinContent(75,1);
   ResoRow10->SetBinContent(76,1);
   ResoRow10->SetBinContent(77,1);
   ResoRow10->SetBinContent(85,1);
   ResoRow10->SetBinContent(92,1);
   ResoRow10->SetBinContent(99,1);
   ResoRow10->SetBinContent(101,3);
   ResoRow10->SetEntries(1151);
   
   TF1 *ResoRowFit10 = new TF1("ResoRowFit10","gaus",-1,1);
   ResoRowFit10->SetFillColor(19);
   ResoRowFit10->SetFillStyle(0);
   ResoRowFit10->SetLineWidth(3);
   ResoRowFit10->SetChisquare(47.60492);
   ResoRowFit10->SetNDF(50);
   ResoRowFit10->SetParameter(0,85.04345);
   ResoRowFit10->SetParError(0,3.474187);
   ResoRowFit10->SetParLimits(0,0,0);
   ResoRowFit10->SetParameter(1,-0.008914281);
   ResoRowFit10->SetParError(1,0.00312688);
   ResoRowFit10->SetParLimits(1,0,0);
   ResoRowFit10->SetParameter(2,0.1029733);
   ResoRowFit10->SetParError(2,0.002861972);
   ResoRowFit10->SetParLimits(2,0,1.326606);
   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 = 1151   ");
   text = ptstats->AddText("Mean  = -0.007781");
   text = ptstats->AddText("RMS   = 0.1327");
   text = ptstats->AddText("#chi^{2} / ndf =  47.6 / 50");
   text = ptstats->AddText("Constant = 85.04 #pm 3.47 ");
   text = ptstats->AddText("Mean     = -0.008914 #pm 0.003127 ");
   text = ptstats->AddText("Sigma    = 0.103 #pm 0.003 ");
   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_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,-11.025,1.25,99.225);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow11 = new TH1F("ResoRow11","",100,-1,1);
   ResoRow11->SetBinContent(0,2);
   ResoRow11->SetBinContent(5,1);
   ResoRow11->SetBinContent(11,1);
   ResoRow11->SetBinContent(12,1);
   ResoRow11->SetBinContent(19,1);
   ResoRow11->SetBinContent(25,1);
   ResoRow11->SetBinContent(26,1);
   ResoRow11->SetBinContent(29,1);
   ResoRow11->SetBinContent(30,3);
   ResoRow11->SetBinContent(31,1);
   ResoRow11->SetBinContent(32,3);
   ResoRow11->SetBinContent(33,1);
   ResoRow11->SetBinContent(34,3);
   ResoRow11->SetBinContent(35,8);
   ResoRow11->SetBinContent(36,5);
   ResoRow11->SetBinContent(37,8);
   ResoRow11->SetBinContent(38,9);
   ResoRow11->SetBinContent(39,16);
   ResoRow11->SetBinContent(40,18);
   ResoRow11->SetBinContent(41,24);
   ResoRow11->SetBinContent(42,36);
   ResoRow11->SetBinContent(43,45);
   ResoRow11->SetBinContent(44,45);
   ResoRow11->SetBinContent(45,36);
   ResoRow11->SetBinContent(46,59);
   ResoRow11->SetBinContent(47,63);
   ResoRow11->SetBinContent(48,73);
   ResoRow11->SetBinContent(49,80);
   ResoRow11->SetBinContent(50,73);
   ResoRow11->SetBinContent(51,84);
   ResoRow11->SetBinContent(52,71);
   ResoRow11->SetBinContent(53,70);
   ResoRow11->SetBinContent(54,66);
   ResoRow11->SetBinContent(55,64);
   ResoRow11->SetBinContent(56,47);
   ResoRow11->SetBinContent(57,32);
   ResoRow11->SetBinContent(58,30);
   ResoRow11->SetBinContent(59,10);
   ResoRow11->SetBinContent(60,16);
   ResoRow11->SetBinContent(61,8);
   ResoRow11->SetBinContent(62,7);
   ResoRow11->SetBinContent(63,5);
   ResoRow11->SetBinContent(64,3);
   ResoRow11->SetBinContent(65,1);
   ResoRow11->SetBinContent(66,4);
   ResoRow11->SetBinContent(67,1);
   ResoRow11->SetBinContent(68,1);
   ResoRow11->SetBinContent(69,1);
   ResoRow11->SetBinContent(74,1);
   ResoRow11->SetBinContent(75,2);
   ResoRow11->SetBinContent(76,1);
   ResoRow11->SetBinContent(82,1);
   ResoRow11->SetBinContent(85,1);
   ResoRow11->SetBinContent(86,1);
   ResoRow11->SetBinContent(91,1);
   ResoRow11->SetBinContent(101,4);
   ResoRow11->SetEntries(1151);
   
   TF1 *ResoRowFit11 = new TF1("ResoRowFit11","gaus",-1,1);
   ResoRowFit11->SetFillColor(19);
   ResoRowFit11->SetFillStyle(0);
   ResoRowFit11->SetLineWidth(3);
   ResoRowFit11->SetChisquare(58.9002);
   ResoRowFit11->SetNDF(51);
   ResoRowFit11->SetParameter(0,75.89823);
   ResoRowFit11->SetParError(0,2.957547);
   ResoRowFit11->SetParLimits(0,0,0);
   ResoRowFit11->SetParameter(1,-0.01778986);
   ResoRowFit11->SetParError(1,0.003582484);
   ResoRowFit11->SetParLimits(1,0,0);
   ResoRowFit11->SetParameter(2,0.1142132);
   ResoRowFit11->SetParError(2,0.002802809);
   ResoRowFit11->SetParLimits(2,0,1.394284);
   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 = 1151   ");
   text = ptstats->AddText("Mean  = -0.01718");
   text = ptstats->AddText("RMS   = 0.1394");
   text = ptstats->AddText("#chi^{2} / ndf =  58.9 / 51");
   text = ptstats->AddText("Constant =  75.9 #pm 3.0 ");
   text = ptstats->AddText("Mean     = -0.01779 #pm 0.00358 ");
   text = ptstats->AddText("Sigma    = 0.1142 #pm 0.0028 ");
   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_6->Modified();
   c2->cd();
   c2->Modified();
   c2->cd();
   c2->SetSelected(c2);
}
