{
//=========Macro generated from canvas: c2/
//=========  (Fri Jun 11 00:06:34 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,-15.35625,1.25,138.2063);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow13 = new TH1F("ResoRow13","",100,-1,1);
   ResoRow13->SetBinContent(0,3);
   ResoRow13->SetBinContent(14,1);
   ResoRow13->SetBinContent(17,1);
   ResoRow13->SetBinContent(18,1);
   ResoRow13->SetBinContent(20,1);
   ResoRow13->SetBinContent(25,1);
   ResoRow13->SetBinContent(29,1);
   ResoRow13->SetBinContent(34,2);
   ResoRow13->SetBinContent(36,2);
   ResoRow13->SetBinContent(37,5);
   ResoRow13->SetBinContent(38,1);
   ResoRow13->SetBinContent(39,2);
   ResoRow13->SetBinContent(40,6);
   ResoRow13->SetBinContent(41,13);
   ResoRow13->SetBinContent(42,7);
   ResoRow13->SetBinContent(43,21);
   ResoRow13->SetBinContent(44,24);
   ResoRow13->SetBinContent(45,25);
   ResoRow13->SetBinContent(46,42);
   ResoRow13->SetBinContent(47,59);
   ResoRow13->SetBinContent(48,70);
   ResoRow13->SetBinContent(49,84);
   ResoRow13->SetBinContent(50,117);
   ResoRow13->SetBinContent(51,94);
   ResoRow13->SetBinContent(52,114);
   ResoRow13->SetBinContent(53,88);
   ResoRow13->SetBinContent(54,65);
   ResoRow13->SetBinContent(55,48);
   ResoRow13->SetBinContent(56,31);
   ResoRow13->SetBinContent(57,22);
   ResoRow13->SetBinContent(58,23);
   ResoRow13->SetBinContent(59,8);
   ResoRow13->SetBinContent(60,9);
   ResoRow13->SetBinContent(61,3);
   ResoRow13->SetBinContent(62,4);
   ResoRow13->SetBinContent(63,1);
   ResoRow13->SetBinContent(65,3);
   ResoRow13->SetBinContent(66,2);
   ResoRow13->SetBinContent(67,1);
   ResoRow13->SetBinContent(68,1);
   ResoRow13->SetBinContent(69,2);
   ResoRow13->SetBinContent(70,1);
   ResoRow13->SetBinContent(75,1);
   ResoRow13->SetBinContent(79,2);
   ResoRow13->SetBinContent(83,1);
   ResoRow13->SetBinContent(84,1);
   ResoRow13->SetBinContent(94,1);
   ResoRow13->SetBinContent(101,3);
   ResoRow13->SetEntries(1018);
   
   TF1 *ResoRowFit13 = new TF1("ResoRowFit13","gaus",-1,1);
   ResoRowFit13->SetFillColor(19);
   ResoRowFit13->SetFillStyle(0);
   ResoRowFit13->SetLineWidth(3);
   ResoRowFit13->SetChisquare(62.99796);
   ResoRowFit13->SetNDF(43);
   ResoRowFit13->SetParameter(0,96.07595);
   ResoRowFit13->SetParError(0,4.241992);
   ResoRowFit13->SetParLimits(0,0,0);
   ResoRowFit13->SetParameter(1,0.003661566);
   ResoRowFit13->SetParError(1,0.002583591);
   ResoRowFit13->SetParLimits(1,0,0);
   ResoRowFit13->SetParameter(2,0.07884199);
   ResoRowFit13->SetParError(2,0.002368446);
   ResoRowFit13->SetParLimits(2,0,1.134414);
   ResoRow13->GetListOfFunctions()->Add(ResoRowFit13);
   
   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("ResoRow13");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1018   ");
   text = ptstats->AddText("Mean  = 0.003514");
   text = ptstats->AddText("RMS   = 0.1133");
   text = ptstats->AddText("#chi^{2} / ndf =    63 / 43");
   text = ptstats->AddText("Constant = 96.08 #pm 4.24 ");
   text = ptstats->AddText("Mean     = 0.003662 #pm 0.002584 ");
   text = ptstats->AddText("Sigma    = 0.07884 #pm 0.00237 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow13->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow13->GetListOfFunctions());
   ResoRow13->GetXaxis()->SetTitle("residual / mm");
   ResoRow13->GetYaxis()->SetTitle("counts");
   ResoRow13->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.225,1.25,137.025);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow15 = new TH1F("ResoRow15","",100,-1,1);
   ResoRow15->SetBinContent(0,2);
   ResoRow15->SetBinContent(4,1);
   ResoRow15->SetBinContent(9,1);
   ResoRow15->SetBinContent(17,1);
   ResoRow15->SetBinContent(26,1);
   ResoRow15->SetBinContent(27,1);
   ResoRow15->SetBinContent(28,1);
   ResoRow15->SetBinContent(30,1);
   ResoRow15->SetBinContent(31,1);
   ResoRow15->SetBinContent(32,4);
   ResoRow15->SetBinContent(35,1);
   ResoRow15->SetBinContent(36,1);
   ResoRow15->SetBinContent(37,4);
   ResoRow15->SetBinContent(38,6);
   ResoRow15->SetBinContent(39,8);
   ResoRow15->SetBinContent(40,8);
   ResoRow15->SetBinContent(41,9);
   ResoRow15->SetBinContent(42,14);
   ResoRow15->SetBinContent(43,19);
   ResoRow15->SetBinContent(44,23);
   ResoRow15->SetBinContent(45,28);
   ResoRow15->SetBinContent(46,61);
   ResoRow15->SetBinContent(47,72);
   ResoRow15->SetBinContent(48,71);
   ResoRow15->SetBinContent(49,116);
   ResoRow15->SetBinContent(50,111);
   ResoRow15->SetBinContent(51,84);
   ResoRow15->SetBinContent(52,82);
   ResoRow15->SetBinContent(53,57);
   ResoRow15->SetBinContent(54,61);
   ResoRow15->SetBinContent(55,45);
   ResoRow15->SetBinContent(56,29);
   ResoRow15->SetBinContent(57,19);
   ResoRow15->SetBinContent(58,11);
   ResoRow15->SetBinContent(59,22);
   ResoRow15->SetBinContent(60,5);
   ResoRow15->SetBinContent(61,6);
   ResoRow15->SetBinContent(62,6);
   ResoRow15->SetBinContent(63,3);
   ResoRow15->SetBinContent(64,3);
   ResoRow15->SetBinContent(65,7);
   ResoRow15->SetBinContent(66,1);
   ResoRow15->SetBinContent(67,1);
   ResoRow15->SetBinContent(68,1);
   ResoRow15->SetBinContent(70,1);
   ResoRow15->SetBinContent(74,1);
   ResoRow15->SetBinContent(78,1);
   ResoRow15->SetBinContent(81,1);
   ResoRow15->SetBinContent(101,5);
   ResoRow15->SetEntries(1018);
   
   TF1 *ResoRowFit15 = new TF1("ResoRowFit15","gaus",-1,1);
   ResoRowFit15->SetFillColor(19);
   ResoRowFit15->SetFillStyle(0);
   ResoRowFit15->SetLineWidth(3);
   ResoRowFit15->SetChisquare(84.01482);
   ResoRowFit15->SetNDF(44);
   ResoRowFit15->SetParameter(0,87.70969);
   ResoRowFit15->SetParError(0,4.136207);
   ResoRowFit15->SetParLimits(0,0,0);
   ResoRowFit15->SetParameter(1,-0.007343935);
   ResoRowFit15->SetParError(1,0.002771651);
   ResoRowFit15->SetParLimits(1,0,0);
   ResoRowFit15->SetParameter(2,0.08433458);
   ResoRowFit15->SetParError(2,0.002857956);
   ResoRowFit15->SetParLimits(2,0,1.163264);
   ResoRow15->GetListOfFunctions()->Add(ResoRowFit15);
   
   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("ResoRow15");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1018   ");
   text = ptstats->AddText("Mean  = -0.008586");
   text = ptstats->AddText("RMS   = 0.1164");
   text = ptstats->AddText("#chi^{2} / ndf = 84.01 / 44");
   text = ptstats->AddText("Constant = 87.71 #pm 4.14 ");
   text = ptstats->AddText("Mean     = -0.007344 #pm 0.002772 ");
   text = ptstats->AddText("Sigma    = 0.08433 #pm 0.00286 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow15->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow15->GetListOfFunctions());
   ResoRow15->GetXaxis()->SetTitle("residual / mm");
   ResoRow15->GetYaxis()->SetTitle("counts");
   ResoRow15->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.83125,1.25,133.4813);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow16 = new TH1F("ResoRow16","",100,-1,1);
   ResoRow16->SetBinContent(0,3);
   ResoRow16->SetBinContent(4,1);
   ResoRow16->SetBinContent(5,1);
   ResoRow16->SetBinContent(9,1);
   ResoRow16->SetBinContent(22,2);
   ResoRow16->SetBinContent(29,2);
   ResoRow16->SetBinContent(31,1);
   ResoRow16->SetBinContent(32,1);
   ResoRow16->SetBinContent(33,2);
   ResoRow16->SetBinContent(35,3);
   ResoRow16->SetBinContent(36,5);
   ResoRow16->SetBinContent(37,2);
   ResoRow16->SetBinContent(38,6);
   ResoRow16->SetBinContent(39,4);
   ResoRow16->SetBinContent(40,5);
   ResoRow16->SetBinContent(41,10);
   ResoRow16->SetBinContent(42,7);
   ResoRow16->SetBinContent(43,14);
   ResoRow16->SetBinContent(44,23);
   ResoRow16->SetBinContent(45,33);
   ResoRow16->SetBinContent(46,37);
   ResoRow16->SetBinContent(47,52);
   ResoRow16->SetBinContent(48,87);
   ResoRow16->SetBinContent(49,93);
   ResoRow16->SetBinContent(50,113);
   ResoRow16->SetBinContent(51,112);
   ResoRow16->SetBinContent(52,103);
   ResoRow16->SetBinContent(53,82);
   ResoRow16->SetBinContent(54,62);
   ResoRow16->SetBinContent(55,53);
   ResoRow16->SetBinContent(56,29);
   ResoRow16->SetBinContent(57,19);
   ResoRow16->SetBinContent(58,9);
   ResoRow16->SetBinContent(59,8);
   ResoRow16->SetBinContent(60,5);
   ResoRow16->SetBinContent(61,2);
   ResoRow16->SetBinContent(62,5);
   ResoRow16->SetBinContent(63,2);
   ResoRow16->SetBinContent(64,4);
   ResoRow16->SetBinContent(65,4);
   ResoRow16->SetBinContent(66,1);
   ResoRow16->SetBinContent(68,1);
   ResoRow16->SetBinContent(69,1);
   ResoRow16->SetBinContent(70,1);
   ResoRow16->SetBinContent(74,1);
   ResoRow16->SetBinContent(81,1);
   ResoRow16->SetBinContent(91,1);
   ResoRow16->SetBinContent(101,4);
   ResoRow16->SetEntries(1018);
   
   TF1 *ResoRowFit16 = new TF1("ResoRowFit16","gaus",-1,1);
   ResoRowFit16->SetFillColor(19);
   ResoRowFit16->SetFillStyle(0);
   ResoRowFit16->SetLineWidth(3);
   ResoRowFit16->SetChisquare(68.44753);
   ResoRowFit16->SetNDF(43);
   ResoRowFit16->SetParameter(0,102.5217);
   ResoRowFit16->SetParError(0,4.574212);
   ResoRowFit16->SetParLimits(0,0,0);
   ResoRowFit16->SetParameter(1,0.00040851);
   ResoRowFit16->SetParError(1,0.002428338);
   ResoRowFit16->SetParLimits(1,0,0);
   ResoRowFit16->SetParameter(2,0.07335569);
   ResoRowFit16->SetParError(2,0.002236351);
   ResoRowFit16->SetParLimits(2,0,1.146717);
   ResoRow16->GetListOfFunctions()->Add(ResoRowFit16);
   
   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("ResoRow16");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1018   ");
   text = ptstats->AddText("Mean  = -0.005029");
   text = ptstats->AddText("RMS   = 0.1145");
   text = ptstats->AddText("#chi^{2} / ndf = 68.45 / 43");
   text = ptstats->AddText("Constant = 102.5 #pm 4.6 ");
   text = ptstats->AddText("Mean     = 0.0004085 #pm 0.0024283 ");
   text = ptstats->AddText("Sigma    = 0.07336 #pm 0.00224 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow16->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow16->GetListOfFunctions());
   ResoRow16->GetXaxis()->SetTitle("residual / mm");
   ResoRow16->GetYaxis()->SetTitle("counts");
   ResoRow16->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,-16.5375,1.25,148.8375);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow17 = new TH1F("ResoRow17","",100,-1,1);
   ResoRow17->SetBinContent(0,4);
   ResoRow17->SetBinContent(9,1);
   ResoRow17->SetBinContent(12,1);
   ResoRow17->SetBinContent(13,1);
   ResoRow17->SetBinContent(25,1);
   ResoRow17->SetBinContent(28,1);
   ResoRow17->SetBinContent(32,1);
   ResoRow17->SetBinContent(33,1);
   ResoRow17->SetBinContent(34,1);
   ResoRow17->SetBinContent(35,2);
   ResoRow17->SetBinContent(36,3);
   ResoRow17->SetBinContent(37,1);
   ResoRow17->SetBinContent(38,5);
   ResoRow17->SetBinContent(39,2);
   ResoRow17->SetBinContent(40,3);
   ResoRow17->SetBinContent(41,13);
   ResoRow17->SetBinContent(42,8);
   ResoRow17->SetBinContent(43,19);
   ResoRow17->SetBinContent(44,19);
   ResoRow17->SetBinContent(45,32);
   ResoRow17->SetBinContent(46,54);
   ResoRow17->SetBinContent(47,57);
   ResoRow17->SetBinContent(48,92);
   ResoRow17->SetBinContent(49,114);
   ResoRow17->SetBinContent(50,90);
   ResoRow17->SetBinContent(51,126);
   ResoRow17->SetBinContent(52,97);
   ResoRow17->SetBinContent(53,73);
   ResoRow17->SetBinContent(54,54);
   ResoRow17->SetBinContent(55,40);
   ResoRow17->SetBinContent(56,23);
   ResoRow17->SetBinContent(57,23);
   ResoRow17->SetBinContent(58,12);
   ResoRow17->SetBinContent(59,15);
   ResoRow17->SetBinContent(60,6);
   ResoRow17->SetBinContent(61,3);
   ResoRow17->SetBinContent(62,5);
   ResoRow17->SetBinContent(63,1);
   ResoRow17->SetBinContent(64,2);
   ResoRow17->SetBinContent(65,1);
   ResoRow17->SetBinContent(66,2);
   ResoRow17->SetBinContent(67,1);
   ResoRow17->SetBinContent(68,1);
   ResoRow17->SetBinContent(73,1);
   ResoRow17->SetBinContent(74,1);
   ResoRow17->SetBinContent(82,1);
   ResoRow17->SetBinContent(86,1);
   ResoRow17->SetBinContent(101,3);
   ResoRow17->SetEntries(1018);
   
   TF1 *ResoRowFit17 = new TF1("ResoRowFit17","gaus",-1,1);
   ResoRowFit17->SetFillColor(19);
   ResoRowFit17->SetFillStyle(0);
   ResoRowFit17->SetLineWidth(3);
   ResoRowFit17->SetChisquare(66.81025);
   ResoRowFit17->SetNDF(43);
   ResoRowFit17->SetParameter(0,98.90508);
   ResoRowFit17->SetParError(0,4.492404);
   ResoRowFit17->SetParLimits(0,0,0);
   ResoRowFit17->SetParameter(1,-0.004506027);
   ResoRowFit17->SetParError(1,0.002484191);
   ResoRowFit17->SetParLimits(1,0,0);
   ResoRowFit17->SetParameter(2,0.07616953);
   ResoRowFit17->SetParError(2,0.002412698);
   ResoRowFit17->SetParLimits(2,0,1.066262);
   ResoRow17->GetListOfFunctions()->Add(ResoRowFit17);
   
   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("ResoRow17");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1018   ");
   text = ptstats->AddText("Mean  = -0.006037");
   text = ptstats->AddText("RMS   = 0.1062");
   text = ptstats->AddText("#chi^{2} / ndf = 66.81 / 43");
   text = ptstats->AddText("Constant = 98.91 #pm 4.49 ");
   text = ptstats->AddText("Mean     = -0.004506 #pm 0.002484 ");
   text = ptstats->AddText("Sigma    = 0.07617 #pm 0.00241 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow17->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow17->GetListOfFunctions());
   ResoRow17->GetXaxis()->SetTitle("residual / mm");
   ResoRow17->GetYaxis()->SetTitle("counts");
   ResoRow17->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,-15.4875,1.25,139.3875);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow18 = new TH1F("ResoRow18","",100,-1,1);
   ResoRow18->SetBinContent(0,2);
   ResoRow18->SetBinContent(5,1);
   ResoRow18->SetBinContent(8,2);
   ResoRow18->SetBinContent(9,1);
   ResoRow18->SetBinContent(18,1);
   ResoRow18->SetBinContent(19,1);
   ResoRow18->SetBinContent(27,1);
   ResoRow18->SetBinContent(31,2);
   ResoRow18->SetBinContent(33,1);
   ResoRow18->SetBinContent(34,2);
   ResoRow18->SetBinContent(35,2);
   ResoRow18->SetBinContent(36,4);
   ResoRow18->SetBinContent(37,2);
   ResoRow18->SetBinContent(38,4);
   ResoRow18->SetBinContent(39,4);
   ResoRow18->SetBinContent(40,5);
   ResoRow18->SetBinContent(41,3);
   ResoRow18->SetBinContent(42,15);
   ResoRow18->SetBinContent(43,9);
   ResoRow18->SetBinContent(44,17);
   ResoRow18->SetBinContent(45,33);
   ResoRow18->SetBinContent(46,47);
   ResoRow18->SetBinContent(47,59);
   ResoRow18->SetBinContent(48,86);
   ResoRow18->SetBinContent(49,104);
   ResoRow18->SetBinContent(50,118);
   ResoRow18->SetBinContent(51,115);
   ResoRow18->SetBinContent(52,103);
   ResoRow18->SetBinContent(53,89);
   ResoRow18->SetBinContent(54,57);
   ResoRow18->SetBinContent(55,41);
   ResoRow18->SetBinContent(56,26);
   ResoRow18->SetBinContent(57,13);
   ResoRow18->SetBinContent(58,12);
   ResoRow18->SetBinContent(59,4);
   ResoRow18->SetBinContent(60,7);
   ResoRow18->SetBinContent(61,5);
   ResoRow18->SetBinContent(62,2);
   ResoRow18->SetBinContent(63,2);
   ResoRow18->SetBinContent(64,1);
   ResoRow18->SetBinContent(65,2);
   ResoRow18->SetBinContent(66,1);
   ResoRow18->SetBinContent(67,3);
   ResoRow18->SetBinContent(68,1);
   ResoRow18->SetBinContent(74,1);
   ResoRow18->SetBinContent(75,1);
   ResoRow18->SetBinContent(77,1);
   ResoRow18->SetBinContent(91,1);
   ResoRow18->SetBinContent(101,4);
   ResoRow18->SetEntries(1018);
   
   TF1 *ResoRowFit18 = new TF1("ResoRowFit18","gaus",-1,1);
   ResoRowFit18->SetFillColor(19);
   ResoRowFit18->SetFillStyle(0);
   ResoRowFit18->SetLineWidth(3);
   ResoRowFit18->SetChisquare(64.49322);
   ResoRowFit18->SetNDF(44);
   ResoRowFit18->SetParameter(0,110.2365);
   ResoRowFit18->SetParError(0,4.828453);
   ResoRowFit18->SetParLimits(0,0,0);
   ResoRowFit18->SetParameter(1,-0.002646879);
   ResoRowFit18->SetParError(1,0.002236172);
   ResoRowFit18->SetParLimits(1,0,0);
   ResoRowFit18->SetParameter(2,0.06857991);
   ResoRowFit18->SetParError(2,0.002009739);
   ResoRowFit18->SetParLimits(2,0,1.138074);
   ResoRow18->GetListOfFunctions()->Add(ResoRowFit18);
   
   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("ResoRow18");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1018   ");
   text = ptstats->AddText("Mean  = -0.007888");
   text = ptstats->AddText("RMS   =  0.114");
   text = ptstats->AddText("#chi^{2} / ndf = 64.49 / 44");
   text = ptstats->AddText("Constant = 110.2 #pm 4.8 ");
   text = ptstats->AddText("Mean     = -0.002647 #pm 0.002236 ");
   text = ptstats->AddText("Sigma    = 0.06858 #pm 0.00201 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow18->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow18->GetListOfFunctions());
   ResoRow18->GetXaxis()->SetTitle("residual / mm");
   ResoRow18->GetYaxis()->SetTitle("counts");
   ResoRow18->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,-15.225,1.25,137.025);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow19 = new TH1F("ResoRow19","",100,-1,1);
   ResoRow19->SetBinContent(0,5);
   ResoRow19->SetBinContent(8,1);
   ResoRow19->SetBinContent(18,1);
   ResoRow19->SetBinContent(22,1);
   ResoRow19->SetBinContent(25,1);
   ResoRow19->SetBinContent(29,1);
   ResoRow19->SetBinContent(32,1);
   ResoRow19->SetBinContent(33,1);
   ResoRow19->SetBinContent(35,2);
   ResoRow19->SetBinContent(37,3);
   ResoRow19->SetBinContent(39,4);
   ResoRow19->SetBinContent(40,10);
   ResoRow19->SetBinContent(41,9);
   ResoRow19->SetBinContent(42,11);
   ResoRow19->SetBinContent(43,20);
   ResoRow19->SetBinContent(44,31);
   ResoRow19->SetBinContent(45,27);
   ResoRow19->SetBinContent(46,49);
   ResoRow19->SetBinContent(47,70);
   ResoRow19->SetBinContent(48,79);
   ResoRow19->SetBinContent(49,82);
   ResoRow19->SetBinContent(50,116);
   ResoRow19->SetBinContent(51,113);
   ResoRow19->SetBinContent(52,100);
   ResoRow19->SetBinContent(53,78);
   ResoRow19->SetBinContent(54,48);
   ResoRow19->SetBinContent(55,37);
   ResoRow19->SetBinContent(56,30);
   ResoRow19->SetBinContent(57,28);
   ResoRow19->SetBinContent(58,17);
   ResoRow19->SetBinContent(59,7);
   ResoRow19->SetBinContent(60,1);
   ResoRow19->SetBinContent(61,5);
   ResoRow19->SetBinContent(62,3);
   ResoRow19->SetBinContent(63,5);
   ResoRow19->SetBinContent(64,3);
   ResoRow19->SetBinContent(65,2);
   ResoRow19->SetBinContent(66,1);
   ResoRow19->SetBinContent(67,1);
   ResoRow19->SetBinContent(68,1);
   ResoRow19->SetBinContent(69,1);
   ResoRow19->SetBinContent(70,1);
   ResoRow19->SetBinContent(71,1);
   ResoRow19->SetBinContent(73,1);
   ResoRow19->SetBinContent(79,2);
   ResoRow19->SetBinContent(81,1);
   ResoRow19->SetBinContent(101,6);
   ResoRow19->SetEntries(1018);
   
   TF1 *ResoRowFit19 = new TF1("ResoRowFit19","gaus",-1,1);
   ResoRowFit19->SetFillColor(19);
   ResoRowFit19->SetFillStyle(0);
   ResoRowFit19->SetLineWidth(3);
   ResoRowFit19->SetChisquare(73.08118);
   ResoRowFit19->SetNDF(42);
   ResoRowFit19->SetParameter(0,97.86872);
   ResoRowFit19->SetParError(0,4.216648);
   ResoRowFit19->SetParLimits(0,0,0);
   ResoRowFit19->SetParameter(1,-0.006934711);
   ResoRowFit19->SetParError(1,0.002590502);
   ResoRowFit19->SetParLimits(1,0,0);
   ResoRowFit19->SetParameter(2,0.07619698);
   ResoRowFit19->SetParError(2,0.002152735);
   ResoRowFit19->SetParLimits(2,0,1.071498);
   ResoRow19->GetListOfFunctions()->Add(ResoRowFit19);
   
   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("ResoRow19");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1018   ");
   text = ptstats->AddText("Mean  = -0.004503");
   text = ptstats->AddText("RMS   =  0.107");
   text = ptstats->AddText("#chi^{2} / ndf = 73.08 / 42");
   text = ptstats->AddText("Constant = 97.87 #pm 4.22 ");
   text = ptstats->AddText("Mean     = -0.006935 #pm 0.002591 ");
   text = ptstats->AddText("Sigma    = 0.0762 #pm 0.0022 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow19->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow19->GetListOfFunctions());
   ResoRow19->GetXaxis()->SetTitle("residual / mm");
   ResoRow19->GetYaxis()->SetTitle("counts");
   ResoRow19->Draw("");
   c2_6->Modified();
   c2->cd();
   c2->Modified();
   c2->cd();
   c2->SetSelected(c2);
}
