{
//=========Macro generated from canvas: c2/
//=========  (Wed Jun  9 06:52:30 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,-11.15625,1.25,100.4063);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow12 = new TH1F("ResoRow12","",100,-1,1);
   ResoRow12->SetBinContent(0,2);
   ResoRow12->SetBinContent(25,1);
   ResoRow12->SetBinContent(26,2);
   ResoRow12->SetBinContent(28,1);
   ResoRow12->SetBinContent(29,1);
   ResoRow12->SetBinContent(30,2);
   ResoRow12->SetBinContent(31,2);
   ResoRow12->SetBinContent(32,3);
   ResoRow12->SetBinContent(33,2);
   ResoRow12->SetBinContent(34,3);
   ResoRow12->SetBinContent(35,6);
   ResoRow12->SetBinContent(36,6);
   ResoRow12->SetBinContent(37,11);
   ResoRow12->SetBinContent(38,12);
   ResoRow12->SetBinContent(39,10);
   ResoRow12->SetBinContent(40,11);
   ResoRow12->SetBinContent(41,21);
   ResoRow12->SetBinContent(42,26);
   ResoRow12->SetBinContent(43,41);
   ResoRow12->SetBinContent(44,43);
   ResoRow12->SetBinContent(45,40);
   ResoRow12->SetBinContent(46,52);
   ResoRow12->SetBinContent(47,62);
   ResoRow12->SetBinContent(48,57);
   ResoRow12->SetBinContent(49,77);
   ResoRow12->SetBinContent(50,85);
   ResoRow12->SetBinContent(51,83);
   ResoRow12->SetBinContent(52,66);
   ResoRow12->SetBinContent(53,61);
   ResoRow12->SetBinContent(54,41);
   ResoRow12->SetBinContent(55,46);
   ResoRow12->SetBinContent(56,44);
   ResoRow12->SetBinContent(57,31);
   ResoRow12->SetBinContent(58,34);
   ResoRow12->SetBinContent(59,34);
   ResoRow12->SetBinContent(60,22);
   ResoRow12->SetBinContent(61,15);
   ResoRow12->SetBinContent(62,8);
   ResoRow12->SetBinContent(63,8);
   ResoRow12->SetBinContent(64,13);
   ResoRow12->SetBinContent(65,7);
   ResoRow12->SetBinContent(66,5);
   ResoRow12->SetBinContent(67,1);
   ResoRow12->SetBinContent(68,2);
   ResoRow12->SetBinContent(69,2);
   ResoRow12->SetBinContent(70,3);
   ResoRow12->SetBinContent(71,2);
   ResoRow12->SetBinContent(73,1);
   ResoRow12->SetBinContent(76,1);
   ResoRow12->SetBinContent(101,2);
   ResoRow12->SetEntries(1111);
   
   TF1 *ResoRowFit12 = new TF1("ResoRowFit12","gaus",-1,1);
   ResoRowFit12->SetFillColor(19);
   ResoRowFit12->SetFillStyle(0);
   ResoRowFit12->SetLineWidth(3);
   ResoRowFit12->SetChisquare(52.83755);
   ResoRowFit12->SetNDF(45);
   ResoRowFit12->SetParameter(0,66.01907);
   ResoRowFit12->SetParError(0,2.685887);
   ResoRowFit12->SetParLimits(0,0,0);
   ResoRowFit12->SetParameter(1,-0.004613849);
   ResoRowFit12->SetParError(1,0.003935474);
   ResoRowFit12->SetParLimits(1,0,0);
   ResoRowFit12->SetParameter(2,0.1274543);
   ResoRowFit12->SetParError(2,0.003403835);
   ResoRowFit12->SetParLimits(2,0,1.372064);
   ResoRow12->GetListOfFunctions()->Add(ResoRowFit12);
   
   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("ResoRow12");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1111   ");
   text = ptstats->AddText("Mean  = -0.004421");
   text = ptstats->AddText("RMS   = 0.1372");
   text = ptstats->AddText("#chi^{2} / ndf = 52.84 / 45");
   text = ptstats->AddText("Constant = 66.02 #pm 2.69 ");
   text = ptstats->AddText("Mean     = -0.004614 #pm 0.003935 ");
   text = ptstats->AddText("Sigma    = 0.1275 #pm 0.0034 ");
   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_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,-10.5,1.25,94.5);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow13 = new TH1F("ResoRow13","",100,-1,1);
   ResoRow13->SetBinContent(0,3);
   ResoRow13->SetBinContent(8,1);
   ResoRow13->SetBinContent(13,1);
   ResoRow13->SetBinContent(21,1);
   ResoRow13->SetBinContent(25,1);
   ResoRow13->SetBinContent(26,1);
   ResoRow13->SetBinContent(27,1);
   ResoRow13->SetBinContent(28,1);
   ResoRow13->SetBinContent(29,1);
   ResoRow13->SetBinContent(31,5);
   ResoRow13->SetBinContent(32,3);
   ResoRow13->SetBinContent(33,6);
   ResoRow13->SetBinContent(34,5);
   ResoRow13->SetBinContent(35,9);
   ResoRow13->SetBinContent(36,7);
   ResoRow13->SetBinContent(37,8);
   ResoRow13->SetBinContent(38,8);
   ResoRow13->SetBinContent(39,15);
   ResoRow13->SetBinContent(40,18);
   ResoRow13->SetBinContent(41,26);
   ResoRow13->SetBinContent(42,27);
   ResoRow13->SetBinContent(43,42);
   ResoRow13->SetBinContent(44,38);
   ResoRow13->SetBinContent(45,41);
   ResoRow13->SetBinContent(46,46);
   ResoRow13->SetBinContent(47,57);
   ResoRow13->SetBinContent(48,65);
   ResoRow13->SetBinContent(49,54);
   ResoRow13->SetBinContent(50,64);
   ResoRow13->SetBinContent(51,67);
   ResoRow13->SetBinContent(52,80);
   ResoRow13->SetBinContent(53,56);
   ResoRow13->SetBinContent(54,47);
   ResoRow13->SetBinContent(55,59);
   ResoRow13->SetBinContent(56,50);
   ResoRow13->SetBinContent(57,37);
   ResoRow13->SetBinContent(58,31);
   ResoRow13->SetBinContent(59,26);
   ResoRow13->SetBinContent(60,16);
   ResoRow13->SetBinContent(61,22);
   ResoRow13->SetBinContent(62,19);
   ResoRow13->SetBinContent(63,7);
   ResoRow13->SetBinContent(64,10);
   ResoRow13->SetBinContent(65,10);
   ResoRow13->SetBinContent(66,3);
   ResoRow13->SetBinContent(67,4);
   ResoRow13->SetBinContent(68,1);
   ResoRow13->SetBinContent(69,3);
   ResoRow13->SetBinContent(71,1);
   ResoRow13->SetBinContent(73,2);
   ResoRow13->SetBinContent(81,1);
   ResoRow13->SetBinContent(101,4);
   ResoRow13->SetEntries(1111);
   
   TF1 *ResoRowFit13 = new TF1("ResoRowFit13","gaus",-1,1);
   ResoRowFit13->SetFillColor(19);
   ResoRowFit13->SetFillStyle(0);
   ResoRowFit13->SetLineWidth(3);
   ResoRowFit13->SetChisquare(44.20028);
   ResoRowFit13->SetNDF(47);
   ResoRowFit13->SetParameter(0,62.38807);
   ResoRowFit13->SetParError(0,2.496311);
   ResoRowFit13->SetParLimits(0,0,0);
   ResoRowFit13->SetParameter(1,-0.004249962);
   ResoRowFit13->SetParError(1,0.004248659);
   ResoRowFit13->SetParLimits(1,0,0);
   ResoRowFit13->SetParameter(2,0.1358482);
   ResoRowFit13->SetParError(2,0.003552247);
   ResoRowFit13->SetParLimits(2,0,1.483734);
   ResoRow13->GetListOfFunctions()->Add(ResoRowFit13);
   
   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("ResoRow13");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1111   ");
   text = ptstats->AddText("Mean  = -0.006879");
   text = ptstats->AddText("RMS   = 0.1488");
   text = ptstats->AddText("#chi^{2} / ndf =  44.2 / 47");
   text = ptstats->AddText("Constant = 62.39 #pm 2.50 ");
   text = ptstats->AddText("Mean     = -0.00425 #pm 0.00425 ");
   text = ptstats->AddText("Sigma    = 0.1358 #pm 0.0036 ");
   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_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,-10.36875,1.25,93.31875);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow14 = new TH1F("ResoRow14","",100,-1,1);
   ResoRow14->SetBinContent(0,2);
   ResoRow14->SetBinContent(1,1);
   ResoRow14->SetBinContent(13,1);
   ResoRow14->SetBinContent(19,1);
   ResoRow14->SetBinContent(26,1);
   ResoRow14->SetBinContent(27,1);
   ResoRow14->SetBinContent(28,1);
   ResoRow14->SetBinContent(30,4);
   ResoRow14->SetBinContent(31,1);
   ResoRow14->SetBinContent(32,2);
   ResoRow14->SetBinContent(33,3);
   ResoRow14->SetBinContent(34,2);
   ResoRow14->SetBinContent(35,4);
   ResoRow14->SetBinContent(36,7);
   ResoRow14->SetBinContent(37,5);
   ResoRow14->SetBinContent(38,7);
   ResoRow14->SetBinContent(39,17);
   ResoRow14->SetBinContent(40,12);
   ResoRow14->SetBinContent(41,20);
   ResoRow14->SetBinContent(42,24);
   ResoRow14->SetBinContent(43,30);
   ResoRow14->SetBinContent(44,35);
   ResoRow14->SetBinContent(45,50);
   ResoRow14->SetBinContent(46,48);
   ResoRow14->SetBinContent(47,58);
   ResoRow14->SetBinContent(48,72);
   ResoRow14->SetBinContent(49,79);
   ResoRow14->SetBinContent(50,79);
   ResoRow14->SetBinContent(51,79);
   ResoRow14->SetBinContent(52,60);
   ResoRow14->SetBinContent(53,63);
   ResoRow14->SetBinContent(54,58);
   ResoRow14->SetBinContent(55,45);
   ResoRow14->SetBinContent(56,51);
   ResoRow14->SetBinContent(57,48);
   ResoRow14->SetBinContent(58,39);
   ResoRow14->SetBinContent(59,13);
   ResoRow14->SetBinContent(60,21);
   ResoRow14->SetBinContent(61,18);
   ResoRow14->SetBinContent(62,11);
   ResoRow14->SetBinContent(63,5);
   ResoRow14->SetBinContent(64,5);
   ResoRow14->SetBinContent(65,9);
   ResoRow14->SetBinContent(66,4);
   ResoRow14->SetBinContent(67,1);
   ResoRow14->SetBinContent(68,3);
   ResoRow14->SetBinContent(69,2);
   ResoRow14->SetBinContent(70,1);
   ResoRow14->SetBinContent(71,2);
   ResoRow14->SetBinContent(73,1);
   ResoRow14->SetBinContent(74,1);
   ResoRow14->SetBinContent(75,1);
   ResoRow14->SetBinContent(78,1);
   ResoRow14->SetBinContent(101,2);
   ResoRow14->SetEntries(1111);
   
   TF1 *ResoRowFit14 = new TF1("ResoRowFit14","gaus",-1,1);
   ResoRowFit14->SetFillColor(19);
   ResoRowFit14->SetFillStyle(0);
   ResoRowFit14->SetLineWidth(3);
   ResoRowFit14->SetChisquare(55.43549);
   ResoRowFit14->SetNDF(49);
   ResoRowFit14->SetParameter(0,69.98813);
   ResoRowFit14->SetParError(0,2.847584);
   ResoRowFit14->SetParLimits(0,0,0);
   ResoRowFit14->SetParameter(1,-0.002902569);
   ResoRowFit14->SetParError(1,0.003705771);
   ResoRowFit14->SetParLimits(1,0,0);
   ResoRowFit14->SetParameter(2,0.1199106);
   ResoRowFit14->SetParError(2,0.003191404);
   ResoRowFit14->SetParLimits(2,0,1.390647);
   ResoRow14->GetListOfFunctions()->Add(ResoRowFit14);
   
   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("ResoRow14");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1111   ");
   text = ptstats->AddText("Mean  = -0.002601");
   text = ptstats->AddText("RMS   = 0.1392");
   text = ptstats->AddText("#chi^{2} / ndf = 55.44 / 49");
   text = ptstats->AddText("Constant = 69.99 #pm 2.85 ");
   text = ptstats->AddText("Mean     = -0.002903 #pm 0.003706 ");
   text = ptstats->AddText("Sigma    = 0.1199 #pm 0.0032 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow14->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow14->GetListOfFunctions());
   ResoRow14->GetXaxis()->SetTitle("residual / mm");
   ResoRow14->GetYaxis()->SetTitle("counts");
   ResoRow14->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.2875,1.25,101.5875);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow15 = new TH1F("ResoRow15","",100,-1,1);
   ResoRow15->SetBinContent(0,4);
   ResoRow15->SetBinContent(19,1);
   ResoRow15->SetBinContent(23,1);
   ResoRow15->SetBinContent(29,2);
   ResoRow15->SetBinContent(31,1);
   ResoRow15->SetBinContent(32,2);
   ResoRow15->SetBinContent(33,2);
   ResoRow15->SetBinContent(34,2);
   ResoRow15->SetBinContent(35,1);
   ResoRow15->SetBinContent(36,5);
   ResoRow15->SetBinContent(37,6);
   ResoRow15->SetBinContent(38,10);
   ResoRow15->SetBinContent(39,15);
   ResoRow15->SetBinContent(40,21);
   ResoRow15->SetBinContent(41,18);
   ResoRow15->SetBinContent(42,20);
   ResoRow15->SetBinContent(43,28);
   ResoRow15->SetBinContent(44,45);
   ResoRow15->SetBinContent(45,35);
   ResoRow15->SetBinContent(46,59);
   ResoRow15->SetBinContent(47,71);
   ResoRow15->SetBinContent(48,62);
   ResoRow15->SetBinContent(49,73);
   ResoRow15->SetBinContent(50,86);
   ResoRow15->SetBinContent(51,70);
   ResoRow15->SetBinContent(52,74);
   ResoRow15->SetBinContent(53,50);
   ResoRow15->SetBinContent(54,59);
   ResoRow15->SetBinContent(55,59);
   ResoRow15->SetBinContent(56,45);
   ResoRow15->SetBinContent(57,41);
   ResoRow15->SetBinContent(58,35);
   ResoRow15->SetBinContent(59,29);
   ResoRow15->SetBinContent(60,18);
   ResoRow15->SetBinContent(61,8);
   ResoRow15->SetBinContent(62,11);
   ResoRow15->SetBinContent(63,12);
   ResoRow15->SetBinContent(64,6);
   ResoRow15->SetBinContent(65,2);
   ResoRow15->SetBinContent(66,3);
   ResoRow15->SetBinContent(67,4);
   ResoRow15->SetBinContent(68,4);
   ResoRow15->SetBinContent(70,1);
   ResoRow15->SetBinContent(71,1);
   ResoRow15->SetBinContent(72,2);
   ResoRow15->SetBinContent(73,2);
   ResoRow15->SetBinContent(78,1);
   ResoRow15->SetBinContent(79,1);
   ResoRow15->SetBinContent(101,3);
   ResoRow15->SetEntries(1111);
   
   TF1 *ResoRowFit15 = new TF1("ResoRowFit15","gaus",-1,1);
   ResoRowFit15->SetFillColor(19);
   ResoRowFit15->SetFillStyle(0);
   ResoRowFit15->SetLineWidth(3);
   ResoRowFit15->SetChisquare(49.72562);
   ResoRowFit15->SetNDF(44);
   ResoRowFit15->SetParameter(0,70.99157);
   ResoRowFit15->SetParError(0,2.791717);
   ResoRowFit15->SetParLimits(0,0,0);
   ResoRowFit15->SetParameter(1,-0.00147741);
   ResoRowFit15->SetParError(1,0.003668159);
   ResoRowFit15->SetParLimits(1,0,0);
   ResoRowFit15->SetParameter(2,0.1185897);
   ResoRowFit15->SetParError(2,0.002924074);
   ResoRowFit15->SetParLimits(2,0,1.313889);
   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 = 1111   ");
   text = ptstats->AddText("Mean  = 9.896e-05");
   text = ptstats->AddText("RMS   = 0.1312");
   text = ptstats->AddText("#chi^{2} / ndf = 49.73 / 44");
   text = ptstats->AddText("Constant = 70.99 #pm 2.79 ");
   text = ptstats->AddText("Mean     = -0.001477 #pm 0.003668 ");
   text = ptstats->AddText("Sigma    = 0.1186 #pm 0.0029 ");
   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_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.63125,1.25,95.68125);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow16 = new TH1F("ResoRow16","",100,-1,1);
   ResoRow16->SetBinContent(0,5);
   ResoRow16->SetBinContent(20,1);
   ResoRow16->SetBinContent(24,1);
   ResoRow16->SetBinContent(27,2);
   ResoRow16->SetBinContent(28,2);
   ResoRow16->SetBinContent(32,4);
   ResoRow16->SetBinContent(33,3);
   ResoRow16->SetBinContent(34,3);
   ResoRow16->SetBinContent(35,1);
   ResoRow16->SetBinContent(36,4);
   ResoRow16->SetBinContent(37,10);
   ResoRow16->SetBinContent(38,9);
   ResoRow16->SetBinContent(39,9);
   ResoRow16->SetBinContent(40,15);
   ResoRow16->SetBinContent(41,25);
   ResoRow16->SetBinContent(42,24);
   ResoRow16->SetBinContent(43,35);
   ResoRow16->SetBinContent(44,36);
   ResoRow16->SetBinContent(45,43);
   ResoRow16->SetBinContent(46,58);
   ResoRow16->SetBinContent(47,59);
   ResoRow16->SetBinContent(48,62);
   ResoRow16->SetBinContent(49,75);
   ResoRow16->SetBinContent(50,67);
   ResoRow16->SetBinContent(51,81);
   ResoRow16->SetBinContent(52,81);
   ResoRow16->SetBinContent(53,63);
   ResoRow16->SetBinContent(54,51);
   ResoRow16->SetBinContent(55,53);
   ResoRow16->SetBinContent(56,55);
   ResoRow16->SetBinContent(57,32);
   ResoRow16->SetBinContent(58,25);
   ResoRow16->SetBinContent(59,28);
   ResoRow16->SetBinContent(60,20);
   ResoRow16->SetBinContent(61,18);
   ResoRow16->SetBinContent(62,10);
   ResoRow16->SetBinContent(63,9);
   ResoRow16->SetBinContent(64,7);
   ResoRow16->SetBinContent(65,8);
   ResoRow16->SetBinContent(66,5);
   ResoRow16->SetBinContent(67,1);
   ResoRow16->SetBinContent(68,1);
   ResoRow16->SetBinContent(69,3);
   ResoRow16->SetBinContent(70,1);
   ResoRow16->SetBinContent(71,1);
   ResoRow16->SetBinContent(75,1);
   ResoRow16->SetBinContent(84,1);
   ResoRow16->SetBinContent(101,3);
   ResoRow16->SetEntries(1111);
   
   TF1 *ResoRowFit16 = new TF1("ResoRowFit16","gaus",-1,1);
   ResoRowFit16->SetFillColor(19);
   ResoRowFit16->SetFillStyle(0);
   ResoRowFit16->SetLineWidth(3);
   ResoRowFit16->SetChisquare(38.30796);
   ResoRowFit16->SetNDF(43);
   ResoRowFit16->SetParameter(0,70.28983);
   ResoRowFit16->SetParError(0,2.744751);
   ResoRowFit16->SetParLimits(0,0,0);
   ResoRowFit16->SetParameter(1,-0.0001525719);
   ResoRowFit16->SetParError(1,0.003736122);
   ResoRowFit16->SetParLimits(1,0,0);
   ResoRowFit16->SetParameter(2,0.1209737);
   ResoRowFit16->SetParError(2,0.002957551);
   ResoRowFit16->SetParLimits(2,0,1.330246);
   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 = 1111   ");
   text = ptstats->AddText("Mean  = -0.001673");
   text = ptstats->AddText("RMS   = 0.1332");
   text = ptstats->AddText("#chi^{2} / ndf = 38.31 / 43");
   text = ptstats->AddText("Constant = 70.29 #pm 2.74 ");
   text = ptstats->AddText("Mean     = -0.0001526 #pm 0.0037361 ");
   text = ptstats->AddText("Sigma    = 0.121 #pm 0.003 ");
   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_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,-11.8125,1.25,106.3125);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow17 = new TH1F("ResoRow17","",100,-1,1);
   ResoRow17->SetBinContent(0,5);
   ResoRow17->SetBinContent(15,1);
   ResoRow17->SetBinContent(18,1);
   ResoRow17->SetBinContent(19,1);
   ResoRow17->SetBinContent(26,2);
   ResoRow17->SetBinContent(28,3);
   ResoRow17->SetBinContent(29,1);
   ResoRow17->SetBinContent(30,2);
   ResoRow17->SetBinContent(31,1);
   ResoRow17->SetBinContent(33,7);
   ResoRow17->SetBinContent(34,5);
   ResoRow17->SetBinContent(35,4);
   ResoRow17->SetBinContent(36,6);
   ResoRow17->SetBinContent(37,3);
   ResoRow17->SetBinContent(38,6);
   ResoRow17->SetBinContent(39,8);
   ResoRow17->SetBinContent(40,11);
   ResoRow17->SetBinContent(41,23);
   ResoRow17->SetBinContent(42,27);
   ResoRow17->SetBinContent(43,38);
   ResoRow17->SetBinContent(44,32);
   ResoRow17->SetBinContent(45,55);
   ResoRow17->SetBinContent(46,60);
   ResoRow17->SetBinContent(47,56);
   ResoRow17->SetBinContent(48,70);
   ResoRow17->SetBinContent(49,90);
   ResoRow17->SetBinContent(50,54);
   ResoRow17->SetBinContent(51,66);
   ResoRow17->SetBinContent(52,72);
   ResoRow17->SetBinContent(53,68);
   ResoRow17->SetBinContent(54,50);
   ResoRow17->SetBinContent(55,51);
   ResoRow17->SetBinContent(56,42);
   ResoRow17->SetBinContent(57,42);
   ResoRow17->SetBinContent(58,44);
   ResoRow17->SetBinContent(59,23);
   ResoRow17->SetBinContent(60,18);
   ResoRow17->SetBinContent(61,13);
   ResoRow17->SetBinContent(62,12);
   ResoRow17->SetBinContent(63,13);
   ResoRow17->SetBinContent(64,2);
   ResoRow17->SetBinContent(65,5);
   ResoRow17->SetBinContent(66,4);
   ResoRow17->SetBinContent(67,5);
   ResoRow17->SetBinContent(68,2);
   ResoRow17->SetBinContent(70,2);
   ResoRow17->SetBinContent(72,1);
   ResoRow17->SetBinContent(74,1);
   ResoRow17->SetBinContent(75,1);
   ResoRow17->SetBinContent(80,1);
   ResoRow17->SetBinContent(99,1);
   ResoRow17->SetEntries(1111);
   
   TF1 *ResoRowFit17 = new TF1("ResoRowFit17","gaus",-1,1);
   ResoRowFit17->SetFillColor(19);
   ResoRowFit17->SetFillStyle(0);
   ResoRowFit17->SetLineWidth(3);
   ResoRowFit17->SetChisquare(65.93287);
   ResoRowFit17->SetNDF(47);
   ResoRowFit17->SetParameter(0,69.99297);
   ResoRowFit17->SetParError(0,2.764836);
   ResoRowFit17->SetParLimits(0,0,0);
   ResoRowFit17->SetParameter(1,-0.0009094062);
   ResoRowFit17->SetParError(1,0.003707384);
   ResoRowFit17->SetParLimits(1,0,0);
   ResoRowFit17->SetParameter(2,0.1187185);
   ResoRowFit17->SetParError(2,0.002941144);
   ResoRowFit17->SetParLimits(2,0,1.40967);
   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 = 1111   ");
   text = ptstats->AddText("Mean  = -0.003635");
   text = ptstats->AddText("RMS   = 0.1409");
   text = ptstats->AddText("#chi^{2} / ndf = 65.93 / 47");
   text = ptstats->AddText("Constant = 69.99 #pm 2.76 ");
   text = ptstats->AddText("Mean     = -0.0009094 #pm 0.0037074 ");
   text = ptstats->AddText("Sigma    = 0.1187 #pm 0.0029 ");
   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_6->Modified();
   c2->cd();
   c2->Modified();
   c2->cd();
   c2->SetSelected(c2);
}
