void Summary_Rates_Run5292() { //=========Macro generated from canvas: c/c //========= (Mon Jan 14 18:58:37 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.5,-1,72.5,14); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetRightMargin(0.15); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH2D *hRatePerCell = new TH2D("hRatePerCell","Summary of occupancies (all cells), run 5292",60,0.5,60.5,12,0.5,12.5); hRatePerCell->SetBinContent(173,224); hRatePerCell->SetBinContent(180,2); hRatePerCell->SetBinContent(239,16); hRatePerCell->SetBinContent(242,13); hRatePerCell->SetBinContent(246,7681); hRatePerCell->SetBinContent(669,1); hRatePerCell->SetBinContent(673,6); hRatePerCell->SetBinContent(794,298569); hRatePerCell->SetEntries(307232); hRatePerCell->SetDirectory(0); hRatePerCell->SetStats(0); hRatePerCell->SetContour(20); hRatePerCell->SetContourLevel(0,0); hRatePerCell->SetContourLevel(1,14928.45); hRatePerCell->SetContourLevel(2,29856.9); hRatePerCell->SetContourLevel(3,44785.35); hRatePerCell->SetContourLevel(4,59713.8); hRatePerCell->SetContourLevel(5,74642.25); hRatePerCell->SetContourLevel(6,89570.7); hRatePerCell->SetContourLevel(7,104499.2); hRatePerCell->SetContourLevel(8,119427.6); hRatePerCell->SetContourLevel(9,134356.1); hRatePerCell->SetContourLevel(10,149284.5); hRatePerCell->SetContourLevel(11,164213); hRatePerCell->SetContourLevel(12,179141.4); hRatePerCell->SetContourLevel(13,194069.9); hRatePerCell->SetContourLevel(14,208998.3); hRatePerCell->SetContourLevel(15,223926.8); hRatePerCell->SetContourLevel(16,238855.2); hRatePerCell->SetContourLevel(17,253783.7); hRatePerCell->SetContourLevel(18,268712.1); hRatePerCell->SetContourLevel(19,283640.5); TPaletteAxis *palette = new TPaletteAxis(60.9,0.5,64.5,12.5,hRatePerCell); palette->SetLabelColor(1); palette->SetLabelFont(42); palette->SetLabelOffset(0.005); palette->SetLabelSize(0.035); palette->SetTitleOffset(1); palette->SetTitleSize(0.035); palette->SetFillColor(100); palette->SetFillStyle(1001); hRatePerCell->GetListOfFunctions()->Add(palette,"br"); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#000099"); hRatePerCell->SetLineColor(ci); hRatePerCell->GetXaxis()->SetTitle("Wire"); hRatePerCell->GetXaxis()->SetLabelFont(42); hRatePerCell->GetXaxis()->SetLabelSize(0.035); hRatePerCell->GetXaxis()->SetTitleSize(0.035); hRatePerCell->GetXaxis()->SetTitleFont(42); hRatePerCell->GetYaxis()->SetBinLabel(1,"SL1L1"); hRatePerCell->GetYaxis()->SetBinLabel(2,"SL1L2"); hRatePerCell->GetYaxis()->SetBinLabel(3,"SL1L3"); hRatePerCell->GetYaxis()->SetBinLabel(4,"SL1L4"); hRatePerCell->GetYaxis()->SetBinLabel(5,"SL2L1"); hRatePerCell->GetYaxis()->SetBinLabel(6,"SL2L2"); hRatePerCell->GetYaxis()->SetBinLabel(7,"SL2L3"); hRatePerCell->GetYaxis()->SetBinLabel(8,"SL2L4"); hRatePerCell->GetYaxis()->SetBinLabel(9,"SL3L1"); hRatePerCell->GetYaxis()->SetBinLabel(10,"SL3L2"); hRatePerCell->GetYaxis()->SetBinLabel(11,"SL3L3"); hRatePerCell->GetYaxis()->SetBinLabel(12,"SL3L4"); hRatePerCell->GetYaxis()->SetLabelFont(42); hRatePerCell->GetYaxis()->SetLabelSize(0.035); hRatePerCell->GetYaxis()->SetTitleSize(0.035); hRatePerCell->GetYaxis()->SetTitleFont(42); hRatePerCell->GetZaxis()->SetLabelFont(42); hRatePerCell->GetZaxis()->SetLabelSize(0.035); hRatePerCell->GetZaxis()->SetTitleSize(0.035); hRatePerCell->GetZaxis()->SetTitleFont(42); hRatePerCell->Draw("colz, png, pdf, root, cpp"); TPaveText *pt = new TPaveText(0.15,0.9341608,0.85,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); TText *AText = pt->AddText("Summary of occupancies (all cells), run 5292"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }