{
//=========Macro generated from canvas: c2/
//=========  (Fri Jun 11 00:06:33 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.83125,1.25,133.4813);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow01 = new TH1F("ResoRow01","",100,-1,1);
   ResoRow01->SetBinContent(0,1);
   ResoRow01->SetBinContent(4,1);
   ResoRow01->SetBinContent(10,1);
   ResoRow01->SetBinContent(12,1);
   ResoRow01->SetBinContent(15,1);
   ResoRow01->SetBinContent(16,1);
   ResoRow01->SetBinContent(17,1);
   ResoRow01->SetBinContent(23,1);
   ResoRow01->SetBinContent(24,2);
   ResoRow01->SetBinContent(31,1);
   ResoRow01->SetBinContent(33,4);
   ResoRow01->SetBinContent(35,2);
   ResoRow01->SetBinContent(36,2);
   ResoRow01->SetBinContent(37,2);
   ResoRow01->SetBinContent(38,2);
   ResoRow01->SetBinContent(39,3);
   ResoRow01->SetBinContent(40,6);
   ResoRow01->SetBinContent(41,8);
   ResoRow01->SetBinContent(42,8);
   ResoRow01->SetBinContent(43,16);
   ResoRow01->SetBinContent(44,28);
   ResoRow01->SetBinContent(45,28);
   ResoRow01->SetBinContent(46,49);
   ResoRow01->SetBinContent(47,66);
   ResoRow01->SetBinContent(48,88);
   ResoRow01->SetBinContent(49,102);
   ResoRow01->SetBinContent(50,113);
   ResoRow01->SetBinContent(51,103);
   ResoRow01->SetBinContent(52,81);
   ResoRow01->SetBinContent(53,84);
   ResoRow01->SetBinContent(54,44);
   ResoRow01->SetBinContent(55,51);
   ResoRow01->SetBinContent(56,31);
   ResoRow01->SetBinContent(57,21);
   ResoRow01->SetBinContent(58,15);
   ResoRow01->SetBinContent(59,8);
   ResoRow01->SetBinContent(60,8);
   ResoRow01->SetBinContent(61,5);
   ResoRow01->SetBinContent(62,1);
   ResoRow01->SetBinContent(63,6);
   ResoRow01->SetBinContent(64,4);
   ResoRow01->SetBinContent(65,2);
   ResoRow01->SetBinContent(66,2);
   ResoRow01->SetBinContent(67,1);
   ResoRow01->SetBinContent(70,1);
   ResoRow01->SetBinContent(72,1);
   ResoRow01->SetBinContent(75,1);
   ResoRow01->SetBinContent(78,1);
   ResoRow01->SetBinContent(86,1);
   ResoRow01->SetBinContent(95,1);
   ResoRow01->SetBinContent(101,7);
   ResoRow01->SetEntries(1018);
   
   TF1 *ResoRowFit01 = new TF1("ResoRowFit01","gaus",-1,1);
   ResoRowFit01->SetFillColor(19);
   ResoRowFit01->SetFillStyle(0);
   ResoRowFit01->SetLineWidth(3);
   ResoRowFit01->SetChisquare(64.20247);
   ResoRowFit01->SetNDF(46);
   ResoRowFit01->SetParameter(0,96.13185);
   ResoRowFit01->SetParError(0,4.246976);
   ResoRowFit01->SetParLimits(0,0,0);
   ResoRowFit01->SetParameter(1,-0.003966866);
   ResoRowFit01->SetParError(1,0.0025569);
   ResoRowFit01->SetParLimits(1,0,0);
   ResoRowFit01->SetParameter(2,0.07850224);
   ResoRowFit01->SetParError(2,0.002347994);
   ResoRowFit01->SetParLimits(2,0,1.214353);
   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 = 1018   ");
   text = ptstats->AddText("Mean  = -0.00654");
   text = ptstats->AddText("RMS   = 0.1216");
   text = ptstats->AddText("#chi^{2} / ndf =  64.2 / 46");
   text = ptstats->AddText("Constant = 96.13 #pm 4.25 ");
   text = ptstats->AddText("Mean     = -0.003967 #pm 0.002557 ");
   text = ptstats->AddText("Sigma    = 0.0785 #pm 0.0023 ");
   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.04375,1.25,126.3938);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow02 = new TH1F("ResoRow02","",100,-1,1);
   ResoRow02->SetBinContent(2,1);
   ResoRow02->SetBinContent(9,1);
   ResoRow02->SetBinContent(18,1);
   ResoRow02->SetBinContent(19,1);
   ResoRow02->SetBinContent(20,1);
   ResoRow02->SetBinContent(25,1);
   ResoRow02->SetBinContent(26,1);
   ResoRow02->SetBinContent(33,1);
   ResoRow02->SetBinContent(34,1);
   ResoRow02->SetBinContent(35,5);
   ResoRow02->SetBinContent(37,2);
   ResoRow02->SetBinContent(39,4);
   ResoRow02->SetBinContent(40,2);
   ResoRow02->SetBinContent(41,7);
   ResoRow02->SetBinContent(42,13);
   ResoRow02->SetBinContent(43,11);
   ResoRow02->SetBinContent(44,20);
   ResoRow02->SetBinContent(45,30);
   ResoRow02->SetBinContent(46,45);
   ResoRow02->SetBinContent(47,76);
   ResoRow02->SetBinContent(48,107);
   ResoRow02->SetBinContent(49,100);
   ResoRow02->SetBinContent(50,100);
   ResoRow02->SetBinContent(51,107);
   ResoRow02->SetBinContent(52,93);
   ResoRow02->SetBinContent(53,85);
   ResoRow02->SetBinContent(54,52);
   ResoRow02->SetBinContent(55,33);
   ResoRow02->SetBinContent(56,30);
   ResoRow02->SetBinContent(57,32);
   ResoRow02->SetBinContent(58,8);
   ResoRow02->SetBinContent(59,6);
   ResoRow02->SetBinContent(60,9);
   ResoRow02->SetBinContent(61,8);
   ResoRow02->SetBinContent(62,5);
   ResoRow02->SetBinContent(63,5);
   ResoRow02->SetBinContent(64,4);
   ResoRow02->SetBinContent(67,1);
   ResoRow02->SetBinContent(68,1);
   ResoRow02->SetBinContent(70,1);
   ResoRow02->SetBinContent(71,1);
   ResoRow02->SetBinContent(79,1);
   ResoRow02->SetBinContent(83,1);
   ResoRow02->SetBinContent(88,1);
   ResoRow02->SetBinContent(89,1);
   ResoRow02->SetBinContent(90,1);
   ResoRow02->SetBinContent(101,1);
   ResoRow02->SetEntries(1018);
   
   TF1 *ResoRowFit02 = new TF1("ResoRowFit02","gaus",-1,1);
   ResoRowFit02->SetFillColor(19);
   ResoRowFit02->SetFillStyle(0);
   ResoRowFit02->SetLineWidth(3);
   ResoRowFit02->SetChisquare(74.52325);
   ResoRowFit02->SetNDF(43);
   ResoRowFit02->SetParameter(0,103.0001);
   ResoRowFit02->SetParError(0,4.550024);
   ResoRowFit02->SetParLimits(0,0,0);
   ResoRowFit02->SetParameter(1,-0.004823865);
   ResoRowFit02->SetParError(1,0.002399785);
   ResoRowFit02->SetParLimits(1,0,0);
   ResoRowFit02->SetParameter(2,0.07304401);
   ResoRowFit02->SetParError(2,0.002190343);
   ResoRowFit02->SetParLimits(2,0,1.167655);
   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 = 1018   ");
   text = ptstats->AddText("Mean  = -0.002139");
   text = ptstats->AddText("RMS   = 0.1167");
   text = ptstats->AddText("#chi^{2} / ndf = 74.52 / 43");
   text = ptstats->AddText("Constant =   103 #pm 4.6 ");
   text = ptstats->AddText("Mean     = -0.004824 #pm 0.002400 ");
   text = ptstats->AddText("Sigma    = 0.07304 #pm 0.00219 ");
   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,-16.14375,1.25,145.2938);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow03 = new TH1F("ResoRow03","",100,-1,1);
   ResoRow03->SetBinContent(0,3);
   ResoRow03->SetBinContent(10,1);
   ResoRow03->SetBinContent(12,1);
   ResoRow03->SetBinContent(13,1);
   ResoRow03->SetBinContent(17,1);
   ResoRow03->SetBinContent(22,1);
   ResoRow03->SetBinContent(24,1);
   ResoRow03->SetBinContent(30,1);
   ResoRow03->SetBinContent(31,1);
   ResoRow03->SetBinContent(32,1);
   ResoRow03->SetBinContent(33,1);
   ResoRow03->SetBinContent(34,2);
   ResoRow03->SetBinContent(36,1);
   ResoRow03->SetBinContent(39,2);
   ResoRow03->SetBinContent(40,4);
   ResoRow03->SetBinContent(41,4);
   ResoRow03->SetBinContent(42,11);
   ResoRow03->SetBinContent(43,10);
   ResoRow03->SetBinContent(44,18);
   ResoRow03->SetBinContent(45,26);
   ResoRow03->SetBinContent(46,36);
   ResoRow03->SetBinContent(47,69);
   ResoRow03->SetBinContent(48,91);
   ResoRow03->SetBinContent(49,107);
   ResoRow03->SetBinContent(50,123);
   ResoRow03->SetBinContent(51,123);
   ResoRow03->SetBinContent(52,96);
   ResoRow03->SetBinContent(53,86);
   ResoRow03->SetBinContent(54,56);
   ResoRow03->SetBinContent(55,37);
   ResoRow03->SetBinContent(56,29);
   ResoRow03->SetBinContent(57,21);
   ResoRow03->SetBinContent(58,15);
   ResoRow03->SetBinContent(59,4);
   ResoRow03->SetBinContent(60,9);
   ResoRow03->SetBinContent(61,2);
   ResoRow03->SetBinContent(62,6);
   ResoRow03->SetBinContent(63,1);
   ResoRow03->SetBinContent(64,1);
   ResoRow03->SetBinContent(65,1);
   ResoRow03->SetBinContent(66,3);
   ResoRow03->SetBinContent(67,1);
   ResoRow03->SetBinContent(68,2);
   ResoRow03->SetBinContent(69,1);
   ResoRow03->SetBinContent(70,1);
   ResoRow03->SetBinContent(73,2);
   ResoRow03->SetBinContent(74,2);
   ResoRow03->SetBinContent(78,1);
   ResoRow03->SetBinContent(84,1);
   ResoRow03->SetEntries(1018);
   
   TF1 *ResoRowFit03 = new TF1("ResoRowFit03","gaus",-1,1);
   ResoRowFit03->SetFillColor(19);
   ResoRowFit03->SetFillStyle(0);
   ResoRowFit03->SetLineWidth(3);
   ResoRowFit03->SetChisquare(62.09972);
   ResoRowFit03->SetNDF(45);
   ResoRowFit03->SetParameter(0,110.5306);
   ResoRowFit03->SetParError(0,4.917945);
   ResoRowFit03->SetParLimits(0,0,0);
   ResoRowFit03->SetParameter(1,-0.0007470402);
   ResoRowFit03->SetParError(1,0.002236342);
   ResoRowFit03->SetParLimits(1,0,0);
   ResoRowFit03->SetParameter(2,0.06880215);
   ResoRowFit03->SetParError(2,0.002106489);
   ResoRowFit03->SetParLimits(2,0,1.07949);
   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 = 1018   ");
   text = ptstats->AddText("Mean  = 0.0004537");
   text = ptstats->AddText("RMS   =  0.108");
   text = ptstats->AddText("#chi^{2} / ndf =  62.1 / 45");
   text = ptstats->AddText("Constant = 110.5 #pm 4.9 ");
   text = ptstats->AddText("Mean     = -0.000747 #pm 0.002236 ");
   text = ptstats->AddText("Sigma    = 0.0688 #pm 0.0021 ");
   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,-17.5875,1.25,158.2875);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow04 = new TH1F("ResoRow04","",100,-1,1);
   ResoRow04->SetBinContent(0,1);
   ResoRow04->SetBinContent(1,1);
   ResoRow04->SetBinContent(18,1);
   ResoRow04->SetBinContent(19,1);
   ResoRow04->SetBinContent(20,1);
   ResoRow04->SetBinContent(21,1);
   ResoRow04->SetBinContent(22,1);
   ResoRow04->SetBinContent(25,3);
   ResoRow04->SetBinContent(29,1);
   ResoRow04->SetBinContent(35,1);
   ResoRow04->SetBinContent(36,3);
   ResoRow04->SetBinContent(37,3);
   ResoRow04->SetBinContent(38,1);
   ResoRow04->SetBinContent(39,5);
   ResoRow04->SetBinContent(40,2);
   ResoRow04->SetBinContent(41,12);
   ResoRow04->SetBinContent(42,11);
   ResoRow04->SetBinContent(43,16);
   ResoRow04->SetBinContent(44,11);
   ResoRow04->SetBinContent(45,25);
   ResoRow04->SetBinContent(46,34);
   ResoRow04->SetBinContent(47,61);
   ResoRow04->SetBinContent(48,63);
   ResoRow04->SetBinContent(49,93);
   ResoRow04->SetBinContent(50,106);
   ResoRow04->SetBinContent(51,134);
   ResoRow04->SetBinContent(52,114);
   ResoRow04->SetBinContent(53,78);
   ResoRow04->SetBinContent(54,76);
   ResoRow04->SetBinContent(55,41);
   ResoRow04->SetBinContent(56,35);
   ResoRow04->SetBinContent(57,21);
   ResoRow04->SetBinContent(58,11);
   ResoRow04->SetBinContent(59,14);
   ResoRow04->SetBinContent(60,5);
   ResoRow04->SetBinContent(61,7);
   ResoRow04->SetBinContent(62,3);
   ResoRow04->SetBinContent(63,3);
   ResoRow04->SetBinContent(65,1);
   ResoRow04->SetBinContent(66,1);
   ResoRow04->SetBinContent(69,1);
   ResoRow04->SetBinContent(70,2);
   ResoRow04->SetBinContent(71,1);
   ResoRow04->SetBinContent(72,1);
   ResoRow04->SetBinContent(73,1);
   ResoRow04->SetBinContent(74,1);
   ResoRow04->SetBinContent(75,2);
   ResoRow04->SetBinContent(79,2);
   ResoRow04->SetBinContent(91,1);
   ResoRow04->SetBinContent(94,1);
   ResoRow04->SetBinContent(101,3);
   ResoRow04->SetEntries(1018);
   
   TF1 *ResoRowFit04 = new TF1("ResoRowFit04","gaus",-1,1);
   ResoRowFit04->SetFillColor(19);
   ResoRowFit04->SetFillStyle(0);
   ResoRowFit04->SetLineWidth(3);
   ResoRowFit04->SetChisquare(84.49738);
   ResoRowFit04->SetNDF(46);
   ResoRowFit04->SetParameter(0,103.7106);
   ResoRowFit04->SetParError(0,4.865095);
   ResoRowFit04->SetParLimits(0,0,0);
   ResoRowFit04->SetParameter(1,0.007184251);
   ResoRowFit04->SetParError(1,0.002350871);
   ResoRowFit04->SetParLimits(1,0,0);
   ResoRowFit04->SetParameter(2,0.07152005);
   ResoRowFit04->SetParError(2,0.002401887);
   ResoRowFit04->SetParLimits(2,0,1.192478);
   ResoRow04->GetListOfFunctions()->Add(ResoRowFit04);
   
   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("ResoRow04");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1018   ");
   text = ptstats->AddText("Mean  = 0.00448");
   text = ptstats->AddText("RMS   = 0.1191");
   text = ptstats->AddText("#chi^{2} / ndf =  84.5 / 46");
   text = ptstats->AddText("Constant = 103.7 #pm 4.9 ");
   text = ptstats->AddText("Mean     = 0.007184 #pm 0.002351 ");
   text = ptstats->AddText("Sigma    = 0.07152 #pm 0.00240 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow04->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow04->GetListOfFunctions());
   ResoRow04->GetXaxis()->SetTitle("residual / mm");
   ResoRow04->GetYaxis()->SetTitle("counts");
   ResoRow04->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,-14.9625,1.25,134.6625);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow05 = new TH1F("ResoRow05","",100,-1,1);
   ResoRow05->SetBinContent(9,1);
   ResoRow05->SetBinContent(16,1);
   ResoRow05->SetBinContent(17,2);
   ResoRow05->SetBinContent(21,1);
   ResoRow05->SetBinContent(23,1);
   ResoRow05->SetBinContent(27,1);
   ResoRow05->SetBinContent(32,1);
   ResoRow05->SetBinContent(34,2);
   ResoRow05->SetBinContent(35,2);
   ResoRow05->SetBinContent(39,1);
   ResoRow05->SetBinContent(40,2);
   ResoRow05->SetBinContent(41,5);
   ResoRow05->SetBinContent(42,9);
   ResoRow05->SetBinContent(43,9);
   ResoRow05->SetBinContent(44,25);
   ResoRow05->SetBinContent(45,27);
   ResoRow05->SetBinContent(46,46);
   ResoRow05->SetBinContent(47,70);
   ResoRow05->SetBinContent(48,78);
   ResoRow05->SetBinContent(49,114);
   ResoRow05->SetBinContent(50,107);
   ResoRow05->SetBinContent(51,112);
   ResoRow05->SetBinContent(52,83);
   ResoRow05->SetBinContent(53,91);
   ResoRow05->SetBinContent(54,70);
   ResoRow05->SetBinContent(55,47);
   ResoRow05->SetBinContent(56,38);
   ResoRow05->SetBinContent(57,12);
   ResoRow05->SetBinContent(58,14);
   ResoRow05->SetBinContent(59,10);
   ResoRow05->SetBinContent(60,8);
   ResoRow05->SetBinContent(61,4);
   ResoRow05->SetBinContent(62,4);
   ResoRow05->SetBinContent(63,4);
   ResoRow05->SetBinContent(64,2);
   ResoRow05->SetBinContent(66,3);
   ResoRow05->SetBinContent(67,1);
   ResoRow05->SetBinContent(68,2);
   ResoRow05->SetBinContent(71,1);
   ResoRow05->SetBinContent(72,1);
   ResoRow05->SetBinContent(80,1);
   ResoRow05->SetBinContent(82,1);
   ResoRow05->SetBinContent(86,1);
   ResoRow05->SetBinContent(87,1);
   ResoRow05->SetBinContent(89,1);
   ResoRow05->SetBinContent(101,1);
   ResoRow05->SetEntries(1018);
   
   TF1 *ResoRowFit05 = new TF1("ResoRowFit05","gaus",-1,1);
   ResoRowFit05->SetFillColor(19);
   ResoRowFit05->SetFillStyle(0);
   ResoRowFit05->SetLineWidth(3);
   ResoRowFit05->SetChisquare(57.56582);
   ResoRowFit05->SetNDF(42);
   ResoRowFit05->SetParameter(0,105.594);
   ResoRowFit05->SetParError(0,4.489357);
   ResoRowFit05->SetParLimits(0,0,0);
   ResoRowFit05->SetParameter(1,0.000134578);
   ResoRowFit05->SetParError(1,0.002355022);
   ResoRowFit05->SetParLimits(1,0,0);
   ResoRowFit05->SetParameter(2,0.07253046);
   ResoRowFit05->SetParError(2,0.002016224);
   ResoRowFit05->SetParLimits(2,0,1.120645);
   ResoRow05->GetListOfFunctions()->Add(ResoRowFit05);
   
   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("ResoRow05");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1018   ");
   text = ptstats->AddText("Mean  = 0.003504");
   text = ptstats->AddText("RMS   = 0.1117");
   text = ptstats->AddText("#chi^{2} / ndf = 57.57 / 42");
   text = ptstats->AddText("Constant = 105.6 #pm 4.5 ");
   text = ptstats->AddText("Mean     = 0.0001346 #pm 0.0023550 ");
   text = ptstats->AddText("Sigma    = 0.07253 #pm 0.00202 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow05->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow05->GetListOfFunctions());
   ResoRow05->GetXaxis()->SetTitle("residual / mm");
   ResoRow05->GetYaxis()->SetTitle("counts");
   ResoRow05->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,-14.04375,1.25,126.3938);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow06 = new TH1F("ResoRow06","",100,-1,1);
   ResoRow06->SetBinContent(0,1);
   ResoRow06->SetBinContent(7,1);
   ResoRow06->SetBinContent(11,2);
   ResoRow06->SetBinContent(19,1);
   ResoRow06->SetBinContent(20,1);
   ResoRow06->SetBinContent(21,1);
   ResoRow06->SetBinContent(25,1);
   ResoRow06->SetBinContent(30,1);
   ResoRow06->SetBinContent(31,1);
   ResoRow06->SetBinContent(32,1);
   ResoRow06->SetBinContent(33,2);
   ResoRow06->SetBinContent(34,1);
   ResoRow06->SetBinContent(35,1);
   ResoRow06->SetBinContent(37,1);
   ResoRow06->SetBinContent(38,2);
   ResoRow06->SetBinContent(39,1);
   ResoRow06->SetBinContent(41,6);
   ResoRow06->SetBinContent(42,7);
   ResoRow06->SetBinContent(43,15);
   ResoRow06->SetBinContent(44,15);
   ResoRow06->SetBinContent(45,29);
   ResoRow06->SetBinContent(46,43);
   ResoRow06->SetBinContent(47,58);
   ResoRow06->SetBinContent(48,94);
   ResoRow06->SetBinContent(49,94);
   ResoRow06->SetBinContent(50,102);
   ResoRow06->SetBinContent(51,107);
   ResoRow06->SetBinContent(52,97);
   ResoRow06->SetBinContent(53,89);
   ResoRow06->SetBinContent(54,64);
   ResoRow06->SetBinContent(55,47);
   ResoRow06->SetBinContent(56,33);
   ResoRow06->SetBinContent(57,39);
   ResoRow06->SetBinContent(58,11);
   ResoRow06->SetBinContent(59,8);
   ResoRow06->SetBinContent(60,9);
   ResoRow06->SetBinContent(61,6);
   ResoRow06->SetBinContent(62,4);
   ResoRow06->SetBinContent(63,3);
   ResoRow06->SetBinContent(64,3);
   ResoRow06->SetBinContent(65,2);
   ResoRow06->SetBinContent(66,1);
   ResoRow06->SetBinContent(68,1);
   ResoRow06->SetBinContent(70,1);
   ResoRow06->SetBinContent(73,1);
   ResoRow06->SetBinContent(75,1);
   ResoRow06->SetBinContent(78,1);
   ResoRow06->SetBinContent(79,1);
   ResoRow06->SetBinContent(81,1);
   ResoRow06->SetBinContent(82,1);
   ResoRow06->SetBinContent(83,1);
   ResoRow06->SetBinContent(91,1);
   ResoRow06->SetBinContent(101,3);
   ResoRow06->SetEntries(1018);
   
   TF1 *ResoRowFit06 = new TF1("ResoRowFit06","gaus",-1,1);
   ResoRowFit06->SetFillColor(19);
   ResoRowFit06->SetFillStyle(0);
   ResoRowFit06->SetLineWidth(3);
   ResoRowFit06->SetChisquare(56.36322);
   ResoRowFit06->SetNDF(48);
   ResoRowFit06->SetParameter(0,101.6098);
   ResoRowFit06->SetParError(0,4.38976);
   ResoRowFit06->SetParLimits(0,0,0);
   ResoRowFit06->SetParameter(1,0.004611686);
   ResoRowFit06->SetParError(1,0.002457468);
   ResoRowFit06->SetParLimits(1,0,0);
   ResoRowFit06->SetParameter(2,0.07534044);
   ResoRowFit06->SetParError(2,0.002189209);
   ResoRowFit06->SetParLimits(2,0,1.176743);
   ResoRow06->GetListOfFunctions()->Add(ResoRowFit06);
   
   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("ResoRow06");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1018   ");
   text = ptstats->AddText("Mean  = 0.005974");
   text = ptstats->AddText("RMS   = 0.1176");
   text = ptstats->AddText("#chi^{2} / ndf = 56.36 / 48");
   text = ptstats->AddText("Constant = 101.6 #pm 4.4 ");
   text = ptstats->AddText("Mean     = 0.004612 #pm 0.002457 ");
   text = ptstats->AddText("Sigma    = 0.07534 #pm 0.00219 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow06->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow06->GetListOfFunctions());
   ResoRow06->GetXaxis()->SetTitle("residual / mm");
   ResoRow06->GetYaxis()->SetTitle("counts");
   ResoRow06->Draw("");
   c2_6->Modified();
   c2->cd();
   c2->Modified();
   c2->cd();
   c2->SetSelected(c2);
}
