{
//=========Macro generated from canvas: c2/
//=========  (Fri Jun 11 10:12:55 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.2875,1.25,101.5875);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow07 = new TH1F("ResoRow07","",100,-1,1);
   ResoRow07->SetBinContent(0,2);
   ResoRow07->SetBinContent(2,1);
   ResoRow07->SetBinContent(3,1);
   ResoRow07->SetBinContent(6,1);
   ResoRow07->SetBinContent(20,1);
   ResoRow07->SetBinContent(24,1);
   ResoRow07->SetBinContent(29,1);
   ResoRow07->SetBinContent(30,2);
   ResoRow07->SetBinContent(31,2);
   ResoRow07->SetBinContent(32,3);
   ResoRow07->SetBinContent(33,1);
   ResoRow07->SetBinContent(34,4);
   ResoRow07->SetBinContent(35,3);
   ResoRow07->SetBinContent(36,2);
   ResoRow07->SetBinContent(37,6);
   ResoRow07->SetBinContent(38,3);
   ResoRow07->SetBinContent(39,9);
   ResoRow07->SetBinContent(40,11);
   ResoRow07->SetBinContent(41,26);
   ResoRow07->SetBinContent(42,31);
   ResoRow07->SetBinContent(43,46);
   ResoRow07->SetBinContent(44,48);
   ResoRow07->SetBinContent(45,43);
   ResoRow07->SetBinContent(46,49);
   ResoRow07->SetBinContent(47,65);
   ResoRow07->SetBinContent(48,63);
   ResoRow07->SetBinContent(49,58);
   ResoRow07->SetBinContent(50,86);
   ResoRow07->SetBinContent(51,81);
   ResoRow07->SetBinContent(52,84);
   ResoRow07->SetBinContent(53,65);
   ResoRow07->SetBinContent(54,82);
   ResoRow07->SetBinContent(55,60);
   ResoRow07->SetBinContent(56,50);
   ResoRow07->SetBinContent(57,35);
   ResoRow07->SetBinContent(58,27);
   ResoRow07->SetBinContent(59,21);
   ResoRow07->SetBinContent(60,19);
   ResoRow07->SetBinContent(61,15);
   ResoRow07->SetBinContent(62,15);
   ResoRow07->SetBinContent(63,10);
   ResoRow07->SetBinContent(64,10);
   ResoRow07->SetBinContent(65,6);
   ResoRow07->SetBinContent(66,2);
   ResoRow07->SetBinContent(67,4);
   ResoRow07->SetBinContent(68,2);
   ResoRow07->SetBinContent(70,1);
   ResoRow07->SetBinContent(72,1);
   ResoRow07->SetBinContent(75,1);
   ResoRow07->SetBinContent(79,1);
   ResoRow07->SetBinContent(82,1);
   ResoRow07->SetBinContent(90,1);
   ResoRow07->SetBinContent(91,1);
   ResoRow07->SetBinContent(93,1);
   ResoRow07->SetBinContent(101,1);
   ResoRow07->SetEntries(1166);
   
   TF1 *ResoRowFit07 = new TF1("ResoRowFit07","gaus",-1,1);
   ResoRowFit07->SetFillColor(19);
   ResoRowFit07->SetFillStyle(0);
   ResoRowFit07->SetLineWidth(3);
   ResoRowFit07->SetChisquare(61.80313);
   ResoRowFit07->SetNDF(50);
   ResoRowFit07->SetParameter(0,75.33929);
   ResoRowFit07->SetParError(0,2.910897);
   ResoRowFit07->SetParLimits(0,0,0);
   ResoRowFit07->SetParameter(1,0.003339149);
   ResoRowFit07->SetParError(1,0.003567115);
   ResoRowFit07->SetParLimits(1,0,0);
   ResoRowFit07->SetParameter(2,0.1167158);
   ResoRowFit07->SetParError(2,0.002846111);
   ResoRowFit07->SetParLimits(2,0,1.435893);
   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 = 1166   ");
   text = ptstats->AddText("Mean  = 0.0004511");
   text = ptstats->AddText("RMS   = 0.1435");
   text = ptstats->AddText("#chi^{2} / ndf =  61.8 / 50");
   text = ptstats->AddText("Constant = 75.34 #pm 2.91 ");
   text = ptstats->AddText("Mean     = 0.003339 #pm 0.003567 ");
   text = ptstats->AddText("Sigma    = 0.1167 #pm 0.0028 ");
   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,-11.94375,1.25,107.4938);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow08 = new TH1F("ResoRow08","",100,-1,1);
   ResoRow08->SetBinContent(0,4);
   ResoRow08->SetBinContent(3,1);
   ResoRow08->SetBinContent(11,1);
   ResoRow08->SetBinContent(17,1);
   ResoRow08->SetBinContent(18,1);
   ResoRow08->SetBinContent(27,1);
   ResoRow08->SetBinContent(28,1);
   ResoRow08->SetBinContent(30,3);
   ResoRow08->SetBinContent(31,1);
   ResoRow08->SetBinContent(32,2);
   ResoRow08->SetBinContent(34,3);
   ResoRow08->SetBinContent(35,6);
   ResoRow08->SetBinContent(36,7);
   ResoRow08->SetBinContent(37,4);
   ResoRow08->SetBinContent(38,12);
   ResoRow08->SetBinContent(39,9);
   ResoRow08->SetBinContent(40,15);
   ResoRow08->SetBinContent(41,10);
   ResoRow08->SetBinContent(42,22);
   ResoRow08->SetBinContent(43,33);
   ResoRow08->SetBinContent(44,36);
   ResoRow08->SetBinContent(45,43);
   ResoRow08->SetBinContent(46,47);
   ResoRow08->SetBinContent(47,64);
   ResoRow08->SetBinContent(48,64);
   ResoRow08->SetBinContent(49,65);
   ResoRow08->SetBinContent(50,91);
   ResoRow08->SetBinContent(51,89);
   ResoRow08->SetBinContent(52,91);
   ResoRow08->SetBinContent(53,69);
   ResoRow08->SetBinContent(54,72);
   ResoRow08->SetBinContent(55,57);
   ResoRow08->SetBinContent(56,41);
   ResoRow08->SetBinContent(57,39);
   ResoRow08->SetBinContent(58,38);
   ResoRow08->SetBinContent(59,29);
   ResoRow08->SetBinContent(60,22);
   ResoRow08->SetBinContent(61,20);
   ResoRow08->SetBinContent(62,11);
   ResoRow08->SetBinContent(63,7);
   ResoRow08->SetBinContent(64,7);
   ResoRow08->SetBinContent(65,6);
   ResoRow08->SetBinContent(66,4);
   ResoRow08->SetBinContent(67,2);
   ResoRow08->SetBinContent(68,1);
   ResoRow08->SetBinContent(69,3);
   ResoRow08->SetBinContent(71,1);
   ResoRow08->SetBinContent(72,1);
   ResoRow08->SetBinContent(73,2);
   ResoRow08->SetBinContent(75,2);
   ResoRow08->SetBinContent(76,1);
   ResoRow08->SetBinContent(80,1);
   ResoRow08->SetBinContent(82,2);
   ResoRow08->SetBinContent(101,1);
   ResoRow08->SetEntries(1166);
   
   TF1 *ResoRowFit08 = new TF1("ResoRowFit08","gaus",-1,1);
   ResoRowFit08->SetFillColor(19);
   ResoRowFit08->SetFillStyle(0);
   ResoRowFit08->SetLineWidth(3);
   ResoRowFit08->SetChisquare(53.9052);
   ResoRowFit08->SetNDF(49);
   ResoRowFit08->SetParameter(0,75.51151);
   ResoRowFit08->SetParError(0,3.033888);
   ResoRowFit08->SetParLimits(0,0,0);
   ResoRowFit08->SetParameter(1,0.008983384);
   ResoRowFit08->SetParError(1,0.003541641);
   ResoRowFit08->SetParLimits(1,0,0);
   ResoRowFit08->SetParameter(2,0.1171057);
   ResoRowFit08->SetParError(2,0.003153678);
   ResoRowFit08->SetParLimits(2,0,1.394712);
   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 = 1166   ");
   text = ptstats->AddText("Mean  = 0.005763");
   text = ptstats->AddText("RMS   = 0.1396");
   text = ptstats->AddText("#chi^{2} / ndf = 53.91 / 49");
   text = ptstats->AddText("Constant = 75.51 #pm 3.03 ");
   text = ptstats->AddText("Mean     = 0.008983 #pm 0.003542 ");
   text = ptstats->AddText("Sigma    = 0.1171 #pm 0.0032 ");
   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(6,1);
   ResoRow09->SetBinContent(13,1);
   ResoRow09->SetBinContent(18,1);
   ResoRow09->SetBinContent(20,1);
   ResoRow09->SetBinContent(23,1);
   ResoRow09->SetBinContent(27,1);
   ResoRow09->SetBinContent(31,2);
   ResoRow09->SetBinContent(32,3);
   ResoRow09->SetBinContent(33,6);
   ResoRow09->SetBinContent(34,5);
   ResoRow09->SetBinContent(35,3);
   ResoRow09->SetBinContent(36,7);
   ResoRow09->SetBinContent(37,4);
   ResoRow09->SetBinContent(38,11);
   ResoRow09->SetBinContent(39,14);
   ResoRow09->SetBinContent(40,15);
   ResoRow09->SetBinContent(41,19);
   ResoRow09->SetBinContent(42,22);
   ResoRow09->SetBinContent(43,19);
   ResoRow09->SetBinContent(44,39);
   ResoRow09->SetBinContent(45,57);
   ResoRow09->SetBinContent(46,53);
   ResoRow09->SetBinContent(47,68);
   ResoRow09->SetBinContent(48,71);
   ResoRow09->SetBinContent(49,78);
   ResoRow09->SetBinContent(50,85);
   ResoRow09->SetBinContent(51,59);
   ResoRow09->SetBinContent(52,87);
   ResoRow09->SetBinContent(53,61);
   ResoRow09->SetBinContent(54,57);
   ResoRow09->SetBinContent(55,69);
   ResoRow09->SetBinContent(56,37);
   ResoRow09->SetBinContent(57,49);
   ResoRow09->SetBinContent(58,29);
   ResoRow09->SetBinContent(59,31);
   ResoRow09->SetBinContent(60,15);
   ResoRow09->SetBinContent(61,30);
   ResoRow09->SetBinContent(62,11);
   ResoRow09->SetBinContent(63,10);
   ResoRow09->SetBinContent(64,8);
   ResoRow09->SetBinContent(65,6);
   ResoRow09->SetBinContent(66,1);
   ResoRow09->SetBinContent(67,2);
   ResoRow09->SetBinContent(68,2);
   ResoRow09->SetBinContent(69,2);
   ResoRow09->SetBinContent(70,1);
   ResoRow09->SetBinContent(71,2);
   ResoRow09->SetBinContent(79,2);
   ResoRow09->SetBinContent(87,1);
   ResoRow09->SetBinContent(94,1);
   ResoRow09->SetBinContent(101,4);
   ResoRow09->SetEntries(1166);
   
   TF1 *ResoRowFit09 = new TF1("ResoRowFit09","gaus",-1,1);
   ResoRowFit09->SetFillColor(19);
   ResoRowFit09->SetFillStyle(0);
   ResoRowFit09->SetLineWidth(3);
   ResoRowFit09->SetChisquare(71.90159);
   ResoRowFit09->SetNDF(47);
   ResoRowFit09->SetParameter(0,72.20725);
   ResoRowFit09->SetParError(0,2.847092);
   ResoRowFit09->SetParLimits(0,0,0);
   ResoRowFit09->SetParameter(1,0.002078327);
   ResoRowFit09->SetParError(1,0.00367225);
   ResoRowFit09->SetParLimits(1,0,0);
   ResoRowFit09->SetParameter(2,0.1203098);
   ResoRowFit09->SetParError(2,0.003056064);
   ResoRowFit09->SetParLimits(2,0,1.419101);
   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 = 1166   ");
   text = ptstats->AddText("Mean  = 0.0003845");
   text = ptstats->AddText("RMS   = 0.1418");
   text = ptstats->AddText("#chi^{2} / ndf =  71.9 / 47");
   text = ptstats->AddText("Constant = 72.21 #pm 2.85 ");
   text = ptstats->AddText("Mean     = 0.002078 #pm 0.003672 ");
   text = ptstats->AddText("Sigma    = 0.1203 #pm 0.0031 ");
   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,-11.8125,1.25,106.3125);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow10 = new TH1F("ResoRow10","",100,-1,1);
   ResoRow10->SetBinContent(0,1);
   ResoRow10->SetBinContent(1,1);
   ResoRow10->SetBinContent(7,1);
   ResoRow10->SetBinContent(9,1);
   ResoRow10->SetBinContent(24,1);
   ResoRow10->SetBinContent(27,1);
   ResoRow10->SetBinContent(28,1);
   ResoRow10->SetBinContent(31,4);
   ResoRow10->SetBinContent(32,2);
   ResoRow10->SetBinContent(33,3);
   ResoRow10->SetBinContent(34,1);
   ResoRow10->SetBinContent(35,3);
   ResoRow10->SetBinContent(36,5);
   ResoRow10->SetBinContent(37,8);
   ResoRow10->SetBinContent(38,10);
   ResoRow10->SetBinContent(39,10);
   ResoRow10->SetBinContent(40,16);
   ResoRow10->SetBinContent(41,23);
   ResoRow10->SetBinContent(42,28);
   ResoRow10->SetBinContent(43,25);
   ResoRow10->SetBinContent(44,43);
   ResoRow10->SetBinContent(45,35);
   ResoRow10->SetBinContent(46,57);
   ResoRow10->SetBinContent(47,63);
   ResoRow10->SetBinContent(48,53);
   ResoRow10->SetBinContent(49,90);
   ResoRow10->SetBinContent(50,84);
   ResoRow10->SetBinContent(51,75);
   ResoRow10->SetBinContent(52,87);
   ResoRow10->SetBinContent(53,87);
   ResoRow10->SetBinContent(54,59);
   ResoRow10->SetBinContent(55,61);
   ResoRow10->SetBinContent(56,48);
   ResoRow10->SetBinContent(57,42);
   ResoRow10->SetBinContent(58,35);
   ResoRow10->SetBinContent(59,22);
   ResoRow10->SetBinContent(60,21);
   ResoRow10->SetBinContent(61,13);
   ResoRow10->SetBinContent(62,7);
   ResoRow10->SetBinContent(63,5);
   ResoRow10->SetBinContent(64,7);
   ResoRow10->SetBinContent(65,5);
   ResoRow10->SetBinContent(66,1);
   ResoRow10->SetBinContent(67,1);
   ResoRow10->SetBinContent(68,5);
   ResoRow10->SetBinContent(69,2);
   ResoRow10->SetBinContent(70,1);
   ResoRow10->SetBinContent(72,2);
   ResoRow10->SetBinContent(79,2);
   ResoRow10->SetBinContent(82,1);
   ResoRow10->SetBinContent(87,1);
   ResoRow10->SetBinContent(97,2);
   ResoRow10->SetBinContent(100,1);
   ResoRow10->SetBinContent(101,3);
   ResoRow10->SetEntries(1166);
   
   TF1 *ResoRowFit10 = new TF1("ResoRowFit10","gaus",-1,1);
   ResoRowFit10->SetFillColor(19);
   ResoRowFit10->SetFillStyle(0);
   ResoRowFit10->SetLineWidth(3);
   ResoRowFit10->SetChisquare(59.26995);
   ResoRowFit10->SetNDF(49);
   ResoRowFit10->SetParameter(0,76.65773);
   ResoRowFit10->SetParError(0,2.994145);
   ResoRowFit10->SetParLimits(0,0,0);
   ResoRowFit10->SetParameter(1,9.638829e-05);
   ResoRowFit10->SetParError(1,0.003553841);
   ResoRowFit10->SetParLimits(1,0,0);
   ResoRowFit10->SetParameter(2,0.1148195);
   ResoRowFit10->SetParError(2,0.002869023);
   ResoRowFit10->SetParLimits(2,0,1.455948);
   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 = 1166   ");
   text = ptstats->AddText("Mean  = 0.001047");
   text = ptstats->AddText("RMS   = 0.1455");
   text = ptstats->AddText("#chi^{2} / ndf = 59.27 / 49");
   text = ptstats->AddText("Constant = 76.66 #pm 2.99 ");
   text = ptstats->AddText("Mean     = 9.639e-05 #pm 3.554e-03 ");
   text = ptstats->AddText("Sigma    = 0.1148 #pm 0.0029 ");
   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,-11.15625,1.25,100.4063);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow11 = new TH1F("ResoRow11","",100,-1,1);
   ResoRow11->SetBinContent(0,3);
   ResoRow11->SetBinContent(7,1);
   ResoRow11->SetBinContent(13,2);
   ResoRow11->SetBinContent(22,1);
   ResoRow11->SetBinContent(24,1);
   ResoRow11->SetBinContent(27,1);
   ResoRow11->SetBinContent(29,2);
   ResoRow11->SetBinContent(30,5);
   ResoRow11->SetBinContent(31,3);
   ResoRow11->SetBinContent(32,1);
   ResoRow11->SetBinContent(33,3);
   ResoRow11->SetBinContent(35,5);
   ResoRow11->SetBinContent(36,9);
   ResoRow11->SetBinContent(37,10);
   ResoRow11->SetBinContent(38,10);
   ResoRow11->SetBinContent(39,12);
   ResoRow11->SetBinContent(40,14);
   ResoRow11->SetBinContent(41,21);
   ResoRow11->SetBinContent(42,29);
   ResoRow11->SetBinContent(43,32);
   ResoRow11->SetBinContent(44,43);
   ResoRow11->SetBinContent(45,30);
   ResoRow11->SetBinContent(46,49);
   ResoRow11->SetBinContent(47,62);
   ResoRow11->SetBinContent(48,71);
   ResoRow11->SetBinContent(49,75);
   ResoRow11->SetBinContent(50,85);
   ResoRow11->SetBinContent(51,77);
   ResoRow11->SetBinContent(52,69);
   ResoRow11->SetBinContent(53,79);
   ResoRow11->SetBinContent(54,66);
   ResoRow11->SetBinContent(55,51);
   ResoRow11->SetBinContent(56,46);
   ResoRow11->SetBinContent(57,41);
   ResoRow11->SetBinContent(58,34);
   ResoRow11->SetBinContent(59,24);
   ResoRow11->SetBinContent(60,21);
   ResoRow11->SetBinContent(61,12);
   ResoRow11->SetBinContent(62,9);
   ResoRow11->SetBinContent(63,8);
   ResoRow11->SetBinContent(64,9);
   ResoRow11->SetBinContent(65,6);
   ResoRow11->SetBinContent(66,7);
   ResoRow11->SetBinContent(67,2);
   ResoRow11->SetBinContent(68,2);
   ResoRow11->SetBinContent(69,4);
   ResoRow11->SetBinContent(70,2);
   ResoRow11->SetBinContent(71,2);
   ResoRow11->SetBinContent(72,2);
   ResoRow11->SetBinContent(73,1);
   ResoRow11->SetBinContent(75,2);
   ResoRow11->SetBinContent(76,1);
   ResoRow11->SetBinContent(78,1);
   ResoRow11->SetBinContent(79,1);
   ResoRow11->SetBinContent(84,1);
   ResoRow11->SetBinContent(92,1);
   ResoRow11->SetBinContent(101,5);
   ResoRow11->SetEntries(1166);
   
   TF1 *ResoRowFit11 = new TF1("ResoRowFit11","gaus",-1,1);
   ResoRowFit11->SetFillColor(19);
   ResoRowFit11->SetFillStyle(0);
   ResoRowFit11->SetLineWidth(3);
   ResoRowFit11->SetChisquare(60.42968);
   ResoRowFit11->SetNDF(52);
   ResoRowFit11->SetParameter(0,70.48376);
   ResoRowFit11->SetParError(0,2.93394);
   ResoRowFit11->SetParLimits(0,0,0);
   ResoRowFit11->SetParameter(1,1.178531e-05);
   ResoRowFit11->SetParError(1,0.003822185);
   ResoRowFit11->SetParLimits(1,0,0);
   ResoRowFit11->SetParameter(2,0.1245093);
   ResoRowFit11->SetParError(2,0.003622233);
   ResoRowFit11->SetParLimits(2,0,1.487442);
   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 = 1166   ");
   text = ptstats->AddText("Mean  = -7.923e-05");
   text = ptstats->AddText("RMS   = 0.1489");
   text = ptstats->AddText("#chi^{2} / ndf = 60.43 / 52");
   text = ptstats->AddText("Constant = 70.48 #pm 2.93 ");
   text = ptstats->AddText("Mean     = 1.179e-05 #pm 3.822e-03 ");
   text = ptstats->AddText("Sigma    = 0.1245 #pm 0.0036 ");
   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,-12.6,1.25,113.4);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow12 = new TH1F("ResoRow12","",100,-1,1);
   ResoRow12->SetBinContent(0,4);
   ResoRow12->SetBinContent(16,2);
   ResoRow12->SetBinContent(18,1);
   ResoRow12->SetBinContent(24,1);
   ResoRow12->SetBinContent(28,1);
   ResoRow12->SetBinContent(29,2);
   ResoRow12->SetBinContent(30,1);
   ResoRow12->SetBinContent(31,3);
   ResoRow12->SetBinContent(32,3);
   ResoRow12->SetBinContent(33,5);
   ResoRow12->SetBinContent(34,5);
   ResoRow12->SetBinContent(35,4);
   ResoRow12->SetBinContent(36,8);
   ResoRow12->SetBinContent(37,7);
   ResoRow12->SetBinContent(38,9);
   ResoRow12->SetBinContent(39,10);
   ResoRow12->SetBinContent(40,11);
   ResoRow12->SetBinContent(41,19);
   ResoRow12->SetBinContent(42,25);
   ResoRow12->SetBinContent(43,27);
   ResoRow12->SetBinContent(44,44);
   ResoRow12->SetBinContent(45,39);
   ResoRow12->SetBinContent(46,47);
   ResoRow12->SetBinContent(47,48);
   ResoRow12->SetBinContent(48,88);
   ResoRow12->SetBinContent(49,77);
   ResoRow12->SetBinContent(50,96);
   ResoRow12->SetBinContent(51,65);
   ResoRow12->SetBinContent(52,80);
   ResoRow12->SetBinContent(53,65);
   ResoRow12->SetBinContent(54,66);
   ResoRow12->SetBinContent(55,54);
   ResoRow12->SetBinContent(56,40);
   ResoRow12->SetBinContent(57,30);
   ResoRow12->SetBinContent(58,48);
   ResoRow12->SetBinContent(59,31);
   ResoRow12->SetBinContent(60,21);
   ResoRow12->SetBinContent(61,12);
   ResoRow12->SetBinContent(62,12);
   ResoRow12->SetBinContent(63,7);
   ResoRow12->SetBinContent(64,15);
   ResoRow12->SetBinContent(65,5);
   ResoRow12->SetBinContent(66,2);
   ResoRow12->SetBinContent(67,4);
   ResoRow12->SetBinContent(68,4);
   ResoRow12->SetBinContent(69,1);
   ResoRow12->SetBinContent(70,2);
   ResoRow12->SetBinContent(72,2);
   ResoRow12->SetBinContent(73,2);
   ResoRow12->SetBinContent(74,1);
   ResoRow12->SetBinContent(75,1);
   ResoRow12->SetBinContent(76,1);
   ResoRow12->SetBinContent(80,1);
   ResoRow12->SetBinContent(88,1);
   ResoRow12->SetBinContent(94,1);
   ResoRow12->SetBinContent(96,1);
   ResoRow12->SetBinContent(101,4);
   ResoRow12->SetEntries(1166);
   
   TF1 *ResoRowFit12 = new TF1("ResoRowFit12","gaus",-1,1);
   ResoRowFit12->SetFillColor(19);
   ResoRowFit12->SetFillStyle(0);
   ResoRowFit12->SetLineWidth(3);
   ResoRowFit12->SetChisquare(76.8543);
   ResoRowFit12->SetNDF(52);
   ResoRowFit12->SetParameter(0,70.46165);
   ResoRowFit12->SetParError(0,2.918708);
   ResoRowFit12->SetParLimits(0,0,0);
   ResoRowFit12->SetParameter(1,0.002774486);
   ResoRowFit12->SetParError(1,0.003740896);
   ResoRowFit12->SetParLimits(1,0,0);
   ResoRowFit12->SetParameter(2,0.1224675);
   ResoRowFit12->SetParError(2,0.003456255);
   ResoRowFit12->SetParLimits(2,0,1.471838);
   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 = 1166   ");
   text = ptstats->AddText("Mean  = 0.003806");
   text = ptstats->AddText("RMS   = 0.1469");
   text = ptstats->AddText("#chi^{2} / ndf = 76.85 / 52");
   text = ptstats->AddText("Constant = 70.46 #pm 2.92 ");
   text = ptstats->AddText("Mean     = 0.002774 #pm 0.003741 ");
   text = ptstats->AddText("Sigma    = 0.1225 #pm 0.0035 ");
   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);
}
