Newer
Older
Presentations / Zurich_group / 14_07_2014_2 / plots_tauola / plotThreeMuUserAnalysis.C
@mchrzasz mchrzasz on 13 Aug 2014 1 KB update
  1. void plotThreeMuUserAnalysis(TString ss="LLLL")
  2. {
  3.  
  4.  
  5.  
  6. TPaveText *pave = new TPaveText(1.8,1.8,2.7,2.7);
  7. pave->SetFillColor(0);
  8. pave->SetBorderSize(0);
  9. pave->AddText("TAUOLA V Chrzaszcz");
  10. pave->AddText("#tau^{-} -> #mu^{-} #mu^{-} #mu^{+}");
  11. // pave->AddText("#tau^{-} -> e^{-} #mu^{-} #mu^{+}");
  12.  
  13. pave->AddText("#Gamma_{"+ss+"} Mode");
  14.  
  15. gStyle->SetOptStat(0);
  16. TCanvas *c = new TCanvas("c","c",800,800);
  17. TFile *f = new TFile("mc-tester"+ss+".root");
  18. TH2D *hist= f->Get("USER_HISTOGRAMS/m12_m23");
  19. hist->Scale(1./hist->Integral());
  20. hist->SetTitle("");
  21. hist->GetXaxis()->SetTitle("m_{--}^{2} GeV^{2}");
  22. hist->GetYaxis()->SetTitle("m_{+-}^{2} GeV^{2}");
  23. hist->GetZaxis()->SetLabelOffset(0.06);
  24. hist->GetZaxis()->SetTitleOffset(20);
  25. gStyle->SetPalette(1);
  26. hist->Draw("COLZD");
  27. pave->Draw();
  28. gPad->Update();
  29.  
  30. TPaletteAxis *palette = (TPaletteAxis*)hist->GetListOfFunctions()->FindObject("palette");
  31. palette->SetX2NDC(0.85);
  32.  
  33. gPad->Modified();
  34. gPad->Update();
  35. c->Update();
  36. c->SaveAs(ss+".pdf");
  37.  
  38.  
  39. }