{
//=========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 *ResoRow20 = new TH1F("ResoRow20","",100,-1,1);
   ResoRow20->SetBinContent(0,2);
   ResoRow20->SetBinContent(7,1);
   ResoRow20->SetBinContent(8,1);
   ResoRow20->SetBinContent(12,2);
   ResoRow20->SetBinContent(17,2);
   ResoRow20->SetBinContent(28,3);
   ResoRow20->SetBinContent(29,1);
   ResoRow20->SetBinContent(30,2);
   ResoRow20->SetBinContent(31,4);
   ResoRow20->SetBinContent(32,2);
   ResoRow20->SetBinContent(33,1);
   ResoRow20->SetBinContent(34,2);
   ResoRow20->SetBinContent(35,2);
   ResoRow20->SetBinContent(36,5);
   ResoRow20->SetBinContent(37,7);
   ResoRow20->SetBinContent(38,5);
   ResoRow20->SetBinContent(39,3);
   ResoRow20->SetBinContent(40,7);
   ResoRow20->SetBinContent(41,10);
   ResoRow20->SetBinContent(42,11);
   ResoRow20->SetBinContent(43,22);
   ResoRow20->SetBinContent(44,26);
   ResoRow20->SetBinContent(45,29);
   ResoRow20->SetBinContent(46,53);
   ResoRow20->SetBinContent(47,62);
   ResoRow20->SetBinContent(48,77);
   ResoRow20->SetBinContent(49,84);
   ResoRow20->SetBinContent(50,117);
   ResoRow20->SetBinContent(51,99);
   ResoRow20->SetBinContent(52,97);
   ResoRow20->SetBinContent(53,89);
   ResoRow20->SetBinContent(54,54);
   ResoRow20->SetBinContent(55,40);
   ResoRow20->SetBinContent(56,26);
   ResoRow20->SetBinContent(57,17);
   ResoRow20->SetBinContent(58,11);
   ResoRow20->SetBinContent(59,10);
   ResoRow20->SetBinContent(60,2);
   ResoRow20->SetBinContent(61,4);
   ResoRow20->SetBinContent(62,6);
   ResoRow20->SetBinContent(63,3);
   ResoRow20->SetBinContent(64,3);
   ResoRow20->SetBinContent(65,1);
   ResoRow20->SetBinContent(66,1);
   ResoRow20->SetBinContent(67,2);
   ResoRow20->SetBinContent(71,2);
   ResoRow20->SetBinContent(72,2);
   ResoRow20->SetBinContent(84,1);
   ResoRow20->SetBinContent(99,1);
   ResoRow20->SetBinContent(101,4);
   ResoRow20->SetEntries(1018);
   
   TF1 *ResoRowFit20 = new TF1("ResoRowFit20","gaus",-1,1);
   ResoRowFit20->SetFillColor(19);
   ResoRowFit20->SetFillStyle(0);
   ResoRowFit20->SetLineWidth(3);
   ResoRowFit20->SetChisquare(82.35353);
   ResoRowFit20->SetNDF(45);
   ResoRowFit20->SetParameter(0,95.64604);
   ResoRowFit20->SetParError(0,4.301277);
   ResoRowFit20->SetParLimits(0,0,0);
   ResoRowFit20->SetParameter(1,-0.0069398);
   ResoRowFit20->SetParError(1,0.002622772);
   ResoRowFit20->SetParLimits(1,0,0);
   ResoRowFit20->SetParameter(2,0.0775519);
   ResoRowFit20->SetParError(2,0.002385462);
   ResoRowFit20->SetParLimits(2,0,1.260376);
   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 = 1018   ");
   text = ptstats->AddText("Mean  = -0.01493");
   text = ptstats->AddText("RMS   = 0.1256");
   text = ptstats->AddText("#chi^{2} / ndf = 82.35 / 45");
   text = ptstats->AddText("Constant = 95.65 #pm 4.30 ");
   text = ptstats->AddText("Mean     = -0.00694 #pm 0.00262 ");
   text = ptstats->AddText("Sigma    = 0.07755 #pm 0.00239 ");
   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.65,1.25,122.85);
   c2_2->SetFillColor(0);
   c2_2->SetBorderSize(2);
   
   TH1F *ResoRow21 = new TH1F("ResoRow21","",100,-1,1);
   ResoRow21->SetBinContent(0,4);
   ResoRow21->SetBinContent(9,1);
   ResoRow21->SetBinContent(12,1);
   ResoRow21->SetBinContent(13,1);
   ResoRow21->SetBinContent(18,1);
   ResoRow21->SetBinContent(20,1);
   ResoRow21->SetBinContent(27,1);
   ResoRow21->SetBinContent(28,3);
   ResoRow21->SetBinContent(29,1);
   ResoRow21->SetBinContent(30,6);
   ResoRow21->SetBinContent(31,1);
   ResoRow21->SetBinContent(32,1);
   ResoRow21->SetBinContent(34,2);
   ResoRow21->SetBinContent(35,1);
   ResoRow21->SetBinContent(36,3);
   ResoRow21->SetBinContent(37,3);
   ResoRow21->SetBinContent(38,4);
   ResoRow21->SetBinContent(39,2);
   ResoRow21->SetBinContent(40,12);
   ResoRow21->SetBinContent(41,10);
   ResoRow21->SetBinContent(42,16);
   ResoRow21->SetBinContent(43,24);
   ResoRow21->SetBinContent(44,28);
   ResoRow21->SetBinContent(45,34);
   ResoRow21->SetBinContent(46,47);
   ResoRow21->SetBinContent(47,62);
   ResoRow21->SetBinContent(48,81);
   ResoRow21->SetBinContent(49,103);
   ResoRow21->SetBinContent(50,93);
   ResoRow21->SetBinContent(51,104);
   ResoRow21->SetBinContent(52,81);
   ResoRow21->SetBinContent(53,61);
   ResoRow21->SetBinContent(54,51);
   ResoRow21->SetBinContent(55,49);
   ResoRow21->SetBinContent(56,28);
   ResoRow21->SetBinContent(57,22);
   ResoRow21->SetBinContent(58,18);
   ResoRow21->SetBinContent(59,14);
   ResoRow21->SetBinContent(60,11);
   ResoRow21->SetBinContent(61,5);
   ResoRow21->SetBinContent(62,7);
   ResoRow21->SetBinContent(63,2);
   ResoRow21->SetBinContent(64,3);
   ResoRow21->SetBinContent(65,1);
   ResoRow21->SetBinContent(66,1);
   ResoRow21->SetBinContent(67,4);
   ResoRow21->SetBinContent(68,2);
   ResoRow21->SetBinContent(72,1);
   ResoRow21->SetBinContent(76,1);
   ResoRow21->SetBinContent(99,1);
   ResoRow21->SetBinContent(101,4);
   ResoRow21->SetEntries(1018);
   
   TF1 *ResoRowFit21 = new TF1("ResoRowFit21","gaus",-1,1);
   ResoRowFit21->SetFillColor(19);
   ResoRowFit21->SetFillStyle(0);
   ResoRowFit21->SetLineWidth(3);
   ResoRowFit21->SetChisquare(64.82045);
   ResoRowFit21->SetNDF(46);
   ResoRowFit21->SetParameter(0,84.6214);
   ResoRowFit21->SetParError(0,3.778787);
   ResoRowFit21->SetParLimits(0,0,0);
   ResoRowFit21->SetParameter(1,-0.005897044);
   ResoRowFit21->SetParError(1,0.002910421);
   ResoRowFit21->SetParLimits(1,0,0);
   ResoRowFit21->SetParameter(2,0.08912612);
   ResoRowFit21->SetParError(2,0.002728743);
   ResoRowFit21->SetParLimits(2,0,1.246738);
   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 = 1018   ");
   text = ptstats->AddText("Mean  = -0.01179");
   text = ptstats->AddText("RMS   = 0.1249");
   text = ptstats->AddText("#chi^{2} / ndf = 64.82 / 46");
   text = ptstats->AddText("Constant = 84.62 #pm 3.78 ");
   text = ptstats->AddText("Mean     = -0.005897 #pm 0.002910 ");
   text = ptstats->AddText("Sigma    = 0.08913 #pm 0.00273 ");
   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,-14.83125,1.25,133.4813);
   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,-16.5375,1.25,148.8375);
   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,-15.4875,1.25,139.3875);
   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,-15.225,1.25,137.025);
   c2_6->SetFillColor(0);
   c2_6->SetBorderSize(2);
   c2_6->Modified();
   c2->cd();
   c2->Modified();
   c2->cd();
   c2->SetSelected(c2);
}
