void Summary_Rates_NoNoise_Run5721() { //=========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 5721",60,0.5,60.5,12,0.5,12.5); hRatePerCell_NoNoisyCells->SetBinContent(63,8539); hRatePerCell_NoNoisyCells->SetBinContent(64,9842); hRatePerCell_NoNoisyCells->SetBinContent(65,12628); hRatePerCell_NoNoisyCells->SetBinContent(66,13172); hRatePerCell_NoNoisyCells->SetBinContent(67,13886); hRatePerCell_NoNoisyCells->SetBinContent(68,11840); hRatePerCell_NoNoisyCells->SetBinContent(69,13590); hRatePerCell_NoNoisyCells->SetBinContent(70,12717); hRatePerCell_NoNoisyCells->SetBinContent(75,15817); hRatePerCell_NoNoisyCells->SetBinContent(76,14985); hRatePerCell_NoNoisyCells->SetBinContent(77,13620); hRatePerCell_NoNoisyCells->SetBinContent(78,12512); hRatePerCell_NoNoisyCells->SetBinContent(80,1); hRatePerCell_NoNoisyCells->SetBinContent(91,16598); hRatePerCell_NoNoisyCells->SetBinContent(92,17636); hRatePerCell_NoNoisyCells->SetBinContent(93,17277); hRatePerCell_NoNoisyCells->SetBinContent(94,16748); hRatePerCell_NoNoisyCells->SetBinContent(95,13135); hRatePerCell_NoNoisyCells->SetBinContent(96,12763); hRatePerCell_NoNoisyCells->SetBinContent(97,11625); hRatePerCell_NoNoisyCells->SetBinContent(98,12082); hRatePerCell_NoNoisyCells->SetBinContent(99,10243); hRatePerCell_NoNoisyCells->SetBinContent(100,9088); hRatePerCell_NoNoisyCells->SetBinContent(101,9986); hRatePerCell_NoNoisyCells->SetBinContent(102,10853); hRatePerCell_NoNoisyCells->SetBinContent(103,8989); hRatePerCell_NoNoisyCells->SetBinContent(104,9877); hRatePerCell_NoNoisyCells->SetBinContent(105,10681); hRatePerCell_NoNoisyCells->SetBinContent(106,10169); hRatePerCell_NoNoisyCells->SetBinContent(107,10956); hRatePerCell_NoNoisyCells->SetBinContent(108,11699); hRatePerCell_NoNoisyCells->SetBinContent(109,12928); hRatePerCell_NoNoisyCells->SetBinContent(110,14059); hRatePerCell_NoNoisyCells->SetBinContent(113,1); hRatePerCell_NoNoisyCells->SetBinContent(117,1); hRatePerCell_NoNoisyCells->SetBinContent(118,1); hRatePerCell_NoNoisyCells->SetBinContent(250,8701); hRatePerCell_NoNoisyCells->SetBinContent(251,11285); hRatePerCell_NoNoisyCells->SetBinContent(252,11295); hRatePerCell_NoNoisyCells->SetBinContent(253,13348); hRatePerCell_NoNoisyCells->SetBinContent(254,11723); hRatePerCell_NoNoisyCells->SetBinContent(255,10664); hRatePerCell_NoNoisyCells->SetBinContent(256,11776); hRatePerCell_NoNoisyCells->SetBinContent(261,13744); hRatePerCell_NoNoisyCells->SetBinContent(262,15193); hRatePerCell_NoNoisyCells->SetBinContent(263,12038); hRatePerCell_NoNoisyCells->SetBinContent(264,11117); hRatePerCell_NoNoisyCells->SetBinContent(271,1); hRatePerCell_NoNoisyCells->SetBinContent(277,15597); hRatePerCell_NoNoisyCells->SetBinContent(278,16220); hRatePerCell_NoNoisyCells->SetBinContent(279,16253); hRatePerCell_NoNoisyCells->SetBinContent(280,15945); hRatePerCell_NoNoisyCells->SetBinContent(281,12465); hRatePerCell_NoNoisyCells->SetBinContent(282,12792); hRatePerCell_NoNoisyCells->SetBinContent(283,11296); hRatePerCell_NoNoisyCells->SetBinContent(284,11670); hRatePerCell_NoNoisyCells->SetBinContent(285,11471); hRatePerCell_NoNoisyCells->SetBinContent(286,10444); hRatePerCell_NoNoisyCells->SetBinContent(287,9412); hRatePerCell_NoNoisyCells->SetBinContent(288,9741); hRatePerCell_NoNoisyCells->SetBinContent(289,9500); hRatePerCell_NoNoisyCells->SetBinContent(290,8617); hRatePerCell_NoNoisyCells->SetBinContent(291,9699); hRatePerCell_NoNoisyCells->SetBinContent(292,9974); hRatePerCell_NoNoisyCells->SetBinContent(293,10543); hRatePerCell_NoNoisyCells->SetBinContent(294,10897); hRatePerCell_NoNoisyCells->SetBinContent(295,11444); hRatePerCell_NoNoisyCells->SetBinContent(296,11869); hRatePerCell_NoNoisyCells->SetBinContent(298,1); hRatePerCell_NoNoisyCells->SetBinContent(304,1); hRatePerCell_NoNoisyCells->SetEntries(768002); hRatePerCell_NoNoisyCells->SetDirectory(0); hRatePerCell_NoNoisyCells->SetStats(0); hRatePerCell_NoNoisyCells->SetContour(20); hRatePerCell_NoNoisyCells->SetContourLevel(0,0); hRatePerCell_NoNoisyCells->SetContourLevel(1,881.8); hRatePerCell_NoNoisyCells->SetContourLevel(2,1763.6); hRatePerCell_NoNoisyCells->SetContourLevel(3,2645.4); hRatePerCell_NoNoisyCells->SetContourLevel(4,3527.2); hRatePerCell_NoNoisyCells->SetContourLevel(5,4409); hRatePerCell_NoNoisyCells->SetContourLevel(6,5290.8); hRatePerCell_NoNoisyCells->SetContourLevel(7,6172.6); hRatePerCell_NoNoisyCells->SetContourLevel(8,7054.4); hRatePerCell_NoNoisyCells->SetContourLevel(9,7936.2); hRatePerCell_NoNoisyCells->SetContourLevel(10,8818); hRatePerCell_NoNoisyCells->SetContourLevel(11,9699.8); hRatePerCell_NoNoisyCells->SetContourLevel(12,10581.6); hRatePerCell_NoNoisyCells->SetContourLevel(13,11463.4); hRatePerCell_NoNoisyCells->SetContourLevel(14,12345.2); hRatePerCell_NoNoisyCells->SetContourLevel(15,13227); hRatePerCell_NoNoisyCells->SetContourLevel(16,14108.8); hRatePerCell_NoNoisyCells->SetContourLevel(17,14990.6); hRatePerCell_NoNoisyCells->SetContourLevel(18,15872.4); hRatePerCell_NoNoisyCells->SetContourLevel(19,16754.2); 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 5721"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }