void RatesPerCell_Removing_noisy_cells_run_5634_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 14:46:08 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-13838.09,67.5,124542.8); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 5634",60,0,60); h_SL1L160->SetBinContent(1,83709.09); h_SL1L160->SetBinContent(2,81688.05); h_SL1L160->SetBinContent(3,80684.37); h_SL1L160->SetBinContent(4,80534.15); h_SL1L160->SetBinContent(5,79243.7); h_SL1L160->SetBinContent(6,82705.4); h_SL1L160->SetBinContent(7,82411.8); h_SL1L160->SetBinContent(8,81653.91); h_SL1L160->SetBinContent(9,78403.88); h_SL1L160->SetBinContent(10,71931.09); h_SL1L160->SetBinContent(11,70012.48); h_SL1L160->SetBinContent(12,67929.99); h_SL1L160->SetBinContent(13,69862.27); h_SL1L160->SetBinContent(14,72129.1); h_SL1L160->SetBinContent(15,74498.36); h_SL1L160->SetBinContent(16,69732.54); h_SL1L160->SetBinContent(17,70060.27); h_SL1L160->SetBinContent(18,73651.71); h_SL1L160->SetBinContent(19,76198.48); h_SL1L160->SetBinContent(20,75399.63); h_SL1L160->SetBinContent(21,78909.13); h_SL1L160->SetBinContent(22,80315.66); h_SL1L160->SetBinContent(23,80254.21); h_SL1L160->SetBinContent(24,81073.55); h_SL1L160->SetBinContent(25,81831.44); h_SL1L160->SetBinContent(26,73132.8); h_SL1L160->SetBinContent(27,75304.04); h_SL1L160->SetBinContent(28,77345.56); h_SL1L160->SetBinContent(29,77229.48); h_SL1L160->SetBinContent(30,75215.28); h_SL1L160->SetBinContent(31,74484.7); h_SL1L160->SetBinContent(32,73303.49); h_SL1L160->SetBinContent(33,76519.39); h_SL1L160->SetBinContent(34,76970.03); h_SL1L160->SetBinContent(35,75508.88); h_SL1L160->SetBinContent(36,73760.95); h_SL1L160->SetBinContent(37,73528.8); h_SL1L160->SetBinContent(38,71296.11); h_SL1L160->SetBinContent(39,69063.41); h_SL1L160->SetBinContent(40,67472.53); h_SL1L160->SetBinContent(41,67281.35); h_SL1L160->SetBinContent(42,68305.52); h_SL1L160->SetBinContent(43,67916.34); h_SL1L160->SetBinContent(44,66748.78); h_SL1L160->SetBinContent(45,64290.77); h_SL1L160->SetBinContent(46,63846.96); h_SL1L160->SetBinContent(47,63887.92); h_SL1L160->SetBinContent(48,63075.41); h_SL1L160->SetBinContent(49,61757.64); h_SL1L160->SetBinContent(50,62693.05); h_SL1L160->SetBinContent(51,60078); h_SL1L160->SetBinContent(52,59545.43); h_SL1L160->SetBinContent(53,58452.98); h_SL1L160->SetBinContent(54,58070.62); h_SL1L160->SetBinContent(55,58336.91); h_SL1L160->SetBinContent(56,56602.64); h_SL1L160->SetBinContent(57,55790.13); h_SL1L160->SetBinContent(58,54315.32); h_SL1L160->SetBinContent(59,55237.07); h_SL1L160->SetMaximum(110704.7); h_SL1L160->SetEntries(60); h_SL1L160->SetDirectory(0); h_SL1L160->SetStats(0); h_SL1L160->SetLineWidth(2); h_SL1L160->GetXaxis()->SetTitle("Cell"); h_SL1L160->GetXaxis()->SetLabelFont(42); h_SL1L160->GetXaxis()->SetLabelSize(0.035); h_SL1L160->GetXaxis()->SetTitleSize(0.035); h_SL1L160->GetXaxis()->SetTitleFont(42); h_SL1L160->GetYaxis()->SetTitle("Hz"); h_SL1L160->GetYaxis()->SetLabelFont(42); h_SL1L160->GetYaxis()->SetLabelSize(0.035); h_SL1L160->GetYaxis()->SetTitleSize(0.035); h_SL1L160->GetYaxis()->SetTitleOffset(1.45); h_SL1L160->GetYaxis()->SetTitleFont(42); h_SL1L160->GetZaxis()->SetLabelFont(42); h_SL1L160->GetZaxis()->SetLabelSize(0.035); h_SL1L160->GetZaxis()->SetTitleSize(0.035); h_SL1L160->GetZaxis()->SetTitleFont(42); h_SL1L160->Draw(""); TH1D *h_SL1L261 = new TH1D("h_SL1L261","",60,0,60); h_SL1L261->SetBinContent(4,6.827821); h_SL1L261->SetBinContent(22,6.827821); h_SL1L261->SetBinContent(39,13.65564); h_SL1L261->SetBinContent(41,6.827821); h_SL1L261->SetBinContent(44,6.827821); h_SL1L261->SetBinContent(49,65437.84); h_SL1L261->SetBinContent(52,2123.452); h_SL1L261->SetBinContent(53,3502.672); h_SL1L261->SetBinContent(56,17281.21); h_SL1L261->SetMaximum(96265.45); h_SL1L261->SetEntries(60); h_SL1L261->SetDirectory(0); h_SL1L261->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#cc0000"); h_SL1L261->SetLineColor(ci); h_SL1L261->SetLineWidth(2); h_SL1L261->GetXaxis()->SetTitle("Cell"); h_SL1L261->GetXaxis()->SetLabelFont(42); h_SL1L261->GetXaxis()->SetLabelSize(0.035); h_SL1L261->GetXaxis()->SetTitleSize(0.035); h_SL1L261->GetXaxis()->SetTitleFont(42); h_SL1L261->GetYaxis()->SetTitle("Hz"); h_SL1L261->GetYaxis()->SetLabelFont(42); h_SL1L261->GetYaxis()->SetLabelSize(0.035); h_SL1L261->GetYaxis()->SetTitleSize(0.035); h_SL1L261->GetYaxis()->SetTitleOffset(1.45); h_SL1L261->GetYaxis()->SetTitleFont(42); h_SL1L261->GetZaxis()->SetLabelFont(42); h_SL1L261->GetZaxis()->SetLabelSize(0.035); h_SL1L261->GetZaxis()->SetTitleSize(0.035); h_SL1L261->GetZaxis()->SetTitleFont(42); h_SL1L261->Draw("same"); TH1D *h_SL1L362 = new TH1D("h_SL1L362","",60,0,60); h_SL1L362->SetBinContent(21,6.827821); h_SL1L362->SetBinContent(22,6.827821); h_SL1L362->SetBinContent(23,6.827821); h_SL1L362->SetBinContent(33,6.827821); h_SL1L362->SetBinContent(39,6.827821); h_SL1L362->SetBinContent(40,6.827821); h_SL1L362->SetBinContent(44,6.827821); h_SL1L362->SetBinContent(49,942.2393); h_SL1L362->SetBinContent(53,21582.74); h_SL1L362->SetBinContent(56,25133.21); h_SL1L362->SetBinContent(57,682.7821); h_SL1L362->SetMaximum(96265.45); h_SL1L362->SetEntries(60); h_SL1L362->SetDirectory(0); h_SL1L362->SetStats(0); ci = TColor::GetColor("#009900"); h_SL1L362->SetLineColor(ci); h_SL1L362->SetLineWidth(2); h_SL1L362->GetXaxis()->SetTitle("Cell"); h_SL1L362->GetXaxis()->SetLabelFont(42); h_SL1L362->GetXaxis()->SetLabelSize(0.035); h_SL1L362->GetXaxis()->SetTitleSize(0.035); h_SL1L362->GetXaxis()->SetTitleFont(42); h_SL1L362->GetYaxis()->SetTitle("Hz"); h_SL1L362->GetYaxis()->SetLabelFont(42); h_SL1L362->GetYaxis()->SetLabelSize(0.035); h_SL1L362->GetYaxis()->SetTitleSize(0.035); h_SL1L362->GetYaxis()->SetTitleOffset(1.45); h_SL1L362->GetYaxis()->SetTitleFont(42); h_SL1L362->GetZaxis()->SetLabelFont(42); h_SL1L362->GetZaxis()->SetLabelSize(0.035); h_SL1L362->GetZaxis()->SetTitleSize(0.035); h_SL1L362->GetZaxis()->SetTitleFont(42); h_SL1L362->Draw("same"); TH1D *h_SL1L463 = new TH1D("h_SL1L463","",60,0,60); h_SL1L463->SetBinContent(2,76703.74); h_SL1L463->SetBinContent(3,75085.55); h_SL1L463->SetBinContent(4,73788.27); h_SL1L463->SetBinContent(5,72265.66); h_SL1L463->SetBinContent(6,75454.25); h_SL1L463->SetBinContent(7,73822.41); h_SL1L463->SetBinContent(8,74484.7); h_SL1L463->SetBinContent(9,74129.66); h_SL1L463->SetBinContent(10,68209.94); h_SL1L463->SetBinContent(11,66025.03); h_SL1L463->SetBinContent(12,63287.07); h_SL1L463->SetBinContent(13,63915.23); h_SL1L463->SetBinContent(14,65506.12); h_SL1L463->SetBinContent(15,67923.16); h_SL1L463->SetBinContent(16,66332.28); h_SL1L463->SetBinContent(17,64932.58); h_SL1L463->SetBinContent(18,64789.2); h_SL1L463->SetBinContent(19,67923.16); h_SL1L463->SetBinContent(20,68428.42); h_SL1L463->SetBinContent(21,71678.47); h_SL1L463->SetBinContent(22,73276.18); h_SL1L463->SetBinContent(23,74170.62); h_SL1L463->SetBinContent(24,73651.71); h_SL1L463->SetBinContent(25,74785.12); h_SL1L463->SetBinContent(26,70688.43); h_SL1L463->SetBinContent(27,67970.96); h_SL1L463->SetBinContent(28,67629.57); h_SL1L463->SetBinContent(29,71104.93); h_SL1L463->SetBinContent(30,72088.14); h_SL1L463->SetBinContent(31,69411.63); h_SL1L463->SetBinContent(32,69568.67); h_SL1L463->SetBinContent(33,69991.99); h_SL1L463->SetBinContent(34,71282.45); h_SL1L463->SetBinContent(35,71275.62); h_SL1L463->SetBinContent(36,68640.09); h_SL1L463->SetBinContent(37,66782.92); h_SL1L463->SetBinContent(38,67929.99); h_SL1L463->SetBinContent(39,64270.28); h_SL1L463->SetBinContent(40,64652.64); h_SL1L463->SetBinContent(41,62624.78); h_SL1L463->SetBinContent(42,65055.48); h_SL1L463->SetBinContent(43,62372.15); h_SL1L463->SetBinContent(44,62351.66); h_SL1L463->SetBinContent(45,58746.57); h_SL1L463->SetBinContent(46,61054.38); h_SL1L463->SetBinContent(47,59347.42); h_SL1L463->SetBinContent(48,57947.72); h_SL1L463->SetBinContent(49,56220.28); h_SL1L463->SetBinContent(50,57230.8); h_SL1L463->SetBinContent(51,55025.41); h_SL1L463->SetBinContent(52,54301.66); h_SL1L463->SetBinContent(53,54042.21); h_SL1L463->SetBinContent(54,54171.93); h_SL1L463->SetBinContent(56,53693.99); h_SL1L463->SetBinContent(57,51338.39); h_SL1L463->SetBinContent(58,50648.78); h_SL1L463->SetBinContent(59,49071.55); h_SL1L463->SetMaximum(96265.45); h_SL1L463->SetEntries(60); h_SL1L463->SetDirectory(0); h_SL1L463->SetStats(0); ci = TColor::GetColor("#0000cc"); h_SL1L463->SetLineColor(ci); h_SL1L463->SetLineWidth(2); h_SL1L463->GetXaxis()->SetTitle("Cell"); h_SL1L463->GetXaxis()->SetLabelFont(42); h_SL1L463->GetXaxis()->SetLabelSize(0.035); h_SL1L463->GetXaxis()->SetTitleSize(0.035); h_SL1L463->GetXaxis()->SetTitleFont(42); h_SL1L463->GetYaxis()->SetTitle("Hz"); h_SL1L463->GetYaxis()->SetLabelFont(42); h_SL1L463->GetYaxis()->SetLabelSize(0.035); h_SL1L463->GetYaxis()->SetTitleSize(0.035); h_SL1L463->GetYaxis()->SetTitleOffset(1.45); h_SL1L463->GetYaxis()->SetTitleFont(42); h_SL1L463->GetZaxis()->SetLabelFont(42); h_SL1L463->GetZaxis()->SetLabelSize(0.035); h_SL1L463->GetZaxis()->SetTitleSize(0.035); h_SL1L463->GetZaxis()->SetTitleFont(42); h_SL1L463->Draw("same"); TLegend *leg = new TLegend(0.1,0.83,0.9,0.9,NULL,"brNDC"); leg->SetBorderSize(1); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); TLegendEntry *entry=leg->AddEntry("h_SL1L1","Layer 1","l"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(2); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("h_SL1L2","Layer 2","l"); ci = TColor::GetColor("#cc0000"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(2); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("h_SL1L3","Layer 3","l"); ci = TColor::GetColor("#009900"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(2); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("h_SL1L4","Layer 4","l"); ci = TColor::GetColor("#0000cc"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(2); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); leg->Draw(); TPaveText *pt = new TPaveText(0.3719095,0.9362587,0.6280905,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); TText *AText = pt->AddText("SL1, run 5634"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }