{
//=========Macro generated from canvas: c2/
//=========  (Tue Jun  8 19: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,-11.41875,1.25,102.7688);
   c2_1->SetFillColor(0);
   c2_1->SetBorderSize(2);
   
   TH1F *ResoRow12 = new TH1F("ResoRow12","",100,-1,1);
   ResoRow12->SetBinContent(0,3);
   ResoRow12->SetBinContent(16,1);
   ResoRow12->SetBinContent(20,1);
   ResoRow12->SetBinContent(26,1);
   ResoRow12->SetBinContent(28,1);
   ResoRow12->SetBinContent(30,2);
   ResoRow12->SetBinContent(31,3);
   ResoRow12->SetBinContent(32,5);
   ResoRow12->SetBinContent(33,2);
   ResoRow12->SetBinContent(35,3);
   ResoRow12->SetBinContent(36,5);
   ResoRow12->SetBinContent(37,7);
   ResoRow12->SetBinContent(38,5);
   ResoRow12->SetBinContent(39,11);
   ResoRow12->SetBinContent(40,18);
   ResoRow12->SetBinContent(41,29);
   ResoRow12->SetBinContent(42,22);
   ResoRow12->SetBinContent(43,35);
   ResoRow12->SetBinContent(44,42);
   ResoRow12->SetBinContent(45,42);
   ResoRow12->SetBinContent(46,48);
   ResoRow12->SetBinContent(47,60);
   ResoRow12->SetBinContent(48,61);
   ResoRow12->SetBinContent(49,70);
   ResoRow12->SetBinContent(50,85);
   ResoRow12->SetBinContent(51,87);
   ResoRow12->SetBinContent(52,82);
   ResoRow12->SetBinContent(53,59);
   ResoRow12->SetBinContent(54,67);
   ResoRow12->SetBinContent(55,69);
   ResoRow12->SetBinContent(56,40);
   ResoRow12->SetBinContent(57,39);
   ResoRow12->SetBinContent(58,29);
   ResoRow12->SetBinContent(59,21);
   ResoRow12->SetBinContent(60,20);
   ResoRow12->SetBinContent(61,19);
   ResoRow12->SetBinContent(62,7);
   ResoRow12->SetBinContent(63,3);
   ResoRow12->SetBinContent(64,6);
   ResoRow12->SetBinContent(65,3);
   ResoRow12->SetBinContent(66,2);
   ResoRow12->SetBinContent(67,3);
   ResoRow12->SetBinContent(69,5);
   ResoRow12->SetBinContent(70,3);
   ResoRow12->SetBinContent(71,1);
   ResoRow12->SetBinContent(77,1);
   ResoRow12->SetBinContent(78,1);
   ResoRow12->SetBinContent(83,1);
   ResoRow12->SetBinContent(101,1);
   ResoRow12->SetEntries(1131);
   
   TF1 *ResoRowFit12 = new TF1("ResoRowFit12","gaus",-1,1);
   ResoRowFit12->SetFillColor(19);
   ResoRowFit12->SetFillStyle(0);
   ResoRowFit12->SetLineWidth(3);
   ResoRowFit12->SetChisquare(53.73109);
   ResoRowFit12->SetNDF(44);
   ResoRowFit12->SetParameter(0,74.5116);
   ResoRowFit12->SetParError(0,2.942494);
   ResoRowFit12->SetParLimits(0,0,0);
   ResoRowFit12->SetParameter(1,-0.003685558);
   ResoRowFit12->SetParError(1,0.003594082);
   ResoRowFit12->SetParLimits(1,0,0);
   ResoRowFit12->SetParameter(2,0.1151678);
   ResoRowFit12->SetParError(2,0.002935731);
   ResoRowFit12->SetParLimits(2,0,1.320897);
   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 = 1131   ");
   text = ptstats->AddText("Mean  = -0.003319");
   text = ptstats->AddText("RMS   = 0.1317");
   text = ptstats->AddText("#chi^{2} / ndf = 53.73 / 44");
   text = ptstats->AddText("Constant = 74.51 #pm 2.94 ");
   text = ptstats->AddText("Mean     = -0.003686 #pm 0.003594 ");
   text = ptstats->AddText("Sigma    = 0.1152 #pm 0.0029 ");
   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,-11.15625,1.25,100.4063);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow13 = new TH1F("ResoRow13","",100,-1,1);
   ResoRow13->SetBinContent(0,5);
   ResoRow13->SetBinContent(10,1);
   ResoRow13->SetBinContent(16,1);
   ResoRow13->SetBinContent(20,1);
   ResoRow13->SetBinContent(21,1);
   ResoRow13->SetBinContent(24,1);
   ResoRow13->SetBinContent(25,1);
   ResoRow13->SetBinContent(26,1);
   ResoRow13->SetBinContent(29,1);
   ResoRow13->SetBinContent(30,2);
   ResoRow13->SetBinContent(31,1);
   ResoRow13->SetBinContent(32,3);
   ResoRow13->SetBinContent(33,3);
   ResoRow13->SetBinContent(34,2);
   ResoRow13->SetBinContent(35,6);
   ResoRow13->SetBinContent(36,5);
   ResoRow13->SetBinContent(37,8);
   ResoRow13->SetBinContent(38,15);
   ResoRow13->SetBinContent(39,14);
   ResoRow13->SetBinContent(40,9);
   ResoRow13->SetBinContent(41,25);
   ResoRow13->SetBinContent(42,18);
   ResoRow13->SetBinContent(43,34);
   ResoRow13->SetBinContent(44,25);
   ResoRow13->SetBinContent(45,36);
   ResoRow13->SetBinContent(46,61);
   ResoRow13->SetBinContent(47,67);
   ResoRow13->SetBinContent(48,83);
   ResoRow13->SetBinContent(49,85);
   ResoRow13->SetBinContent(50,84);
   ResoRow13->SetBinContent(51,65);
   ResoRow13->SetBinContent(52,71);
   ResoRow13->SetBinContent(53,50);
   ResoRow13->SetBinContent(54,68);
   ResoRow13->SetBinContent(55,50);
   ResoRow13->SetBinContent(56,36);
   ResoRow13->SetBinContent(57,50);
   ResoRow13->SetBinContent(58,33);
   ResoRow13->SetBinContent(59,21);
   ResoRow13->SetBinContent(60,18);
   ResoRow13->SetBinContent(61,14);
   ResoRow13->SetBinContent(62,17);
   ResoRow13->SetBinContent(63,8);
   ResoRow13->SetBinContent(64,6);
   ResoRow13->SetBinContent(65,4);
   ResoRow13->SetBinContent(66,3);
   ResoRow13->SetBinContent(67,4);
   ResoRow13->SetBinContent(68,3);
   ResoRow13->SetBinContent(69,1);
   ResoRow13->SetBinContent(70,3);
   ResoRow13->SetBinContent(71,2);
   ResoRow13->SetBinContent(72,1);
   ResoRow13->SetBinContent(75,1);
   ResoRow13->SetBinContent(76,1);
   ResoRow13->SetBinContent(78,1);
   ResoRow13->SetBinContent(101,1);
   ResoRow13->SetEntries(1131);
   
   TF1 *ResoRowFit13 = new TF1("ResoRowFit13","gaus",-1,1);
   ResoRowFit13->SetFillColor(19);
   ResoRowFit13->SetFillStyle(0);
   ResoRowFit13->SetLineWidth(3);
   ResoRowFit13->SetChisquare(75.87594);
   ResoRowFit13->SetNDF(51);
   ResoRowFit13->SetParameter(0,68.30035);
   ResoRowFit13->SetParError(0,2.886684);
   ResoRowFit13->SetParLimits(0,0,0);
   ResoRowFit13->SetParameter(1,0.001086575);
   ResoRowFit13->SetParError(1,0.003792331);
   ResoRowFit13->SetParLimits(1,0,0);
   ResoRowFit13->SetParameter(2,0.1225894);
   ResoRowFit13->SetParError(2,0.003548896);
   ResoRowFit13->SetParLimits(2,0,1.401957);
   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 = 1131   ");
   text = ptstats->AddText("Mean  = -0.004116");
   text = ptstats->AddText("RMS   =   0.14");
   text = ptstats->AddText("#chi^{2} / ndf = 75.88 / 51");
   text = ptstats->AddText("Constant =  68.3 #pm 2.9 ");
   text = ptstats->AddText("Mean     = 0.001087 #pm 0.003792 ");
   text = ptstats->AddText("Sigma    = 0.1226 #pm 0.0035 ");
   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,-11.94375,1.25,107.4938);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   
   TH1F *ResoRow14 = new TH1F("ResoRow14","",100,-1,1);
   ResoRow14->SetBinContent(0,4);
   ResoRow14->SetBinContent(13,1);
   ResoRow14->SetBinContent(25,1);
   ResoRow14->SetBinContent(26,1);
   ResoRow14->SetBinContent(28,2);
   ResoRow14->SetBinContent(30,2);
   ResoRow14->SetBinContent(31,2);
   ResoRow14->SetBinContent(32,2);
   ResoRow14->SetBinContent(33,2);
   ResoRow14->SetBinContent(34,4);
   ResoRow14->SetBinContent(35,4);
   ResoRow14->SetBinContent(36,5);
   ResoRow14->SetBinContent(37,6);
   ResoRow14->SetBinContent(38,3);
   ResoRow14->SetBinContent(39,3);
   ResoRow14->SetBinContent(40,16);
   ResoRow14->SetBinContent(41,12);
   ResoRow14->SetBinContent(42,15);
   ResoRow14->SetBinContent(43,28);
   ResoRow14->SetBinContent(44,32);
   ResoRow14->SetBinContent(45,45);
   ResoRow14->SetBinContent(46,56);
   ResoRow14->SetBinContent(47,67);
   ResoRow14->SetBinContent(48,73);
   ResoRow14->SetBinContent(49,85);
   ResoRow14->SetBinContent(50,91);
   ResoRow14->SetBinContent(51,89);
   ResoRow14->SetBinContent(52,79);
   ResoRow14->SetBinContent(53,66);
   ResoRow14->SetBinContent(54,60);
   ResoRow14->SetBinContent(55,57);
   ResoRow14->SetBinContent(56,53);
   ResoRow14->SetBinContent(57,41);
   ResoRow14->SetBinContent(58,29);
   ResoRow14->SetBinContent(59,28);
   ResoRow14->SetBinContent(60,13);
   ResoRow14->SetBinContent(61,23);
   ResoRow14->SetBinContent(62,11);
   ResoRow14->SetBinContent(63,6);
   ResoRow14->SetBinContent(64,1);
   ResoRow14->SetBinContent(65,3);
   ResoRow14->SetBinContent(66,4);
   ResoRow14->SetBinContent(67,1);
   ResoRow14->SetBinContent(68,2);
   ResoRow14->SetBinContent(70,1);
   ResoRow14->SetBinContent(77,1);
   ResoRow14->SetBinContent(101,1);
   ResoRow14->SetEntries(1131);
   
   TF1 *ResoRowFit14 = new TF1("ResoRowFit14","gaus",-1,1);
   ResoRowFit14->SetFillColor(19);
   ResoRowFit14->SetFillStyle(0);
   ResoRowFit14->SetLineWidth(3);
   ResoRowFit14->SetChisquare(55.30036);
   ResoRowFit14->SetNDF(42);
   ResoRowFit14->SetParameter(0,83.23441);
   ResoRowFit14->SetParError(0,3.214059);
   ResoRowFit14->SetParLimits(0,0,0);
   ResoRowFit14->SetParameter(1,0.005404693);
   ResoRowFit14->SetParError(1,0.003142784);
   ResoRowFit14->SetParLimits(1,0,0);
   ResoRowFit14->SetParameter(2,0.102659);
   ResoRowFit14->SetParError(2,0.002429113);
   ResoRowFit14->SetParLimits(2,0,1.218629);
   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 = 1131   ");
   text = ptstats->AddText("Mean  = 0.0006924");
   text = ptstats->AddText("RMS   = 0.1217");
   text = ptstats->AddText("#chi^{2} / ndf =  55.3 / 42");
   text = ptstats->AddText("Constant = 83.23 #pm 3.21 ");
   text = ptstats->AddText("Mean     = 0.005405 #pm 0.003143 ");
   text = ptstats->AddText("Sigma    = 0.1027 #pm 0.0024 ");
   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,-14.9625,1.25,134.6625);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   
   TH1F *ResoRow15 = new TH1F("ResoRow15","",100,-1,1);
   ResoRow15->SetBinContent(0,3);
   ResoRow15->SetBinContent(2,1);
   ResoRow15->SetBinContent(10,1);
   ResoRow15->SetBinContent(11,1);
   ResoRow15->SetBinContent(25,2);
   ResoRow15->SetBinContent(28,1);
   ResoRow15->SetBinContent(29,1);
   ResoRow15->SetBinContent(30,1);
   ResoRow15->SetBinContent(32,1);
   ResoRow15->SetBinContent(34,1);
   ResoRow15->SetBinContent(35,3);
   ResoRow15->SetBinContent(36,9);
   ResoRow15->SetBinContent(37,1);
   ResoRow15->SetBinContent(38,8);
   ResoRow15->SetBinContent(39,13);
   ResoRow15->SetBinContent(40,11);
   ResoRow15->SetBinContent(41,19);
   ResoRow15->SetBinContent(42,22);
   ResoRow15->SetBinContent(43,32);
   ResoRow15->SetBinContent(44,48);
   ResoRow15->SetBinContent(45,53);
   ResoRow15->SetBinContent(46,64);
   ResoRow15->SetBinContent(47,63);
   ResoRow15->SetBinContent(48,64);
   ResoRow15->SetBinContent(49,114);
   ResoRow15->SetBinContent(50,74);
   ResoRow15->SetBinContent(51,70);
   ResoRow15->SetBinContent(52,79);
   ResoRow15->SetBinContent(53,58);
   ResoRow15->SetBinContent(54,57);
   ResoRow15->SetBinContent(55,41);
   ResoRow15->SetBinContent(56,46);
   ResoRow15->SetBinContent(57,38);
   ResoRow15->SetBinContent(58,32);
   ResoRow15->SetBinContent(59,18);
   ResoRow15->SetBinContent(60,25);
   ResoRow15->SetBinContent(61,15);
   ResoRow15->SetBinContent(62,9);
   ResoRow15->SetBinContent(63,8);
   ResoRow15->SetBinContent(64,4);
   ResoRow15->SetBinContent(65,2);
   ResoRow15->SetBinContent(66,3);
   ResoRow15->SetBinContent(67,1);
   ResoRow15->SetBinContent(68,3);
   ResoRow15->SetBinContent(69,4);
   ResoRow15->SetBinContent(73,1);
   ResoRow15->SetBinContent(77,1);
   ResoRow15->SetBinContent(88,2);
   ResoRow15->SetBinContent(97,1);
   ResoRow15->SetBinContent(99,1);
   ResoRow15->SetBinContent(101,1);
   ResoRow15->SetEntries(1131);
   
   TF1 *ResoRowFit15 = new TF1("ResoRowFit15","gaus",-1,1);
   ResoRowFit15->SetFillColor(19);
   ResoRowFit15->SetFillStyle(0);
   ResoRowFit15->SetLineWidth(3);
   ResoRowFit15->SetChisquare(67.94368);
   ResoRowFit15->SetNDF(46);
   ResoRowFit15->SetParameter(0,76.58641);
   ResoRowFit15->SetParError(0,2.963059);
   ResoRowFit15->SetParLimits(0,0,0);
   ResoRowFit15->SetParameter(1,-0.003064247);
   ResoRowFit15->SetParError(1,0.003516119);
   ResoRowFit15->SetParLimits(1,0,0);
   ResoRowFit15->SetParameter(2,0.1104363);
   ResoRowFit15->SetParError(2,0.00261936);
   ResoRowFit15->SetParLimits(2,0,1.394034);
   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 = 1131   ");
   text = ptstats->AddText("Mean  = -0.004564");
   text = ptstats->AddText("RMS   = 0.1391");
   text = ptstats->AddText("#chi^{2} / ndf = 67.94 / 46");
   text = ptstats->AddText("Constant = 76.59 #pm 2.96 ");
   text = ptstats->AddText("Mean     = -0.003064 #pm 0.003516 ");
   text = ptstats->AddText("Sigma    = 0.1104 #pm 0.0026 ");
   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,-12.3375,1.25,111.0375);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   
   TH1F *ResoRow16 = new TH1F("ResoRow16","",100,-1,1);
   ResoRow16->SetBinContent(0,5);
   ResoRow16->SetBinContent(3,1);
   ResoRow16->SetBinContent(5,1);
   ResoRow16->SetBinContent(21,1);
   ResoRow16->SetBinContent(25,1);
   ResoRow16->SetBinContent(29,1);
   ResoRow16->SetBinContent(31,1);
   ResoRow16->SetBinContent(32,2);
   ResoRow16->SetBinContent(35,4);
   ResoRow16->SetBinContent(36,3);
   ResoRow16->SetBinContent(37,6);
   ResoRow16->SetBinContent(38,5);
   ResoRow16->SetBinContent(39,8);
   ResoRow16->SetBinContent(40,8);
   ResoRow16->SetBinContent(41,22);
   ResoRow16->SetBinContent(42,28);
   ResoRow16->SetBinContent(43,21);
   ResoRow16->SetBinContent(44,31);
   ResoRow16->SetBinContent(45,46);
   ResoRow16->SetBinContent(46,51);
   ResoRow16->SetBinContent(47,74);
   ResoRow16->SetBinContent(48,67);
   ResoRow16->SetBinContent(49,86);
   ResoRow16->SetBinContent(50,94);
   ResoRow16->SetBinContent(51,82);
   ResoRow16->SetBinContent(52,86);
   ResoRow16->SetBinContent(53,73);
   ResoRow16->SetBinContent(54,64);
   ResoRow16->SetBinContent(55,61);
   ResoRow16->SetBinContent(56,52);
   ResoRow16->SetBinContent(57,32);
   ResoRow16->SetBinContent(58,26);
   ResoRow16->SetBinContent(59,26);
   ResoRow16->SetBinContent(60,14);
   ResoRow16->SetBinContent(61,11);
   ResoRow16->SetBinContent(62,8);
   ResoRow16->SetBinContent(63,11);
   ResoRow16->SetBinContent(64,5);
   ResoRow16->SetBinContent(65,5);
   ResoRow16->SetBinContent(66,1);
   ResoRow16->SetBinContent(69,1);
   ResoRow16->SetBinContent(70,1);
   ResoRow16->SetBinContent(71,1);
   ResoRow16->SetBinContent(79,1);
   ResoRow16->SetBinContent(98,1);
   ResoRow16->SetBinContent(101,2);
   ResoRow16->SetEntries(1131);
   
   TF1 *ResoRowFit16 = new TF1("ResoRowFit16","gaus",-1,1);
   ResoRowFit16->SetFillColor(19);
   ResoRowFit16->SetFillStyle(0);
   ResoRowFit16->SetLineWidth(3);
   ResoRowFit16->SetChisquare(39.29166);
   ResoRowFit16->SetNDF(41);
   ResoRowFit16->SetParameter(0,81.61306);
   ResoRowFit16->SetParError(0,3.290056);
   ResoRowFit16->SetParLimits(0,0,0);
   ResoRowFit16->SetParameter(1,0.002289398);
   ResoRowFit16->SetParError(1,0.003256775);
   ResoRowFit16->SetParLimits(1,0,0);
   ResoRowFit16->SetParameter(2,0.1062551);
   ResoRowFit16->SetParError(2,0.002870145);
   ResoRowFit16->SetParLimits(2,0,1.249467);
   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 = 1131   ");
   text = ptstats->AddText("Mean  = -0.0001319");
   text = ptstats->AddText("RMS   = 0.1251");
   text = ptstats->AddText("#chi^{2} / ndf = 39.29 / 41");
   text = ptstats->AddText("Constant = 81.61 #pm 3.29 ");
   text = ptstats->AddText("Mean     = 0.002289 #pm 0.003257 ");
   text = ptstats->AddText("Sigma    = 0.1063 #pm 0.0029 ");
   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,-12.3375,1.25,111.0375);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   
   TH1F *ResoRow17 = new TH1F("ResoRow17","",100,-1,1);
   ResoRow17->SetBinContent(0,7);
   ResoRow17->SetBinContent(10,1);
   ResoRow17->SetBinContent(12,1);
   ResoRow17->SetBinContent(13,1);
   ResoRow17->SetBinContent(21,2);
   ResoRow17->SetBinContent(25,1);
   ResoRow17->SetBinContent(27,1);
   ResoRow17->SetBinContent(30,1);
   ResoRow17->SetBinContent(31,1);
   ResoRow17->SetBinContent(32,2);
   ResoRow17->SetBinContent(33,1);
   ResoRow17->SetBinContent(34,2);
   ResoRow17->SetBinContent(35,6);
   ResoRow17->SetBinContent(36,3);
   ResoRow17->SetBinContent(37,6);
   ResoRow17->SetBinContent(38,4);
   ResoRow17->SetBinContent(39,8);
   ResoRow17->SetBinContent(40,13);
   ResoRow17->SetBinContent(41,19);
   ResoRow17->SetBinContent(42,30);
   ResoRow17->SetBinContent(43,29);
   ResoRow17->SetBinContent(44,36);
   ResoRow17->SetBinContent(45,42);
   ResoRow17->SetBinContent(46,51);
   ResoRow17->SetBinContent(47,60);
   ResoRow17->SetBinContent(48,81);
   ResoRow17->SetBinContent(49,78);
   ResoRow17->SetBinContent(50,94);
   ResoRow17->SetBinContent(51,80);
   ResoRow17->SetBinContent(52,79);
   ResoRow17->SetBinContent(53,66);
   ResoRow17->SetBinContent(54,58);
   ResoRow17->SetBinContent(55,62);
   ResoRow17->SetBinContent(56,44);
   ResoRow17->SetBinContent(57,27);
   ResoRow17->SetBinContent(58,32);
   ResoRow17->SetBinContent(59,28);
   ResoRow17->SetBinContent(60,18);
   ResoRow17->SetBinContent(61,12);
   ResoRow17->SetBinContent(62,11);
   ResoRow17->SetBinContent(63,8);
   ResoRow17->SetBinContent(64,8);
   ResoRow17->SetBinContent(65,6);
   ResoRow17->SetBinContent(66,1);
   ResoRow17->SetBinContent(67,2);
   ResoRow17->SetBinContent(68,4);
   ResoRow17->SetBinContent(72,1);
   ResoRow17->SetBinContent(74,1);
   ResoRow17->SetBinContent(95,1);
   ResoRow17->SetBinContent(98,1);
   ResoRow17->SetEntries(1131);
   
   TF1 *ResoRowFit17 = new TF1("ResoRowFit17","gaus",-1,1);
   ResoRowFit17->SetFillColor(19);
   ResoRowFit17->SetFillStyle(0);
   ResoRowFit17->SetLineWidth(3);
   ResoRowFit17->SetChisquare(43.8428);
   ResoRowFit17->SetNDF(46);
   ResoRowFit17->SetParameter(0,76.44643);
   ResoRowFit17->SetParError(0,3.042408);
   ResoRowFit17->SetParLimits(0,0,0);
   ResoRowFit17->SetParameter(1,3.793823e-05);
   ResoRowFit17->SetParError(1,0.003453227);
   ResoRowFit17->SetParLimits(1,0,0);
   ResoRowFit17->SetParameter(2,0.112819);
   ResoRowFit17->SetParError(2,0.002917312);
   ResoRowFit17->SetParLimits(2,0,1.351981);
   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 = 1131   ");
   text = ptstats->AddText("Mean  = -0.001734");
   text = ptstats->AddText("RMS   = 0.1348");
   text = ptstats->AddText("#chi^{2} / ndf = 43.84 / 46");
   text = ptstats->AddText("Constant = 76.45 #pm 3.04 ");
   text = ptstats->AddText("Mean     = 3.794e-05 #pm 3.453e-03 ");
   text = ptstats->AddText("Sigma    = 0.1128 #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);
}
