{
//=========Macro generated from canvas: c2/
//=========  (Wed Jun  9 19:20:52 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.225,1.25,137.025);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow01 = new TH1F("ResoRow01","",100,-1,1);
   ResoRow01->SetBinContent(0,15);
   ResoRow01->SetBinContent(7,1);
   ResoRow01->SetBinContent(9,1);
   ResoRow01->SetBinContent(10,1);
   ResoRow01->SetBinContent(12,1);
   ResoRow01->SetBinContent(13,1);
   ResoRow01->SetBinContent(14,2);
   ResoRow01->SetBinContent(16,2);
   ResoRow01->SetBinContent(17,1);
   ResoRow01->SetBinContent(18,2);
   ResoRow01->SetBinContent(19,1);
   ResoRow01->SetBinContent(22,1);
   ResoRow01->SetBinContent(23,1);
   ResoRow01->SetBinContent(24,2);
   ResoRow01->SetBinContent(25,3);
   ResoRow01->SetBinContent(26,2);
   ResoRow01->SetBinContent(27,2);
   ResoRow01->SetBinContent(28,2);
   ResoRow01->SetBinContent(29,1);
   ResoRow01->SetBinContent(31,3);
   ResoRow01->SetBinContent(32,5);
   ResoRow01->SetBinContent(33,2);
   ResoRow01->SetBinContent(34,2);
   ResoRow01->SetBinContent(35,7);
   ResoRow01->SetBinContent(36,11);
   ResoRow01->SetBinContent(37,5);
   ResoRow01->SetBinContent(38,9);
   ResoRow01->SetBinContent(39,20);
   ResoRow01->SetBinContent(40,8);
   ResoRow01->SetBinContent(41,17);
   ResoRow01->SetBinContent(42,30);
   ResoRow01->SetBinContent(43,34);
   ResoRow01->SetBinContent(44,46);
   ResoRow01->SetBinContent(45,55);
   ResoRow01->SetBinContent(46,63);
   ResoRow01->SetBinContent(47,81);
   ResoRow01->SetBinContent(48,98);
   ResoRow01->SetBinContent(49,106);
   ResoRow01->SetBinContent(50,116);
   ResoRow01->SetBinContent(51,111);
   ResoRow01->SetBinContent(52,91);
   ResoRow01->SetBinContent(53,89);
   ResoRow01->SetBinContent(54,78);
   ResoRow01->SetBinContent(55,63);
   ResoRow01->SetBinContent(56,61);
   ResoRow01->SetBinContent(57,39);
   ResoRow01->SetBinContent(58,39);
   ResoRow01->SetBinContent(59,24);
   ResoRow01->SetBinContent(60,29);
   ResoRow01->SetBinContent(61,15);
   ResoRow01->SetBinContent(62,5);
   ResoRow01->SetBinContent(63,9);
   ResoRow01->SetBinContent(64,7);
   ResoRow01->SetBinContent(65,9);
   ResoRow01->SetBinContent(66,7);
   ResoRow01->SetBinContent(67,4);
   ResoRow01->SetBinContent(68,3);
   ResoRow01->SetBinContent(69,5);
   ResoRow01->SetBinContent(70,3);
   ResoRow01->SetBinContent(72,3);
   ResoRow01->SetBinContent(73,1);
   ResoRow01->SetBinContent(74,3);
   ResoRow01->SetBinContent(75,2);
   ResoRow01->SetBinContent(76,2);
   ResoRow01->SetBinContent(78,4);
   ResoRow01->SetBinContent(79,3);
   ResoRow01->SetBinContent(81,1);
   ResoRow01->SetBinContent(84,1);
   ResoRow01->SetBinContent(85,1);
   ResoRow01->SetBinContent(86,2);
   ResoRow01->SetBinContent(87,2);
   ResoRow01->SetBinContent(90,1);
   ResoRow01->SetBinContent(91,1);
   ResoRow01->SetBinContent(98,1);
   ResoRow01->SetBinContent(101,22);
   ResoRow01->SetEntries(1501);
   
   TF1 *ResoRowFit01 = new TF1("ResoRowFit01","gaus",-1,1);
   ResoRowFit01->SetFillColor(19);
   ResoRowFit01->SetFillStyle(0);
   ResoRowFit01->SetLineWidth(3);
   ResoRowFit01->SetChisquare(127.4175);
   ResoRowFit01->SetNDF(70);
   ResoRowFit01->SetParameter(0,99.00956);
   ResoRowFit01->SetParError(0,3.705016);
   ResoRowFit01->SetParLimits(0,0,0);
   ResoRowFit01->SetParameter(1,-0.0003202479);
   ResoRowFit01->SetParError(1,0.002948884);
   ResoRowFit01->SetParLimits(1,0,0);
   ResoRowFit01->SetParameter(2,0.1077221);
   ResoRowFit01->SetParError(2,0.002753748);
   ResoRowFit01->SetParLimits(2,0,1.68748);
   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 = 1501   ");
   text = ptstats->AddText("Mean  = -0.0002266");
   text = ptstats->AddText("RMS   = 0.1686");
   text = ptstats->AddText("#chi^{2} / ndf = 127.4 / 70");
   text = ptstats->AddText("Constant = 99.01 #pm 3.71 ");
   text = ptstats->AddText("Mean     = -0.0003202 #pm 0.0029489 ");
   text = ptstats->AddText("Sigma    = 0.1077 #pm 0.0028 ");
   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.61875,1.25,140.5688);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow02 = new TH1F("ResoRow02","",100,-1,1);
   ResoRow02->SetBinContent(0,6);
   ResoRow02->SetBinContent(4,1);
   ResoRow02->SetBinContent(5,1);
   ResoRow02->SetBinContent(10,1);
   ResoRow02->SetBinContent(12,2);
   ResoRow02->SetBinContent(15,4);
   ResoRow02->SetBinContent(16,2);
   ResoRow02->SetBinContent(19,1);
   ResoRow02->SetBinContent(21,1);
   ResoRow02->SetBinContent(23,2);
   ResoRow02->SetBinContent(24,2);
   ResoRow02->SetBinContent(25,1);
   ResoRow02->SetBinContent(26,2);
   ResoRow02->SetBinContent(27,1);
   ResoRow02->SetBinContent(28,1);
   ResoRow02->SetBinContent(29,2);
   ResoRow02->SetBinContent(30,1);
   ResoRow02->SetBinContent(31,3);
   ResoRow02->SetBinContent(32,2);
   ResoRow02->SetBinContent(33,2);
   ResoRow02->SetBinContent(34,5);
   ResoRow02->SetBinContent(35,8);
   ResoRow02->SetBinContent(36,2);
   ResoRow02->SetBinContent(37,7);
   ResoRow02->SetBinContent(38,13);
   ResoRow02->SetBinContent(39,12);
   ResoRow02->SetBinContent(40,19);
   ResoRow02->SetBinContent(41,11);
   ResoRow02->SetBinContent(42,18);
   ResoRow02->SetBinContent(43,33);
   ResoRow02->SetBinContent(44,53);
   ResoRow02->SetBinContent(45,60);
   ResoRow02->SetBinContent(46,61);
   ResoRow02->SetBinContent(47,85);
   ResoRow02->SetBinContent(48,95);
   ResoRow02->SetBinContent(49,119);
   ResoRow02->SetBinContent(50,101);
   ResoRow02->SetBinContent(51,116);
   ResoRow02->SetBinContent(52,115);
   ResoRow02->SetBinContent(53,89);
   ResoRow02->SetBinContent(54,60);
   ResoRow02->SetBinContent(55,82);
   ResoRow02->SetBinContent(56,57);
   ResoRow02->SetBinContent(57,56);
   ResoRow02->SetBinContent(58,26);
   ResoRow02->SetBinContent(59,22);
   ResoRow02->SetBinContent(60,17);
   ResoRow02->SetBinContent(61,10);
   ResoRow02->SetBinContent(62,14);
   ResoRow02->SetBinContent(63,10);
   ResoRow02->SetBinContent(64,5);
   ResoRow02->SetBinContent(65,7);
   ResoRow02->SetBinContent(66,5);
   ResoRow02->SetBinContent(67,3);
   ResoRow02->SetBinContent(68,5);
   ResoRow02->SetBinContent(69,4);
   ResoRow02->SetBinContent(71,1);
   ResoRow02->SetBinContent(72,2);
   ResoRow02->SetBinContent(73,4);
   ResoRow02->SetBinContent(74,4);
   ResoRow02->SetBinContent(75,2);
   ResoRow02->SetBinContent(76,1);
   ResoRow02->SetBinContent(77,1);
   ResoRow02->SetBinContent(78,2);
   ResoRow02->SetBinContent(79,2);
   ResoRow02->SetBinContent(80,3);
   ResoRow02->SetBinContent(82,1);
   ResoRow02->SetBinContent(85,1);
   ResoRow02->SetBinContent(89,1);
   ResoRow02->SetBinContent(90,1);
   ResoRow02->SetBinContent(92,1);
   ResoRow02->SetBinContent(93,1);
   ResoRow02->SetBinContent(94,2);
   ResoRow02->SetBinContent(101,28);
   ResoRow02->SetEntries(1501);
   
   TF1 *ResoRowFit02 = new TF1("ResoRowFit02","gaus",-1,1);
   ResoRowFit02->SetFillColor(19);
   ResoRowFit02->SetFillStyle(0);
   ResoRowFit02->SetLineWidth(3);
   ResoRowFit02->SetChisquare(137.4058);
   ResoRowFit02->SetNDF(69);
   ResoRowFit02->SetParameter(0,101.972);
   ResoRowFit02->SetParError(0,3.891504);
   ResoRowFit02->SetParLimits(0,0,0);
   ResoRowFit02->SetParameter(1,-0.0002495495);
   ResoRowFit02->SetParError(1,0.002857216);
   ResoRowFit02->SetParLimits(1,0,0);
   ResoRowFit02->SetParameter(2,0.1040417);
   ResoRowFit02->SetParError(2,0.002762362);
   ResoRowFit02->SetParLimits(2,0,1.650768);
   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 = 1501   ");
   text = ptstats->AddText("Mean  = 0.0002686");
   text = ptstats->AddText("RMS   = 0.1652");
   text = ptstats->AddText("#chi^{2} / ndf = 137.4 / 69");
   text = ptstats->AddText("Constant =   102 #pm 3.9 ");
   text = ptstats->AddText("Mean     = -0.0002495 #pm 0.0028572 ");
   text = ptstats->AddText("Sigma    = 0.104 #pm 0.003 ");
   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.93125,1.25,152.3813);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow03 = new TH1F("ResoRow03","",100,-1,1);
   ResoRow03->SetBinContent(0,10);
   ResoRow03->SetBinContent(11,1);
   ResoRow03->SetBinContent(15,1);
   ResoRow03->SetBinContent(17,1);
   ResoRow03->SetBinContent(19,1);
   ResoRow03->SetBinContent(20,2);
   ResoRow03->SetBinContent(21,1);
   ResoRow03->SetBinContent(23,2);
   ResoRow03->SetBinContent(24,3);
   ResoRow03->SetBinContent(27,2);
   ResoRow03->SetBinContent(28,1);
   ResoRow03->SetBinContent(30,1);
   ResoRow03->SetBinContent(31,3);
   ResoRow03->SetBinContent(32,3);
   ResoRow03->SetBinContent(33,3);
   ResoRow03->SetBinContent(34,7);
   ResoRow03->SetBinContent(35,5);
   ResoRow03->SetBinContent(36,4);
   ResoRow03->SetBinContent(37,5);
   ResoRow03->SetBinContent(38,12);
   ResoRow03->SetBinContent(39,9);
   ResoRow03->SetBinContent(40,10);
   ResoRow03->SetBinContent(41,15);
   ResoRow03->SetBinContent(42,37);
   ResoRow03->SetBinContent(43,33);
   ResoRow03->SetBinContent(44,42);
   ResoRow03->SetBinContent(45,45);
   ResoRow03->SetBinContent(46,65);
   ResoRow03->SetBinContent(47,76);
   ResoRow03->SetBinContent(48,96);
   ResoRow03->SetBinContent(49,113);
   ResoRow03->SetBinContent(50,113);
   ResoRow03->SetBinContent(51,116);
   ResoRow03->SetBinContent(52,129);
   ResoRow03->SetBinContent(53,101);
   ResoRow03->SetBinContent(54,88);
   ResoRow03->SetBinContent(55,58);
   ResoRow03->SetBinContent(56,67);
   ResoRow03->SetBinContent(57,46);
   ResoRow03->SetBinContent(58,33);
   ResoRow03->SetBinContent(59,20);
   ResoRow03->SetBinContent(60,23);
   ResoRow03->SetBinContent(61,9);
   ResoRow03->SetBinContent(62,13);
   ResoRow03->SetBinContent(63,10);
   ResoRow03->SetBinContent(64,7);
   ResoRow03->SetBinContent(65,7);
   ResoRow03->SetBinContent(66,3);
   ResoRow03->SetBinContent(67,4);
   ResoRow03->SetBinContent(68,5);
   ResoRow03->SetBinContent(69,1);
   ResoRow03->SetBinContent(71,2);
   ResoRow03->SetBinContent(73,3);
   ResoRow03->SetBinContent(74,3);
   ResoRow03->SetBinContent(76,1);
   ResoRow03->SetBinContent(78,4);
   ResoRow03->SetBinContent(80,1);
   ResoRow03->SetBinContent(82,1);
   ResoRow03->SetBinContent(93,1);
   ResoRow03->SetBinContent(94,2);
   ResoRow03->SetBinContent(101,21);
   ResoRow03->SetEntries(1501);
   
   TF1 *ResoRowFit03 = new TF1("ResoRowFit03","gaus",-1,1);
   ResoRowFit03->SetFillColor(19);
   ResoRowFit03->SetFillStyle(0);
   ResoRowFit03->SetLineWidth(3);
   ResoRowFit03->SetChisquare(104.3379);
   ResoRowFit03->SetNDF(56);
   ResoRowFit03->SetParameter(0,105.4932);
   ResoRowFit03->SetParError(0,3.995342);
   ResoRowFit03->SetParLimits(0,0,0);
   ResoRowFit03->SetParameter(1,0.002300597);
   ResoRowFit03->SetParError(1,0.00279908);
   ResoRowFit03->SetParLimits(1,0,0);
   ResoRowFit03->SetParameter(2,0.1033002);
   ResoRowFit03->SetParError(2,0.002739963);
   ResoRowFit03->SetParLimits(2,0,1.437763);
   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 = 1501   ");
   text = ptstats->AddText("Mean  = 0.001549");
   text = ptstats->AddText("RMS   = 0.1435");
   text = ptstats->AddText("#chi^{2} / ndf = 104.3 / 56");
   text = ptstats->AddText("Constant = 105.5 #pm 4.0 ");
   text = ptstats->AddText("Mean     = 0.002301 #pm 0.002799 ");
   text = ptstats->AddText("Sigma    = 0.1033 #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,-15.88125,1.25,142.9313);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow04 = new TH1F("ResoRow04","",100,-1,1);
   ResoRow04->SetBinContent(0,10);
   ResoRow04->SetBinContent(1,1);
   ResoRow04->SetBinContent(6,1);
   ResoRow04->SetBinContent(13,1);
   ResoRow04->SetBinContent(17,2);
   ResoRow04->SetBinContent(20,1);
   ResoRow04->SetBinContent(22,4);
   ResoRow04->SetBinContent(23,1);
   ResoRow04->SetBinContent(24,1);
   ResoRow04->SetBinContent(25,3);
   ResoRow04->SetBinContent(26,2);
   ResoRow04->SetBinContent(27,2);
   ResoRow04->SetBinContent(28,1);
   ResoRow04->SetBinContent(29,3);
   ResoRow04->SetBinContent(30,1);
   ResoRow04->SetBinContent(31,1);
   ResoRow04->SetBinContent(32,3);
   ResoRow04->SetBinContent(33,2);
   ResoRow04->SetBinContent(34,4);
   ResoRow04->SetBinContent(35,4);
   ResoRow04->SetBinContent(36,5);
   ResoRow04->SetBinContent(37,7);
   ResoRow04->SetBinContent(38,6);
   ResoRow04->SetBinContent(39,8);
   ResoRow04->SetBinContent(40,10);
   ResoRow04->SetBinContent(41,22);
   ResoRow04->SetBinContent(42,21);
   ResoRow04->SetBinContent(43,27);
   ResoRow04->SetBinContent(44,52);
   ResoRow04->SetBinContent(45,59);
   ResoRow04->SetBinContent(46,66);
   ResoRow04->SetBinContent(47,92);
   ResoRow04->SetBinContent(48,91);
   ResoRow04->SetBinContent(49,97);
   ResoRow04->SetBinContent(50,121);
   ResoRow04->SetBinContent(51,118);
   ResoRow04->SetBinContent(52,115);
   ResoRow04->SetBinContent(53,102);
   ResoRow04->SetBinContent(54,89);
   ResoRow04->SetBinContent(55,72);
   ResoRow04->SetBinContent(56,51);
   ResoRow04->SetBinContent(57,47);
   ResoRow04->SetBinContent(58,34);
   ResoRow04->SetBinContent(59,18);
   ResoRow04->SetBinContent(60,15);
   ResoRow04->SetBinContent(61,24);
   ResoRow04->SetBinContent(62,9);
   ResoRow04->SetBinContent(63,11);
   ResoRow04->SetBinContent(64,6);
   ResoRow04->SetBinContent(65,2);
   ResoRow04->SetBinContent(66,8);
   ResoRow04->SetBinContent(67,2);
   ResoRow04->SetBinContent(68,4);
   ResoRow04->SetBinContent(69,2);
   ResoRow04->SetBinContent(70,1);
   ResoRow04->SetBinContent(71,3);
   ResoRow04->SetBinContent(72,1);
   ResoRow04->SetBinContent(73,2);
   ResoRow04->SetBinContent(74,1);
   ResoRow04->SetBinContent(75,3);
   ResoRow04->SetBinContent(76,1);
   ResoRow04->SetBinContent(77,1);
   ResoRow04->SetBinContent(80,2);
   ResoRow04->SetBinContent(81,1);
   ResoRow04->SetBinContent(82,1);
   ResoRow04->SetBinContent(83,1);
   ResoRow04->SetBinContent(85,1);
   ResoRow04->SetBinContent(95,1);
   ResoRow04->SetBinContent(98,1);
   ResoRow04->SetBinContent(99,1);
   ResoRow04->SetBinContent(100,1);
   ResoRow04->SetBinContent(101,17);
   ResoRow04->SetEntries(1501);
   
   TF1 *ResoRowFit04 = new TF1("ResoRowFit04","gaus",-1,1);
   ResoRowFit04->SetFillColor(19);
   ResoRowFit04->SetFillStyle(0);
   ResoRowFit04->SetLineWidth(3);
   ResoRowFit04->SetChisquare(102.2872);
   ResoRowFit04->SetNDF(67);
   ResoRowFit04->SetParameter(0,107.5287);
   ResoRowFit04->SetParError(0,3.97158);
   ResoRowFit04->SetParLimits(0,0,0);
   ResoRowFit04->SetParameter(1,0.0009640657);
   ResoRowFit04->SetParError(1,0.002748589);
   ResoRowFit04->SetParLimits(1,0,0);
   ResoRowFit04->SetParameter(2,0.1017838);
   ResoRowFit04->SetParError(2,0.002564313);
   ResoRowFit04->SetParLimits(2,0,1.535089);
   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 = 1501   ");
   text = ptstats->AddText("Mean  = 0.001852");
   text = ptstats->AddText("RMS   = 0.1532");
   text = ptstats->AddText("#chi^{2} / ndf = 102.3 / 67");
   text = ptstats->AddText("Constant = 107.5 #pm 4.0 ");
   text = ptstats->AddText("Mean     = 0.0009641 #pm 0.0027486 ");
   text = ptstats->AddText("Sigma    = 0.1018 #pm 0.0026 ");
   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,-17.98125,1.25,161.8313);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow05 = new TH1F("ResoRow05","",100,-1,1);
   ResoRow05->SetBinContent(0,11);
   ResoRow05->SetBinContent(5,1);
   ResoRow05->SetBinContent(9,1);
   ResoRow05->SetBinContent(10,1);
   ResoRow05->SetBinContent(14,1);
   ResoRow05->SetBinContent(17,1);
   ResoRow05->SetBinContent(18,1);
   ResoRow05->SetBinContent(19,1);
   ResoRow05->SetBinContent(21,1);
   ResoRow05->SetBinContent(23,2);
   ResoRow05->SetBinContent(24,1);
   ResoRow05->SetBinContent(25,1);
   ResoRow05->SetBinContent(26,2);
   ResoRow05->SetBinContent(27,1);
   ResoRow05->SetBinContent(28,2);
   ResoRow05->SetBinContent(29,1);
   ResoRow05->SetBinContent(30,2);
   ResoRow05->SetBinContent(31,1);
   ResoRow05->SetBinContent(32,2);
   ResoRow05->SetBinContent(33,1);
   ResoRow05->SetBinContent(34,4);
   ResoRow05->SetBinContent(35,3);
   ResoRow05->SetBinContent(36,3);
   ResoRow05->SetBinContent(37,5);
   ResoRow05->SetBinContent(38,6);
   ResoRow05->SetBinContent(39,9);
   ResoRow05->SetBinContent(40,11);
   ResoRow05->SetBinContent(41,19);
   ResoRow05->SetBinContent(42,16);
   ResoRow05->SetBinContent(43,37);
   ResoRow05->SetBinContent(44,37);
   ResoRow05->SetBinContent(45,68);
   ResoRow05->SetBinContent(46,70);
   ResoRow05->SetBinContent(47,80);
   ResoRow05->SetBinContent(48,98);
   ResoRow05->SetBinContent(49,122);
   ResoRow05->SetBinContent(50,137);
   ResoRow05->SetBinContent(51,116);
   ResoRow05->SetBinContent(52,109);
   ResoRow05->SetBinContent(53,86);
   ResoRow05->SetBinContent(54,79);
   ResoRow05->SetBinContent(55,75);
   ResoRow05->SetBinContent(56,51);
   ResoRow05->SetBinContent(57,47);
   ResoRow05->SetBinContent(58,28);
   ResoRow05->SetBinContent(59,31);
   ResoRow05->SetBinContent(60,24);
   ResoRow05->SetBinContent(61,12);
   ResoRow05->SetBinContent(62,10);
   ResoRow05->SetBinContent(63,11);
   ResoRow05->SetBinContent(64,7);
   ResoRow05->SetBinContent(65,7);
   ResoRow05->SetBinContent(66,3);
   ResoRow05->SetBinContent(67,2);
   ResoRow05->SetBinContent(68,3);
   ResoRow05->SetBinContent(69,2);
   ResoRow05->SetBinContent(70,2);
   ResoRow05->SetBinContent(71,3);
   ResoRow05->SetBinContent(72,2);
   ResoRow05->SetBinContent(73,2);
   ResoRow05->SetBinContent(74,2);
   ResoRow05->SetBinContent(76,3);
   ResoRow05->SetBinContent(77,1);
   ResoRow05->SetBinContent(79,1);
   ResoRow05->SetBinContent(82,1);
   ResoRow05->SetBinContent(84,1);
   ResoRow05->SetBinContent(85,1);
   ResoRow05->SetBinContent(86,1);
   ResoRow05->SetBinContent(92,1);
   ResoRow05->SetBinContent(95,1);
   ResoRow05->SetBinContent(96,1);
   ResoRow05->SetBinContent(101,15);
   ResoRow05->SetEntries(1501);
   
   TF1 *ResoRowFit05 = new TF1("ResoRowFit05","gaus",-1,1);
   ResoRowFit05->SetFillColor(19);
   ResoRowFit05->SetFillStyle(0);
   ResoRowFit05->SetLineWidth(3);
   ResoRowFit05->SetChisquare(95.79487);
   ResoRowFit05->SetNDF(67);
   ResoRowFit05->SetParameter(0,107.4614);
   ResoRowFit05->SetParError(0,4.003097);
   ResoRowFit05->SetParLimits(0,0,0);
   ResoRowFit05->SetParameter(1,0.00231911);
   ResoRowFit05->SetParError(1,0.002790186);
   ResoRowFit05->SetParLimits(1,0,0);
   ResoRowFit05->SetParameter(2,0.1024041);
   ResoRowFit05->SetParError(2,0.00263512);
   ResoRowFit05->SetParLimits(2,0,1.466516);
   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 = 1501   ");
   text = ptstats->AddText("Mean  = 0.003548");
   text = ptstats->AddText("RMS   = 0.1465");
   text = ptstats->AddText("#chi^{2} / ndf = 95.79 / 67");
   text = ptstats->AddText("Constant = 107.5 #pm 4.0 ");
   text = ptstats->AddText("Mean     = 0.002319 #pm 0.002790 ");
   text = ptstats->AddText("Sigma    = 0.1024 #pm 0.0026 ");
   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,-17.5875,1.25,158.2875);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow06 = new TH1F("ResoRow06","",100,-1,1);
   ResoRow06->SetBinContent(0,6);
   ResoRow06->SetBinContent(8,1);
   ResoRow06->SetBinContent(9,1);
   ResoRow06->SetBinContent(16,2);
   ResoRow06->SetBinContent(17,1);
   ResoRow06->SetBinContent(18,1);
   ResoRow06->SetBinContent(22,1);
   ResoRow06->SetBinContent(23,2);
   ResoRow06->SetBinContent(26,3);
   ResoRow06->SetBinContent(27,1);
   ResoRow06->SetBinContent(29,1);
   ResoRow06->SetBinContent(30,2);
   ResoRow06->SetBinContent(31,1);
   ResoRow06->SetBinContent(32,1);
   ResoRow06->SetBinContent(33,3);
   ResoRow06->SetBinContent(34,4);
   ResoRow06->SetBinContent(35,3);
   ResoRow06->SetBinContent(36,6);
   ResoRow06->SetBinContent(37,8);
   ResoRow06->SetBinContent(38,10);
   ResoRow06->SetBinContent(39,5);
   ResoRow06->SetBinContent(40,15);
   ResoRow06->SetBinContent(41,15);
   ResoRow06->SetBinContent(42,23);
   ResoRow06->SetBinContent(43,43);
   ResoRow06->SetBinContent(44,38);
   ResoRow06->SetBinContent(45,56);
   ResoRow06->SetBinContent(46,61);
   ResoRow06->SetBinContent(47,93);
   ResoRow06->SetBinContent(48,115);
   ResoRow06->SetBinContent(49,110);
   ResoRow06->SetBinContent(50,121);
   ResoRow06->SetBinContent(51,105);
   ResoRow06->SetBinContent(52,134);
   ResoRow06->SetBinContent(53,96);
   ResoRow06->SetBinContent(54,89);
   ResoRow06->SetBinContent(55,61);
   ResoRow06->SetBinContent(56,46);
   ResoRow06->SetBinContent(57,41);
   ResoRow06->SetBinContent(58,30);
   ResoRow06->SetBinContent(59,21);
   ResoRow06->SetBinContent(60,23);
   ResoRow06->SetBinContent(61,21);
   ResoRow06->SetBinContent(62,9);
   ResoRow06->SetBinContent(63,7);
   ResoRow06->SetBinContent(64,8);
   ResoRow06->SetBinContent(65,7);
   ResoRow06->SetBinContent(66,2);
   ResoRow06->SetBinContent(67,1);
   ResoRow06->SetBinContent(68,3);
   ResoRow06->SetBinContent(69,2);
   ResoRow06->SetBinContent(70,1);
   ResoRow06->SetBinContent(71,4);
   ResoRow06->SetBinContent(72,1);
   ResoRow06->SetBinContent(73,1);
   ResoRow06->SetBinContent(74,1);
   ResoRow06->SetBinContent(75,2);
   ResoRow06->SetBinContent(76,1);
   ResoRow06->SetBinContent(77,4);
   ResoRow06->SetBinContent(78,2);
   ResoRow06->SetBinContent(81,1);
   ResoRow06->SetBinContent(83,1);
   ResoRow06->SetBinContent(85,1);
   ResoRow06->SetBinContent(86,1);
   ResoRow06->SetBinContent(87,1);
   ResoRow06->SetBinContent(88,1);
   ResoRow06->SetBinContent(90,1);
   ResoRow06->SetBinContent(96,1);
   ResoRow06->SetBinContent(99,1);
   ResoRow06->SetBinContent(100,1);
   ResoRow06->SetBinContent(101,15);
   ResoRow06->SetEntries(1501);
   
   TF1 *ResoRowFit06 = new TF1("ResoRowFit06","gaus",-1,1);
   ResoRowFit06->SetFillColor(19);
   ResoRowFit06->SetFillStyle(0);
   ResoRowFit06->SetLineWidth(3);
   ResoRowFit06->SetChisquare(108.9094);
   ResoRowFit06->SetNDF(66);
   ResoRowFit06->SetParameter(0,107.6531);
   ResoRowFit06->SetParError(0,4.077461);
   ResoRowFit06->SetParLimits(0,0,0);
   ResoRowFit06->SetParameter(1,-0.000645319);
   ResoRowFit06->SetParError(1,0.002760107);
   ResoRowFit06->SetParLimits(1,0,0);
   ResoRowFit06->SetParameter(2,0.1016206);
   ResoRowFit06->SetParError(2,0.002698121);
   ResoRowFit06->SetParLimits(2,0,1.498517);
   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 = 1501   ");
   text = ptstats->AddText("Mean  = 0.003327");
   text = ptstats->AddText("RMS   = 0.1498");
   text = ptstats->AddText("#chi^{2} / ndf = 108.9 / 66");
   text = ptstats->AddText("Constant = 107.7 #pm 4.1 ");
   text = ptstats->AddText("Mean     = -0.0006453 #pm 0.0027601 ");
   text = ptstats->AddText("Sigma    = 0.1016 #pm 0.0027 ");
   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);
}
