void Summary_Rates_NoNoise_Run5720() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 14:47:06 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 5720",60,0.5,60.5,12,0.5,12.5); hRatePerCell_NoNoisyCells->SetBinContent(63,4058); hRatePerCell_NoNoisyCells->SetBinContent(64,4671); hRatePerCell_NoNoisyCells->SetBinContent(65,5645); hRatePerCell_NoNoisyCells->SetBinContent(66,6102); hRatePerCell_NoNoisyCells->SetBinContent(67,6408); hRatePerCell_NoNoisyCells->SetBinContent(68,5239); hRatePerCell_NoNoisyCells->SetBinContent(69,6229); hRatePerCell_NoNoisyCells->SetBinContent(70,5875); hRatePerCell_NoNoisyCells->SetBinContent(75,7231); hRatePerCell_NoNoisyCells->SetBinContent(76,6657); hRatePerCell_NoNoisyCells->SetBinContent(77,6276); hRatePerCell_NoNoisyCells->SetBinContent(78,5674); hRatePerCell_NoNoisyCells->SetBinContent(91,7530); hRatePerCell_NoNoisyCells->SetBinContent(92,8114); hRatePerCell_NoNoisyCells->SetBinContent(93,7605); hRatePerCell_NoNoisyCells->SetBinContent(94,7472); hRatePerCell_NoNoisyCells->SetBinContent(95,6041); hRatePerCell_NoNoisyCells->SetBinContent(96,5670); hRatePerCell_NoNoisyCells->SetBinContent(97,5317); hRatePerCell_NoNoisyCells->SetBinContent(98,5412); hRatePerCell_NoNoisyCells->SetBinContent(99,4592); hRatePerCell_NoNoisyCells->SetBinContent(100,4179); hRatePerCell_NoNoisyCells->SetBinContent(101,4585); hRatePerCell_NoNoisyCells->SetBinContent(102,5060); hRatePerCell_NoNoisyCells->SetBinContent(103,4004); hRatePerCell_NoNoisyCells->SetBinContent(104,4519); hRatePerCell_NoNoisyCells->SetBinContent(105,4792); hRatePerCell_NoNoisyCells->SetBinContent(106,4643); hRatePerCell_NoNoisyCells->SetBinContent(107,5076); hRatePerCell_NoNoisyCells->SetBinContent(108,5428); hRatePerCell_NoNoisyCells->SetBinContent(109,5909); hRatePerCell_NoNoisyCells->SetBinContent(110,6352); hRatePerCell_NoNoisyCells->SetBinContent(112,1); hRatePerCell_NoNoisyCells->SetBinContent(250,4150); hRatePerCell_NoNoisyCells->SetBinContent(251,5004); hRatePerCell_NoNoisyCells->SetBinContent(252,5215); hRatePerCell_NoNoisyCells->SetBinContent(253,6415); hRatePerCell_NoNoisyCells->SetBinContent(254,5467); hRatePerCell_NoNoisyCells->SetBinContent(255,4811); hRatePerCell_NoNoisyCells->SetBinContent(256,5220); hRatePerCell_NoNoisyCells->SetBinContent(261,6226); hRatePerCell_NoNoisyCells->SetBinContent(262,7128); hRatePerCell_NoNoisyCells->SetBinContent(263,5465); hRatePerCell_NoNoisyCells->SetBinContent(264,5090); hRatePerCell_NoNoisyCells->SetBinContent(277,6971); hRatePerCell_NoNoisyCells->SetBinContent(278,7402); hRatePerCell_NoNoisyCells->SetBinContent(279,7514); hRatePerCell_NoNoisyCells->SetBinContent(280,6998); hRatePerCell_NoNoisyCells->SetBinContent(281,5582); hRatePerCell_NoNoisyCells->SetBinContent(282,5575); hRatePerCell_NoNoisyCells->SetBinContent(283,5294); hRatePerCell_NoNoisyCells->SetBinContent(284,5333); hRatePerCell_NoNoisyCells->SetBinContent(285,5247); hRatePerCell_NoNoisyCells->SetBinContent(286,4901); hRatePerCell_NoNoisyCells->SetBinContent(287,4269); hRatePerCell_NoNoisyCells->SetBinContent(288,4599); hRatePerCell_NoNoisyCells->SetBinContent(289,4518); hRatePerCell_NoNoisyCells->SetBinContent(290,3989); hRatePerCell_NoNoisyCells->SetBinContent(291,4556); hRatePerCell_NoNoisyCells->SetBinContent(292,4539); hRatePerCell_NoNoisyCells->SetBinContent(293,4808); hRatePerCell_NoNoisyCells->SetBinContent(294,4869); hRatePerCell_NoNoisyCells->SetBinContent(295,5087); hRatePerCell_NoNoisyCells->SetBinContent(296,5295); hRatePerCell_NoNoisyCells->SetBinContent(419,1); hRatePerCell_NoNoisyCells->SetBinContent(420,1); hRatePerCell_NoNoisyCells->SetBinContent(479,1); hRatePerCell_NoNoisyCells->SetBinContent(543,1); hRatePerCell_NoNoisyCells->SetEntries(350638); hRatePerCell_NoNoisyCells->SetDirectory(0); hRatePerCell_NoNoisyCells->SetStats(0); hRatePerCell_NoNoisyCells->SetContour(20); hRatePerCell_NoNoisyCells->SetContourLevel(0,0); hRatePerCell_NoNoisyCells->SetContourLevel(1,405.7); hRatePerCell_NoNoisyCells->SetContourLevel(2,811.4); hRatePerCell_NoNoisyCells->SetContourLevel(3,1217.1); hRatePerCell_NoNoisyCells->SetContourLevel(4,1622.8); hRatePerCell_NoNoisyCells->SetContourLevel(5,2028.5); hRatePerCell_NoNoisyCells->SetContourLevel(6,2434.2); hRatePerCell_NoNoisyCells->SetContourLevel(7,2839.9); hRatePerCell_NoNoisyCells->SetContourLevel(8,3245.6); hRatePerCell_NoNoisyCells->SetContourLevel(9,3651.3); hRatePerCell_NoNoisyCells->SetContourLevel(10,4057); hRatePerCell_NoNoisyCells->SetContourLevel(11,4462.7); hRatePerCell_NoNoisyCells->SetContourLevel(12,4868.4); hRatePerCell_NoNoisyCells->SetContourLevel(13,5274.1); hRatePerCell_NoNoisyCells->SetContourLevel(14,5679.8); hRatePerCell_NoNoisyCells->SetContourLevel(15,6085.5); hRatePerCell_NoNoisyCells->SetContourLevel(16,6491.2); hRatePerCell_NoNoisyCells->SetContourLevel(17,6896.9); hRatePerCell_NoNoisyCells->SetContourLevel(18,7302.6); hRatePerCell_NoNoisyCells->SetContourLevel(19,7708.3); 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 5720"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }