{
//=========Macro generated from canvas: c2/
//=========  (Tue Jun  8 17:35:36 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,-14.4375,1.25,129.9375);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow01 = new TH1F("ResoRow01","",100,-1,1);
   ResoRow01->SetBinContent(0,1);
   ResoRow01->SetBinContent(8,1);
   ResoRow01->SetBinContent(15,1);
   ResoRow01->SetBinContent(18,1);
   ResoRow01->SetBinContent(26,1);
   ResoRow01->SetBinContent(31,2);
   ResoRow01->SetBinContent(32,1);
   ResoRow01->SetBinContent(33,2);
   ResoRow01->SetBinContent(34,1);
   ResoRow01->SetBinContent(35,1);
   ResoRow01->SetBinContent(36,1);
   ResoRow01->SetBinContent(37,1);
   ResoRow01->SetBinContent(38,5);
   ResoRow01->SetBinContent(39,3);
   ResoRow01->SetBinContent(40,9);
   ResoRow01->SetBinContent(41,11);
   ResoRow01->SetBinContent(42,15);
   ResoRow01->SetBinContent(43,16);
   ResoRow01->SetBinContent(44,32);
   ResoRow01->SetBinContent(45,41);
   ResoRow01->SetBinContent(46,61);
   ResoRow01->SetBinContent(47,93);
   ResoRow01->SetBinContent(48,101);
   ResoRow01->SetBinContent(49,95);
   ResoRow01->SetBinContent(50,104);
   ResoRow01->SetBinContent(51,104);
   ResoRow01->SetBinContent(52,110);
   ResoRow01->SetBinContent(53,72);
   ResoRow01->SetBinContent(54,64);
   ResoRow01->SetBinContent(55,48);
   ResoRow01->SetBinContent(56,41);
   ResoRow01->SetBinContent(57,35);
   ResoRow01->SetBinContent(58,15);
   ResoRow01->SetBinContent(59,5);
   ResoRow01->SetBinContent(60,17);
   ResoRow01->SetBinContent(61,7);
   ResoRow01->SetBinContent(62,6);
   ResoRow01->SetBinContent(63,9);
   ResoRow01->SetBinContent(64,6);
   ResoRow01->SetBinContent(65,4);
   ResoRow01->SetBinContent(66,1);
   ResoRow01->SetBinContent(67,1);
   ResoRow01->SetBinContent(68,1);
   ResoRow01->SetBinContent(69,1);
   ResoRow01->SetBinContent(82,1);
   ResoRow01->SetBinContent(98,2);
   ResoRow01->SetBinContent(101,2);
   ResoRow01->SetEntries(1152);
   
   TF1 *ResoRowFit01 = new TF1("ResoRowFit01","gaus",-1,1);
   ResoRowFit01->SetFillColor(19);
   ResoRowFit01->SetFillStyle(0);
   ResoRowFit01->SetLineWidth(3);
   ResoRowFit01->SetChisquare(72.54486);
   ResoRowFit01->SetNDF(42);
   ResoRowFit01->SetParameter(0,103.381);
   ResoRowFit01->SetParError(0,4.201516);
   ResoRowFit01->SetParLimits(0,0,0);
   ResoRowFit01->SetParameter(1,-0.006761932);
   ResoRowFit01->SetParError(1,0.002535152);
   ResoRowFit01->SetParLimits(1,0,0);
   ResoRowFit01->SetParameter(2,0.08307997);
   ResoRowFit01->SetParError(2,0.002233119);
   ResoRowFit01->SetParLimits(2,0,1.147524);
   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 = 1152   ");
   text = ptstats->AddText("Mean  = -0.001875");
   text = ptstats->AddText("RMS   = 0.1146");
   text = ptstats->AddText("#chi^{2} / ndf = 72.54 / 42");
   text = ptstats->AddText("Constant = 103.4 #pm 4.2 ");
   text = ptstats->AddText("Mean     = -0.006762 #pm 0.002535 ");
   text = ptstats->AddText("Sigma    = 0.08308 #pm 0.00223 ");
   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,-14.7,1.25,132.3);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow02 = new TH1F("ResoRow02","",100,-1,1);
   ResoRow02->SetBinContent(0,1);
   ResoRow02->SetBinContent(15,1);
   ResoRow02->SetBinContent(18,1);
   ResoRow02->SetBinContent(27,1);
   ResoRow02->SetBinContent(28,1);
   ResoRow02->SetBinContent(30,1);
   ResoRow02->SetBinContent(31,1);
   ResoRow02->SetBinContent(32,1);
   ResoRow02->SetBinContent(33,1);
   ResoRow02->SetBinContent(34,1);
   ResoRow02->SetBinContent(35,4);
   ResoRow02->SetBinContent(36,3);
   ResoRow02->SetBinContent(37,4);
   ResoRow02->SetBinContent(38,5);
   ResoRow02->SetBinContent(39,12);
   ResoRow02->SetBinContent(40,15);
   ResoRow02->SetBinContent(41,12);
   ResoRow02->SetBinContent(42,20);
   ResoRow02->SetBinContent(43,27);
   ResoRow02->SetBinContent(44,33);
   ResoRow02->SetBinContent(45,44);
   ResoRow02->SetBinContent(46,66);
   ResoRow02->SetBinContent(47,70);
   ResoRow02->SetBinContent(48,86);
   ResoRow02->SetBinContent(49,112);
   ResoRow02->SetBinContent(50,93);
   ResoRow02->SetBinContent(51,92);
   ResoRow02->SetBinContent(52,98);
   ResoRow02->SetBinContent(53,66);
   ResoRow02->SetBinContent(54,73);
   ResoRow02->SetBinContent(55,61);
   ResoRow02->SetBinContent(56,31);
   ResoRow02->SetBinContent(57,29);
   ResoRow02->SetBinContent(58,19);
   ResoRow02->SetBinContent(59,13);
   ResoRow02->SetBinContent(60,12);
   ResoRow02->SetBinContent(61,9);
   ResoRow02->SetBinContent(62,8);
   ResoRow02->SetBinContent(63,7);
   ResoRow02->SetBinContent(64,1);
   ResoRow02->SetBinContent(65,5);
   ResoRow02->SetBinContent(66,2);
   ResoRow02->SetBinContent(67,1);
   ResoRow02->SetBinContent(68,1);
   ResoRow02->SetBinContent(69,2);
   ResoRow02->SetBinContent(72,1);
   ResoRow02->SetBinContent(73,1);
   ResoRow02->SetBinContent(97,1);
   ResoRow02->SetBinContent(101,3);
   ResoRow02->SetEntries(1152);
   
   TF1 *ResoRowFit02 = new TF1("ResoRowFit02","gaus",-1,1);
   ResoRowFit02->SetFillColor(19);
   ResoRowFit02->SetFillStyle(0);
   ResoRowFit02->SetLineWidth(3);
   ResoRowFit02->SetChisquare(55.84089);
   ResoRowFit02->SetNDF(44);
   ResoRowFit02->SetParameter(0,90.38835);
   ResoRowFit02->SetParError(0,3.781207);
   ResoRowFit02->SetParLimits(0,0,0);
   ResoRowFit02->SetParameter(1,-0.00856428);
   ResoRowFit02->SetParError(1,0.002922779);
   ResoRowFit02->SetParLimits(1,0,0);
   ResoRowFit02->SetParameter(2,0.09641097);
   ResoRowFit02->SetParError(2,0.00278547);
   ResoRowFit02->SetParLimits(2,0,1.155429);
   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 = 1152   ");
   text = ptstats->AddText("Mean  = -0.008255");
   text = ptstats->AddText("RMS   = 0.1153");
   text = ptstats->AddText("#chi^{2} / ndf = 55.84 / 44");
   text = ptstats->AddText("Constant = 90.39 #pm 3.78 ");
   text = ptstats->AddText("Mean     = -0.008564 #pm 0.002923 ");
   text = ptstats->AddText("Sigma    = 0.09641 #pm 0.00279 ");
   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.3875,1.25,120.4875);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow03 = new TH1F("ResoRow03","",100,-1,1);
   ResoRow03->SetBinContent(0,3);
   ResoRow03->SetBinContent(15,1);
   ResoRow03->SetBinContent(16,2);
   ResoRow03->SetBinContent(24,1);
   ResoRow03->SetBinContent(31,2);
   ResoRow03->SetBinContent(32,1);
   ResoRow03->SetBinContent(33,4);
   ResoRow03->SetBinContent(34,2);
   ResoRow03->SetBinContent(35,6);
   ResoRow03->SetBinContent(36,2);
   ResoRow03->SetBinContent(37,5);
   ResoRow03->SetBinContent(38,7);
   ResoRow03->SetBinContent(39,8);
   ResoRow03->SetBinContent(40,16);
   ResoRow03->SetBinContent(41,19);
   ResoRow03->SetBinContent(42,23);
   ResoRow03->SetBinContent(43,32);
   ResoRow03->SetBinContent(44,37);
   ResoRow03->SetBinContent(45,39);
   ResoRow03->SetBinContent(46,63);
   ResoRow03->SetBinContent(47,69);
   ResoRow03->SetBinContent(48,77);
   ResoRow03->SetBinContent(49,85);
   ResoRow03->SetBinContent(50,78);
   ResoRow03->SetBinContent(51,102);
   ResoRow03->SetBinContent(52,75);
   ResoRow03->SetBinContent(53,95);
   ResoRow03->SetBinContent(54,56);
   ResoRow03->SetBinContent(55,49);
   ResoRow03->SetBinContent(56,35);
   ResoRow03->SetBinContent(57,50);
   ResoRow03->SetBinContent(58,36);
   ResoRow03->SetBinContent(59,17);
   ResoRow03->SetBinContent(60,17);
   ResoRow03->SetBinContent(61,4);
   ResoRow03->SetBinContent(62,9);
   ResoRow03->SetBinContent(63,5);
   ResoRow03->SetBinContent(64,6);
   ResoRow03->SetBinContent(65,4);
   ResoRow03->SetBinContent(67,1);
   ResoRow03->SetBinContent(68,2);
   ResoRow03->SetBinContent(71,2);
   ResoRow03->SetBinContent(75,2);
   ResoRow03->SetBinContent(76,1);
   ResoRow03->SetBinContent(78,1);
   ResoRow03->SetBinContent(101,1);
   ResoRow03->SetEntries(1152);
   
   TF1 *ResoRowFit03 = new TF1("ResoRowFit03","gaus",-1,1);
   ResoRowFit03->SetFillColor(19);
   ResoRowFit03->SetFillStyle(0);
   ResoRowFit03->SetLineWidth(3);
   ResoRowFit03->SetChisquare(62.67964);
   ResoRowFit03->SetNDF(41);
   ResoRowFit03->SetParameter(0,82.36286);
   ResoRowFit03->SetParError(0,3.284009);
   ResoRowFit03->SetParLimits(0,0,0);
   ResoRowFit03->SetParameter(1,-0.006960004);
   ResoRowFit03->SetParError(1,0.003228602);
   ResoRowFit03->SetParLimits(1,0,0);
   ResoRowFit03->SetParameter(2,0.105257);
   ResoRowFit03->SetParError(2,0.002748707);
   ResoRowFit03->SetParLimits(2,0,1.233187);
   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 = 1152   ");
   text = ptstats->AddText("Mean  = -0.005685");
   text = ptstats->AddText("RMS   =  0.123");
   text = ptstats->AddText("#chi^{2} / ndf = 62.68 / 41");
   text = ptstats->AddText("Constant = 82.36 #pm 3.28 ");
   text = ptstats->AddText("Mean     = -0.00696 #pm 0.00323 ");
   text = ptstats->AddText("Sigma    = 0.1053 #pm 0.0027 ");
   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.2875,1.25,101.5875);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow09 = new TH1F("ResoRow09","",100,-1,1);
   ResoRow09->SetBinContent(0,1);
   ResoRow09->SetBinContent(9,1);
   ResoRow09->SetBinContent(11,1);
   ResoRow09->SetBinContent(18,1);
   ResoRow09->SetBinContent(23,2);
   ResoRow09->SetBinContent(24,1);
   ResoRow09->SetBinContent(26,1);
   ResoRow09->SetBinContent(27,1);
   ResoRow09->SetBinContent(28,1);
   ResoRow09->SetBinContent(29,1);
   ResoRow09->SetBinContent(30,1);
   ResoRow09->SetBinContent(31,5);
   ResoRow09->SetBinContent(32,1);
   ResoRow09->SetBinContent(33,3);
   ResoRow09->SetBinContent(34,4);
   ResoRow09->SetBinContent(35,6);
   ResoRow09->SetBinContent(36,7);
   ResoRow09->SetBinContent(37,11);
   ResoRow09->SetBinContent(38,13);
   ResoRow09->SetBinContent(39,16);
   ResoRow09->SetBinContent(40,18);
   ResoRow09->SetBinContent(41,20);
   ResoRow09->SetBinContent(42,25);
   ResoRow09->SetBinContent(43,32);
   ResoRow09->SetBinContent(44,30);
   ResoRow09->SetBinContent(45,46);
   ResoRow09->SetBinContent(46,49);
   ResoRow09->SetBinContent(47,58);
   ResoRow09->SetBinContent(48,83);
   ResoRow09->SetBinContent(49,82);
   ResoRow09->SetBinContent(50,86);
   ResoRow09->SetBinContent(51,74);
   ResoRow09->SetBinContent(52,85);
   ResoRow09->SetBinContent(53,63);
   ResoRow09->SetBinContent(54,54);
   ResoRow09->SetBinContent(55,45);
   ResoRow09->SetBinContent(56,47);
   ResoRow09->SetBinContent(57,36);
   ResoRow09->SetBinContent(58,32);
   ResoRow09->SetBinContent(59,25);
   ResoRow09->SetBinContent(60,13);
   ResoRow09->SetBinContent(61,16);
   ResoRow09->SetBinContent(62,4);
   ResoRow09->SetBinContent(63,13);
   ResoRow09->SetBinContent(64,6);
   ResoRow09->SetBinContent(65,7);
   ResoRow09->SetBinContent(66,3);
   ResoRow09->SetBinContent(67,5);
   ResoRow09->SetBinContent(68,3);
   ResoRow09->SetBinContent(69,2);
   ResoRow09->SetBinContent(70,1);
   ResoRow09->SetBinContent(72,1);
   ResoRow09->SetBinContent(75,1);
   ResoRow09->SetBinContent(76,1);
   ResoRow09->SetBinContent(78,2);
   ResoRow09->SetBinContent(82,1);
   ResoRow09->SetBinContent(84,1);
   ResoRow09->SetBinContent(92,1);
   ResoRow09->SetBinContent(101,3);
   ResoRow09->SetEntries(1152);
   
   TF1 *ResoRowFit09 = new TF1("ResoRowFit09","gaus",-1,1);
   ResoRowFit09->SetFillColor(19);
   ResoRowFit09->SetFillStyle(0);
   ResoRowFit09->SetLineWidth(3);
   ResoRowFit09->SetChisquare(72.59688);
   ResoRowFit09->SetNDF(54);
   ResoRowFit09->SetParameter(0,70.38357);
   ResoRowFit09->SetParError(0,3.001192);
   ResoRowFit09->SetParLimits(0,0,0);
   ResoRowFit09->SetParameter(1,-0.009405068);
   ResoRowFit09->SetParError(1,0.003791122);
   ResoRowFit09->SetParLimits(1,0,0);
   ResoRowFit09->SetParameter(2,0.1219446);
   ResoRowFit09->SetParError(2,0.003645293);
   ResoRowFit09->SetParLimits(2,0,1.476821);
   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 = 1152   ");
   text = ptstats->AddText("Mean  = -0.00862");
   text = ptstats->AddText("RMS   = 0.1478");
   text = ptstats->AddText("#chi^{2} / ndf =  72.6 / 54");
   text = ptstats->AddText("Constant = 70.38 #pm 3.00 ");
   text = ptstats->AddText("Mean     = -0.009405 #pm 0.003791 ");
   text = ptstats->AddText("Sigma    = 0.1219 #pm 0.0036 ");
   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,-13.51875,1.25,121.6688);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow10 = new TH1F("ResoRow10","",100,-1,1);
   ResoRow10->SetBinContent(0,5);
   ResoRow10->SetBinContent(9,1);
   ResoRow10->SetBinContent(15,1);
   ResoRow10->SetBinContent(16,1);
   ResoRow10->SetBinContent(21,1);
   ResoRow10->SetBinContent(28,2);
   ResoRow10->SetBinContent(31,2);
   ResoRow10->SetBinContent(32,1);
   ResoRow10->SetBinContent(33,2);
   ResoRow10->SetBinContent(34,2);
   ResoRow10->SetBinContent(35,3);
   ResoRow10->SetBinContent(36,11);
   ResoRow10->SetBinContent(37,4);
   ResoRow10->SetBinContent(38,9);
   ResoRow10->SetBinContent(39,10);
   ResoRow10->SetBinContent(40,12);
   ResoRow10->SetBinContent(41,15);
   ResoRow10->SetBinContent(42,28);
   ResoRow10->SetBinContent(43,30);
   ResoRow10->SetBinContent(44,35);
   ResoRow10->SetBinContent(45,54);
   ResoRow10->SetBinContent(46,71);
   ResoRow10->SetBinContent(47,69);
   ResoRow10->SetBinContent(48,70);
   ResoRow10->SetBinContent(49,75);
   ResoRow10->SetBinContent(50,103);
   ResoRow10->SetBinContent(51,80);
   ResoRow10->SetBinContent(52,59);
   ResoRow10->SetBinContent(53,73);
   ResoRow10->SetBinContent(54,74);
   ResoRow10->SetBinContent(55,53);
   ResoRow10->SetBinContent(56,40);
   ResoRow10->SetBinContent(57,40);
   ResoRow10->SetBinContent(58,34);
   ResoRow10->SetBinContent(59,11);
   ResoRow10->SetBinContent(60,15);
   ResoRow10->SetBinContent(61,15);
   ResoRow10->SetBinContent(62,4);
   ResoRow10->SetBinContent(63,6);
   ResoRow10->SetBinContent(64,10);
   ResoRow10->SetBinContent(65,6);
   ResoRow10->SetBinContent(66,3);
   ResoRow10->SetBinContent(67,1);
   ResoRow10->SetBinContent(68,3);
   ResoRow10->SetBinContent(70,1);
   ResoRow10->SetBinContent(71,1);
   ResoRow10->SetBinContent(72,1);
   ResoRow10->SetBinContent(75,1);
   ResoRow10->SetBinContent(81,1);
   ResoRow10->SetBinContent(88,1);
   ResoRow10->SetBinContent(90,1);
   ResoRow10->SetBinContent(101,1);
   ResoRow10->SetEntries(1152);
   
   TF1 *ResoRowFit10 = new TF1("ResoRowFit10","gaus",-1,1);
   ResoRowFit10->SetFillColor(19);
   ResoRowFit10->SetFillStyle(0);
   ResoRowFit10->SetLineWidth(3);
   ResoRowFit10->SetChisquare(68.2241);
   ResoRowFit10->SetNDF(47);
   ResoRowFit10->SetParameter(0,78.85978);
   ResoRowFit10->SetParError(0,3.193114);
   ResoRowFit10->SetParLimits(0,0,0);
   ResoRowFit10->SetParameter(1,-0.008669359);
   ResoRowFit10->SetParError(1,0.003330833);
   ResoRowFit10->SetParLimits(1,0,0);
   ResoRowFit10->SetParameter(2,0.1090836);
   ResoRowFit10->SetParError(2,0.002921368);
   ResoRowFit10->SetParLimits(2,0,1.328038);
   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 = 1152   ");
   text = ptstats->AddText("Mean  = -0.006484");
   text = ptstats->AddText("RMS   = 0.1329");
   text = ptstats->AddText("#chi^{2} / ndf = 68.22 / 47");
   text = ptstats->AddText("Constant = 78.86 #pm 3.19 ");
   text = ptstats->AddText("Mean     = -0.008669 #pm 0.003331 ");
   text = ptstats->AddText("Sigma    = 0.1091 #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_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,1);
   ResoRow11->SetBinContent(7,1);
   ResoRow11->SetBinContent(18,1);
   ResoRow11->SetBinContent(23,1);
   ResoRow11->SetBinContent(26,2);
   ResoRow11->SetBinContent(27,1);
   ResoRow11->SetBinContent(28,2);
   ResoRow11->SetBinContent(30,1);
   ResoRow11->SetBinContent(31,3);
   ResoRow11->SetBinContent(32,1);
   ResoRow11->SetBinContent(33,2);
   ResoRow11->SetBinContent(34,3);
   ResoRow11->SetBinContent(35,5);
   ResoRow11->SetBinContent(36,4);
   ResoRow11->SetBinContent(37,10);
   ResoRow11->SetBinContent(38,9);
   ResoRow11->SetBinContent(39,17);
   ResoRow11->SetBinContent(40,23);
   ResoRow11->SetBinContent(41,28);
   ResoRow11->SetBinContent(42,35);
   ResoRow11->SetBinContent(43,25);
   ResoRow11->SetBinContent(44,41);
   ResoRow11->SetBinContent(45,41);
   ResoRow11->SetBinContent(46,62);
   ResoRow11->SetBinContent(47,71);
   ResoRow11->SetBinContent(48,84);
   ResoRow11->SetBinContent(49,74);
   ResoRow11->SetBinContent(50,63);
   ResoRow11->SetBinContent(51,66);
   ResoRow11->SetBinContent(52,77);
   ResoRow11->SetBinContent(53,80);
   ResoRow11->SetBinContent(54,66);
   ResoRow11->SetBinContent(55,53);
   ResoRow11->SetBinContent(56,36);
   ResoRow11->SetBinContent(57,29);
   ResoRow11->SetBinContent(58,29);
   ResoRow11->SetBinContent(59,29);
   ResoRow11->SetBinContent(60,12);
   ResoRow11->SetBinContent(61,13);
   ResoRow11->SetBinContent(62,12);
   ResoRow11->SetBinContent(63,8);
   ResoRow11->SetBinContent(64,4);
   ResoRow11->SetBinContent(65,1);
   ResoRow11->SetBinContent(66,4);
   ResoRow11->SetBinContent(67,4);
   ResoRow11->SetBinContent(68,2);
   ResoRow11->SetBinContent(70,3);
   ResoRow11->SetBinContent(71,2);
   ResoRow11->SetBinContent(72,1);
   ResoRow11->SetBinContent(73,1);
   ResoRow11->SetBinContent(76,2);
   ResoRow11->SetBinContent(85,1);
   ResoRow11->SetBinContent(93,1);
   ResoRow11->SetBinContent(101,5);
   ResoRow11->SetEntries(1152);
   
   TF1 *ResoRowFit11 = new TF1("ResoRowFit11","gaus",-1,1);
   ResoRowFit11->SetFillColor(19);
   ResoRowFit11->SetFillStyle(0);
   ResoRowFit11->SetLineWidth(3);
   ResoRowFit11->SetChisquare(60.9018);
   ResoRowFit11->SetNDF(49);
   ResoRowFit11->SetParameter(0,72.27669);
   ResoRowFit11->SetParError(0,2.822277);
   ResoRowFit11->SetParLimits(0,0,0);
   ResoRowFit11->SetParameter(1,-0.01351031);
   ResoRowFit11->SetParError(1,0.003682049);
   ResoRowFit11->SetParLimits(1,0,0);
   ResoRowFit11->SetParameter(2,0.1198606);
   ResoRowFit11->SetParError(2,0.002961307);
   ResoRowFit11->SetParLimits(2,0,1.404653);
   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 = 1152   ");
   text = ptstats->AddText("Mean  = -0.01232");
   text = ptstats->AddText("RMS   = 0.1404");
   text = ptstats->AddText("#chi^{2} / ndf =  60.9 / 49");
   text = ptstats->AddText("Constant = 72.28 #pm 2.82 ");
   text = ptstats->AddText("Mean     = -0.01351 #pm 0.00368 ");
   text = ptstats->AddText("Sigma    = 0.1199 #pm 0.0030 ");
   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);
}
