{
//=========Macro generated from canvas: c2/
//=========  (Thu Jun 10 11:57:27 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,-6.0375,1.25,54.3375);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow01 = new TH1F("ResoRow01","",100,-1,1);
   ResoRow01->SetBinContent(0,33);
   ResoRow01->SetBinContent(1,4);
   ResoRow01->SetBinContent(2,4);
   ResoRow01->SetBinContent(3,2);
   ResoRow01->SetBinContent(4,2);
   ResoRow01->SetBinContent(5,1);
   ResoRow01->SetBinContent(6,2);
   ResoRow01->SetBinContent(7,3);
   ResoRow01->SetBinContent(8,2);
   ResoRow01->SetBinContent(9,3);
   ResoRow01->SetBinContent(10,1);
   ResoRow01->SetBinContent(11,3);
   ResoRow01->SetBinContent(12,2);
   ResoRow01->SetBinContent(13,3);
   ResoRow01->SetBinContent(14,1);
   ResoRow01->SetBinContent(15,6);
   ResoRow01->SetBinContent(16,4);
   ResoRow01->SetBinContent(17,6);
   ResoRow01->SetBinContent(18,6);
   ResoRow01->SetBinContent(19,8);
   ResoRow01->SetBinContent(20,6);
   ResoRow01->SetBinContent(21,5);
   ResoRow01->SetBinContent(22,5);
   ResoRow01->SetBinContent(23,8);
   ResoRow01->SetBinContent(24,10);
   ResoRow01->SetBinContent(25,8);
   ResoRow01->SetBinContent(26,8);
   ResoRow01->SetBinContent(27,9);
   ResoRow01->SetBinContent(28,6);
   ResoRow01->SetBinContent(29,10);
   ResoRow01->SetBinContent(30,13);
   ResoRow01->SetBinContent(31,18);
   ResoRow01->SetBinContent(32,10);
   ResoRow01->SetBinContent(33,18);
   ResoRow01->SetBinContent(34,19);
   ResoRow01->SetBinContent(35,17);
   ResoRow01->SetBinContent(36,18);
   ResoRow01->SetBinContent(37,28);
   ResoRow01->SetBinContent(38,22);
   ResoRow01->SetBinContent(39,24);
   ResoRow01->SetBinContent(40,18);
   ResoRow01->SetBinContent(41,30);
   ResoRow01->SetBinContent(42,24);
   ResoRow01->SetBinContent(43,37);
   ResoRow01->SetBinContent(44,30);
   ResoRow01->SetBinContent(45,31);
   ResoRow01->SetBinContent(46,36);
   ResoRow01->SetBinContent(47,37);
   ResoRow01->SetBinContent(48,24);
   ResoRow01->SetBinContent(49,37);
   ResoRow01->SetBinContent(50,31);
   ResoRow01->SetBinContent(51,36);
   ResoRow01->SetBinContent(52,26);
   ResoRow01->SetBinContent(53,35);
   ResoRow01->SetBinContent(54,40);
   ResoRow01->SetBinContent(55,44);
   ResoRow01->SetBinContent(56,46);
   ResoRow01->SetBinContent(57,28);
   ResoRow01->SetBinContent(58,38);
   ResoRow01->SetBinContent(59,24);
   ResoRow01->SetBinContent(60,29);
   ResoRow01->SetBinContent(61,25);
   ResoRow01->SetBinContent(62,17);
   ResoRow01->SetBinContent(63,26);
   ResoRow01->SetBinContent(64,21);
   ResoRow01->SetBinContent(65,20);
   ResoRow01->SetBinContent(66,26);
   ResoRow01->SetBinContent(67,21);
   ResoRow01->SetBinContent(68,17);
   ResoRow01->SetBinContent(69,12);
   ResoRow01->SetBinContent(70,20);
   ResoRow01->SetBinContent(71,8);
   ResoRow01->SetBinContent(72,16);
   ResoRow01->SetBinContent(73,15);
   ResoRow01->SetBinContent(74,10);
   ResoRow01->SetBinContent(75,8);
   ResoRow01->SetBinContent(76,9);
   ResoRow01->SetBinContent(77,11);
   ResoRow01->SetBinContent(78,3);
   ResoRow01->SetBinContent(79,11);
   ResoRow01->SetBinContent(80,7);
   ResoRow01->SetBinContent(81,5);
   ResoRow01->SetBinContent(82,4);
   ResoRow01->SetBinContent(83,3);
   ResoRow01->SetBinContent(84,3);
   ResoRow01->SetBinContent(85,5);
   ResoRow01->SetBinContent(86,3);
   ResoRow01->SetBinContent(87,4);
   ResoRow01->SetBinContent(88,2);
   ResoRow01->SetBinContent(89,4);
   ResoRow01->SetBinContent(90,2);
   ResoRow01->SetBinContent(91,1);
   ResoRow01->SetBinContent(92,2);
   ResoRow01->SetBinContent(93,3);
   ResoRow01->SetBinContent(94,3);
   ResoRow01->SetBinContent(95,1);
   ResoRow01->SetBinContent(96,3);
   ResoRow01->SetBinContent(97,2);
   ResoRow01->SetBinContent(99,1);
   ResoRow01->SetBinContent(100,2);
   ResoRow01->SetBinContent(101,41);
   ResoRow01->SetEntries(1436);
   
   TF1 *ResoRowFit01 = new TF1("ResoRowFit01","gaus",-1,1);
   ResoRowFit01->SetFillColor(19);
   ResoRowFit01->SetFillStyle(0);
   ResoRowFit01->SetLineWidth(3);
   ResoRowFit01->SetChisquare(100.2354);
   ResoRowFit01->SetNDF(96);
   ResoRowFit01->SetParameter(0,31.50072);
   ResoRowFit01->SetParError(0,1.198981);
   ResoRowFit01->SetParLimits(0,0,0);
   ResoRowFit01->SetParameter(1,0.005670721);
   ResoRowFit01->SetParError(1,0.009130791);
   ResoRowFit01->SetParLimits(1,0,0);
   ResoRowFit01->SetParameter(2,0.3202714);
   ResoRowFit01->SetParError(2,0.008381074);
   ResoRowFit01->SetParLimits(2,0,3.422364);
   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 = 1436   ");
   text = ptstats->AddText("Mean  = 0.001785");
   text = ptstats->AddText("RMS   = 0.3424");
   text = ptstats->AddText("#chi^{2} / ndf = 100.2 / 96");
   text = ptstats->AddText("Constant =  31.5 #pm 1.2 ");
   text = ptstats->AddText("Mean     = 0.005671 #pm 0.009131 ");
   text = ptstats->AddText("Sigma    = 0.3203 #pm 0.0084 ");
   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,-6.69375,1.25,60.24375);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow02 = new TH1F("ResoRow02","",100,-1,1);
   ResoRow02->SetBinContent(0,18);
   ResoRow02->SetBinContent(1,1);
   ResoRow02->SetBinContent(2,1);
   ResoRow02->SetBinContent(3,1);
   ResoRow02->SetBinContent(4,4);
   ResoRow02->SetBinContent(5,2);
   ResoRow02->SetBinContent(6,2);
   ResoRow02->SetBinContent(7,3);
   ResoRow02->SetBinContent(8,4);
   ResoRow02->SetBinContent(9,1);
   ResoRow02->SetBinContent(10,3);
   ResoRow02->SetBinContent(11,1);
   ResoRow02->SetBinContent(12,5);
   ResoRow02->SetBinContent(13,4);
   ResoRow02->SetBinContent(14,4);
   ResoRow02->SetBinContent(15,6);
   ResoRow02->SetBinContent(16,5);
   ResoRow02->SetBinContent(17,3);
   ResoRow02->SetBinContent(18,3);
   ResoRow02->SetBinContent(19,6);
   ResoRow02->SetBinContent(20,5);
   ResoRow02->SetBinContent(21,9);
   ResoRow02->SetBinContent(22,7);
   ResoRow02->SetBinContent(23,7);
   ResoRow02->SetBinContent(24,7);
   ResoRow02->SetBinContent(25,7);
   ResoRow02->SetBinContent(26,7);
   ResoRow02->SetBinContent(27,14);
   ResoRow02->SetBinContent(28,7);
   ResoRow02->SetBinContent(29,14);
   ResoRow02->SetBinContent(30,10);
   ResoRow02->SetBinContent(31,19);
   ResoRow02->SetBinContent(32,11);
   ResoRow02->SetBinContent(33,23);
   ResoRow02->SetBinContent(34,16);
   ResoRow02->SetBinContent(35,23);
   ResoRow02->SetBinContent(36,24);
   ResoRow02->SetBinContent(37,23);
   ResoRow02->SetBinContent(38,23);
   ResoRow02->SetBinContent(39,27);
   ResoRow02->SetBinContent(40,16);
   ResoRow02->SetBinContent(41,33);
   ResoRow02->SetBinContent(42,30);
   ResoRow02->SetBinContent(43,33);
   ResoRow02->SetBinContent(44,28);
   ResoRow02->SetBinContent(45,27);
   ResoRow02->SetBinContent(46,25);
   ResoRow02->SetBinContent(47,31);
   ResoRow02->SetBinContent(48,43);
   ResoRow02->SetBinContent(49,39);
   ResoRow02->SetBinContent(50,39);
   ResoRow02->SetBinContent(51,38);
   ResoRow02->SetBinContent(52,51);
   ResoRow02->SetBinContent(53,41);
   ResoRow02->SetBinContent(54,34);
   ResoRow02->SetBinContent(55,38);
   ResoRow02->SetBinContent(56,30);
   ResoRow02->SetBinContent(57,32);
   ResoRow02->SetBinContent(58,29);
   ResoRow02->SetBinContent(59,23);
   ResoRow02->SetBinContent(60,42);
   ResoRow02->SetBinContent(61,22);
   ResoRow02->SetBinContent(62,25);
   ResoRow02->SetBinContent(63,23);
   ResoRow02->SetBinContent(64,18);
   ResoRow02->SetBinContent(65,19);
   ResoRow02->SetBinContent(66,18);
   ResoRow02->SetBinContent(67,8);
   ResoRow02->SetBinContent(68,22);
   ResoRow02->SetBinContent(69,13);
   ResoRow02->SetBinContent(70,11);
   ResoRow02->SetBinContent(71,7);
   ResoRow02->SetBinContent(72,10);
   ResoRow02->SetBinContent(73,15);
   ResoRow02->SetBinContent(74,5);
   ResoRow02->SetBinContent(75,12);
   ResoRow02->SetBinContent(76,18);
   ResoRow02->SetBinContent(77,9);
   ResoRow02->SetBinContent(78,8);
   ResoRow02->SetBinContent(79,8);
   ResoRow02->SetBinContent(80,4);
   ResoRow02->SetBinContent(81,7);
   ResoRow02->SetBinContent(82,6);
   ResoRow02->SetBinContent(83,12);
   ResoRow02->SetBinContent(84,3);
   ResoRow02->SetBinContent(85,3);
   ResoRow02->SetBinContent(86,2);
   ResoRow02->SetBinContent(87,6);
   ResoRow02->SetBinContent(88,3);
   ResoRow02->SetBinContent(89,2);
   ResoRow02->SetBinContent(90,6);
   ResoRow02->SetBinContent(91,1);
   ResoRow02->SetBinContent(92,2);
   ResoRow02->SetBinContent(94,3);
   ResoRow02->SetBinContent(95,4);
   ResoRow02->SetBinContent(96,1);
   ResoRow02->SetBinContent(97,2);
   ResoRow02->SetBinContent(99,2);
   ResoRow02->SetBinContent(100,1);
   ResoRow02->SetBinContent(101,33);
   ResoRow02->SetEntries(1436);
   
   TF1 *ResoRowFit02 = new TF1("ResoRowFit02","gaus",-1,1);
   ResoRowFit02->SetFillColor(19);
   ResoRowFit02->SetFillStyle(0);
   ResoRowFit02->SetLineWidth(3);
   ResoRowFit02->SetChisquare(128.3291);
   ResoRowFit02->SetNDF(95);
   ResoRowFit02->SetParameter(0,31.35978);
   ResoRowFit02->SetParError(0,1.240406);
   ResoRowFit02->SetParLimits(0,0,0);
   ResoRowFit02->SetParameter(1,-0.00976474);
   ResoRowFit02->SetParError(1,0.009170573);
   ResoRowFit02->SetParLimits(1,0,0);
   ResoRowFit02->SetParameter(2,0.3206272);
   ResoRowFit02->SetParError(2,0.009122358);
   ResoRowFit02->SetParLimits(2,0,3.418406);
   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 = 1436   ");
   text = ptstats->AddText("Mean  = -0.002197");
   text = ptstats->AddText("RMS   = 0.3418");
   text = ptstats->AddText("#chi^{2} / ndf = 128.3 / 95");
   text = ptstats->AddText("Constant = 31.36 #pm 1.24 ");
   text = ptstats->AddText("Mean     = -0.009765 #pm 0.009171 ");
   text = ptstats->AddText("Sigma    = 0.3206 #pm 0.0091 ");
   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,-6.0375,1.25,54.3375);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow03 = new TH1F("ResoRow03","",100,-1,1);
   ResoRow03->SetBinContent(0,23);
   ResoRow03->SetBinContent(3,3);
   ResoRow03->SetBinContent(4,3);
   ResoRow03->SetBinContent(5,4);
   ResoRow03->SetBinContent(6,1);
   ResoRow03->SetBinContent(7,3);
   ResoRow03->SetBinContent(8,2);
   ResoRow03->SetBinContent(9,5);
   ResoRow03->SetBinContent(10,1);
   ResoRow03->SetBinContent(11,3);
   ResoRow03->SetBinContent(12,2);
   ResoRow03->SetBinContent(13,2);
   ResoRow03->SetBinContent(14,1);
   ResoRow03->SetBinContent(15,6);
   ResoRow03->SetBinContent(16,4);
   ResoRow03->SetBinContent(17,3);
   ResoRow03->SetBinContent(18,3);
   ResoRow03->SetBinContent(19,6);
   ResoRow03->SetBinContent(20,11);
   ResoRow03->SetBinContent(21,6);
   ResoRow03->SetBinContent(22,6);
   ResoRow03->SetBinContent(23,9);
   ResoRow03->SetBinContent(24,6);
   ResoRow03->SetBinContent(25,11);
   ResoRow03->SetBinContent(26,12);
   ResoRow03->SetBinContent(27,14);
   ResoRow03->SetBinContent(28,13);
   ResoRow03->SetBinContent(29,9);
   ResoRow03->SetBinContent(30,12);
   ResoRow03->SetBinContent(31,12);
   ResoRow03->SetBinContent(32,11);
   ResoRow03->SetBinContent(33,14);
   ResoRow03->SetBinContent(34,20);
   ResoRow03->SetBinContent(35,24);
   ResoRow03->SetBinContent(36,11);
   ResoRow03->SetBinContent(37,17);
   ResoRow03->SetBinContent(38,19);
   ResoRow03->SetBinContent(39,29);
   ResoRow03->SetBinContent(40,23);
   ResoRow03->SetBinContent(41,25);
   ResoRow03->SetBinContent(42,32);
   ResoRow03->SetBinContent(43,29);
   ResoRow03->SetBinContent(44,34);
   ResoRow03->SetBinContent(45,30);
   ResoRow03->SetBinContent(46,34);
   ResoRow03->SetBinContent(47,38);
   ResoRow03->SetBinContent(48,36);
   ResoRow03->SetBinContent(49,34);
   ResoRow03->SetBinContent(50,46);
   ResoRow03->SetBinContent(51,39);
   ResoRow03->SetBinContent(52,31);
   ResoRow03->SetBinContent(53,24);
   ResoRow03->SetBinContent(54,43);
   ResoRow03->SetBinContent(55,40);
   ResoRow03->SetBinContent(56,39);
   ResoRow03->SetBinContent(57,24);
   ResoRow03->SetBinContent(58,41);
   ResoRow03->SetBinContent(59,32);
   ResoRow03->SetBinContent(60,29);
   ResoRow03->SetBinContent(61,29);
   ResoRow03->SetBinContent(62,18);
   ResoRow03->SetBinContent(63,16);
   ResoRow03->SetBinContent(64,29);
   ResoRow03->SetBinContent(65,27);
   ResoRow03->SetBinContent(66,17);
   ResoRow03->SetBinContent(67,14);
   ResoRow03->SetBinContent(68,25);
   ResoRow03->SetBinContent(69,11);
   ResoRow03->SetBinContent(70,15);
   ResoRow03->SetBinContent(71,15);
   ResoRow03->SetBinContent(72,10);
   ResoRow03->SetBinContent(73,13);
   ResoRow03->SetBinContent(74,10);
   ResoRow03->SetBinContent(75,11);
   ResoRow03->SetBinContent(76,12);
   ResoRow03->SetBinContent(77,3);
   ResoRow03->SetBinContent(78,10);
   ResoRow03->SetBinContent(79,6);
   ResoRow03->SetBinContent(80,9);
   ResoRow03->SetBinContent(81,7);
   ResoRow03->SetBinContent(82,3);
   ResoRow03->SetBinContent(83,4);
   ResoRow03->SetBinContent(84,6);
   ResoRow03->SetBinContent(85,3);
   ResoRow03->SetBinContent(86,3);
   ResoRow03->SetBinContent(87,1);
   ResoRow03->SetBinContent(88,4);
   ResoRow03->SetBinContent(89,3);
   ResoRow03->SetBinContent(90,3);
   ResoRow03->SetBinContent(91,5);
   ResoRow03->SetBinContent(92,3);
   ResoRow03->SetBinContent(93,1);
   ResoRow03->SetBinContent(94,1);
   ResoRow03->SetBinContent(95,2);
   ResoRow03->SetBinContent(96,2);
   ResoRow03->SetBinContent(97,1);
   ResoRow03->SetBinContent(98,1);
   ResoRow03->SetBinContent(99,2);
   ResoRow03->SetBinContent(101,37);
   ResoRow03->SetEntries(1436);
   
   TF1 *ResoRowFit03 = new TF1("ResoRowFit03","gaus",-1,1);
   ResoRowFit03->SetFillColor(19);
   ResoRowFit03->SetFillStyle(0);
   ResoRowFit03->SetLineWidth(3);
   ResoRowFit03->SetChisquare(111.6311);
   ResoRowFit03->SetNDF(94);
   ResoRowFit03->SetParameter(0,31.92035);
   ResoRowFit03->SetParError(0,1.208787);
   ResoRowFit03->SetParLimits(0,0,0);
   ResoRowFit03->SetParameter(1,0.003442865);
   ResoRowFit03->SetParError(1,0.009024566);
   ResoRowFit03->SetParLimits(1,0,0);
   ResoRowFit03->SetParameter(2,0.3167391);
   ResoRowFit03->SetParError(2,0.008214767);
   ResoRowFit03->SetParLimits(2,0,3.369156);
   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 = 1436   ");
   text = ptstats->AddText("Mean  = 0.002675");
   text = ptstats->AddText("RMS   =  0.337");
   text = ptstats->AddText("#chi^{2} / ndf = 111.6 / 94");
   text = ptstats->AddText("Constant = 31.92 #pm 1.21 ");
   text = ptstats->AddText("Mean     = 0.003443 #pm 0.009025 ");
   text = ptstats->AddText("Sigma    = 0.3167 #pm 0.0082 ");
   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,-6.16875,1.25,55.51875);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow04 = new TH1F("ResoRow04","",100,-1,1);
   ResoRow04->SetBinContent(0,24);
   ResoRow04->SetBinContent(1,3);
   ResoRow04->SetBinContent(2,2);
   ResoRow04->SetBinContent(3,1);
   ResoRow04->SetBinContent(4,1);
   ResoRow04->SetBinContent(5,1);
   ResoRow04->SetBinContent(6,2);
   ResoRow04->SetBinContent(7,1);
   ResoRow04->SetBinContent(8,6);
   ResoRow04->SetBinContent(9,1);
   ResoRow04->SetBinContent(10,2);
   ResoRow04->SetBinContent(11,1);
   ResoRow04->SetBinContent(12,2);
   ResoRow04->SetBinContent(13,4);
   ResoRow04->SetBinContent(14,3);
   ResoRow04->SetBinContent(15,3);
   ResoRow04->SetBinContent(16,3);
   ResoRow04->SetBinContent(17,2);
   ResoRow04->SetBinContent(18,7);
   ResoRow04->SetBinContent(19,5);
   ResoRow04->SetBinContent(20,6);
   ResoRow04->SetBinContent(21,2);
   ResoRow04->SetBinContent(22,5);
   ResoRow04->SetBinContent(23,8);
   ResoRow04->SetBinContent(24,10);
   ResoRow04->SetBinContent(25,10);
   ResoRow04->SetBinContent(26,6);
   ResoRow04->SetBinContent(27,18);
   ResoRow04->SetBinContent(28,18);
   ResoRow04->SetBinContent(29,9);
   ResoRow04->SetBinContent(30,19);
   ResoRow04->SetBinContent(31,12);
   ResoRow04->SetBinContent(32,18);
   ResoRow04->SetBinContent(33,15);
   ResoRow04->SetBinContent(34,23);
   ResoRow04->SetBinContent(35,23);
   ResoRow04->SetBinContent(36,15);
   ResoRow04->SetBinContent(37,24);
   ResoRow04->SetBinContent(38,18);
   ResoRow04->SetBinContent(39,21);
   ResoRow04->SetBinContent(40,22);
   ResoRow04->SetBinContent(41,29);
   ResoRow04->SetBinContent(42,40);
   ResoRow04->SetBinContent(43,20);
   ResoRow04->SetBinContent(44,25);
   ResoRow04->SetBinContent(45,29);
   ResoRow04->SetBinContent(46,32);
   ResoRow04->SetBinContent(47,31);
   ResoRow04->SetBinContent(48,40);
   ResoRow04->SetBinContent(49,41);
   ResoRow04->SetBinContent(50,47);
   ResoRow04->SetBinContent(51,44);
   ResoRow04->SetBinContent(52,39);
   ResoRow04->SetBinContent(53,44);
   ResoRow04->SetBinContent(54,40);
   ResoRow04->SetBinContent(55,39);
   ResoRow04->SetBinContent(56,39);
   ResoRow04->SetBinContent(57,35);
   ResoRow04->SetBinContent(58,19);
   ResoRow04->SetBinContent(59,35);
   ResoRow04->SetBinContent(60,26);
   ResoRow04->SetBinContent(61,26);
   ResoRow04->SetBinContent(62,34);
   ResoRow04->SetBinContent(63,28);
   ResoRow04->SetBinContent(64,15);
   ResoRow04->SetBinContent(65,23);
   ResoRow04->SetBinContent(66,16);
   ResoRow04->SetBinContent(67,16);
   ResoRow04->SetBinContent(68,14);
   ResoRow04->SetBinContent(69,17);
   ResoRow04->SetBinContent(70,8);
   ResoRow04->SetBinContent(71,12);
   ResoRow04->SetBinContent(72,14);
   ResoRow04->SetBinContent(73,14);
   ResoRow04->SetBinContent(74,8);
   ResoRow04->SetBinContent(75,9);
   ResoRow04->SetBinContent(76,9);
   ResoRow04->SetBinContent(77,6);
   ResoRow04->SetBinContent(78,2);
   ResoRow04->SetBinContent(79,5);
   ResoRow04->SetBinContent(80,8);
   ResoRow04->SetBinContent(81,3);
   ResoRow04->SetBinContent(82,5);
   ResoRow04->SetBinContent(83,5);
   ResoRow04->SetBinContent(84,1);
   ResoRow04->SetBinContent(85,1);
   ResoRow04->SetBinContent(86,4);
   ResoRow04->SetBinContent(87,3);
   ResoRow04->SetBinContent(88,4);
   ResoRow04->SetBinContent(89,3);
   ResoRow04->SetBinContent(90,4);
   ResoRow04->SetBinContent(91,3);
   ResoRow04->SetBinContent(92,1);
   ResoRow04->SetBinContent(93,1);
   ResoRow04->SetBinContent(96,2);
   ResoRow04->SetBinContent(97,2);
   ResoRow04->SetBinContent(98,1);
   ResoRow04->SetBinContent(99,3);
   ResoRow04->SetBinContent(101,36);
   ResoRow04->SetEntries(1436);
   
   TF1 *ResoRowFit04 = new TF1("ResoRowFit04","gaus",-1,1);
   ResoRowFit04->SetFillColor(19);
   ResoRowFit04->SetFillStyle(0);
   ResoRowFit04->SetLineWidth(3);
   ResoRowFit04->SetChisquare(122.4606);
   ResoRowFit04->SetNDF(94);
   ResoRowFit04->SetParameter(0,33.8061);
   ResoRowFit04->SetParError(0,1.271875);
   ResoRowFit04->SetParLimits(0,0,0);
   ResoRowFit04->SetParameter(1,-0.01038876);
   ResoRowFit04->SetParError(1,0.00849148);
   ResoRowFit04->SetParLimits(1,0,0);
   ResoRowFit04->SetParameter(2,0.2962797);
   ResoRowFit04->SetParError(2,0.007469433);
   ResoRowFit04->SetParLimits(2,0,3.24927);
   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 = 1436   ");
   text = ptstats->AddText("Mean  = -0.01036");
   text = ptstats->AddText("RMS   =  0.325");
   text = ptstats->AddText("#chi^{2} / ndf = 122.5 / 94");
   text = ptstats->AddText("Constant = 33.81 #pm 1.27 ");
   text = ptstats->AddText("Mean     = -0.01039 #pm 0.00849 ");
   text = ptstats->AddText("Sigma    = 0.2963 #pm 0.0075 ");
   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,-5.11875,1.25,46.06875);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow05 = new TH1F("ResoRow05","",100,-1,1);
   ResoRow05->SetBinContent(0,22);
   ResoRow05->SetBinContent(1,4);
   ResoRow05->SetBinContent(3,1);
   ResoRow05->SetBinContent(5,1);
   ResoRow05->SetBinContent(6,1);
   ResoRow05->SetBinContent(7,1);
   ResoRow05->SetBinContent(8,1);
   ResoRow05->SetBinContent(9,2);
   ResoRow05->SetBinContent(10,5);
   ResoRow05->SetBinContent(12,5);
   ResoRow05->SetBinContent(13,4);
   ResoRow05->SetBinContent(14,5);
   ResoRow05->SetBinContent(15,2);
   ResoRow05->SetBinContent(16,6);
   ResoRow05->SetBinContent(17,7);
   ResoRow05->SetBinContent(18,7);
   ResoRow05->SetBinContent(19,12);
   ResoRow05->SetBinContent(20,6);
   ResoRow05->SetBinContent(21,8);
   ResoRow05->SetBinContent(22,10);
   ResoRow05->SetBinContent(23,6);
   ResoRow05->SetBinContent(24,2);
   ResoRow05->SetBinContent(25,10);
   ResoRow05->SetBinContent(26,10);
   ResoRow05->SetBinContent(27,8);
   ResoRow05->SetBinContent(28,11);
   ResoRow05->SetBinContent(29,9);
   ResoRow05->SetBinContent(30,14);
   ResoRow05->SetBinContent(31,14);
   ResoRow05->SetBinContent(32,27);
   ResoRow05->SetBinContent(33,12);
   ResoRow05->SetBinContent(34,22);
   ResoRow05->SetBinContent(35,18);
   ResoRow05->SetBinContent(36,14);
   ResoRow05->SetBinContent(37,20);
   ResoRow05->SetBinContent(38,35);
   ResoRow05->SetBinContent(39,38);
   ResoRow05->SetBinContent(40,31);
   ResoRow05->SetBinContent(41,32);
   ResoRow05->SetBinContent(42,34);
   ResoRow05->SetBinContent(43,22);
   ResoRow05->SetBinContent(44,34);
   ResoRow05->SetBinContent(45,24);
   ResoRow05->SetBinContent(46,38);
   ResoRow05->SetBinContent(47,35);
   ResoRow05->SetBinContent(48,36);
   ResoRow05->SetBinContent(49,38);
   ResoRow05->SetBinContent(50,38);
   ResoRow05->SetBinContent(51,33);
   ResoRow05->SetBinContent(52,31);
   ResoRow05->SetBinContent(53,31);
   ResoRow05->SetBinContent(54,30);
   ResoRow05->SetBinContent(55,39);
   ResoRow05->SetBinContent(56,25);
   ResoRow05->SetBinContent(57,33);
   ResoRow05->SetBinContent(58,32);
   ResoRow05->SetBinContent(59,31);
   ResoRow05->SetBinContent(60,22);
   ResoRow05->SetBinContent(61,23);
   ResoRow05->SetBinContent(62,22);
   ResoRow05->SetBinContent(63,19);
   ResoRow05->SetBinContent(64,23);
   ResoRow05->SetBinContent(65,20);
   ResoRow05->SetBinContent(66,18);
   ResoRow05->SetBinContent(67,12);
   ResoRow05->SetBinContent(68,14);
   ResoRow05->SetBinContent(69,18);
   ResoRow05->SetBinContent(70,21);
   ResoRow05->SetBinContent(71,14);
   ResoRow05->SetBinContent(72,13);
   ResoRow05->SetBinContent(73,10);
   ResoRow05->SetBinContent(74,17);
   ResoRow05->SetBinContent(75,7);
   ResoRow05->SetBinContent(76,5);
   ResoRow05->SetBinContent(77,6);
   ResoRow05->SetBinContent(78,9);
   ResoRow05->SetBinContent(79,4);
   ResoRow05->SetBinContent(80,8);
   ResoRow05->SetBinContent(81,7);
   ResoRow05->SetBinContent(82,6);
   ResoRow05->SetBinContent(83,1);
   ResoRow05->SetBinContent(84,5);
   ResoRow05->SetBinContent(85,2);
   ResoRow05->SetBinContent(86,5);
   ResoRow05->SetBinContent(87,1);
   ResoRow05->SetBinContent(88,4);
   ResoRow05->SetBinContent(89,4);
   ResoRow05->SetBinContent(90,3);
   ResoRow05->SetBinContent(91,5);
   ResoRow05->SetBinContent(92,2);
   ResoRow05->SetBinContent(93,3);
   ResoRow05->SetBinContent(94,3);
   ResoRow05->SetBinContent(95,3);
   ResoRow05->SetBinContent(99,1);
   ResoRow05->SetBinContent(101,49);
   ResoRow05->SetEntries(1436);
   
   TF1 *ResoRowFit05 = new TF1("ResoRowFit05","gaus",-1,1);
   ResoRowFit05->SetFillColor(19);
   ResoRowFit05->SetFillStyle(0);
   ResoRowFit05->SetLineWidth(3);
   ResoRowFit05->SetChisquare(122.1119);
   ResoRowFit05->SetNDF(90);
   ResoRowFit05->SetParameter(0,32.01017);
   ResoRowFit05->SetParError(0,1.224654);
   ResoRowFit05->SetParLimits(0,0,0);
   ResoRowFit05->SetParameter(1,-0.008475926);
   ResoRowFit05->SetParError(1,0.008982526);
   ResoRowFit05->SetParLimits(1,0,0);
   ResoRowFit05->SetParameter(2,0.3110149);
   ResoRowFit05->SetParError(2,0.008253648);
   ResoRowFit05->SetParLimits(2,0,3.378832);
   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 = 1436   ");
   text = ptstats->AddText("Mean  = -0.01447");
   text = ptstats->AddText("RMS   = 0.3378");
   text = ptstats->AddText("#chi^{2} / ndf = 122.1 / 90");
   text = ptstats->AddText("Constant = 32.01 #pm 1.22 ");
   text = ptstats->AddText("Mean     = -0.008476 #pm 0.008983 ");
   text = ptstats->AddText("Sigma    = 0.311 #pm 0.008 ");
   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,-6.0375,1.25,54.3375);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow06 = new TH1F("ResoRow06","",100,-1,1);
   ResoRow06->SetBinContent(0,24);
   ResoRow06->SetBinContent(1,1);
   ResoRow06->SetBinContent(3,1);
   ResoRow06->SetBinContent(5,5);
   ResoRow06->SetBinContent(8,4);
   ResoRow06->SetBinContent(9,3);
   ResoRow06->SetBinContent(10,2);
   ResoRow06->SetBinContent(11,3);
   ResoRow06->SetBinContent(12,2);
   ResoRow06->SetBinContent(13,2);
   ResoRow06->SetBinContent(14,9);
   ResoRow06->SetBinContent(15,7);
   ResoRow06->SetBinContent(16,3);
   ResoRow06->SetBinContent(17,8);
   ResoRow06->SetBinContent(18,4);
   ResoRow06->SetBinContent(19,6);
   ResoRow06->SetBinContent(20,8);
   ResoRow06->SetBinContent(21,6);
   ResoRow06->SetBinContent(22,8);
   ResoRow06->SetBinContent(23,10);
   ResoRow06->SetBinContent(24,8);
   ResoRow06->SetBinContent(25,11);
   ResoRow06->SetBinContent(26,11);
   ResoRow06->SetBinContent(27,13);
   ResoRow06->SetBinContent(28,9);
   ResoRow06->SetBinContent(29,10);
   ResoRow06->SetBinContent(30,15);
   ResoRow06->SetBinContent(31,9);
   ResoRow06->SetBinContent(32,19);
   ResoRow06->SetBinContent(33,18);
   ResoRow06->SetBinContent(34,20);
   ResoRow06->SetBinContent(35,23);
   ResoRow06->SetBinContent(36,26);
   ResoRow06->SetBinContent(37,24);
   ResoRow06->SetBinContent(38,20);
   ResoRow06->SetBinContent(39,30);
   ResoRow06->SetBinContent(40,22);
   ResoRow06->SetBinContent(41,19);
   ResoRow06->SetBinContent(42,22);
   ResoRow06->SetBinContent(43,37);
   ResoRow06->SetBinContent(44,33);
   ResoRow06->SetBinContent(45,34);
   ResoRow06->SetBinContent(46,26);
   ResoRow06->SetBinContent(47,34);
   ResoRow06->SetBinContent(48,29);
   ResoRow06->SetBinContent(49,33);
   ResoRow06->SetBinContent(50,37);
   ResoRow06->SetBinContent(51,41);
   ResoRow06->SetBinContent(52,38);
   ResoRow06->SetBinContent(53,31);
   ResoRow06->SetBinContent(54,32);
   ResoRow06->SetBinContent(55,36);
   ResoRow06->SetBinContent(56,37);
   ResoRow06->SetBinContent(57,46);
   ResoRow06->SetBinContent(58,29);
   ResoRow06->SetBinContent(59,32);
   ResoRow06->SetBinContent(60,24);
   ResoRow06->SetBinContent(61,25);
   ResoRow06->SetBinContent(62,31);
   ResoRow06->SetBinContent(63,20);
   ResoRow06->SetBinContent(64,17);
   ResoRow06->SetBinContent(65,20);
   ResoRow06->SetBinContent(66,24);
   ResoRow06->SetBinContent(67,19);
   ResoRow06->SetBinContent(68,19);
   ResoRow06->SetBinContent(69,14);
   ResoRow06->SetBinContent(70,10);
   ResoRow06->SetBinContent(71,10);
   ResoRow06->SetBinContent(72,13);
   ResoRow06->SetBinContent(73,9);
   ResoRow06->SetBinContent(74,5);
   ResoRow06->SetBinContent(75,6);
   ResoRow06->SetBinContent(76,8);
   ResoRow06->SetBinContent(77,8);
   ResoRow06->SetBinContent(78,7);
   ResoRow06->SetBinContent(79,11);
   ResoRow06->SetBinContent(80,8);
   ResoRow06->SetBinContent(81,7);
   ResoRow06->SetBinContent(82,6);
   ResoRow06->SetBinContent(83,7);
   ResoRow06->SetBinContent(84,3);
   ResoRow06->SetBinContent(85,4);
   ResoRow06->SetBinContent(86,2);
   ResoRow06->SetBinContent(87,4);
   ResoRow06->SetBinContent(88,5);
   ResoRow06->SetBinContent(89,3);
   ResoRow06->SetBinContent(90,5);
   ResoRow06->SetBinContent(91,2);
   ResoRow06->SetBinContent(92,4);
   ResoRow06->SetBinContent(94,3);
   ResoRow06->SetBinContent(95,4);
   ResoRow06->SetBinContent(97,2);
   ResoRow06->SetBinContent(98,2);
   ResoRow06->SetBinContent(101,35);
   ResoRow06->SetEntries(1436);
   
   TF1 *ResoRowFit06 = new TF1("ResoRowFit06","gaus",-1,1);
   ResoRowFit06->SetFillColor(19);
   ResoRowFit06->SetFillStyle(0);
   ResoRowFit06->SetLineWidth(3);
   ResoRowFit06->SetChisquare(90.26041);
   ResoRowFit06->SetNDF(89);
   ResoRowFit06->SetParameter(0,31.13043);
   ResoRowFit06->SetParError(0,1.199469);
   ResoRowFit06->SetParLimits(0,0,0);
   ResoRowFit06->SetParameter(1,-0.01153378);
   ResoRowFit06->SetParError(1,0.009526656);
   ResoRowFit06->SetParLimits(1,0,0);
   ResoRowFit06->SetParameter(2,0.3321186);
   ResoRowFit06->SetParError(2,0.009338426);
   ResoRowFit06->SetParLimits(2,0,3.418);
   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 = 1436   ");
   text = ptstats->AddText("Mean  = -0.006968");
   text = ptstats->AddText("RMS   = 0.3415");
   text = ptstats->AddText("#chi^{2} / ndf = 90.26 / 89");
   text = ptstats->AddText("Constant = 31.13 #pm 1.20 ");
   text = ptstats->AddText("Mean     = -0.01153 #pm 0.00953 ");
   text = ptstats->AddText("Sigma    = 0.3321 #pm 0.0093 ");
   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);
}
