{
//=========Macro generated from canvas: c2/
//=========  (Tue Jun  8 17:54:54 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,-16.40625,1.25,147.6563);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow01 = new TH1F("ResoRow01","",100,-1,1);
   ResoRow01->SetBinContent(0,4);
   ResoRow01->SetBinContent(2,1);
   ResoRow01->SetBinContent(17,1);
   ResoRow01->SetBinContent(19,1);
   ResoRow01->SetBinContent(24,1);
   ResoRow01->SetBinContent(27,1);
   ResoRow01->SetBinContent(28,1);
   ResoRow01->SetBinContent(29,1);
   ResoRow01->SetBinContent(32,1);
   ResoRow01->SetBinContent(34,4);
   ResoRow01->SetBinContent(35,1);
   ResoRow01->SetBinContent(36,1);
   ResoRow01->SetBinContent(37,1);
   ResoRow01->SetBinContent(38,4);
   ResoRow01->SetBinContent(39,10);
   ResoRow01->SetBinContent(40,8);
   ResoRow01->SetBinContent(41,16);
   ResoRow01->SetBinContent(42,20);
   ResoRow01->SetBinContent(43,23);
   ResoRow01->SetBinContent(44,41);
   ResoRow01->SetBinContent(45,43);
   ResoRow01->SetBinContent(46,62);
   ResoRow01->SetBinContent(47,65);
   ResoRow01->SetBinContent(48,96);
   ResoRow01->SetBinContent(49,104);
   ResoRow01->SetBinContent(50,84);
   ResoRow01->SetBinContent(51,125);
   ResoRow01->SetBinContent(52,89);
   ResoRow01->SetBinContent(53,86);
   ResoRow01->SetBinContent(54,64);
   ResoRow01->SetBinContent(55,55);
   ResoRow01->SetBinContent(56,39);
   ResoRow01->SetBinContent(57,29);
   ResoRow01->SetBinContent(58,27);
   ResoRow01->SetBinContent(59,22);
   ResoRow01->SetBinContent(60,5);
   ResoRow01->SetBinContent(61,9);
   ResoRow01->SetBinContent(62,10);
   ResoRow01->SetBinContent(63,8);
   ResoRow01->SetBinContent(64,4);
   ResoRow01->SetBinContent(65,5);
   ResoRow01->SetBinContent(67,3);
   ResoRow01->SetBinContent(69,1);
   ResoRow01->SetBinContent(70,2);
   ResoRow01->SetBinContent(74,1);
   ResoRow01->SetBinContent(76,1);
   ResoRow01->SetBinContent(77,2);
   ResoRow01->SetBinContent(81,1);
   ResoRow01->SetBinContent(89,1);
   ResoRow01->SetBinContent(101,3);
   ResoRow01->SetEntries(1187);
   
   TF1 *ResoRowFit01 = new TF1("ResoRowFit01","gaus",-1,1);
   ResoRowFit01->SetFillColor(19);
   ResoRowFit01->SetFillStyle(0);
   ResoRowFit01->SetLineWidth(3);
   ResoRowFit01->SetChisquare(67.58761);
   ResoRowFit01->SetNDF(45);
   ResoRowFit01->SetParameter(0,95.51123);
   ResoRowFit01->SetParError(0,3.757042);
   ResoRowFit01->SetParLimits(0,0,0);
   ResoRowFit01->SetParameter(1,-0.004902747);
   ResoRowFit01->SetParError(1,0.002795935);
   ResoRowFit01->SetParLimits(1,0,0);
   ResoRowFit01->SetParameter(2,0.09297109);
   ResoRowFit01->SetParError(2,0.002379287);
   ResoRowFit01->SetParLimits(2,0,1.201893);
   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 = 1187   ");
   text = ptstats->AddText("Mean  = -0.001305");
   text = ptstats->AddText("RMS   = 0.1199");
   text = ptstats->AddText("#chi^{2} / ndf = 67.59 / 45");
   text = ptstats->AddText("Constant = 95.51 #pm 3.76 ");
   text = ptstats->AddText("Mean     = -0.004903 #pm 0.002796 ");
   text = ptstats->AddText("Sigma    = 0.09297 #pm 0.00238 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow01->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow01->GetListOfFunctions());
   ResoRow01->GetXaxis()->SetTitle("residual / mm");
   ResoRow01->GetYaxis()->SetTitle("counts");
   ResoRow01->Draw("");
   c2_1->Modified();
   c2->cd();
  
// ------------>Primitives in pad: c2_2
   c2_2 = new TPad("c2_2", "c2_2",0.3433333,0.51,0.6566667,0.99);
   c2_2->Draw();
   c2_2->cd();
   c2_2->Range(-1.25,-15.35625,1.25,138.2063);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow02 = new TH1F("ResoRow02","",100,-1,1);
   ResoRow02->SetBinContent(0,2);
   ResoRow02->SetBinContent(1,1);
   ResoRow02->SetBinContent(3,1);
   ResoRow02->SetBinContent(10,1);
   ResoRow02->SetBinContent(11,1);
   ResoRow02->SetBinContent(22,1);
   ResoRow02->SetBinContent(24,1);
   ResoRow02->SetBinContent(27,1);
   ResoRow02->SetBinContent(28,1);
   ResoRow02->SetBinContent(31,2);
   ResoRow02->SetBinContent(32,2);
   ResoRow02->SetBinContent(34,1);
   ResoRow02->SetBinContent(35,1);
   ResoRow02->SetBinContent(36,2);
   ResoRow02->SetBinContent(37,2);
   ResoRow02->SetBinContent(38,1);
   ResoRow02->SetBinContent(39,10);
   ResoRow02->SetBinContent(40,6);
   ResoRow02->SetBinContent(41,13);
   ResoRow02->SetBinContent(42,18);
   ResoRow02->SetBinContent(43,28);
   ResoRow02->SetBinContent(44,40);
   ResoRow02->SetBinContent(45,40);
   ResoRow02->SetBinContent(46,71);
   ResoRow02->SetBinContent(47,74);
   ResoRow02->SetBinContent(48,105);
   ResoRow02->SetBinContent(49,117);
   ResoRow02->SetBinContent(50,106);
   ResoRow02->SetBinContent(51,106);
   ResoRow02->SetBinContent(52,86);
   ResoRow02->SetBinContent(53,85);
   ResoRow02->SetBinContent(54,62);
   ResoRow02->SetBinContent(55,46);
   ResoRow02->SetBinContent(56,34);
   ResoRow02->SetBinContent(57,27);
   ResoRow02->SetBinContent(58,22);
   ResoRow02->SetBinContent(59,13);
   ResoRow02->SetBinContent(60,9);
   ResoRow02->SetBinContent(61,14);
   ResoRow02->SetBinContent(62,4);
   ResoRow02->SetBinContent(63,6);
   ResoRow02->SetBinContent(64,4);
   ResoRow02->SetBinContent(65,7);
   ResoRow02->SetBinContent(66,4);
   ResoRow02->SetBinContent(67,1);
   ResoRow02->SetBinContent(69,2);
   ResoRow02->SetBinContent(71,1);
   ResoRow02->SetBinContent(73,2);
   ResoRow02->SetBinContent(93,1);
   ResoRow02->SetBinContent(101,2);
   ResoRow02->SetEntries(1187);
   
   TF1 *ResoRowFit02 = new TF1("ResoRowFit02","gaus",-1,1);
   ResoRowFit02->SetFillColor(19);
   ResoRowFit02->SetFillStyle(0);
   ResoRowFit02->SetLineWidth(3);
   ResoRowFit02->SetChisquare(64.61479);
   ResoRowFit02->SetNDF(45);
   ResoRowFit02->SetParameter(0,101.3113);
   ResoRowFit02->SetParError(0,4.029376);
   ResoRowFit02->SetParLimits(0,0,0);
   ResoRowFit02->SetParameter(1,-0.008483089);
   ResoRowFit02->SetParError(1,0.002687189);
   ResoRowFit02->SetParLimits(1,0,0);
   ResoRowFit02->SetParameter(2,0.08808625);
   ResoRowFit02->SetParError(2,0.002311858);
   ResoRowFit02->SetParLimits(2,0,1.211042);
   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 = 1187   ");
   text = ptstats->AddText("Mean  = -0.008282");
   text = ptstats->AddText("RMS   = 0.1208");
   text = ptstats->AddText("#chi^{2} / ndf = 64.61 / 45");
   text = ptstats->AddText("Constant = 101.3 #pm 4.0 ");
   text = ptstats->AddText("Mean     = -0.008483 #pm 0.002687 ");
   text = ptstats->AddText("Sigma    = 0.08809 #pm 0.00231 ");
   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,-14.7,1.25,132.3);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow03 = new TH1F("ResoRow03","",100,-1,1);
   ResoRow03->SetBinContent(0,1);
   ResoRow03->SetBinContent(8,1);
   ResoRow03->SetBinContent(13,1);
   ResoRow03->SetBinContent(15,1);
   ResoRow03->SetBinContent(16,2);
   ResoRow03->SetBinContent(22,1);
   ResoRow03->SetBinContent(24,1);
   ResoRow03->SetBinContent(25,1);
   ResoRow03->SetBinContent(26,2);
   ResoRow03->SetBinContent(27,1);
   ResoRow03->SetBinContent(29,1);
   ResoRow03->SetBinContent(30,1);
   ResoRow03->SetBinContent(31,1);
   ResoRow03->SetBinContent(32,5);
   ResoRow03->SetBinContent(33,2);
   ResoRow03->SetBinContent(34,2);
   ResoRow03->SetBinContent(35,4);
   ResoRow03->SetBinContent(36,4);
   ResoRow03->SetBinContent(37,5);
   ResoRow03->SetBinContent(38,7);
   ResoRow03->SetBinContent(39,15);
   ResoRow03->SetBinContent(40,19);
   ResoRow03->SetBinContent(41,29);
   ResoRow03->SetBinContent(42,21);
   ResoRow03->SetBinContent(43,31);
   ResoRow03->SetBinContent(44,26);
   ResoRow03->SetBinContent(45,40);
   ResoRow03->SetBinContent(46,60);
   ResoRow03->SetBinContent(47,68);
   ResoRow03->SetBinContent(48,69);
   ResoRow03->SetBinContent(49,74);
   ResoRow03->SetBinContent(50,73);
   ResoRow03->SetBinContent(51,112);
   ResoRow03->SetBinContent(52,77);
   ResoRow03->SetBinContent(53,82);
   ResoRow03->SetBinContent(54,64);
   ResoRow03->SetBinContent(55,62);
   ResoRow03->SetBinContent(56,59);
   ResoRow03->SetBinContent(57,30);
   ResoRow03->SetBinContent(58,39);
   ResoRow03->SetBinContent(59,10);
   ResoRow03->SetBinContent(60,19);
   ResoRow03->SetBinContent(61,13);
   ResoRow03->SetBinContent(62,6);
   ResoRow03->SetBinContent(63,12);
   ResoRow03->SetBinContent(64,8);
   ResoRow03->SetBinContent(65,7);
   ResoRow03->SetBinContent(66,3);
   ResoRow03->SetBinContent(67,1);
   ResoRow03->SetBinContent(68,1);
   ResoRow03->SetBinContent(69,1);
   ResoRow03->SetBinContent(70,5);
   ResoRow03->SetBinContent(73,1);
   ResoRow03->SetBinContent(76,1);
   ResoRow03->SetBinContent(78,2);
   ResoRow03->SetBinContent(101,3);
   ResoRow03->SetEntries(1187);
   
   TF1 *ResoRowFit03 = new TF1("ResoRowFit03","gaus",-1,1);
   ResoRowFit03->SetFillColor(19);
   ResoRowFit03->SetFillStyle(0);
   ResoRowFit03->SetLineWidth(3);
   ResoRowFit03->SetChisquare(97.09863);
   ResoRowFit03->SetNDF(51);
   ResoRowFit03->SetParameter(0,77.1102);
   ResoRowFit03->SetParError(0,3.246045);
   ResoRowFit03->SetParLimits(0,0,0);
   ResoRowFit03->SetParameter(1,-0.003510623);
   ResoRowFit03->SetParError(1,0.003464245);
   ResoRowFit03->SetParLimits(1,0,0);
   ResoRowFit03->SetParameter(2,0.1123805);
   ResoRowFit03->SetParError(2,0.003284777);
   ResoRowFit03->SetParLimits(2,0,1.391283);
   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 = 1187   ");
   text = ptstats->AddText("Mean  = -0.004945");
   text = ptstats->AddText("RMS   = 0.1393");
   text = ptstats->AddText("#chi^{2} / ndf =  97.1 / 51");
   text = ptstats->AddText("Constant = 77.11 #pm 3.25 ");
   text = ptstats->AddText("Mean     = -0.003511 #pm 0.003464 ");
   text = ptstats->AddText("Sigma    = 0.1124 #pm 0.0033 ");
   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,-9.84375,1.25,88.59375);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow09 = new TH1F("ResoRow09","",100,-1,1);
   ResoRow09->SetBinContent(0,6);
   ResoRow09->SetBinContent(9,1);
   ResoRow09->SetBinContent(26,1);
   ResoRow09->SetBinContent(29,1);
   ResoRow09->SetBinContent(31,2);
   ResoRow09->SetBinContent(32,2);
   ResoRow09->SetBinContent(33,7);
   ResoRow09->SetBinContent(34,6);
   ResoRow09->SetBinContent(35,4);
   ResoRow09->SetBinContent(36,5);
   ResoRow09->SetBinContent(37,14);
   ResoRow09->SetBinContent(38,14);
   ResoRow09->SetBinContent(39,9);
   ResoRow09->SetBinContent(40,26);
   ResoRow09->SetBinContent(41,22);
   ResoRow09->SetBinContent(42,31);
   ResoRow09->SetBinContent(43,35);
   ResoRow09->SetBinContent(44,49);
   ResoRow09->SetBinContent(45,54);
   ResoRow09->SetBinContent(46,64);
   ResoRow09->SetBinContent(47,70);
   ResoRow09->SetBinContent(48,67);
   ResoRow09->SetBinContent(49,67);
   ResoRow09->SetBinContent(50,75);
   ResoRow09->SetBinContent(51,64);
   ResoRow09->SetBinContent(52,72);
   ResoRow09->SetBinContent(53,75);
   ResoRow09->SetBinContent(54,62);
   ResoRow09->SetBinContent(55,60);
   ResoRow09->SetBinContent(56,40);
   ResoRow09->SetBinContent(57,33);
   ResoRow09->SetBinContent(58,28);
   ResoRow09->SetBinContent(59,26);
   ResoRow09->SetBinContent(60,16);
   ResoRow09->SetBinContent(61,18);
   ResoRow09->SetBinContent(62,8);
   ResoRow09->SetBinContent(63,9);
   ResoRow09->SetBinContent(64,7);
   ResoRow09->SetBinContent(65,5);
   ResoRow09->SetBinContent(66,5);
   ResoRow09->SetBinContent(67,6);
   ResoRow09->SetBinContent(68,1);
   ResoRow09->SetBinContent(70,1);
   ResoRow09->SetBinContent(71,2);
   ResoRow09->SetBinContent(72,1);
   ResoRow09->SetBinContent(73,2);
   ResoRow09->SetBinContent(75,1);
   ResoRow09->SetBinContent(76,1);
   ResoRow09->SetBinContent(78,2);
   ResoRow09->SetBinContent(79,1);
   ResoRow09->SetBinContent(83,1);
   ResoRow09->SetBinContent(84,2);
   ResoRow09->SetBinContent(90,1);
   ResoRow09->SetBinContent(101,5);
   ResoRow09->SetEntries(1187);
   
   TF1 *ResoRowFit09 = new TF1("ResoRowFit09","gaus",-1,1);
   ResoRowFit09->SetFillColor(19);
   ResoRowFit09->SetFillStyle(0);
   ResoRowFit09->SetLineWidth(3);
   ResoRowFit09->SetChisquare(46.8161);
   ResoRowFit09->SetNDF(49);
   ResoRowFit09->SetParameter(0,71.30032);
   ResoRowFit09->SetParError(0,2.796158);
   ResoRowFit09->SetParLimits(0,0,0);
   ResoRowFit09->SetParameter(1,-0.0113701);
   ResoRowFit09->SetParError(1,0.003792237);
   ResoRowFit09->SetParLimits(1,0,0);
   ResoRowFit09->SetParameter(2,0.1265466);
   ResoRowFit09->SetParError(2,0.003276526);
   ResoRowFit09->SetParLimits(2,0,1.457373);
   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 = 1187   ");
   text = ptstats->AddText("Mean  = -0.007742");
   text = ptstats->AddText("RMS   = 0.1457");
   text = ptstats->AddText("#chi^{2} / ndf = 46.82 / 49");
   text = ptstats->AddText("Constant =  71.3 #pm 2.8 ");
   text = ptstats->AddText("Mean     = -0.01137 #pm 0.00379 ");
   text = ptstats->AddText("Sigma    = 0.1265 #pm 0.0033 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow09->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow09->GetListOfFunctions());
   ResoRow09->GetXaxis()->SetTitle("residual / mm");
   ResoRow09->GetYaxis()->SetTitle("counts");
   ResoRow09->Draw("");
   c2_4->Modified();
   c2->cd();
  
// ------------>Primitives in pad: c2_5
   c2_5 = new TPad("c2_5", "c2_5",0.3433333,0.01,0.6566667,0.49);
   c2_5->Draw();
   c2_5->cd();
   c2_5->Range(-1.25,-12.075,1.25,108.675);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow10 = new TH1F("ResoRow10","",100,-1,1);
   ResoRow10->SetBinContent(0,3);
   ResoRow10->SetBinContent(5,1);
   ResoRow10->SetBinContent(16,1);
   ResoRow10->SetBinContent(24,1);
   ResoRow10->SetBinContent(29,1);
   ResoRow10->SetBinContent(32,3);
   ResoRow10->SetBinContent(33,2);
   ResoRow10->SetBinContent(34,2);
   ResoRow10->SetBinContent(35,5);
   ResoRow10->SetBinContent(36,2);
   ResoRow10->SetBinContent(37,5);
   ResoRow10->SetBinContent(38,11);
   ResoRow10->SetBinContent(39,14);
   ResoRow10->SetBinContent(40,20);
   ResoRow10->SetBinContent(41,17);
   ResoRow10->SetBinContent(42,30);
   ResoRow10->SetBinContent(43,35);
   ResoRow10->SetBinContent(44,39);
   ResoRow10->SetBinContent(45,53);
   ResoRow10->SetBinContent(46,57);
   ResoRow10->SetBinContent(47,91);
   ResoRow10->SetBinContent(48,67);
   ResoRow10->SetBinContent(49,92);
   ResoRow10->SetBinContent(50,71);
   ResoRow10->SetBinContent(51,91);
   ResoRow10->SetBinContent(52,72);
   ResoRow10->SetBinContent(53,75);
   ResoRow10->SetBinContent(54,62);
   ResoRow10->SetBinContent(55,63);
   ResoRow10->SetBinContent(56,52);
   ResoRow10->SetBinContent(57,39);
   ResoRow10->SetBinContent(58,20);
   ResoRow10->SetBinContent(59,20);
   ResoRow10->SetBinContent(60,18);
   ResoRow10->SetBinContent(61,15);
   ResoRow10->SetBinContent(62,4);
   ResoRow10->SetBinContent(63,10);
   ResoRow10->SetBinContent(64,2);
   ResoRow10->SetBinContent(65,3);
   ResoRow10->SetBinContent(67,1);
   ResoRow10->SetBinContent(68,1);
   ResoRow10->SetBinContent(69,1);
   ResoRow10->SetBinContent(70,2);
   ResoRow10->SetBinContent(71,1);
   ResoRow10->SetBinContent(72,1);
   ResoRow10->SetBinContent(73,1);
   ResoRow10->SetBinContent(74,1);
   ResoRow10->SetBinContent(76,2);
   ResoRow10->SetBinContent(82,1);
   ResoRow10->SetBinContent(83,1);
   ResoRow10->SetBinContent(88,1);
   ResoRow10->SetBinContent(89,1);
   ResoRow10->SetBinContent(101,3);
   ResoRow10->SetEntries(1187);
   
   TF1 *ResoRowFit10 = new TF1("ResoRowFit10","gaus",-1,1);
   ResoRowFit10->SetFillColor(19);
   ResoRowFit10->SetFillStyle(0);
   ResoRowFit10->SetLineWidth(3);
   ResoRowFit10->SetChisquare(52.95376);
   ResoRowFit10->SetNDF(48);
   ResoRowFit10->SetParameter(0,81.62111);
   ResoRowFit10->SetParError(0,3.09474);
   ResoRowFit10->SetParLimits(0,0,0);
   ResoRowFit10->SetParameter(1,-0.01044943);
   ResoRowFit10->SetParError(1,0.003320073);
   ResoRowFit10->SetParLimits(1,0,0);
   ResoRowFit10->SetParameter(2,0.110429);
   ResoRowFit10->SetParError(2,0.002623139);
   ResoRowFit10->SetParLimits(2,0,1.318106);
   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 = 1187   ");
   text = ptstats->AddText("Mean  = -0.007515");
   text = ptstats->AddText("RMS   = 0.1319");
   text = ptstats->AddText("#chi^{2} / ndf = 52.95 / 48");
   text = ptstats->AddText("Constant = 81.62 #pm 3.09 ");
   text = ptstats->AddText("Mean     = -0.01045 #pm 0.00332 ");
   text = ptstats->AddText("Sigma    = 0.1104 #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.025,1.25,99.225);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow11 = new TH1F("ResoRow11","",100,-1,1);
   ResoRow11->SetBinContent(0,4);
   ResoRow11->SetBinContent(2,1);
   ResoRow11->SetBinContent(23,2);
   ResoRow11->SetBinContent(25,1);
   ResoRow11->SetBinContent(28,1);
   ResoRow11->SetBinContent(29,2);
   ResoRow11->SetBinContent(30,3);
   ResoRow11->SetBinContent(31,1);
   ResoRow11->SetBinContent(32,1);
   ResoRow11->SetBinContent(33,5);
   ResoRow11->SetBinContent(34,4);
   ResoRow11->SetBinContent(35,5);
   ResoRow11->SetBinContent(36,7);
   ResoRow11->SetBinContent(37,7);
   ResoRow11->SetBinContent(38,16);
   ResoRow11->SetBinContent(39,11);
   ResoRow11->SetBinContent(40,20);
   ResoRow11->SetBinContent(41,22);
   ResoRow11->SetBinContent(42,33);
   ResoRow11->SetBinContent(43,44);
   ResoRow11->SetBinContent(44,45);
   ResoRow11->SetBinContent(45,42);
   ResoRow11->SetBinContent(46,59);
   ResoRow11->SetBinContent(47,81);
   ResoRow11->SetBinContent(48,56);
   ResoRow11->SetBinContent(49,76);
   ResoRow11->SetBinContent(50,84);
   ResoRow11->SetBinContent(51,75);
   ResoRow11->SetBinContent(52,66);
   ResoRow11->SetBinContent(53,72);
   ResoRow11->SetBinContent(54,80);
   ResoRow11->SetBinContent(55,58);
   ResoRow11->SetBinContent(56,37);
   ResoRow11->SetBinContent(57,42);
   ResoRow11->SetBinContent(58,36);
   ResoRow11->SetBinContent(59,18);
   ResoRow11->SetBinContent(60,16);
   ResoRow11->SetBinContent(61,18);
   ResoRow11->SetBinContent(62,5);
   ResoRow11->SetBinContent(63,7);
   ResoRow11->SetBinContent(64,3);
   ResoRow11->SetBinContent(65,1);
   ResoRow11->SetBinContent(66,5);
   ResoRow11->SetBinContent(68,2);
   ResoRow11->SetBinContent(69,1);
   ResoRow11->SetBinContent(70,1);
   ResoRow11->SetBinContent(71,2);
   ResoRow11->SetBinContent(73,1);
   ResoRow11->SetBinContent(76,2);
   ResoRow11->SetBinContent(81,2);
   ResoRow11->SetBinContent(82,1);
   ResoRow11->SetBinContent(87,1);
   ResoRow11->SetBinContent(101,2);
   ResoRow11->SetEntries(1187);
   
   TF1 *ResoRowFit11 = new TF1("ResoRowFit11","gaus",-1,1);
   ResoRowFit11->SetFillColor(19);
   ResoRowFit11->SetFillStyle(0);
   ResoRowFit11->SetLineWidth(3);
   ResoRowFit11->SetChisquare(62.86652);
   ResoRowFit11->SetNDF(48);
   ResoRowFit11->SetParameter(0,75.51076);
   ResoRowFit11->SetParError(0,2.881103);
   ResoRowFit11->SetParLimits(0,0,0);
   ResoRowFit11->SetParameter(1,-0.0142828);
   ResoRowFit11->SetParError(1,0.003650985);
   ResoRowFit11->SetParLimits(1,0,0);
   ResoRowFit11->SetParameter(2,0.1182809);
   ResoRowFit11->SetParError(2,0.002826241);
   ResoRowFit11->SetParLimits(2,0,1.392158);
   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 = 1187   ");
   text = ptstats->AddText("Mean  = -0.01297");
   text = ptstats->AddText("RMS   = 0.1393");
   text = ptstats->AddText("#chi^{2} / ndf = 62.87 / 48");
   text = ptstats->AddText("Constant = 75.51 #pm 2.88 ");
   text = ptstats->AddText("Mean     = -0.01428 #pm 0.00365 ");
   text = ptstats->AddText("Sigma    = 0.1183 #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);
}
