void Rates2D_NoNoise_Run5724() { //=========Macro generated from canvas: c/c //========= (Mon Jan 14 19:34:10 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","Ocupancy (without noisy cells), run: 5724",60,0.5,60.5,12,0.5,12.5); hRatePerCell_NoNoisyCells->SetBinContent(63,1483); hRatePerCell_NoNoisyCells->SetBinContent(64,1706); hRatePerCell_NoNoisyCells->SetBinContent(65,2211); hRatePerCell_NoNoisyCells->SetBinContent(66,2375); hRatePerCell_NoNoisyCells->SetBinContent(67,2384); hRatePerCell_NoNoisyCells->SetBinContent(68,1997); hRatePerCell_NoNoisyCells->SetBinContent(69,2391); hRatePerCell_NoNoisyCells->SetBinContent(70,2247); hRatePerCell_NoNoisyCells->SetBinContent(74,1); hRatePerCell_NoNoisyCells->SetBinContent(75,2674); hRatePerCell_NoNoisyCells->SetBinContent(76,2549); hRatePerCell_NoNoisyCells->SetBinContent(77,2468); hRatePerCell_NoNoisyCells->SetBinContent(78,2088); hRatePerCell_NoNoisyCells->SetBinContent(91,2771); hRatePerCell_NoNoisyCells->SetBinContent(92,3005); hRatePerCell_NoNoisyCells->SetBinContent(93,2960); hRatePerCell_NoNoisyCells->SetBinContent(94,2936); hRatePerCell_NoNoisyCells->SetBinContent(95,2258); hRatePerCell_NoNoisyCells->SetBinContent(96,2155); hRatePerCell_NoNoisyCells->SetBinContent(97,1903); hRatePerCell_NoNoisyCells->SetBinContent(98,2064); hRatePerCell_NoNoisyCells->SetBinContent(99,1646); hRatePerCell_NoNoisyCells->SetBinContent(100,1424); hRatePerCell_NoNoisyCells->SetBinContent(101,1627); hRatePerCell_NoNoisyCells->SetBinContent(102,1881); hRatePerCell_NoNoisyCells->SetBinContent(103,1411); hRatePerCell_NoNoisyCells->SetBinContent(104,1619); hRatePerCell_NoNoisyCells->SetBinContent(105,1739); hRatePerCell_NoNoisyCells->SetBinContent(106,1647); hRatePerCell_NoNoisyCells->SetBinContent(107,1866); hRatePerCell_NoNoisyCells->SetBinContent(108,2005); hRatePerCell_NoNoisyCells->SetBinContent(109,2155); hRatePerCell_NoNoisyCells->SetBinContent(110,2436); hRatePerCell_NoNoisyCells->SetBinContent(112,1); hRatePerCell_NoNoisyCells->SetBinContent(128,1); hRatePerCell_NoNoisyCells->SetBinContent(131,1); hRatePerCell_NoNoisyCells->SetBinContent(250,1539); hRatePerCell_NoNoisyCells->SetBinContent(251,1960); hRatePerCell_NoNoisyCells->SetBinContent(252,1850); hRatePerCell_NoNoisyCells->SetBinContent(253,2287); hRatePerCell_NoNoisyCells->SetBinContent(254,2027); hRatePerCell_NoNoisyCells->SetBinContent(255,1829); hRatePerCell_NoNoisyCells->SetBinContent(256,2018); hRatePerCell_NoNoisyCells->SetBinContent(261,2347); hRatePerCell_NoNoisyCells->SetBinContent(262,2548); hRatePerCell_NoNoisyCells->SetBinContent(263,2042); hRatePerCell_NoNoisyCells->SetBinContent(264,1819); hRatePerCell_NoNoisyCells->SetBinContent(273,1); hRatePerCell_NoNoisyCells->SetBinContent(274,1); hRatePerCell_NoNoisyCells->SetBinContent(277,2604); hRatePerCell_NoNoisyCells->SetBinContent(278,2746); hRatePerCell_NoNoisyCells->SetBinContent(279,2778); hRatePerCell_NoNoisyCells->SetBinContent(280,2763); hRatePerCell_NoNoisyCells->SetBinContent(281,2127); hRatePerCell_NoNoisyCells->SetBinContent(282,2151); hRatePerCell_NoNoisyCells->SetBinContent(283,1833); hRatePerCell_NoNoisyCells->SetBinContent(284,1969); hRatePerCell_NoNoisyCells->SetBinContent(285,1891); hRatePerCell_NoNoisyCells->SetBinContent(286,1783); hRatePerCell_NoNoisyCells->SetBinContent(287,1464); hRatePerCell_NoNoisyCells->SetBinContent(288,1641); hRatePerCell_NoNoisyCells->SetBinContent(289,1591); hRatePerCell_NoNoisyCells->SetBinContent(290,1409); hRatePerCell_NoNoisyCells->SetBinContent(291,1658); hRatePerCell_NoNoisyCells->SetBinContent(292,1557); hRatePerCell_NoNoisyCells->SetBinContent(293,1683); hRatePerCell_NoNoisyCells->SetBinContent(294,1753); hRatePerCell_NoNoisyCells->SetBinContent(295,1784); hRatePerCell_NoNoisyCells->SetBinContent(296,2030); hRatePerCell_NoNoisyCells->SetEntries(130288); hRatePerCell_NoNoisyCells->SetDirectory(0); hRatePerCell_NoNoisyCells->SetStats(0); hRatePerCell_NoNoisyCells->SetContour(20); hRatePerCell_NoNoisyCells->SetContourLevel(0,0); hRatePerCell_NoNoisyCells->SetContourLevel(1,150.25); hRatePerCell_NoNoisyCells->SetContourLevel(2,300.5); hRatePerCell_NoNoisyCells->SetContourLevel(3,450.75); hRatePerCell_NoNoisyCells->SetContourLevel(4,601); hRatePerCell_NoNoisyCells->SetContourLevel(5,751.25); hRatePerCell_NoNoisyCells->SetContourLevel(6,901.5); hRatePerCell_NoNoisyCells->SetContourLevel(7,1051.75); hRatePerCell_NoNoisyCells->SetContourLevel(8,1202); hRatePerCell_NoNoisyCells->SetContourLevel(9,1352.25); hRatePerCell_NoNoisyCells->SetContourLevel(10,1502.5); hRatePerCell_NoNoisyCells->SetContourLevel(11,1652.75); hRatePerCell_NoNoisyCells->SetContourLevel(12,1803); hRatePerCell_NoNoisyCells->SetContourLevel(13,1953.25); hRatePerCell_NoNoisyCells->SetContourLevel(14,2103.5); hRatePerCell_NoNoisyCells->SetContourLevel(15,2253.75); hRatePerCell_NoNoisyCells->SetContourLevel(16,2404); hRatePerCell_NoNoisyCells->SetContourLevel(17,2554.25); hRatePerCell_NoNoisyCells->SetContourLevel(18,2704.5); hRatePerCell_NoNoisyCells->SetContourLevel(19,2854.75); 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("Ocupancy (without noisy cells), run: 5724"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }