void Rates2D_NoisyCells_Run6553() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:19:41 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_NoisyCells = new TH2D("hRatePerCell_NoisyCells","Noisy cells, run: 6553",60,0.5,60.5,12,0.5,12.5); hRatePerCell_NoisyCells->SetBinContent(246,272462); hRatePerCell_NoisyCells->SetBinContent(750,129745); hRatePerCell_NoisyCells->SetEntries(4598024); hRatePerCell_NoisyCells->SetDirectory(0); hRatePerCell_NoisyCells->SetStats(0); hRatePerCell_NoisyCells->SetContour(20); hRatePerCell_NoisyCells->SetContourLevel(0,0); hRatePerCell_NoisyCells->SetContourLevel(1,13623.1); hRatePerCell_NoisyCells->SetContourLevel(2,27246.2); hRatePerCell_NoisyCells->SetContourLevel(3,40869.3); hRatePerCell_NoisyCells->SetContourLevel(4,54492.4); hRatePerCell_NoisyCells->SetContourLevel(5,68115.5); hRatePerCell_NoisyCells->SetContourLevel(6,81738.6); hRatePerCell_NoisyCells->SetContourLevel(7,95361.7); hRatePerCell_NoisyCells->SetContourLevel(8,108984.8); hRatePerCell_NoisyCells->SetContourLevel(9,122607.9); hRatePerCell_NoisyCells->SetContourLevel(10,136231); hRatePerCell_NoisyCells->SetContourLevel(11,149854.1); hRatePerCell_NoisyCells->SetContourLevel(12,163477.2); hRatePerCell_NoisyCells->SetContourLevel(13,177100.3); hRatePerCell_NoisyCells->SetContourLevel(14,190723.4); hRatePerCell_NoisyCells->SetContourLevel(15,204346.5); hRatePerCell_NoisyCells->SetContourLevel(16,217969.6); hRatePerCell_NoisyCells->SetContourLevel(17,231592.7); hRatePerCell_NoisyCells->SetContourLevel(18,245215.8); hRatePerCell_NoisyCells->SetContourLevel(19,258838.9); TPaletteAxis *palette = new TPaletteAxis(60.9,0.5,64.5,12.5,hRatePerCell_NoisyCells); 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_NoisyCells->GetListOfFunctions()->Add(palette,"br"); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#000099"); hRatePerCell_NoisyCells->SetLineColor(ci); hRatePerCell_NoisyCells->GetXaxis()->SetTitle("Wire"); hRatePerCell_NoisyCells->GetXaxis()->SetLabelFont(42); hRatePerCell_NoisyCells->GetXaxis()->SetLabelSize(0.035); hRatePerCell_NoisyCells->GetXaxis()->SetTitleSize(0.035); hRatePerCell_NoisyCells->GetXaxis()->SetTitleFont(42); hRatePerCell_NoisyCells->GetYaxis()->SetBinLabel(1,"SL1L1"); hRatePerCell_NoisyCells->GetYaxis()->SetBinLabel(2,"SL1L2"); hRatePerCell_NoisyCells->GetYaxis()->SetBinLabel(3,"SL1L3"); hRatePerCell_NoisyCells->GetYaxis()->SetBinLabel(4,"SL1L4"); hRatePerCell_NoisyCells->GetYaxis()->SetBinLabel(5,"SL2L1"); hRatePerCell_NoisyCells->GetYaxis()->SetBinLabel(6,"SL2L2"); hRatePerCell_NoisyCells->GetYaxis()->SetBinLabel(7,"SL2L3"); hRatePerCell_NoisyCells->GetYaxis()->SetBinLabel(8,"SL2L4"); hRatePerCell_NoisyCells->GetYaxis()->SetBinLabel(9,"SL3L1"); hRatePerCell_NoisyCells->GetYaxis()->SetBinLabel(10,"SL3L2"); hRatePerCell_NoisyCells->GetYaxis()->SetBinLabel(11,"SL3L3"); hRatePerCell_NoisyCells->GetYaxis()->SetBinLabel(12,"SL3L4"); hRatePerCell_NoisyCells->GetYaxis()->SetLabelFont(42); hRatePerCell_NoisyCells->GetYaxis()->SetLabelSize(0.035); hRatePerCell_NoisyCells->GetYaxis()->SetTitleSize(0.035); hRatePerCell_NoisyCells->GetYaxis()->SetTitleFont(42); hRatePerCell_NoisyCells->GetZaxis()->SetLabelFont(42); hRatePerCell_NoisyCells->GetZaxis()->SetLabelSize(0.035); hRatePerCell_NoisyCells->GetZaxis()->SetTitleSize(0.035); hRatePerCell_NoisyCells->GetZaxis()->SetTitleFont(42); hRatePerCell_NoisyCells->Draw("colz, png, pdf, root, cpp"); TPaveText *pt = new TPaveText(0.3040704,0.9341608,0.6959296,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); TText *AText = pt->AddText("Noisy cells, run: 6553"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }