void Rates2D_NoNoise_Run7032() { //=========Macro generated from canvas: c/c //========= (Sun Dec 23 11:46:03 2018) 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: 7032",60,0.5,60.5,12,0.5,12.5); hRatePerCell_NoNoisyCells->SetBinContent(63,478); hRatePerCell_NoNoisyCells->SetBinContent(64,403); hRatePerCell_NoNoisyCells->SetBinContent(65,364); hRatePerCell_NoNoisyCells->SetBinContent(66,353); hRatePerCell_NoNoisyCells->SetBinContent(67,278); hRatePerCell_NoNoisyCells->SetBinContent(68,326); hRatePerCell_NoNoisyCells->SetBinContent(69,303); hRatePerCell_NoNoisyCells->SetBinContent(70,314); hRatePerCell_NoNoisyCells->SetBinContent(71,305); hRatePerCell_NoNoisyCells->SetBinContent(72,311); hRatePerCell_NoNoisyCells->SetBinContent(73,375); hRatePerCell_NoNoisyCells->SetBinContent(74,381); hRatePerCell_NoNoisyCells->SetBinContent(75,1024); hRatePerCell_NoNoisyCells->SetBinContent(76,1150); hRatePerCell_NoNoisyCells->SetBinContent(77,947); hRatePerCell_NoNoisyCells->SetBinContent(78,612); hRatePerCell_NoNoisyCells->SetBinContent(79,403); hRatePerCell_NoNoisyCells->SetBinContent(80,433); hRatePerCell_NoNoisyCells->SetBinContent(81,464); hRatePerCell_NoNoisyCells->SetBinContent(82,417); hRatePerCell_NoNoisyCells->SetBinContent(83,477); hRatePerCell_NoNoisyCells->SetBinContent(84,520); hRatePerCell_NoNoisyCells->SetBinContent(85,472); hRatePerCell_NoNoisyCells->SetBinContent(86,391); hRatePerCell_NoNoisyCells->SetBinContent(87,397); hRatePerCell_NoNoisyCells->SetBinContent(88,439); hRatePerCell_NoNoisyCells->SetBinContent(89,420); hRatePerCell_NoNoisyCells->SetBinContent(90,387); hRatePerCell_NoNoisyCells->SetBinContent(91,357); hRatePerCell_NoNoisyCells->SetBinContent(92,448); hRatePerCell_NoNoisyCells->SetBinContent(93,405); hRatePerCell_NoNoisyCells->SetBinContent(94,401); hRatePerCell_NoNoisyCells->SetBinContent(95,903); hRatePerCell_NoNoisyCells->SetBinContent(96,914); hRatePerCell_NoNoisyCells->SetBinContent(97,877); hRatePerCell_NoNoisyCells->SetBinContent(98,900); hRatePerCell_NoNoisyCells->SetBinContent(99,897); hRatePerCell_NoNoisyCells->SetBinContent(100,888); hRatePerCell_NoNoisyCells->SetBinContent(101,871); hRatePerCell_NoNoisyCells->SetBinContent(103,415); hRatePerCell_NoNoisyCells->SetBinContent(104,427); hRatePerCell_NoNoisyCells->SetBinContent(105,478); hRatePerCell_NoNoisyCells->SetBinContent(106,381); hRatePerCell_NoNoisyCells->SetBinContent(107,386); hRatePerCell_NoNoisyCells->SetBinContent(108,353); hRatePerCell_NoNoisyCells->SetBinContent(109,352); hRatePerCell_NoNoisyCells->SetBinContent(110,294); hRatePerCell_NoNoisyCells->SetBinContent(111,356); hRatePerCell_NoNoisyCells->SetBinContent(112,323); hRatePerCell_NoNoisyCells->SetBinContent(113,311); hRatePerCell_NoNoisyCells->SetBinContent(114,300); hRatePerCell_NoNoisyCells->SetBinContent(115,389); hRatePerCell_NoNoisyCells->SetBinContent(116,294); hRatePerCell_NoNoisyCells->SetBinContent(117,306); hRatePerCell_NoNoisyCells->SetBinContent(118,301); hRatePerCell_NoNoisyCells->SetBinContent(125,92); hRatePerCell_NoNoisyCells->SetBinContent(126,920); hRatePerCell_NoNoisyCells->SetBinContent(127,751); hRatePerCell_NoNoisyCells->SetBinContent(128,2); hRatePerCell_NoNoisyCells->SetBinContent(133,2109); hRatePerCell_NoNoisyCells->SetBinContent(134,6); hRatePerCell_NoNoisyCells->SetBinContent(136,2); hRatePerCell_NoNoisyCells->SetBinContent(137,5); hRatePerCell_NoNoisyCells->SetBinContent(138,639); hRatePerCell_NoNoisyCells->SetBinContent(139,451); hRatePerCell_NoNoisyCells->SetBinContent(140,442); hRatePerCell_NoNoisyCells->SetBinContent(197,1); hRatePerCell_NoNoisyCells->SetBinContent(199,47); hRatePerCell_NoNoisyCells->SetBinContent(200,526); hRatePerCell_NoNoisyCells->SetBinContent(201,609); hRatePerCell_NoNoisyCells->SetBinContent(202,525); hRatePerCell_NoNoisyCells->SetBinContent(203,2); hRatePerCell_NoNoisyCells->SetBinContent(215,1); hRatePerCell_NoNoisyCells->SetBinContent(218,2); hRatePerCell_NoNoisyCells->SetBinContent(250,338); hRatePerCell_NoNoisyCells->SetBinContent(251,343); hRatePerCell_NoNoisyCells->SetBinContent(252,311); hRatePerCell_NoNoisyCells->SetBinContent(253,374); hRatePerCell_NoNoisyCells->SetBinContent(254,347); hRatePerCell_NoNoisyCells->SetBinContent(255,399); hRatePerCell_NoNoisyCells->SetBinContent(256,356); hRatePerCell_NoNoisyCells->SetBinContent(257,390); hRatePerCell_NoNoisyCells->SetBinContent(258,366); hRatePerCell_NoNoisyCells->SetBinContent(259,574); hRatePerCell_NoNoisyCells->SetBinContent(260,414); hRatePerCell_NoNoisyCells->SetBinContent(261,786); hRatePerCell_NoNoisyCells->SetBinContent(262,1223); hRatePerCell_NoNoisyCells->SetBinContent(263,850); hRatePerCell_NoNoisyCells->SetBinContent(264,947); hRatePerCell_NoNoisyCells->SetBinContent(265,304); hRatePerCell_NoNoisyCells->SetBinContent(266,374); hRatePerCell_NoNoisyCells->SetBinContent(267,346); hRatePerCell_NoNoisyCells->SetBinContent(268,326); hRatePerCell_NoNoisyCells->SetBinContent(269,422); hRatePerCell_NoNoisyCells->SetBinContent(270,394); hRatePerCell_NoNoisyCells->SetBinContent(271,357); hRatePerCell_NoNoisyCells->SetBinContent(272,416); hRatePerCell_NoNoisyCells->SetBinContent(273,341); hRatePerCell_NoNoisyCells->SetBinContent(274,352); hRatePerCell_NoNoisyCells->SetBinContent(275,353); hRatePerCell_NoNoisyCells->SetBinContent(276,352); hRatePerCell_NoNoisyCells->SetBinContent(277,385); hRatePerCell_NoNoisyCells->SetBinContent(278,428); hRatePerCell_NoNoisyCells->SetBinContent(279,446); hRatePerCell_NoNoisyCells->SetBinContent(280,441); hRatePerCell_NoNoisyCells->SetBinContent(281,397); hRatePerCell_NoNoisyCells->SetBinContent(282,562); hRatePerCell_NoNoisyCells->SetBinContent(283,759); hRatePerCell_NoNoisyCells->SetBinContent(284,515); hRatePerCell_NoNoisyCells->SetBinContent(289,445); hRatePerCell_NoNoisyCells->SetBinContent(290,530); hRatePerCell_NoNoisyCells->SetBinContent(291,571); hRatePerCell_NoNoisyCells->SetBinContent(292,615); hRatePerCell_NoNoisyCells->SetBinContent(293,500); hRatePerCell_NoNoisyCells->SetBinContent(294,512); hRatePerCell_NoNoisyCells->SetBinContent(295,433); hRatePerCell_NoNoisyCells->SetBinContent(296,467); hRatePerCell_NoNoisyCells->SetBinContent(297,393); hRatePerCell_NoNoisyCells->SetBinContent(298,425); hRatePerCell_NoNoisyCells->SetBinContent(299,391); hRatePerCell_NoNoisyCells->SetBinContent(300,420); hRatePerCell_NoNoisyCells->SetBinContent(301,358); hRatePerCell_NoNoisyCells->SetBinContent(302,409); hRatePerCell_NoNoisyCells->SetBinContent(304,404); hRatePerCell_NoNoisyCells->SetBinContent(377,1); hRatePerCell_NoNoisyCells->SetBinContent(378,1); hRatePerCell_NoNoisyCells->SetBinContent(379,1); hRatePerCell_NoNoisyCells->SetBinContent(435,4); hRatePerCell_NoNoisyCells->SetBinContent(491,2); hRatePerCell_NoNoisyCells->SetBinContent(629,49); hRatePerCell_NoNoisyCells->SetBinContent(641,1); hRatePerCell_NoNoisyCells->SetBinContent(672,1); hRatePerCell_NoNoisyCells->SetBinContent(673,21); hRatePerCell_NoNoisyCells->SetBinContent(685,3); hRatePerCell_NoNoisyCells->SetBinContent(735,16); hRatePerCell_NoNoisyCells->SetEntries(59274); hRatePerCell_NoNoisyCells->SetDirectory(0); hRatePerCell_NoNoisyCells->SetStats(0); hRatePerCell_NoNoisyCells->SetContour(20); hRatePerCell_NoNoisyCells->SetContourLevel(0,0); hRatePerCell_NoNoisyCells->SetContourLevel(1,105.45); hRatePerCell_NoNoisyCells->SetContourLevel(2,210.9); hRatePerCell_NoNoisyCells->SetContourLevel(3,316.35); hRatePerCell_NoNoisyCells->SetContourLevel(4,421.8); hRatePerCell_NoNoisyCells->SetContourLevel(5,527.25); hRatePerCell_NoNoisyCells->SetContourLevel(6,632.7); hRatePerCell_NoNoisyCells->SetContourLevel(7,738.15); hRatePerCell_NoNoisyCells->SetContourLevel(8,843.6); hRatePerCell_NoNoisyCells->SetContourLevel(9,949.05); hRatePerCell_NoNoisyCells->SetContourLevel(10,1054.5); hRatePerCell_NoNoisyCells->SetContourLevel(11,1159.95); hRatePerCell_NoNoisyCells->SetContourLevel(12,1265.4); hRatePerCell_NoNoisyCells->SetContourLevel(13,1370.85); hRatePerCell_NoNoisyCells->SetContourLevel(14,1476.3); hRatePerCell_NoNoisyCells->SetContourLevel(15,1581.75); hRatePerCell_NoNoisyCells->SetContourLevel(16,1687.2); hRatePerCell_NoNoisyCells->SetContourLevel(17,1792.65); hRatePerCell_NoNoisyCells->SetContourLevel(18,1898.1); hRatePerCell_NoNoisyCells->SetContourLevel(19,2003.55); 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: 7032"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }