void Summary_Rates_NoNoise_Run5723() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 14:46:50 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_NoNoisyCells = new TH2D("hRatePerCell_NoNoisyCells","Summary of occupancies (no noisy cells), run 5723",60,0.5,60.5,12,0.5,12.5); hRatePerCell_NoNoisyCells->SetBinContent(63,2254); hRatePerCell_NoNoisyCells->SetBinContent(64,2432); hRatePerCell_NoNoisyCells->SetBinContent(65,3151); hRatePerCell_NoNoisyCells->SetBinContent(66,3256); hRatePerCell_NoNoisyCells->SetBinContent(67,3348); hRatePerCell_NoNoisyCells->SetBinContent(68,2878); hRatePerCell_NoNoisyCells->SetBinContent(69,3332); hRatePerCell_NoNoisyCells->SetBinContent(70,3178); hRatePerCell_NoNoisyCells->SetBinContent(75,3971); hRatePerCell_NoNoisyCells->SetBinContent(76,3628); hRatePerCell_NoNoisyCells->SetBinContent(77,3421); hRatePerCell_NoNoisyCells->SetBinContent(78,3143); hRatePerCell_NoNoisyCells->SetBinContent(88,1); hRatePerCell_NoNoisyCells->SetBinContent(91,4057); hRatePerCell_NoNoisyCells->SetBinContent(92,4400); hRatePerCell_NoNoisyCells->SetBinContent(93,4232); hRatePerCell_NoNoisyCells->SetBinContent(94,4016); hRatePerCell_NoNoisyCells->SetBinContent(95,3209); hRatePerCell_NoNoisyCells->SetBinContent(96,3049); hRatePerCell_NoNoisyCells->SetBinContent(97,2828); hRatePerCell_NoNoisyCells->SetBinContent(98,2977); hRatePerCell_NoNoisyCells->SetBinContent(99,2560); hRatePerCell_NoNoisyCells->SetBinContent(100,2100); hRatePerCell_NoNoisyCells->SetBinContent(101,2506); hRatePerCell_NoNoisyCells->SetBinContent(102,2682); hRatePerCell_NoNoisyCells->SetBinContent(103,2194); hRatePerCell_NoNoisyCells->SetBinContent(104,2516); hRatePerCell_NoNoisyCells->SetBinContent(105,2628); hRatePerCell_NoNoisyCells->SetBinContent(106,2478); hRatePerCell_NoNoisyCells->SetBinContent(107,2585); hRatePerCell_NoNoisyCells->SetBinContent(108,2850); hRatePerCell_NoNoisyCells->SetBinContent(109,3059); hRatePerCell_NoNoisyCells->SetBinContent(110,3397); hRatePerCell_NoNoisyCells->SetBinContent(250,2190); hRatePerCell_NoNoisyCells->SetBinContent(251,2826); hRatePerCell_NoNoisyCells->SetBinContent(252,2862); hRatePerCell_NoNoisyCells->SetBinContent(253,3283); hRatePerCell_NoNoisyCells->SetBinContent(254,2937); hRatePerCell_NoNoisyCells->SetBinContent(255,2657); hRatePerCell_NoNoisyCells->SetBinContent(256,2896); hRatePerCell_NoNoisyCells->SetBinContent(261,3340); hRatePerCell_NoNoisyCells->SetBinContent(262,3936); hRatePerCell_NoNoisyCells->SetBinContent(263,3003); hRatePerCell_NoNoisyCells->SetBinContent(264,2688); hRatePerCell_NoNoisyCells->SetBinContent(270,1); hRatePerCell_NoNoisyCells->SetBinContent(277,3804); hRatePerCell_NoNoisyCells->SetBinContent(278,3975); hRatePerCell_NoNoisyCells->SetBinContent(279,4097); hRatePerCell_NoNoisyCells->SetBinContent(280,3903); hRatePerCell_NoNoisyCells->SetBinContent(281,3036); hRatePerCell_NoNoisyCells->SetBinContent(282,3124); hRatePerCell_NoNoisyCells->SetBinContent(283,2777); hRatePerCell_NoNoisyCells->SetBinContent(284,2752); hRatePerCell_NoNoisyCells->SetBinContent(285,2777); hRatePerCell_NoNoisyCells->SetBinContent(286,2669); hRatePerCell_NoNoisyCells->SetBinContent(287,2302); hRatePerCell_NoNoisyCells->SetBinContent(288,2442); hRatePerCell_NoNoisyCells->SetBinContent(289,2405); hRatePerCell_NoNoisyCells->SetBinContent(290,2086); hRatePerCell_NoNoisyCells->SetBinContent(291,2426); hRatePerCell_NoNoisyCells->SetBinContent(292,2433); hRatePerCell_NoNoisyCells->SetBinContent(293,2636); hRatePerCell_NoNoisyCells->SetBinContent(294,2580); hRatePerCell_NoNoisyCells->SetBinContent(295,2789); hRatePerCell_NoNoisyCells->SetBinContent(296,2840); hRatePerCell_NoNoisyCells->SetEntries(189511); hRatePerCell_NoNoisyCells->SetDirectory(0); hRatePerCell_NoNoisyCells->SetStats(0); hRatePerCell_NoNoisyCells->SetContour(20); hRatePerCell_NoNoisyCells->SetContourLevel(0,0); hRatePerCell_NoNoisyCells->SetContourLevel(1,220); hRatePerCell_NoNoisyCells->SetContourLevel(2,440); hRatePerCell_NoNoisyCells->SetContourLevel(3,660); hRatePerCell_NoNoisyCells->SetContourLevel(4,880); hRatePerCell_NoNoisyCells->SetContourLevel(5,1100); hRatePerCell_NoNoisyCells->SetContourLevel(6,1320); hRatePerCell_NoNoisyCells->SetContourLevel(7,1540); hRatePerCell_NoNoisyCells->SetContourLevel(8,1760); hRatePerCell_NoNoisyCells->SetContourLevel(9,1980); hRatePerCell_NoNoisyCells->SetContourLevel(10,2200); hRatePerCell_NoNoisyCells->SetContourLevel(11,2420); hRatePerCell_NoNoisyCells->SetContourLevel(12,2640); hRatePerCell_NoNoisyCells->SetContourLevel(13,2860); hRatePerCell_NoNoisyCells->SetContourLevel(14,3080); hRatePerCell_NoNoisyCells->SetContourLevel(15,3300); hRatePerCell_NoNoisyCells->SetContourLevel(16,3520); hRatePerCell_NoNoisyCells->SetContourLevel(17,3740); hRatePerCell_NoNoisyCells->SetContourLevel(18,3960); hRatePerCell_NoNoisyCells->SetContourLevel(19,4180); TPaletteAxis *palette = new TPaletteAxis(60.9,0.5,64.5,12.5,hRatePerCell_NoNoisyCells); 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_NoNoisyCells->GetListOfFunctions()->Add(palette,"br"); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#000099"); hRatePerCell_NoNoisyCells->SetLineColor(ci); hRatePerCell_NoNoisyCells->GetXaxis()->SetTitle("Wire"); hRatePerCell_NoNoisyCells->GetXaxis()->SetLabelFont(42); hRatePerCell_NoNoisyCells->GetXaxis()->SetLabelSize(0.035); hRatePerCell_NoNoisyCells->GetXaxis()->SetTitleSize(0.035); hRatePerCell_NoNoisyCells->GetXaxis()->SetTitleFont(42); hRatePerCell_NoNoisyCells->GetYaxis()->SetBinLabel(1,"SL1L1"); hRatePerCell_NoNoisyCells->GetYaxis()->SetBinLabel(2,"SL1L2"); hRatePerCell_NoNoisyCells->GetYaxis()->SetBinLabel(3,"SL1L3"); hRatePerCell_NoNoisyCells->GetYaxis()->SetBinLabel(4,"SL1L4"); hRatePerCell_NoNoisyCells->GetYaxis()->SetBinLabel(5,"SL2L1"); hRatePerCell_NoNoisyCells->GetYaxis()->SetBinLabel(6,"SL2L2"); hRatePerCell_NoNoisyCells->GetYaxis()->SetBinLabel(7,"SL2L3"); hRatePerCell_NoNoisyCells->GetYaxis()->SetBinLabel(8,"SL2L4"); hRatePerCell_NoNoisyCells->GetYaxis()->SetBinLabel(9,"SL3L1"); hRatePerCell_NoNoisyCells->GetYaxis()->SetBinLabel(10,"SL3L2"); hRatePerCell_NoNoisyCells->GetYaxis()->SetBinLabel(11,"SL3L3"); hRatePerCell_NoNoisyCells->GetYaxis()->SetBinLabel(12,"SL3L4"); hRatePerCell_NoNoisyCells->GetYaxis()->SetLabelFont(42); hRatePerCell_NoNoisyCells->GetYaxis()->SetLabelSize(0.035); hRatePerCell_NoNoisyCells->GetYaxis()->SetTitleSize(0.035); hRatePerCell_NoNoisyCells->GetYaxis()->SetTitleFont(42); hRatePerCell_NoNoisyCells->GetZaxis()->SetLabelFont(42); hRatePerCell_NoNoisyCells->GetZaxis()->SetLabelSize(0.035); hRatePerCell_NoNoisyCells->GetZaxis()->SetTitleSize(0.035); hRatePerCell_NoNoisyCells->GetZaxis()->SetTitleFont(42); hRatePerCell_NoNoisyCells->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 (no noisy cells), run 5723"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }