void Summary_Rates_NoNoise_Run5718() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 14:47:05 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 5718",60,0.5,60.5,12,0.5,12.5); hRatePerCell_NoNoisyCells->SetBinContent(63,1882); hRatePerCell_NoNoisyCells->SetBinContent(64,2114); hRatePerCell_NoNoisyCells->SetBinContent(65,2450); hRatePerCell_NoNoisyCells->SetBinContent(66,2683); hRatePerCell_NoNoisyCells->SetBinContent(67,2762); hRatePerCell_NoNoisyCells->SetBinContent(68,2183); hRatePerCell_NoNoisyCells->SetBinContent(69,2798); hRatePerCell_NoNoisyCells->SetBinContent(70,2589); hRatePerCell_NoNoisyCells->SetBinContent(75,3131); hRatePerCell_NoNoisyCells->SetBinContent(76,2705); hRatePerCell_NoNoisyCells->SetBinContent(77,2771); hRatePerCell_NoNoisyCells->SetBinContent(78,2463); hRatePerCell_NoNoisyCells->SetBinContent(91,3150); hRatePerCell_NoNoisyCells->SetBinContent(92,3266); hRatePerCell_NoNoisyCells->SetBinContent(93,3180); hRatePerCell_NoNoisyCells->SetBinContent(94,3098); hRatePerCell_NoNoisyCells->SetBinContent(95,2416); hRatePerCell_NoNoisyCells->SetBinContent(96,2277); hRatePerCell_NoNoisyCells->SetBinContent(97,2012); hRatePerCell_NoNoisyCells->SetBinContent(98,2185); hRatePerCell_NoNoisyCells->SetBinContent(99,1930); hRatePerCell_NoNoisyCells->SetBinContent(100,1616); hRatePerCell_NoNoisyCells->SetBinContent(101,1883); hRatePerCell_NoNoisyCells->SetBinContent(102,2078); hRatePerCell_NoNoisyCells->SetBinContent(103,1738); hRatePerCell_NoNoisyCells->SetBinContent(104,1949); hRatePerCell_NoNoisyCells->SetBinContent(105,1943); hRatePerCell_NoNoisyCells->SetBinContent(106,1818); hRatePerCell_NoNoisyCells->SetBinContent(107,1900); hRatePerCell_NoNoisyCells->SetBinContent(108,2145); hRatePerCell_NoNoisyCells->SetBinContent(109,2322); hRatePerCell_NoNoisyCells->SetBinContent(110,2524); hRatePerCell_NoNoisyCells->SetBinContent(215,1); hRatePerCell_NoNoisyCells->SetBinContent(216,1); hRatePerCell_NoNoisyCells->SetBinContent(250,1968); hRatePerCell_NoNoisyCells->SetBinContent(251,2256); hRatePerCell_NoNoisyCells->SetBinContent(252,2179); hRatePerCell_NoNoisyCells->SetBinContent(253,2777); hRatePerCell_NoNoisyCells->SetBinContent(254,2312); hRatePerCell_NoNoisyCells->SetBinContent(255,2321); hRatePerCell_NoNoisyCells->SetBinContent(256,2326); hRatePerCell_NoNoisyCells->SetBinContent(261,2728); hRatePerCell_NoNoisyCells->SetBinContent(262,3064); hRatePerCell_NoNoisyCells->SetBinContent(263,2306); hRatePerCell_NoNoisyCells->SetBinContent(264,2016); hRatePerCell_NoNoisyCells->SetBinContent(277,2743); hRatePerCell_NoNoisyCells->SetBinContent(278,3025); hRatePerCell_NoNoisyCells->SetBinContent(279,3012); hRatePerCell_NoNoisyCells->SetBinContent(280,2988); hRatePerCell_NoNoisyCells->SetBinContent(281,2340); hRatePerCell_NoNoisyCells->SetBinContent(282,2215); hRatePerCell_NoNoisyCells->SetBinContent(283,2055); hRatePerCell_NoNoisyCells->SetBinContent(284,2122); hRatePerCell_NoNoisyCells->SetBinContent(285,2136); hRatePerCell_NoNoisyCells->SetBinContent(286,1971); hRatePerCell_NoNoisyCells->SetBinContent(287,1798); hRatePerCell_NoNoisyCells->SetBinContent(288,1903); hRatePerCell_NoNoisyCells->SetBinContent(289,2027); hRatePerCell_NoNoisyCells->SetBinContent(290,1651); hRatePerCell_NoNoisyCells->SetBinContent(291,1766); hRatePerCell_NoNoisyCells->SetBinContent(292,1881); hRatePerCell_NoNoisyCells->SetBinContent(293,1946); hRatePerCell_NoNoisyCells->SetBinContent(294,2007); hRatePerCell_NoNoisyCells->SetBinContent(295,2054); hRatePerCell_NoNoisyCells->SetBinContent(296,2125); hRatePerCell_NoNoisyCells->SetEntries(146702); hRatePerCell_NoNoisyCells->SetDirectory(0); hRatePerCell_NoNoisyCells->SetStats(0); hRatePerCell_NoNoisyCells->SetContour(20); hRatePerCell_NoNoisyCells->SetContourLevel(0,0); hRatePerCell_NoNoisyCells->SetContourLevel(1,163.3); hRatePerCell_NoNoisyCells->SetContourLevel(2,326.6); hRatePerCell_NoNoisyCells->SetContourLevel(3,489.9); hRatePerCell_NoNoisyCells->SetContourLevel(4,653.2); hRatePerCell_NoNoisyCells->SetContourLevel(5,816.5); hRatePerCell_NoNoisyCells->SetContourLevel(6,979.8); hRatePerCell_NoNoisyCells->SetContourLevel(7,1143.1); hRatePerCell_NoNoisyCells->SetContourLevel(8,1306.4); hRatePerCell_NoNoisyCells->SetContourLevel(9,1469.7); hRatePerCell_NoNoisyCells->SetContourLevel(10,1633); hRatePerCell_NoNoisyCells->SetContourLevel(11,1796.3); hRatePerCell_NoNoisyCells->SetContourLevel(12,1959.6); hRatePerCell_NoNoisyCells->SetContourLevel(13,2122.9); hRatePerCell_NoNoisyCells->SetContourLevel(14,2286.2); hRatePerCell_NoNoisyCells->SetContourLevel(15,2449.5); hRatePerCell_NoNoisyCells->SetContourLevel(16,2612.8); hRatePerCell_NoNoisyCells->SetContourLevel(17,2776.1); hRatePerCell_NoNoisyCells->SetContourLevel(18,2939.4); hRatePerCell_NoNoisyCells->SetContourLevel(19,3102.7); 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 5718"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }