{
//=========Macro generated from canvas: c2/
//=========  (Fri Jun 11 10:12:56 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 *ResoRow20 = new TH1F("ResoRow20","",100,-1,1);
   ResoRow20->SetBinContent(0,5);
   ResoRow20->SetBinContent(3,1);
   ResoRow20->SetBinContent(12,1);
   ResoRow20->SetBinContent(16,1);
   ResoRow20->SetBinContent(18,1);
   ResoRow20->SetBinContent(24,1);
   ResoRow20->SetBinContent(25,1);
   ResoRow20->SetBinContent(29,1);
   ResoRow20->SetBinContent(30,2);
   ResoRow20->SetBinContent(31,1);
   ResoRow20->SetBinContent(32,5);
   ResoRow20->SetBinContent(33,2);
   ResoRow20->SetBinContent(34,2);
   ResoRow20->SetBinContent(35,8);
   ResoRow20->SetBinContent(36,4);
   ResoRow20->SetBinContent(37,6);
   ResoRow20->SetBinContent(38,14);
   ResoRow20->SetBinContent(39,5);
   ResoRow20->SetBinContent(40,17);
   ResoRow20->SetBinContent(41,28);
   ResoRow20->SetBinContent(42,31);
   ResoRow20->SetBinContent(43,35);
   ResoRow20->SetBinContent(44,42);
   ResoRow20->SetBinContent(45,46);
   ResoRow20->SetBinContent(46,53);
   ResoRow20->SetBinContent(47,61);
   ResoRow20->SetBinContent(48,66);
   ResoRow20->SetBinContent(49,78);
   ResoRow20->SetBinContent(50,87);
   ResoRow20->SetBinContent(51,81);
   ResoRow20->SetBinContent(52,72);
   ResoRow20->SetBinContent(53,79);
   ResoRow20->SetBinContent(54,65);
   ResoRow20->SetBinContent(55,58);
   ResoRow20->SetBinContent(56,44);
   ResoRow20->SetBinContent(57,32);
   ResoRow20->SetBinContent(58,28);
   ResoRow20->SetBinContent(59,21);
   ResoRow20->SetBinContent(60,21);
   ResoRow20->SetBinContent(61,7);
   ResoRow20->SetBinContent(62,8);
   ResoRow20->SetBinContent(63,9);
   ResoRow20->SetBinContent(64,9);
   ResoRow20->SetBinContent(65,9);
   ResoRow20->SetBinContent(66,1);
   ResoRow20->SetBinContent(67,1);
   ResoRow20->SetBinContent(68,1);
   ResoRow20->SetBinContent(69,2);
   ResoRow20->SetBinContent(70,1);
   ResoRow20->SetBinContent(71,1);
   ResoRow20->SetBinContent(74,2);
   ResoRow20->SetBinContent(76,1);
   ResoRow20->SetBinContent(81,1);
   ResoRow20->SetBinContent(83,1);
   ResoRow20->SetBinContent(89,1);
   ResoRow20->SetBinContent(101,5);
   ResoRow20->SetEntries(1166);
   
   TF1 *ResoRowFit20 = new TF1("ResoRowFit20","gaus",-1,1);
   ResoRowFit20->SetFillColor(19);
   ResoRowFit20->SetFillStyle(0);
   ResoRowFit20->SetLineWidth(3);
   ResoRowFit20->SetChisquare(61.07206);
   ResoRowFit20->SetNDF(51);
   ResoRowFit20->SetParameter(0,76.52609);
   ResoRowFit20->SetParError(0,3.017616);
   ResoRowFit20->SetParLimits(0,0,0);
   ResoRowFit20->SetParameter(1,-0.00653166);
   ResoRowFit20->SetParError(1,0.003463944);
   ResoRowFit20->SetParLimits(1,0,0);
   ResoRowFit20->SetParameter(2,0.114177);
   ResoRowFit20->SetParError(2,0.002897366);
   ResoRowFit20->SetParLimits(2,0,1.406663);
   ResoRow20->GetListOfFunctions()->Add(ResoRowFit20);
   
   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("ResoRow20");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1166   ");
   text = ptstats->AddText("Mean  = -0.008876");
   text = ptstats->AddText("RMS   = 0.1405");
   text = ptstats->AddText("#chi^{2} / ndf = 61.07 / 51");
   text = ptstats->AddText("Constant = 76.53 #pm 3.02 ");
   text = ptstats->AddText("Mean     = -0.006532 #pm 0.003464 ");
   text = ptstats->AddText("Sigma    = 0.1142 #pm 0.0029 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow20->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow20->GetListOfFunctions());
   ResoRow20->GetXaxis()->SetTitle("residual / mm");
   ResoRow20->GetYaxis()->SetTitle("counts");
   ResoRow20->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,-13.25625,1.25,119.3063);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow21 = new TH1F("ResoRow21","",100,-1,1);
   ResoRow21->SetBinContent(0,2);
   ResoRow21->SetBinContent(4,1);
   ResoRow21->SetBinContent(7,1);
   ResoRow21->SetBinContent(9,1);
   ResoRow21->SetBinContent(12,1);
   ResoRow21->SetBinContent(16,1);
   ResoRow21->SetBinContent(21,2);
   ResoRow21->SetBinContent(24,2);
   ResoRow21->SetBinContent(25,3);
   ResoRow21->SetBinContent(27,1);
   ResoRow21->SetBinContent(28,1);
   ResoRow21->SetBinContent(29,6);
   ResoRow21->SetBinContent(33,4);
   ResoRow21->SetBinContent(34,3);
   ResoRow21->SetBinContent(35,3);
   ResoRow21->SetBinContent(36,12);
   ResoRow21->SetBinContent(37,12);
   ResoRow21->SetBinContent(38,10);
   ResoRow21->SetBinContent(39,14);
   ResoRow21->SetBinContent(40,12);
   ResoRow21->SetBinContent(41,23);
   ResoRow21->SetBinContent(42,25);
   ResoRow21->SetBinContent(43,43);
   ResoRow21->SetBinContent(44,36);
   ResoRow21->SetBinContent(45,48);
   ResoRow21->SetBinContent(46,49);
   ResoRow21->SetBinContent(47,56);
   ResoRow21->SetBinContent(48,61);
   ResoRow21->SetBinContent(49,67);
   ResoRow21->SetBinContent(50,86);
   ResoRow21->SetBinContent(51,101);
   ResoRow21->SetBinContent(52,72);
   ResoRow21->SetBinContent(53,80);
   ResoRow21->SetBinContent(54,63);
   ResoRow21->SetBinContent(55,46);
   ResoRow21->SetBinContent(56,50);
   ResoRow21->SetBinContent(57,34);
   ResoRow21->SetBinContent(58,16);
   ResoRow21->SetBinContent(59,31);
   ResoRow21->SetBinContent(60,14);
   ResoRow21->SetBinContent(61,13);
   ResoRow21->SetBinContent(62,15);
   ResoRow21->SetBinContent(63,8);
   ResoRow21->SetBinContent(64,7);
   ResoRow21->SetBinContent(65,5);
   ResoRow21->SetBinContent(66,4);
   ResoRow21->SetBinContent(67,1);
   ResoRow21->SetBinContent(68,2);
   ResoRow21->SetBinContent(69,1);
   ResoRow21->SetBinContent(70,4);
   ResoRow21->SetBinContent(72,3);
   ResoRow21->SetBinContent(76,2);
   ResoRow21->SetBinContent(77,1);
   ResoRow21->SetBinContent(79,1);
   ResoRow21->SetBinContent(83,1);
   ResoRow21->SetBinContent(86,1);
   ResoRow21->SetBinContent(95,1);
   ResoRow21->SetBinContent(101,3);
   ResoRow21->SetEntries(1166);
   
   TF1 *ResoRowFit21 = new TF1("ResoRowFit21","gaus",-1,1);
   ResoRowFit21->SetFillColor(19);
   ResoRowFit21->SetFillStyle(0);
   ResoRowFit21->SetLineWidth(3);
   ResoRowFit21->SetChisquare(87.73201);
   ResoRowFit21->SetNDF(53);
   ResoRowFit21->SetParameter(0,70.80077);
   ResoRowFit21->SetParError(0,2.938905);
   ResoRowFit21->SetParLimits(0,0,0);
   ResoRowFit21->SetParameter(1,-0.007632332);
   ResoRowFit21->SetParError(1,0.003750493);
   ResoRowFit21->SetParLimits(1,0,0);
   ResoRowFit21->SetParameter(2,0.1211656);
   ResoRowFit21->SetParError(2,0.00346559);
   ResoRowFit21->SetParLimits(2,0,1.550172);
   ResoRow21->GetListOfFunctions()->Add(ResoRowFit21);
   
   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("ResoRow21");
   text->SetTextSize(0.0414);
   text = ptstats->AddText("Entries = 1166   ");
   text = ptstats->AddText("Mean  = -0.01028");
   text = ptstats->AddText("RMS   = 0.1547");
   text = ptstats->AddText("#chi^{2} / ndf = 87.73 / 53");
   text = ptstats->AddText("Constant =  70.8 #pm 2.9 ");
   text = ptstats->AddText("Mean     = -0.007632 #pm 0.003750 ");
   text = ptstats->AddText("Sigma    = 0.1212 #pm 0.0035 ");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   ResoRow21->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(ResoRow21->GetListOfFunctions());
   ResoRow21->GetXaxis()->SetTitle("residual / mm");
   ResoRow21->GetYaxis()->SetTitle("counts");
   ResoRow21->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.2875,1.25,101.5875);
   c2_3->SetFillColor(0);
   c2_3->SetBorderSize(2);
   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,-12.075,1.25,108.675);
   c2_4->SetFillColor(0);
   c2_4->SetBorderSize(2);
   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,-11.8125,1.25,106.3125);
   c2_5->SetFillColor(0);
   c2_5->SetBorderSize(2);
   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.6,1.25,113.4);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   c2_6->Modified();
   c2->cd();
   c2->Modified();
   c2->cd();
   c2->SetSelected(c2);
}
