{
//=========Macro generated from canvas: c2/
//=========  (Fri Jun 11 10:34:42 2010) by ROOT version5.25/04
   TCanvas *c2 = new TCanvas("c2", "",1,1,900,576);
   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,-9.58125,1.25,86.23125);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow07 = new TH1F("ResoRow07","",100,-1,1);
   ResoRow07->SetBinContent(0,3);
   ResoRow07->SetBinContent(12,1);
   ResoRow07->SetBinContent(15,1);
   ResoRow07->SetBinContent(17,1);
   ResoRow07->SetBinContent(23,1);
   ResoRow07->SetBinContent(25,2);
   ResoRow07->SetBinContent(26,1);
   ResoRow07->SetBinContent(27,1);
   ResoRow07->SetBinContent(30,4);
   ResoRow07->SetBinContent(31,3);
   ResoRow07->SetBinContent(32,3);
   ResoRow07->SetBinContent(33,3);
   ResoRow07->SetBinContent(34,3);
   ResoRow07->SetBinContent(35,8);
   ResoRow07->SetBinContent(36,8);
   ResoRow07->SetBinContent(37,9);
   ResoRow07->SetBinContent(38,7);
   ResoRow07->SetBinContent(39,12);
   ResoRow07->SetBinContent(40,10);
   ResoRow07->SetBinContent(41,18);
   ResoRow07->SetBinContent(42,20);
   ResoRow07->SetBinContent(43,34);
   ResoRow07->SetBinContent(44,33);
   ResoRow07->SetBinContent(45,54);
   ResoRow07->SetBinContent(46,52);
   ResoRow07->SetBinContent(47,65);
   ResoRow07->SetBinContent(48,66);
   ResoRow07->SetBinContent(49,73);
   ResoRow07->SetBinContent(50,67);
   ResoRow07->SetBinContent(51,64);
   ResoRow07->SetBinContent(52,66);
   ResoRow07->SetBinContent(53,67);
   ResoRow07->SetBinContent(54,67);
   ResoRow07->SetBinContent(55,45);
   ResoRow07->SetBinContent(56,45);
   ResoRow07->SetBinContent(57,33);
   ResoRow07->SetBinContent(58,29);
   ResoRow07->SetBinContent(59,42);
   ResoRow07->SetBinContent(60,23);
   ResoRow07->SetBinContent(61,16);
   ResoRow07->SetBinContent(62,14);
   ResoRow07->SetBinContent(63,12);
   ResoRow07->SetBinContent(64,4);
   ResoRow07->SetBinContent(65,7);
   ResoRow07->SetBinContent(66,6);
   ResoRow07->SetBinContent(67,2);
   ResoRow07->SetBinContent(68,1);
   ResoRow07->SetBinContent(69,1);
   ResoRow07->SetBinContent(70,2);
   ResoRow07->SetBinContent(71,1);
   ResoRow07->SetBinContent(72,2);
   ResoRow07->SetBinContent(79,1);
   ResoRow07->SetBinContent(81,1);
   ResoRow07->SetBinContent(84,1);
   ResoRow07->SetBinContent(86,1);
   ResoRow07->SetBinContent(88,1);
   ResoRow07->SetBinContent(101,2);
   ResoRow07->SetEntries(1119);
   
   TF1 *ResoRowFit07 = new TF1("ResoRowFit07","gaus",-1,1);
   ResoRowFit07->SetFillColor(19);
   ResoRowFit07->SetFillStyle(0);
   ResoRowFit07->SetLineWidth(3);
   ResoRowFit07->SetChisquare(55.91599);
   ResoRowFit07->SetNDF(52);
   ResoRowFit07->SetParameter(0,67.20682);
   ResoRowFit07->SetParError(0,2.711113);
   ResoRowFit07->SetParLimits(0,0,0);
   ResoRowFit07->SetParameter(1,0.002718572);
   ResoRowFit07->SetParError(1,0.003882574);
   ResoRowFit07->SetParLimits(1,0,0);
   ResoRowFit07->SetParameter(2,0.1256823);
   ResoRowFit07->SetParError(2,0.003302788);
   ResoRowFit07->SetParLimits(2,0,1.490973);
   ResoRow07->GetListOfFunctions()->Add(ResoRowFit07);
   
   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("ResoRow07");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1119   ");
   text = ptstats->AddText("Mean  = -0.00107");
   text = ptstats->AddText("RMS   = 0.1491");
   text = ptstats->AddText("#chi^{2} / ndf = 55.92 / 52");
   text = ptstats->AddText("Constant = 67.21 #pm 2.71 ");
   text = ptstats->AddText("Mean     = 0.002719 #pm 0.003883 ");
   text = ptstats->AddText("Sigma    = 0.1257 #pm 0.0033 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow07->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow07->GetListOfFunctions());
   ResoRow07->GetXaxis()->SetTitle("residual / mm");
   ResoRow07->GetYaxis()->SetTitle("counts");
   ResoRow07->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,-11.55,1.25,103.95);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow08 = new TH1F("ResoRow08","",100,-1,1);
   ResoRow08->SetBinContent(0,2);
   ResoRow08->SetBinContent(13,1);
   ResoRow08->SetBinContent(15,1);
   ResoRow08->SetBinContent(19,1);
   ResoRow08->SetBinContent(21,1);
   ResoRow08->SetBinContent(23,1);
   ResoRow08->SetBinContent(24,1);
   ResoRow08->SetBinContent(25,1);
   ResoRow08->SetBinContent(26,2);
   ResoRow08->SetBinContent(27,1);
   ResoRow08->SetBinContent(28,1);
   ResoRow08->SetBinContent(29,1);
   ResoRow08->SetBinContent(30,2);
   ResoRow08->SetBinContent(31,2);
   ResoRow08->SetBinContent(32,3);
   ResoRow08->SetBinContent(33,3);
   ResoRow08->SetBinContent(34,3);
   ResoRow08->SetBinContent(35,5);
   ResoRow08->SetBinContent(36,11);
   ResoRow08->SetBinContent(37,5);
   ResoRow08->SetBinContent(38,11);
   ResoRow08->SetBinContent(39,10);
   ResoRow08->SetBinContent(40,17);
   ResoRow08->SetBinContent(41,22);
   ResoRow08->SetBinContent(42,29);
   ResoRow08->SetBinContent(43,31);
   ResoRow08->SetBinContent(44,34);
   ResoRow08->SetBinContent(45,39);
   ResoRow08->SetBinContent(46,45);
   ResoRow08->SetBinContent(47,49);
   ResoRow08->SetBinContent(48,59);
   ResoRow08->SetBinContent(49,73);
   ResoRow08->SetBinContent(50,88);
   ResoRow08->SetBinContent(51,66);
   ResoRow08->SetBinContent(52,71);
   ResoRow08->SetBinContent(53,68);
   ResoRow08->SetBinContent(54,52);
   ResoRow08->SetBinContent(55,62);
   ResoRow08->SetBinContent(56,40);
   ResoRow08->SetBinContent(57,32);
   ResoRow08->SetBinContent(58,44);
   ResoRow08->SetBinContent(59,24);
   ResoRow08->SetBinContent(60,24);
   ResoRow08->SetBinContent(61,10);
   ResoRow08->SetBinContent(62,21);
   ResoRow08->SetBinContent(63,11);
   ResoRow08->SetBinContent(64,6);
   ResoRow08->SetBinContent(65,8);
   ResoRow08->SetBinContent(66,9);
   ResoRow08->SetBinContent(67,5);
   ResoRow08->SetBinContent(68,3);
   ResoRow08->SetBinContent(69,1);
   ResoRow08->SetBinContent(72,1);
   ResoRow08->SetBinContent(76,1);
   ResoRow08->SetBinContent(79,1);
   ResoRow08->SetBinContent(89,1);
   ResoRow08->SetBinContent(101,3);
   ResoRow08->SetEntries(1119);
   
   TF1 *ResoRowFit08 = new TF1("ResoRowFit08","gaus",-1,1);
   ResoRowFit08->SetFillColor(19);
   ResoRowFit08->SetFillStyle(0);
   ResoRowFit08->SetLineWidth(3);
   ResoRowFit08->SetChisquare(59.10297);
   ResoRowFit08->SetNDF(52);
   ResoRowFit08->SetParameter(0,64.49554);
   ResoRowFit08->SetParError(0,2.674031);
   ResoRowFit08->SetParLimits(0,0,0);
   ResoRowFit08->SetParameter(1,0.002260459);
   ResoRowFit08->SetParError(1,0.004056795);
   ResoRowFit08->SetParLimits(1,0,0);
   ResoRowFit08->SetParameter(2,0.1307108);
   ResoRowFit08->SetParError(2,0.003680575);
   ResoRowFit08->SetParLimits(2,0,1.486794);
   ResoRow08->GetListOfFunctions()->Add(ResoRowFit08);
   
   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("ResoRow08");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1119   ");
   text = ptstats->AddText("Mean  = -0.001001");
   text = ptstats->AddText("RMS   = 0.1488");
   text = ptstats->AddText("#chi^{2} / ndf =  59.1 / 52");
   text = ptstats->AddText("Constant =  64.5 #pm 2.7 ");
   text = ptstats->AddText("Mean     = 0.00226 #pm 0.00406 ");
   text = ptstats->AddText("Sigma    = 0.1307 #pm 0.0037 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow08->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow08->GetListOfFunctions());
   ResoRow08->GetXaxis()->SetTitle("residual / mm");
   ResoRow08->GetYaxis()->SetTitle("counts");
   ResoRow08->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,-11.55,1.25,103.95);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow09 = new TH1F("ResoRow09","",100,-1,1);
   ResoRow09->SetBinContent(0,2);
   ResoRow09->SetBinContent(10,1);
   ResoRow09->SetBinContent(12,1);
   ResoRow09->SetBinContent(14,1);
   ResoRow09->SetBinContent(19,1);
   ResoRow09->SetBinContent(21,1);
   ResoRow09->SetBinContent(23,2);
   ResoRow09->SetBinContent(25,1);
   ResoRow09->SetBinContent(26,1);
   ResoRow09->SetBinContent(27,1);
   ResoRow09->SetBinContent(29,1);
   ResoRow09->SetBinContent(31,3);
   ResoRow09->SetBinContent(32,4);
   ResoRow09->SetBinContent(33,4);
   ResoRow09->SetBinContent(34,4);
   ResoRow09->SetBinContent(35,5);
   ResoRow09->SetBinContent(36,5);
   ResoRow09->SetBinContent(37,8);
   ResoRow09->SetBinContent(38,3);
   ResoRow09->SetBinContent(39,10);
   ResoRow09->SetBinContent(40,8);
   ResoRow09->SetBinContent(41,23);
   ResoRow09->SetBinContent(42,33);
   ResoRow09->SetBinContent(43,26);
   ResoRow09->SetBinContent(44,49);
   ResoRow09->SetBinContent(45,46);
   ResoRow09->SetBinContent(46,54);
   ResoRow09->SetBinContent(47,60);
   ResoRow09->SetBinContent(48,64);
   ResoRow09->SetBinContent(49,88);
   ResoRow09->SetBinContent(50,64);
   ResoRow09->SetBinContent(51,83);
   ResoRow09->SetBinContent(52,68);
   ResoRow09->SetBinContent(53,67);
   ResoRow09->SetBinContent(54,49);
   ResoRow09->SetBinContent(55,43);
   ResoRow09->SetBinContent(56,51);
   ResoRow09->SetBinContent(57,40);
   ResoRow09->SetBinContent(58,31);
   ResoRow09->SetBinContent(59,22);
   ResoRow09->SetBinContent(60,13);
   ResoRow09->SetBinContent(61,10);
   ResoRow09->SetBinContent(62,10);
   ResoRow09->SetBinContent(63,14);
   ResoRow09->SetBinContent(64,7);
   ResoRow09->SetBinContent(65,4);
   ResoRow09->SetBinContent(66,4);
   ResoRow09->SetBinContent(67,4);
   ResoRow09->SetBinContent(68,1);
   ResoRow09->SetBinContent(69,3);
   ResoRow09->SetBinContent(70,2);
   ResoRow09->SetBinContent(71,2);
   ResoRow09->SetBinContent(72,4);
   ResoRow09->SetBinContent(73,1);
   ResoRow09->SetBinContent(74,1);
   ResoRow09->SetBinContent(75,1);
   ResoRow09->SetBinContent(77,1);
   ResoRow09->SetBinContent(80,1);
   ResoRow09->SetBinContent(81,1);
   ResoRow09->SetBinContent(84,1);
   ResoRow09->SetBinContent(86,1);
   ResoRow09->SetBinContent(88,1);
   ResoRow09->SetBinContent(101,4);
   ResoRow09->SetEntries(1119);
   
   TF1 *ResoRowFit09 = new TF1("ResoRowFit09","gaus",-1,1);
   ResoRowFit09->SetFillColor(19);
   ResoRowFit09->SetFillStyle(0);
   ResoRowFit09->SetLineWidth(3);
   ResoRowFit09->SetChisquare(82.20223);
   ResoRowFit09->SetNDF(58);
   ResoRowFit09->SetParameter(0,70.60524);
   ResoRowFit09->SetParError(0,2.944451);
   ResoRowFit09->SetParLimits(0,0,0);
   ResoRowFit09->SetParameter(1,-0.001559946);
   ResoRowFit09->SetParError(1,0.003670167);
   ResoRowFit09->SetParLimits(1,0,0);
   ResoRowFit09->SetParameter(2,0.1165098);
   ResoRowFit09->SetParError(2,0.003237093);
   ResoRowFit09->SetParLimits(2,0,1.521458);
   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 = 1119   ");
   text = ptstats->AddText("Mean  = -0.003333");
   text = ptstats->AddText("RMS   = 0.1523");
   text = ptstats->AddText("#chi^{2} / ndf =  82.2 / 58");
   text = ptstats->AddText("Constant = 70.61 #pm 2.94 ");
   text = ptstats->AddText("Mean     = -0.00156 #pm 0.00367 ");
   text = ptstats->AddText("Sigma    = 0.1165 #pm 0.0032 ");
   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_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,-11.15625,1.25,100.4063);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow10 = new TH1F("ResoRow10","",100,-1,1);
   ResoRow10->SetBinContent(0,2);
   ResoRow10->SetBinContent(10,1);
   ResoRow10->SetBinContent(14,2);
   ResoRow10->SetBinContent(16,1);
   ResoRow10->SetBinContent(18,2);
   ResoRow10->SetBinContent(22,1);
   ResoRow10->SetBinContent(24,1);
   ResoRow10->SetBinContent(25,1);
   ResoRow10->SetBinContent(26,1);
   ResoRow10->SetBinContent(27,1);
   ResoRow10->SetBinContent(29,1);
   ResoRow10->SetBinContent(31,1);
   ResoRow10->SetBinContent(32,2);
   ResoRow10->SetBinContent(33,1);
   ResoRow10->SetBinContent(34,4);
   ResoRow10->SetBinContent(35,6);
   ResoRow10->SetBinContent(36,9);
   ResoRow10->SetBinContent(37,6);
   ResoRow10->SetBinContent(38,9);
   ResoRow10->SetBinContent(39,12);
   ResoRow10->SetBinContent(40,17);
   ResoRow10->SetBinContent(41,20);
   ResoRow10->SetBinContent(42,26);
   ResoRow10->SetBinContent(43,38);
   ResoRow10->SetBinContent(44,35);
   ResoRow10->SetBinContent(45,35);
   ResoRow10->SetBinContent(46,51);
   ResoRow10->SetBinContent(47,60);
   ResoRow10->SetBinContent(48,68);
   ResoRow10->SetBinContent(49,72);
   ResoRow10->SetBinContent(50,85);
   ResoRow10->SetBinContent(51,81);
   ResoRow10->SetBinContent(52,68);
   ResoRow10->SetBinContent(53,69);
   ResoRow10->SetBinContent(54,67);
   ResoRow10->SetBinContent(55,43);
   ResoRow10->SetBinContent(56,44);
   ResoRow10->SetBinContent(57,33);
   ResoRow10->SetBinContent(58,17);
   ResoRow10->SetBinContent(59,20);
   ResoRow10->SetBinContent(60,19);
   ResoRow10->SetBinContent(61,12);
   ResoRow10->SetBinContent(62,12);
   ResoRow10->SetBinContent(63,9);
   ResoRow10->SetBinContent(64,8);
   ResoRow10->SetBinContent(65,9);
   ResoRow10->SetBinContent(66,1);
   ResoRow10->SetBinContent(67,4);
   ResoRow10->SetBinContent(68,5);
   ResoRow10->SetBinContent(69,1);
   ResoRow10->SetBinContent(70,2);
   ResoRow10->SetBinContent(71,3);
   ResoRow10->SetBinContent(72,1);
   ResoRow10->SetBinContent(73,1);
   ResoRow10->SetBinContent(74,1);
   ResoRow10->SetBinContent(76,3);
   ResoRow10->SetBinContent(77,1);
   ResoRow10->SetBinContent(78,1);
   ResoRow10->SetBinContent(81,1);
   ResoRow10->SetBinContent(86,1);
   ResoRow10->SetBinContent(89,1);
   ResoRow10->SetBinContent(101,10);
   ResoRow10->SetEntries(1119);
   
   TF1 *ResoRowFit10 = new TF1("ResoRowFit10","gaus",-1,1);
   ResoRowFit10->SetFillColor(19);
   ResoRowFit10->SetFillStyle(0);
   ResoRowFit10->SetLineWidth(3);
   ResoRowFit10->SetChisquare(70.89625);
   ResoRowFit10->SetNDF(57);
   ResoRowFit10->SetParameter(0,68.3773);
   ResoRowFit10->SetParError(0,2.888006);
   ResoRowFit10->SetParLimits(0,0,0);
   ResoRowFit10->SetParameter(1,-0.007814574);
   ResoRowFit10->SetParError(1,0.003768426);
   ResoRowFit10->SetParLimits(1,0,0);
   ResoRowFit10->SetParameter(2,0.1209453);
   ResoRowFit10->SetParError(2,0.003473538);
   ResoRowFit10->SetParLimits(2,0,1.526155);
   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 = 1119   ");
   text = ptstats->AddText("Mean  = -0.003998");
   text = ptstats->AddText("RMS   = 0.1523");
   text = ptstats->AddText("#chi^{2} / ndf =  70.9 / 57");
   text = ptstats->AddText("Constant = 68.38 #pm 2.89 ");
   text = ptstats->AddText("Mean     = -0.007815 #pm 0.003768 ");
   text = ptstats->AddText("Sigma    = 0.1209 #pm 0.0035 ");
   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_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,-10.7625,1.25,96.8625);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow11 = new TH1F("ResoRow11","",100,-1,1);
   ResoRow11->SetBinContent(0,1);
   ResoRow11->SetBinContent(1,1);
   ResoRow11->SetBinContent(13,1);
   ResoRow11->SetBinContent(16,2);
   ResoRow11->SetBinContent(19,2);
   ResoRow11->SetBinContent(20,1);
   ResoRow11->SetBinContent(22,1);
   ResoRow11->SetBinContent(23,1);
   ResoRow11->SetBinContent(29,3);
   ResoRow11->SetBinContent(30,6);
   ResoRow11->SetBinContent(31,3);
   ResoRow11->SetBinContent(32,2);
   ResoRow11->SetBinContent(33,4);
   ResoRow11->SetBinContent(34,1);
   ResoRow11->SetBinContent(35,6);
   ResoRow11->SetBinContent(36,10);
   ResoRow11->SetBinContent(37,7);
   ResoRow11->SetBinContent(38,6);
   ResoRow11->SetBinContent(39,8);
   ResoRow11->SetBinContent(40,14);
   ResoRow11->SetBinContent(41,19);
   ResoRow11->SetBinContent(42,26);
   ResoRow11->SetBinContent(43,33);
   ResoRow11->SetBinContent(44,35);
   ResoRow11->SetBinContent(45,44);
   ResoRow11->SetBinContent(46,60);
   ResoRow11->SetBinContent(47,57);
   ResoRow11->SetBinContent(48,78);
   ResoRow11->SetBinContent(49,58);
   ResoRow11->SetBinContent(50,82);
   ResoRow11->SetBinContent(51,63);
   ResoRow11->SetBinContent(52,78);
   ResoRow11->SetBinContent(53,70);
   ResoRow11->SetBinContent(54,61);
   ResoRow11->SetBinContent(55,38);
   ResoRow11->SetBinContent(56,48);
   ResoRow11->SetBinContent(57,45);
   ResoRow11->SetBinContent(58,21);
   ResoRow11->SetBinContent(59,27);
   ResoRow11->SetBinContent(60,19);
   ResoRow11->SetBinContent(61,13);
   ResoRow11->SetBinContent(62,13);
   ResoRow11->SetBinContent(63,10);
   ResoRow11->SetBinContent(64,4);
   ResoRow11->SetBinContent(65,10);
   ResoRow11->SetBinContent(67,3);
   ResoRow11->SetBinContent(68,3);
   ResoRow11->SetBinContent(69,1);
   ResoRow11->SetBinContent(70,1);
   ResoRow11->SetBinContent(71,1);
   ResoRow11->SetBinContent(72,4);
   ResoRow11->SetBinContent(73,2);
   ResoRow11->SetBinContent(74,3);
   ResoRow11->SetBinContent(75,1);
   ResoRow11->SetBinContent(76,1);
   ResoRow11->SetBinContent(80,1);
   ResoRow11->SetBinContent(81,1);
   ResoRow11->SetBinContent(91,1);
   ResoRow11->SetBinContent(92,1);
   ResoRow11->SetBinContent(101,3);
   ResoRow11->SetEntries(1119);
   
   TF1 *ResoRowFit11 = new TF1("ResoRowFit11","gaus",-1,1);
   ResoRowFit11->SetFillColor(19);
   ResoRowFit11->SetFillStyle(0);
   ResoRowFit11->SetLineWidth(3);
   ResoRowFit11->SetChisquare(76.94568);
   ResoRowFit11->SetNDF(55);
   ResoRowFit11->SetParameter(0,68.32102);
   ResoRowFit11->SetParError(0,2.830645);
   ResoRowFit11->SetParLimits(0,0,0);
   ResoRowFit11->SetParameter(1,-0.001349126);
   ResoRowFit11->SetParError(1,0.003822648);
   ResoRowFit11->SetParLimits(1,0,0);
   ResoRowFit11->SetParameter(2,0.1215477);
   ResoRowFit11->SetParError(2,0.003390899);
   ResoRowFit11->SetParLimits(2,0,1.570725);
   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 = 1119   ");
   text = ptstats->AddText("Mean  = -0.004413");
   text = ptstats->AddText("RMS   = 0.1569");
   text = ptstats->AddText("#chi^{2} / ndf = 76.95 / 55");
   text = ptstats->AddText("Constant = 68.32 #pm 2.83 ");
   text = ptstats->AddText("Mean     = -0.001349 #pm 0.003823 ");
   text = ptstats->AddText("Sigma    = 0.1215 #pm 0.0034 ");
   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_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,-10.5,1.25,94.5);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow12 = new TH1F("ResoRow12","",100,-1,1);
   ResoRow12->SetBinContent(0,2);
   ResoRow12->SetBinContent(5,1);
   ResoRow12->SetBinContent(9,1);
   ResoRow12->SetBinContent(10,1);
   ResoRow12->SetBinContent(13,1);
   ResoRow12->SetBinContent(19,2);
   ResoRow12->SetBinContent(25,1);
   ResoRow12->SetBinContent(26,2);
   ResoRow12->SetBinContent(27,1);
   ResoRow12->SetBinContent(29,2);
   ResoRow12->SetBinContent(31,4);
   ResoRow12->SetBinContent(32,1);
   ResoRow12->SetBinContent(33,2);
   ResoRow12->SetBinContent(34,9);
   ResoRow12->SetBinContent(35,3);
   ResoRow12->SetBinContent(36,6);
   ResoRow12->SetBinContent(37,6);
   ResoRow12->SetBinContent(38,14);
   ResoRow12->SetBinContent(39,17);
   ResoRow12->SetBinContent(40,12);
   ResoRow12->SetBinContent(41,24);
   ResoRow12->SetBinContent(42,32);
   ResoRow12->SetBinContent(43,33);
   ResoRow12->SetBinContent(44,30);
   ResoRow12->SetBinContent(45,38);
   ResoRow12->SetBinContent(46,51);
   ResoRow12->SetBinContent(47,64);
   ResoRow12->SetBinContent(48,48);
   ResoRow12->SetBinContent(49,72);
   ResoRow12->SetBinContent(50,80);
   ResoRow12->SetBinContent(51,73);
   ResoRow12->SetBinContent(52,69);
   ResoRow12->SetBinContent(53,64);
   ResoRow12->SetBinContent(54,45);
   ResoRow12->SetBinContent(55,57);
   ResoRow12->SetBinContent(56,40);
   ResoRow12->SetBinContent(57,40);
   ResoRow12->SetBinContent(58,41);
   ResoRow12->SetBinContent(59,24);
   ResoRow12->SetBinContent(60,13);
   ResoRow12->SetBinContent(61,15);
   ResoRow12->SetBinContent(62,20);
   ResoRow12->SetBinContent(63,8);
   ResoRow12->SetBinContent(64,9);
   ResoRow12->SetBinContent(65,4);
   ResoRow12->SetBinContent(66,6);
   ResoRow12->SetBinContent(67,3);
   ResoRow12->SetBinContent(68,5);
   ResoRow12->SetBinContent(69,2);
   ResoRow12->SetBinContent(70,2);
   ResoRow12->SetBinContent(71,1);
   ResoRow12->SetBinContent(72,3);
   ResoRow12->SetBinContent(74,3);
   ResoRow12->SetBinContent(75,2);
   ResoRow12->SetBinContent(78,1);
   ResoRow12->SetBinContent(79,1);
   ResoRow12->SetBinContent(82,1);
   ResoRow12->SetBinContent(93,1);
   ResoRow12->SetBinContent(99,1);
   ResoRow12->SetBinContent(101,5);
   ResoRow12->SetEntries(1119);
   
   TF1 *ResoRowFit12 = new TF1("ResoRowFit12","gaus",-1,1);
   ResoRowFit12->SetFillColor(19);
   ResoRowFit12->SetFillStyle(0);
   ResoRowFit12->SetLineWidth(3);
   ResoRowFit12->SetChisquare(71.24916);
   ResoRowFit12->SetNDF(55);
   ResoRowFit12->SetParameter(0,63.75419);
   ResoRowFit12->SetParError(0,2.622115);
   ResoRowFit12->SetParLimits(0,0,0);
   ResoRowFit12->SetParameter(1,-0.0007687764);
   ResoRowFit12->SetParError(1,0.004058486);
   ResoRowFit12->SetParLimits(1,0,0);
   ResoRowFit12->SetParameter(2,0.1303596);
   ResoRowFit12->SetParError(2,0.003553398);
   ResoRowFit12->SetParLimits(2,0,1.609325);
   ResoRow12->GetListOfFunctions()->Add(ResoRowFit12);
   
   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("ResoRow12");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1119   ");
   text = ptstats->AddText("Mean  = -0.0008166");
   text = ptstats->AddText("RMS   = 0.1608");
   text = ptstats->AddText("#chi^{2} / ndf = 71.25 / 55");
   text = ptstats->AddText("Constant = 63.75 #pm 2.62 ");
   text = ptstats->AddText("Mean     = -0.0007688 #pm 0.0040585 ");
   text = ptstats->AddText("Sigma    = 0.1304 #pm 0.0036 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow12->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow12->GetListOfFunctions());
   ResoRow12->GetXaxis()->SetTitle("residual / mm");
   ResoRow12->GetYaxis()->SetTitle("counts");
   ResoRow12->Draw("");
   c2_6->Modified();
   c2->cd();
   c2->Modified();
   c2->cd();
   c2->SetSelected(c2);
}
