{
//=========Macro generated from canvas: c2/
//=========  (Tue Jun  8 18:13:56 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,3);
   ResoRow01->SetBinContent(12,1);
   ResoRow01->SetBinContent(16,1);
   ResoRow01->SetBinContent(23,1);
   ResoRow01->SetBinContent(26,2);
   ResoRow01->SetBinContent(27,1);
   ResoRow01->SetBinContent(28,1);
   ResoRow01->SetBinContent(29,1);
   ResoRow01->SetBinContent(30,1);
   ResoRow01->SetBinContent(31,1);
   ResoRow01->SetBinContent(33,1);
   ResoRow01->SetBinContent(34,1);
   ResoRow01->SetBinContent(35,4);
   ResoRow01->SetBinContent(37,4);
   ResoRow01->SetBinContent(38,6);
   ResoRow01->SetBinContent(39,4);
   ResoRow01->SetBinContent(40,11);
   ResoRow01->SetBinContent(41,11);
   ResoRow01->SetBinContent(42,14);
   ResoRow01->SetBinContent(43,22);
   ResoRow01->SetBinContent(44,31);
   ResoRow01->SetBinContent(45,60);
   ResoRow01->SetBinContent(46,58);
   ResoRow01->SetBinContent(47,67);
   ResoRow01->SetBinContent(48,79);
   ResoRow01->SetBinContent(49,98);
   ResoRow01->SetBinContent(50,114);
   ResoRow01->SetBinContent(51,115);
   ResoRow01->SetBinContent(52,85);
   ResoRow01->SetBinContent(53,76);
   ResoRow01->SetBinContent(54,71);
   ResoRow01->SetBinContent(55,52);
   ResoRow01->SetBinContent(56,42);
   ResoRow01->SetBinContent(57,40);
   ResoRow01->SetBinContent(58,30);
   ResoRow01->SetBinContent(59,15);
   ResoRow01->SetBinContent(60,10);
   ResoRow01->SetBinContent(61,7);
   ResoRow01->SetBinContent(62,5);
   ResoRow01->SetBinContent(63,3);
   ResoRow01->SetBinContent(64,3);
   ResoRow01->SetBinContent(65,1);
   ResoRow01->SetBinContent(66,2);
   ResoRow01->SetBinContent(67,1);
   ResoRow01->SetBinContent(68,1);
   ResoRow01->SetBinContent(69,1);
   ResoRow01->SetBinContent(70,2);
   ResoRow01->SetBinContent(74,1);
   ResoRow01->SetBinContent(79,1);
   ResoRow01->SetBinContent(85,1);
   ResoRow01->SetBinContent(88,1);
   ResoRow01->SetBinContent(89,1);
   ResoRow01->SetBinContent(90,1);
   ResoRow01->SetBinContent(101,3);
   ResoRow01->SetEntries(1169);
   
   TF1 *ResoRowFit01 = new TF1("ResoRowFit01","gaus",-1,1);
   ResoRowFit01->SetFillColor(19);
   ResoRowFit01->SetFillStyle(0);
   ResoRowFit01->SetLineWidth(3);
   ResoRowFit01->SetChisquare(50.15994);
   ResoRowFit01->SetNDF(49);
   ResoRowFit01->SetParameter(0,96.06086);
   ResoRowFit01->SetParError(0,3.779898);
   ResoRowFit01->SetParLimits(0,0,0);
   ResoRowFit01->SetParameter(1,-0.0007381824);
   ResoRowFit01->SetParError(1,0.002781495);
   ResoRowFit01->SetParLimits(1,0,0);
   ResoRowFit01->SetParameter(2,0.09249627);
   ResoRowFit01->SetParError(2,0.002371937);
   ResoRowFit01->SetParLimits(2,0,1.20285);
   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 = 1169   ");
   text = ptstats->AddText("Mean  = -0.002109");
   text = ptstats->AddText("RMS   = 0.1202");
   text = ptstats->AddText("#chi^{2} / ndf = 50.16 / 49");
   text = ptstats->AddText("Constant = 96.06 #pm 3.78 ");
   text = ptstats->AddText("Mean     = -0.0007382 #pm 0.0027815 ");
   text = ptstats->AddText("Sigma    = 0.0925 #pm 0.0024 ");
   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,-13.78125,1.25,124.0313);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow02 = new TH1F("ResoRow02","",100,-1,1);
   ResoRow02->SetBinContent(0,3);
   ResoRow02->SetBinContent(8,1);
   ResoRow02->SetBinContent(17,1);
   ResoRow02->SetBinContent(20,1);
   ResoRow02->SetBinContent(22,1);
   ResoRow02->SetBinContent(26,1);
   ResoRow02->SetBinContent(31,2);
   ResoRow02->SetBinContent(32,1);
   ResoRow02->SetBinContent(33,2);
   ResoRow02->SetBinContent(34,4);
   ResoRow02->SetBinContent(35,2);
   ResoRow02->SetBinContent(36,3);
   ResoRow02->SetBinContent(37,6);
   ResoRow02->SetBinContent(38,5);
   ResoRow02->SetBinContent(39,12);
   ResoRow02->SetBinContent(40,12);
   ResoRow02->SetBinContent(41,22);
   ResoRow02->SetBinContent(42,20);
   ResoRow02->SetBinContent(43,33);
   ResoRow02->SetBinContent(44,39);
   ResoRow02->SetBinContent(45,53);
   ResoRow02->SetBinContent(46,61);
   ResoRow02->SetBinContent(47,73);
   ResoRow02->SetBinContent(48,65);
   ResoRow02->SetBinContent(49,96);
   ResoRow02->SetBinContent(50,102);
   ResoRow02->SetBinContent(51,105);
   ResoRow02->SetBinContent(52,88);
   ResoRow02->SetBinContent(53,67);
   ResoRow02->SetBinContent(54,66);
   ResoRow02->SetBinContent(55,44);
   ResoRow02->SetBinContent(56,33);
   ResoRow02->SetBinContent(57,37);
   ResoRow02->SetBinContent(58,32);
   ResoRow02->SetBinContent(59,18);
   ResoRow02->SetBinContent(60,15);
   ResoRow02->SetBinContent(61,11);
   ResoRow02->SetBinContent(62,4);
   ResoRow02->SetBinContent(63,6);
   ResoRow02->SetBinContent(64,2);
   ResoRow02->SetBinContent(65,2);
   ResoRow02->SetBinContent(66,4);
   ResoRow02->SetBinContent(67,3);
   ResoRow02->SetBinContent(68,2);
   ResoRow02->SetBinContent(69,1);
   ResoRow02->SetBinContent(70,1);
   ResoRow02->SetBinContent(71,1);
   ResoRow02->SetBinContent(78,1);
   ResoRow02->SetBinContent(82,1);
   ResoRow02->SetBinContent(101,4);
   ResoRow02->SetEntries(1169);
   
   TF1 *ResoRowFit02 = new TF1("ResoRowFit02","gaus",-1,1);
   ResoRowFit02->SetFillColor(19);
   ResoRowFit02->SetFillStyle(0);
   ResoRowFit02->SetLineWidth(3);
   ResoRowFit02->SetChisquare(50.37806);
   ResoRowFit02->SetNDF(45);
   ResoRowFit02->SetParameter(0,84.93358);
   ResoRowFit02->SetParError(0,3.367466);
   ResoRowFit02->SetParLimits(0,0,0);
   ResoRowFit02->SetParameter(1,-0.009348675);
   ResoRowFit02->SetParError(1,0.003136638);
   ResoRowFit02->SetParLimits(1,0,0);
   ResoRowFit02->SetParameter(2,0.1044393);
   ResoRowFit02->SetParError(2,0.002711888);
   ResoRowFit02->SetParLimits(2,0,1.218288);
   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 = 1169   ");
   text = ptstats->AddText("Mean  = -0.009872");
   text = ptstats->AddText("RMS   = 0.1218");
   text = ptstats->AddText("#chi^{2} / ndf = 50.38 / 45");
   text = ptstats->AddText("Constant = 84.93 #pm 3.37 ");
   text = ptstats->AddText("Mean     = -0.009349 #pm 0.003137 ");
   text = ptstats->AddText("Sigma    = 0.1044 #pm 0.0027 ");
   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,-12.73125,1.25,114.5813);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow03 = new TH1F("ResoRow03","",100,-1,1);
   ResoRow03->SetBinContent(0,2);
   ResoRow03->SetBinContent(20,1);
   ResoRow03->SetBinContent(23,1);
   ResoRow03->SetBinContent(29,2);
   ResoRow03->SetBinContent(30,1);
   ResoRow03->SetBinContent(31,3);
   ResoRow03->SetBinContent(33,1);
   ResoRow03->SetBinContent(34,4);
   ResoRow03->SetBinContent(35,1);
   ResoRow03->SetBinContent(36,3);
   ResoRow03->SetBinContent(37,6);
   ResoRow03->SetBinContent(38,12);
   ResoRow03->SetBinContent(39,15);
   ResoRow03->SetBinContent(40,26);
   ResoRow03->SetBinContent(41,18);
   ResoRow03->SetBinContent(42,29);
   ResoRow03->SetBinContent(43,31);
   ResoRow03->SetBinContent(44,39);
   ResoRow03->SetBinContent(45,44);
   ResoRow03->SetBinContent(46,62);
   ResoRow03->SetBinContent(47,62);
   ResoRow03->SetBinContent(48,70);
   ResoRow03->SetBinContent(49,72);
   ResoRow03->SetBinContent(50,86);
   ResoRow03->SetBinContent(51,97);
   ResoRow03->SetBinContent(52,73);
   ResoRow03->SetBinContent(53,64);
   ResoRow03->SetBinContent(54,81);
   ResoRow03->SetBinContent(55,60);
   ResoRow03->SetBinContent(56,46);
   ResoRow03->SetBinContent(57,43);
   ResoRow03->SetBinContent(58,20);
   ResoRow03->SetBinContent(59,21);
   ResoRow03->SetBinContent(60,12);
   ResoRow03->SetBinContent(61,14);
   ResoRow03->SetBinContent(62,7);
   ResoRow03->SetBinContent(63,12);
   ResoRow03->SetBinContent(64,7);
   ResoRow03->SetBinContent(65,3);
   ResoRow03->SetBinContent(67,2);
   ResoRow03->SetBinContent(68,1);
   ResoRow03->SetBinContent(70,1);
   ResoRow03->SetBinContent(71,2);
   ResoRow03->SetBinContent(73,2);
   ResoRow03->SetBinContent(75,1);
   ResoRow03->SetBinContent(76,1);
   ResoRow03->SetBinContent(77,1);
   ResoRow03->SetBinContent(87,1);
   ResoRow03->SetBinContent(101,6);
   ResoRow03->SetEntries(1169);
   
   TF1 *ResoRowFit03 = new TF1("ResoRowFit03","gaus",-1,1);
   ResoRowFit03->SetFillColor(19);
   ResoRowFit03->SetFillStyle(0);
   ResoRowFit03->SetLineWidth(3);
   ResoRowFit03->SetChisquare(53.31588);
   ResoRowFit03->SetNDF(44);
   ResoRowFit03->SetParameter(0,78.03961);
   ResoRowFit03->SetParError(0,3.035357);
   ResoRowFit03->SetParLimits(0,0,0);
   ResoRowFit03->SetParameter(1,-0.006733075);
   ResoRowFit03->SetParError(1,0.003443162);
   ResoRowFit03->SetParLimits(1,0,0);
   ResoRowFit03->SetParameter(2,0.1135068);
   ResoRowFit03->SetParError(2,0.002854556);
   ResoRowFit03->SetParLimits(2,0,1.280441);
   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 = 1169   ");
   text = ptstats->AddText("Mean  = -0.005901");
   text = ptstats->AddText("RMS   =  0.128");
   text = ptstats->AddText("#chi^{2} / ndf = 53.32 / 44");
   text = ptstats->AddText("Constant = 78.04 #pm 3.04 ");
   text = ptstats->AddText("Mean     = -0.006733 #pm 0.003443 ");
   text = ptstats->AddText("Sigma    = 0.1135 #pm 0.0029 ");
   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,-10.7625,1.25,96.8625);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow09 = new TH1F("ResoRow09","",100,-1,1);
   ResoRow09->SetBinContent(0,2);
   ResoRow09->SetBinContent(14,1);
   ResoRow09->SetBinContent(21,1);
   ResoRow09->SetBinContent(22,1);
   ResoRow09->SetBinContent(23,2);
   ResoRow09->SetBinContent(24,1);
   ResoRow09->SetBinContent(28,2);
   ResoRow09->SetBinContent(29,1);
   ResoRow09->SetBinContent(30,4);
   ResoRow09->SetBinContent(31,5);
   ResoRow09->SetBinContent(32,2);
   ResoRow09->SetBinContent(33,2);
   ResoRow09->SetBinContent(34,4);
   ResoRow09->SetBinContent(35,2);
   ResoRow09->SetBinContent(36,1);
   ResoRow09->SetBinContent(37,9);
   ResoRow09->SetBinContent(38,8);
   ResoRow09->SetBinContent(39,14);
   ResoRow09->SetBinContent(40,25);
   ResoRow09->SetBinContent(41,18);
   ResoRow09->SetBinContent(42,30);
   ResoRow09->SetBinContent(43,36);
   ResoRow09->SetBinContent(44,49);
   ResoRow09->SetBinContent(45,49);
   ResoRow09->SetBinContent(46,58);
   ResoRow09->SetBinContent(47,59);
   ResoRow09->SetBinContent(48,74);
   ResoRow09->SetBinContent(49,82);
   ResoRow09->SetBinContent(50,68);
   ResoRow09->SetBinContent(51,81);
   ResoRow09->SetBinContent(52,61);
   ResoRow09->SetBinContent(53,67);
   ResoRow09->SetBinContent(54,61);
   ResoRow09->SetBinContent(55,52);
   ResoRow09->SetBinContent(56,46);
   ResoRow09->SetBinContent(57,41);
   ResoRow09->SetBinContent(58,35);
   ResoRow09->SetBinContent(59,22);
   ResoRow09->SetBinContent(60,22);
   ResoRow09->SetBinContent(61,15);
   ResoRow09->SetBinContent(62,13);
   ResoRow09->SetBinContent(63,9);
   ResoRow09->SetBinContent(64,4);
   ResoRow09->SetBinContent(65,6);
   ResoRow09->SetBinContent(66,4);
   ResoRow09->SetBinContent(67,6);
   ResoRow09->SetBinContent(68,1);
   ResoRow09->SetBinContent(69,1);
   ResoRow09->SetBinContent(70,2);
   ResoRow09->SetBinContent(71,1);
   ResoRow09->SetBinContent(72,1);
   ResoRow09->SetBinContent(73,1);
   ResoRow09->SetBinContent(75,1);
   ResoRow09->SetBinContent(78,1);
   ResoRow09->SetBinContent(95,1);
   ResoRow09->SetBinContent(96,1);
   ResoRow09->SetBinContent(101,3);
   ResoRow09->SetEntries(1169);
   
   TF1 *ResoRowFit09 = new TF1("ResoRowFit09","gaus",-1,1);
   ResoRowFit09->SetFillColor(19);
   ResoRowFit09->SetFillStyle(0);
   ResoRowFit09->SetLineWidth(3);
   ResoRowFit09->SetChisquare(54.88657);
   ResoRowFit09->SetNDF(52);
   ResoRowFit09->SetParameter(0,73.85602);
   ResoRowFit09->SetParError(0,2.783668);
   ResoRowFit09->SetParLimits(0,0,0);
   ResoRowFit09->SetParameter(1,-0.001619106);
   ResoRowFit09->SetParError(1,0.003655941);
   ResoRowFit09->SetParLimits(1,0,0);
   ResoRowFit09->SetParameter(2,0.1198318);
   ResoRowFit09->SetParError(2,0.002732964);
   ResoRowFit09->SetParLimits(2,0,1.450872);
   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 = 1169   ");
   text = ptstats->AddText("Mean  = -0.006769");
   text = ptstats->AddText("RMS   = 0.1446");
   text = ptstats->AddText("#chi^{2} / ndf = 54.89 / 52");
   text = ptstats->AddText("Constant = 73.86 #pm 2.78 ");
   text = ptstats->AddText("Mean     = -0.001619 #pm 0.003656 ");
   text = ptstats->AddText("Sigma    = 0.1198 #pm 0.0027 ");
   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,-11.94375,1.25,107.4938);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow10 = new TH1F("ResoRow10","",100,-1,1);
   ResoRow10->SetBinContent(0,2);
   ResoRow10->SetBinContent(5,1);
   ResoRow10->SetBinContent(16,1);
   ResoRow10->SetBinContent(21,1);
   ResoRow10->SetBinContent(24,1);
   ResoRow10->SetBinContent(25,1);
   ResoRow10->SetBinContent(26,1);
   ResoRow10->SetBinContent(27,2);
   ResoRow10->SetBinContent(29,1);
   ResoRow10->SetBinContent(32,6);
   ResoRow10->SetBinContent(34,3);
   ResoRow10->SetBinContent(35,2);
   ResoRow10->SetBinContent(36,2);
   ResoRow10->SetBinContent(37,2);
   ResoRow10->SetBinContent(38,7);
   ResoRow10->SetBinContent(39,14);
   ResoRow10->SetBinContent(40,9);
   ResoRow10->SetBinContent(41,26);
   ResoRow10->SetBinContent(42,19);
   ResoRow10->SetBinContent(43,43);
   ResoRow10->SetBinContent(44,42);
   ResoRow10->SetBinContent(45,44);
   ResoRow10->SetBinContent(46,65);
   ResoRow10->SetBinContent(47,76);
   ResoRow10->SetBinContent(48,72);
   ResoRow10->SetBinContent(49,75);
   ResoRow10->SetBinContent(50,91);
   ResoRow10->SetBinContent(51,85);
   ResoRow10->SetBinContent(52,64);
   ResoRow10->SetBinContent(53,71);
   ResoRow10->SetBinContent(54,73);
   ResoRow10->SetBinContent(55,53);
   ResoRow10->SetBinContent(56,55);
   ResoRow10->SetBinContent(57,26);
   ResoRow10->SetBinContent(58,37);
   ResoRow10->SetBinContent(59,21);
   ResoRow10->SetBinContent(60,23);
   ResoRow10->SetBinContent(61,11);
   ResoRow10->SetBinContent(62,11);
   ResoRow10->SetBinContent(63,7);
   ResoRow10->SetBinContent(64,5);
   ResoRow10->SetBinContent(65,2);
   ResoRow10->SetBinContent(66,3);
   ResoRow10->SetBinContent(67,2);
   ResoRow10->SetBinContent(68,1);
   ResoRow10->SetBinContent(69,1);
   ResoRow10->SetBinContent(70,1);
   ResoRow10->SetBinContent(72,1);
   ResoRow10->SetBinContent(74,1);
   ResoRow10->SetBinContent(75,1);
   ResoRow10->SetBinContent(76,2);
   ResoRow10->SetBinContent(95,1);
   ResoRow10->SetBinContent(101,2);
   ResoRow10->SetEntries(1169);
   
   TF1 *ResoRowFit10 = new TF1("ResoRowFit10","gaus",-1,1);
   ResoRowFit10->SetFillColor(19);
   ResoRowFit10->SetFillStyle(0);
   ResoRowFit10->SetLineWidth(3);
   ResoRowFit10->SetChisquare(57.15535);
   ResoRowFit10->SetNDF(48);
   ResoRowFit10->SetParameter(0,80.20879);
   ResoRowFit10->SetParError(0,3.058671);
   ResoRowFit10->SetParLimits(0,0,0);
   ResoRowFit10->SetParameter(1,-0.001924434);
   ResoRowFit10->SetParError(1,0.00335744);
   ResoRowFit10->SetParLimits(1,0,0);
   ResoRowFit10->SetParameter(2,0.1102951);
   ResoRowFit10->SetParError(2,0.002610876);
   ResoRowFit10->SetParLimits(2,0,1.324204);
   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 = 1169   ");
   text = ptstats->AddText("Mean  = -0.005607");
   text = ptstats->AddText("RMS   = 0.1321");
   text = ptstats->AddText("#chi^{2} / ndf = 57.16 / 48");
   text = ptstats->AddText("Constant = 80.21 #pm 3.06 ");
   text = ptstats->AddText("Mean     = -0.001924 #pm 0.003357 ");
   text = ptstats->AddText("Sigma    = 0.1103 #pm 0.0026 ");
   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.8125,1.25,106.3125);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow11 = new TH1F("ResoRow11","",100,-1,1);
   ResoRow11->SetBinContent(0,3);
   ResoRow11->SetBinContent(18,1);
   ResoRow11->SetBinContent(22,1);
   ResoRow11->SetBinContent(25,1);
   ResoRow11->SetBinContent(28,3);
   ResoRow11->SetBinContent(29,2);
   ResoRow11->SetBinContent(30,2);
   ResoRow11->SetBinContent(31,3);
   ResoRow11->SetBinContent(32,2);
   ResoRow11->SetBinContent(33,3);
   ResoRow11->SetBinContent(34,2);
   ResoRow11->SetBinContent(35,1);
   ResoRow11->SetBinContent(36,7);
   ResoRow11->SetBinContent(37,9);
   ResoRow11->SetBinContent(38,6);
   ResoRow11->SetBinContent(39,18);
   ResoRow11->SetBinContent(40,26);
   ResoRow11->SetBinContent(41,20);
   ResoRow11->SetBinContent(42,21);
   ResoRow11->SetBinContent(43,35);
   ResoRow11->SetBinContent(44,47);
   ResoRow11->SetBinContent(45,52);
   ResoRow11->SetBinContent(46,50);
   ResoRow11->SetBinContent(47,72);
   ResoRow11->SetBinContent(48,84);
   ResoRow11->SetBinContent(49,73);
   ResoRow11->SetBinContent(50,90);
   ResoRow11->SetBinContent(51,73);
   ResoRow11->SetBinContent(52,68);
   ResoRow11->SetBinContent(53,62);
   ResoRow11->SetBinContent(54,60);
   ResoRow11->SetBinContent(55,51);
   ResoRow11->SetBinContent(56,47);
   ResoRow11->SetBinContent(57,42);
   ResoRow11->SetBinContent(58,25);
   ResoRow11->SetBinContent(59,29);
   ResoRow11->SetBinContent(60,12);
   ResoRow11->SetBinContent(61,18);
   ResoRow11->SetBinContent(62,15);
   ResoRow11->SetBinContent(63,8);
   ResoRow11->SetBinContent(64,7);
   ResoRow11->SetBinContent(65,3);
   ResoRow11->SetBinContent(66,1);
   ResoRow11->SetBinContent(67,2);
   ResoRow11->SetBinContent(68,2);
   ResoRow11->SetBinContent(69,1);
   ResoRow11->SetBinContent(70,1);
   ResoRow11->SetBinContent(72,2);
   ResoRow11->SetBinContent(73,2);
   ResoRow11->SetBinContent(74,1);
   ResoRow11->SetBinContent(77,1);
   ResoRow11->SetBinContent(91,1);
   ResoRow11->SetBinContent(101,1);
   ResoRow11->SetEntries(1169);
   
   TF1 *ResoRowFit11 = new TF1("ResoRowFit11","gaus",-1,1);
   ResoRowFit11->SetFillColor(19);
   ResoRowFit11->SetFillStyle(0);
   ResoRowFit11->SetLineWidth(3);
   ResoRowFit11->SetChisquare(55.36971);
   ResoRowFit11->SetNDF(48);
   ResoRowFit11->SetParameter(0,75.21536);
   ResoRowFit11->SetParError(0,2.865653);
   ResoRowFit11->SetParLimits(0,0,0);
   ResoRowFit11->SetParameter(1,-0.006971909);
   ResoRowFit11->SetParError(1,0.003542362);
   ResoRowFit11->SetParLimits(1,0,0);
   ResoRowFit11->SetParameter(2,0.1177324);
   ResoRowFit11->SetParError(2,0.002768128);
   ResoRowFit11->SetParLimits(2,0,1.361566);
   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 = 1169   ");
   text = ptstats->AddText("Mean  = -0.009753");
   text = ptstats->AddText("RMS   = 0.1359");
   text = ptstats->AddText("#chi^{2} / ndf = 55.37 / 48");
   text = ptstats->AddText("Constant = 75.22 #pm 2.87 ");
   text = ptstats->AddText("Mean     = -0.006972 #pm 0.003542 ");
   text = ptstats->AddText("Sigma    = 0.1177 #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);
}
