{
//=========Macro generated from canvas: c2/
//=========  (Fri Jun 11 11:34:29 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,-14.7,1.25,132.3);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow13 = new TH1F("ResoRow13","",100,-1,1);
   ResoRow13->SetBinContent(0,4);
   ResoRow13->SetBinContent(1,1);
   ResoRow13->SetBinContent(17,2);
   ResoRow13->SetBinContent(18,1);
   ResoRow13->SetBinContent(20,1);
   ResoRow13->SetBinContent(21,1);
   ResoRow13->SetBinContent(27,2);
   ResoRow13->SetBinContent(28,1);
   ResoRow13->SetBinContent(30,1);
   ResoRow13->SetBinContent(33,1);
   ResoRow13->SetBinContent(36,3);
   ResoRow13->SetBinContent(37,1);
   ResoRow13->SetBinContent(38,6);
   ResoRow13->SetBinContent(39,6);
   ResoRow13->SetBinContent(40,6);
   ResoRow13->SetBinContent(41,5);
   ResoRow13->SetBinContent(42,7);
   ResoRow13->SetBinContent(43,12);
   ResoRow13->SetBinContent(44,19);
   ResoRow13->SetBinContent(45,27);
   ResoRow13->SetBinContent(46,28);
   ResoRow13->SetBinContent(47,55);
   ResoRow13->SetBinContent(48,71);
   ResoRow13->SetBinContent(49,74);
   ResoRow13->SetBinContent(50,102);
   ResoRow13->SetBinContent(51,109);
   ResoRow13->SetBinContent(52,112);
   ResoRow13->SetBinContent(53,100);
   ResoRow13->SetBinContent(54,61);
   ResoRow13->SetBinContent(55,53);
   ResoRow13->SetBinContent(56,28);
   ResoRow13->SetBinContent(57,18);
   ResoRow13->SetBinContent(58,15);
   ResoRow13->SetBinContent(59,10);
   ResoRow13->SetBinContent(60,9);
   ResoRow13->SetBinContent(61,7);
   ResoRow13->SetBinContent(62,2);
   ResoRow13->SetBinContent(63,4);
   ResoRow13->SetBinContent(64,1);
   ResoRow13->SetBinContent(65,2);
   ResoRow13->SetBinContent(66,3);
   ResoRow13->SetBinContent(67,1);
   ResoRow13->SetBinContent(68,1);
   ResoRow13->SetBinContent(69,2);
   ResoRow13->SetBinContent(71,1);
   ResoRow13->SetBinContent(73,1);
   ResoRow13->SetBinContent(75,3);
   ResoRow13->SetBinContent(76,2);
   ResoRow13->SetBinContent(90,1);
   ResoRow13->SetBinContent(101,2);
   ResoRow13->SetEntries(985);
   
   TF1 *ResoRowFit13 = new TF1("ResoRowFit13","gaus",-1,1);
   ResoRowFit13->SetFillColor(19);
   ResoRowFit13->SetFillStyle(0);
   ResoRowFit13->SetLineWidth(3);
   ResoRowFit13->SetChisquare(79.44437);
   ResoRowFit13->SetNDF(45);
   ResoRowFit13->SetParameter(0,96.50818);
   ResoRowFit13->SetParError(0,4.640463);
   ResoRowFit13->SetParLimits(0,0,0);
   ResoRowFit13->SetParameter(1,0.00789851);
   ResoRowFit13->SetParError(1,0.002492923);
   ResoRowFit13->SetParLimits(1,0,0);
   ResoRowFit13->SetParameter(2,0.07437222);
   ResoRowFit13->SetParError(2,0.002576518);
   ResoRowFit13->SetParLimits(2,0,1.190464);
   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 = 985    ");
   text = ptstats->AddText("Mean  = 0.005941");
   text = ptstats->AddText("RMS   = 0.1186");
   text = ptstats->AddText("#chi^{2} / ndf = 79.44 / 45");
   text = ptstats->AddText("Constant = 96.51 #pm 4.64 ");
   text = ptstats->AddText("Mean     = 0.007899 #pm 0.002493 ");
   text = ptstats->AddText("Sigma    = 0.07437 #pm 0.00258 ");
   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,-12.20625,1.25,109.8563);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow15 = new TH1F("ResoRow15","",100,-1,1);
   ResoRow15->SetBinContent(0,2);
   ResoRow15->SetBinContent(15,1);
   ResoRow15->SetBinContent(23,1);
   ResoRow15->SetBinContent(24,1);
   ResoRow15->SetBinContent(27,1);
   ResoRow15->SetBinContent(29,2);
   ResoRow15->SetBinContent(32,1);
   ResoRow15->SetBinContent(33,2);
   ResoRow15->SetBinContent(34,1);
   ResoRow15->SetBinContent(35,4);
   ResoRow15->SetBinContent(36,3);
   ResoRow15->SetBinContent(37,2);
   ResoRow15->SetBinContent(38,7);
   ResoRow15->SetBinContent(39,7);
   ResoRow15->SetBinContent(40,3);
   ResoRow15->SetBinContent(41,6);
   ResoRow15->SetBinContent(42,14);
   ResoRow15->SetBinContent(43,27);
   ResoRow15->SetBinContent(44,39);
   ResoRow15->SetBinContent(45,50);
   ResoRow15->SetBinContent(46,42);
   ResoRow15->SetBinContent(47,59);
   ResoRow15->SetBinContent(48,93);
   ResoRow15->SetBinContent(49,83);
   ResoRow15->SetBinContent(50,93);
   ResoRow15->SetBinContent(51,93);
   ResoRow15->SetBinContent(52,72);
   ResoRow15->SetBinContent(53,50);
   ResoRow15->SetBinContent(54,54);
   ResoRow15->SetBinContent(55,35);
   ResoRow15->SetBinContent(56,17);
   ResoRow15->SetBinContent(57,22);
   ResoRow15->SetBinContent(58,22);
   ResoRow15->SetBinContent(59,17);
   ResoRow15->SetBinContent(60,14);
   ResoRow15->SetBinContent(61,6);
   ResoRow15->SetBinContent(62,8);
   ResoRow15->SetBinContent(63,6);
   ResoRow15->SetBinContent(64,4);
   ResoRow15->SetBinContent(65,2);
   ResoRow15->SetBinContent(66,3);
   ResoRow15->SetBinContent(67,1);
   ResoRow15->SetBinContent(68,4);
   ResoRow15->SetBinContent(69,2);
   ResoRow15->SetBinContent(70,3);
   ResoRow15->SetBinContent(72,1);
   ResoRow15->SetBinContent(73,1);
   ResoRow15->SetBinContent(101,4);
   ResoRow15->SetEntries(985);
   
   TF1 *ResoRowFit15 = new TF1("ResoRowFit15","gaus",-1,1);
   ResoRowFit15->SetFillColor(19);
   ResoRowFit15->SetFillStyle(0);
   ResoRowFit15->SetLineWidth(3);
   ResoRowFit15->SetChisquare(98.44321);
   ResoRowFit15->SetNDF(43);
   ResoRowFit15->SetParameter(0,79.24007);
   ResoRowFit15->SetParError(0,3.86806);
   ResoRowFit15->SetParLimits(0,0,0);
   ResoRowFit15->SetParameter(1,-0.01124719);
   ResoRowFit15->SetParError(1,0.003202631);
   ResoRowFit15->SetParLimits(1,0,0);
   ResoRowFit15->SetParameter(2,0.08866647);
   ResoRowFit15->SetParError(2,0.003130559);
   ResoRowFit15->SetParLimits(2,0,1.179364);
   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 = 985    ");
   text = ptstats->AddText("Mean  = -0.00763");
   text = ptstats->AddText("RMS   = 0.1178");
   text = ptstats->AddText("#chi^{2} / ndf = 98.44 / 43");
   text = ptstats->AddText("Constant = 79.24 #pm 3.87 ");
   text = ptstats->AddText("Mean     = -0.01125 #pm 0.00320 ");
   text = ptstats->AddText("Sigma    = 0.08867 #pm 0.00313 ");
   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,-15.09375,1.25,135.8438);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow16 = new TH1F("ResoRow16","",100,-1,1);
   ResoRow16->SetBinContent(0,2);
   ResoRow16->SetBinContent(16,1);
   ResoRow16->SetBinContent(17,1);
   ResoRow16->SetBinContent(20,1);
   ResoRow16->SetBinContent(23,1);
   ResoRow16->SetBinContent(26,1);
   ResoRow16->SetBinContent(28,1);
   ResoRow16->SetBinContent(31,1);
   ResoRow16->SetBinContent(32,1);
   ResoRow16->SetBinContent(36,2);
   ResoRow16->SetBinContent(37,1);
   ResoRow16->SetBinContent(38,2);
   ResoRow16->SetBinContent(39,6);
   ResoRow16->SetBinContent(40,5);
   ResoRow16->SetBinContent(41,4);
   ResoRow16->SetBinContent(42,8);
   ResoRow16->SetBinContent(43,13);
   ResoRow16->SetBinContent(44,21);
   ResoRow16->SetBinContent(45,25);
   ResoRow16->SetBinContent(46,28);
   ResoRow16->SetBinContent(47,64);
   ResoRow16->SetBinContent(48,88);
   ResoRow16->SetBinContent(49,80);
   ResoRow16->SetBinContent(50,115);
   ResoRow16->SetBinContent(51,115);
   ResoRow16->SetBinContent(52,91);
   ResoRow16->SetBinContent(53,78);
   ResoRow16->SetBinContent(54,72);
   ResoRow16->SetBinContent(55,38);
   ResoRow16->SetBinContent(56,22);
   ResoRow16->SetBinContent(57,19);
   ResoRow16->SetBinContent(58,16);
   ResoRow16->SetBinContent(59,16);
   ResoRow16->SetBinContent(60,9);
   ResoRow16->SetBinContent(61,5);
   ResoRow16->SetBinContent(62,4);
   ResoRow16->SetBinContent(63,4);
   ResoRow16->SetBinContent(64,2);
   ResoRow16->SetBinContent(65,4);
   ResoRow16->SetBinContent(66,2);
   ResoRow16->SetBinContent(67,3);
   ResoRow16->SetBinContent(68,2);
   ResoRow16->SetBinContent(69,2);
   ResoRow16->SetBinContent(70,1);
   ResoRow16->SetBinContent(75,1);
   ResoRow16->SetBinContent(101,7);
   ResoRow16->SetEntries(985);
   
   TF1 *ResoRowFit16 = new TF1("ResoRowFit16","gaus",-1,1);
   ResoRowFit16->SetFillColor(19);
   ResoRowFit16->SetFillStyle(0);
   ResoRowFit16->SetLineWidth(3);
   ResoRowFit16->SetChisquare(82.34179);
   ResoRowFit16->SetNDF(41);
   ResoRowFit16->SetParameter(0,95.96549);
   ResoRowFit16->SetParError(0,4.77439);
   ResoRowFit16->SetParLimits(0,0,0);
   ResoRowFit16->SetParameter(1,0.002792274);
   ResoRowFit16->SetParError(1,0.002495027);
   ResoRowFit16->SetParLimits(1,0,0);
   ResoRowFit16->SetParameter(2,0.07430304);
   ResoRowFit16->SetParError(2,0.002736203);
   ResoRowFit16->SetParLimits(2,0,1.04536);
   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 = 985    ");
   text = ptstats->AddText("Mean  = 0.004343");
   text = ptstats->AddText("RMS   = 0.1042");
   text = ptstats->AddText("#chi^{2} / ndf = 82.34 / 41");
   text = ptstats->AddText("Constant = 95.97 #pm 4.77 ");
   text = ptstats->AddText("Mean     = 0.002792 #pm 0.002495 ");
   text = ptstats->AddText("Sigma    = 0.0743 #pm 0.0027 ");
   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,-14.9625,1.25,134.6625);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow17 = new TH1F("ResoRow17","",100,-1,1);
   ResoRow17->SetBinContent(0,1);
   ResoRow17->SetBinContent(3,1);
   ResoRow17->SetBinContent(12,1);
   ResoRow17->SetBinContent(19,2);
   ResoRow17->SetBinContent(23,1);
   ResoRow17->SetBinContent(25,1);
   ResoRow17->SetBinContent(26,3);
   ResoRow17->SetBinContent(27,1);
   ResoRow17->SetBinContent(28,1);
   ResoRow17->SetBinContent(31,1);
   ResoRow17->SetBinContent(32,1);
   ResoRow17->SetBinContent(33,1);
   ResoRow17->SetBinContent(34,1);
   ResoRow17->SetBinContent(35,1);
   ResoRow17->SetBinContent(36,1);
   ResoRow17->SetBinContent(37,2);
   ResoRow17->SetBinContent(38,3);
   ResoRow17->SetBinContent(39,8);
   ResoRow17->SetBinContent(40,4);
   ResoRow17->SetBinContent(41,7);
   ResoRow17->SetBinContent(42,12);
   ResoRow17->SetBinContent(43,7);
   ResoRow17->SetBinContent(44,16);
   ResoRow17->SetBinContent(45,32);
   ResoRow17->SetBinContent(46,46);
   ResoRow17->SetBinContent(47,47);
   ResoRow17->SetBinContent(48,98);
   ResoRow17->SetBinContent(49,97);
   ResoRow17->SetBinContent(50,106);
   ResoRow17->SetBinContent(51,114);
   ResoRow17->SetBinContent(52,86);
   ResoRow17->SetBinContent(53,80);
   ResoRow17->SetBinContent(54,48);
   ResoRow17->SetBinContent(55,35);
   ResoRow17->SetBinContent(56,29);
   ResoRow17->SetBinContent(57,23);
   ResoRow17->SetBinContent(58,19);
   ResoRow17->SetBinContent(59,15);
   ResoRow17->SetBinContent(60,10);
   ResoRow17->SetBinContent(61,2);
   ResoRow17->SetBinContent(62,5);
   ResoRow17->SetBinContent(63,1);
   ResoRow17->SetBinContent(64,5);
   ResoRow17->SetBinContent(65,1);
   ResoRow17->SetBinContent(66,4);
   ResoRow17->SetBinContent(67,1);
   ResoRow17->SetBinContent(71,1);
   ResoRow17->SetBinContent(74,1);
   ResoRow17->SetBinContent(83,1);
   ResoRow17->SetBinContent(101,1);
   ResoRow17->SetEntries(985);
   
   TF1 *ResoRowFit17 = new TF1("ResoRowFit17","gaus",-1,1);
   ResoRowFit17->SetFillColor(19);
   ResoRowFit17->SetFillStyle(0);
   ResoRowFit17->SetLineWidth(3);
   ResoRowFit17->SetChisquare(88.35621);
   ResoRowFit17->SetNDF(45);
   ResoRowFit17->SetParameter(0,94.83091);
   ResoRowFit17->SetParError(0,4.581083);
   ResoRowFit17->SetParLimits(0,0,0);
   ResoRowFit17->SetParameter(1,0.001086145);
   ResoRowFit17->SetParError(1,0.0025802);
   ResoRowFit17->SetParLimits(1,0,0);
   ResoRowFit17->SetParameter(2,0.07527342);
   ResoRowFit17->SetParError(2,0.002623777);
   ResoRowFit17->SetParLimits(2,0,1.145853);
   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 = 985    ");
   text = ptstats->AddText("Mean  = -0.004515");
   text = ptstats->AddText("RMS   = 0.1147");
   text = ptstats->AddText("#chi^{2} / ndf = 88.36 / 45");
   text = ptstats->AddText("Constant = 94.83 #pm 4.58 ");
   text = ptstats->AddText("Mean     = 0.001086 #pm 0.002580 ");
   text = ptstats->AddText("Sigma    = 0.07527 #pm 0.00262 ");
   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,-18.375,1.25,165.375);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow18 = new TH1F("ResoRow18","",100,-1,1);
   ResoRow18->SetBinContent(0,1);
   ResoRow18->SetBinContent(1,1);
   ResoRow18->SetBinContent(4,1);
   ResoRow18->SetBinContent(5,1);
   ResoRow18->SetBinContent(8,1);
   ResoRow18->SetBinContent(17,1);
   ResoRow18->SetBinContent(22,1);
   ResoRow18->SetBinContent(24,1);
   ResoRow18->SetBinContent(27,1);
   ResoRow18->SetBinContent(28,3);
   ResoRow18->SetBinContent(30,2);
   ResoRow18->SetBinContent(31,1);
   ResoRow18->SetBinContent(32,1);
   ResoRow18->SetBinContent(34,1);
   ResoRow18->SetBinContent(35,2);
   ResoRow18->SetBinContent(36,2);
   ResoRow18->SetBinContent(37,2);
   ResoRow18->SetBinContent(38,1);
   ResoRow18->SetBinContent(39,1);
   ResoRow18->SetBinContent(40,4);
   ResoRow18->SetBinContent(41,9);
   ResoRow18->SetBinContent(42,7);
   ResoRow18->SetBinContent(43,7);
   ResoRow18->SetBinContent(44,19);
   ResoRow18->SetBinContent(45,26);
   ResoRow18->SetBinContent(46,37);
   ResoRow18->SetBinContent(47,44);
   ResoRow18->SetBinContent(48,68);
   ResoRow18->SetBinContent(49,104);
   ResoRow18->SetBinContent(50,113);
   ResoRow18->SetBinContent(51,140);
   ResoRow18->SetBinContent(52,106);
   ResoRow18->SetBinContent(53,91);
   ResoRow18->SetBinContent(54,44);
   ResoRow18->SetBinContent(55,47);
   ResoRow18->SetBinContent(56,22);
   ResoRow18->SetBinContent(57,22);
   ResoRow18->SetBinContent(58,13);
   ResoRow18->SetBinContent(59,9);
   ResoRow18->SetBinContent(60,7);
   ResoRow18->SetBinContent(61,3);
   ResoRow18->SetBinContent(62,1);
   ResoRow18->SetBinContent(63,5);
   ResoRow18->SetBinContent(64,2);
   ResoRow18->SetBinContent(65,1);
   ResoRow18->SetBinContent(66,2);
   ResoRow18->SetBinContent(67,1);
   ResoRow18->SetBinContent(69,1);
   ResoRow18->SetBinContent(74,1);
   ResoRow18->SetBinContent(77,1);
   ResoRow18->SetBinContent(80,1);
   ResoRow18->SetBinContent(88,1);
   ResoRow18->SetBinContent(91,1);
   ResoRow18->SetEntries(985);
   
   TF1 *ResoRowFit18 = new TF1("ResoRowFit18","gaus",-1,1);
   ResoRowFit18->SetFillColor(19);
   ResoRowFit18->SetFillStyle(0);
   ResoRowFit18->SetLineWidth(3);
   ResoRowFit18->SetChisquare(89.97874);
   ResoRowFit18->SetNDF(49);
   ResoRowFit18->SetParameter(0,104.0655);
   ResoRowFit18->SetParError(0,5.098553);
   ResoRowFit18->SetParLimits(0,0,0);
   ResoRowFit18->SetParameter(1,0.003380699);
   ResoRowFit18->SetParError(1,0.002293275);
   ResoRowFit18->SetParLimits(1,0,0);
   ResoRowFit18->SetParameter(2,0.0685459);
   ResoRowFit18->SetParError(2,0.002453158);
   ResoRowFit18->SetParLimits(2,0,1.215134);
   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 = 985    ");
   text = ptstats->AddText("Mean  = -0.001702");
   text = ptstats->AddText("RMS   = 0.1212");
   text = ptstats->AddText("#chi^{2} / ndf = 89.98 / 49");
   text = ptstats->AddText("Constant = 104.1 #pm 5.1 ");
   text = ptstats->AddText("Mean     = 0.003381 #pm 0.002293 ");
   text = ptstats->AddText("Sigma    = 0.06855 #pm 0.00245 ");
   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,-16.0125,1.25,144.1125);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow19 = new TH1F("ResoRow19","",100,-1,1);
   ResoRow19->SetBinContent(0,1);
   ResoRow19->SetBinContent(11,1);
   ResoRow19->SetBinContent(12,1);
   ResoRow19->SetBinContent(19,1);
   ResoRow19->SetBinContent(23,1);
   ResoRow19->SetBinContent(27,2);
   ResoRow19->SetBinContent(28,1);
   ResoRow19->SetBinContent(29,2);
   ResoRow19->SetBinContent(30,1);
   ResoRow19->SetBinContent(32,1);
   ResoRow19->SetBinContent(33,3);
   ResoRow19->SetBinContent(34,2);
   ResoRow19->SetBinContent(35,1);
   ResoRow19->SetBinContent(36,1);
   ResoRow19->SetBinContent(37,2);
   ResoRow19->SetBinContent(38,6);
   ResoRow19->SetBinContent(39,1);
   ResoRow19->SetBinContent(40,4);
   ResoRow19->SetBinContent(41,5);
   ResoRow19->SetBinContent(42,10);
   ResoRow19->SetBinContent(43,14);
   ResoRow19->SetBinContent(44,29);
   ResoRow19->SetBinContent(45,35);
   ResoRow19->SetBinContent(46,39);
   ResoRow19->SetBinContent(47,54);
   ResoRow19->SetBinContent(48,71);
   ResoRow19->SetBinContent(49,122);
   ResoRow19->SetBinContent(50,119);
   ResoRow19->SetBinContent(51,116);
   ResoRow19->SetBinContent(52,100);
   ResoRow19->SetBinContent(53,75);
   ResoRow19->SetBinContent(54,37);
   ResoRow19->SetBinContent(55,29);
   ResoRow19->SetBinContent(56,23);
   ResoRow19->SetBinContent(57,17);
   ResoRow19->SetBinContent(58,11);
   ResoRow19->SetBinContent(59,10);
   ResoRow19->SetBinContent(60,4);
   ResoRow19->SetBinContent(61,7);
   ResoRow19->SetBinContent(62,3);
   ResoRow19->SetBinContent(63,1);
   ResoRow19->SetBinContent(64,6);
   ResoRow19->SetBinContent(65,2);
   ResoRow19->SetBinContent(67,1);
   ResoRow19->SetBinContent(68,2);
   ResoRow19->SetBinContent(71,2);
   ResoRow19->SetBinContent(72,1);
   ResoRow19->SetBinContent(73,1);
   ResoRow19->SetBinContent(77,1);
   ResoRow19->SetBinContent(82,1);
   ResoRow19->SetBinContent(88,1);
   ResoRow19->SetBinContent(101,4);
   ResoRow19->SetEntries(985);
   
   TF1 *ResoRowFit19 = new TF1("ResoRowFit19","gaus",-1,1);
   ResoRowFit19->SetFillColor(19);
   ResoRowFit19->SetFillStyle(0);
   ResoRowFit19->SetLineWidth(3);
   ResoRowFit19->SetChisquare(95.67614);
   ResoRowFit19->SetNDF(47);
   ResoRowFit19->SetParameter(0,98.05836);
   ResoRowFit19->SetParError(0,4.816248);
   ResoRowFit19->SetParLimits(0,0,0);
   ResoRowFit19->SetParameter(1,-0.008010836);
   ResoRowFit19->SetParError(1,0.002419994);
   ResoRowFit19->SetParLimits(1,0,0);
   ResoRowFit19->SetParameter(2,0.07195646);
   ResoRowFit19->SetParError(2,0.002575217);
   ResoRowFit19->SetParLimits(2,0,1.136951);
   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 = 985    ");
   text = ptstats->AddText("Mean  = -0.008062");
   text = ptstats->AddText("RMS   = 0.1134");
   text = ptstats->AddText("#chi^{2} / ndf = 95.68 / 47");
   text = ptstats->AddText("Constant = 98.06 #pm 4.82 ");
   text = ptstats->AddText("Mean     = -0.008011 #pm 0.002420 ");
   text = ptstats->AddText("Sigma    = 0.07196 #pm 0.00258 ");
   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);
}
