void RatesPerCell_Removing_noisy_cells_run_5474_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 14:43:43 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-28931.85,67.5,260386.6); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 5474",60,0,60); h_SL1L160->SetBinContent(1,78538.11); h_SL1L160->SetBinContent(2,82664.32); h_SL1L160->SetBinContent(3,76264.8); h_SL1L160->SetBinContent(4,78055.42); h_SL1L160->SetBinContent(5,76716.35); h_SL1L160->SetBinContent(6,81247.39); h_SL1L160->SetBinContent(7,77230.18); h_SL1L160->SetBinContent(8,77790.72); h_SL1L160->SetBinContent(9,74832.3); h_SL1L160->SetBinContent(10,70425.83); h_SL1L160->SetBinContent(11,67654.26); h_SL1L160->SetBinContent(12,67187.14); h_SL1L160->SetBinContent(13,69912); h_SL1L160->SetBinContent(14,72527.86); h_SL1L160->SetBinContent(15,73695.65); h_SL1L160->SetBinContent(16,66034.91); h_SL1L160->SetBinContent(17,66922.44); h_SL1L160->SetBinContent(18,70410.26); h_SL1L160->SetBinContent(19,72107.45); h_SL1L160->SetBinContent(20,74598.75); h_SL1L160->SetBinContent(21,76498.36); h_SL1L160->SetBinContent(22,77744.01); h_SL1L160->SetBinContent(23,78226.7); h_SL1L160->SetBinContent(24,76747.49); h_SL1L160->SetBinContent(25,76996.62); h_SL1L160->SetBinContent(26,71235.5); h_SL1L160->SetBinContent(27,73072.83); h_SL1L160->SetBinContent(28,73275.24); h_SL1L160->SetBinContent(29,75673.12); h_SL1L160->SetBinContent(30,75968.96); h_SL1L160->SetBinContent(31,73602.23); h_SL1L160->SetBinContent(32,75299.42); h_SL1L160->SetBinContent(33,88129.6); h_SL1L160->SetBinContent(34,93376.89); h_SL1L160->SetBinContent(35,98577.47); h_SL1L160->SetBinContent(36,113182.7); h_SL1L160->SetBinContent(37,146348.1); h_SL1L160->SetBinContent(38,175013.5); h_SL1L160->SetBinContent(39,133533.5); h_SL1L160->SetBinContent(40,74365.19); h_SL1L160->SetBinContent(41,69553.88); h_SL1L160->SetBinContent(42,67280.56); h_SL1L160->SetBinContent(43,67732.11); h_SL1L160->SetBinContent(44,67171.57); h_SL1L160->SetBinContent(45,64976.12); h_SL1L160->SetBinContent(46,61394.88); h_SL1L160->SetBinContent(47,62220.12); h_SL1L160->SetBinContent(48,62578.24); h_SL1L160->SetBinContent(49,61581.73); h_SL1L160->SetBinContent(50,61768.57); h_SL1L160->SetBinContent(51,58825.73); h_SL1L160->SetBinContent(52,58452.04); h_SL1L160->SetBinContent(53,57455.52); h_SL1L160->SetBinContent(54,57766.93); h_SL1L160->SetBinContent(55,57393.23); h_SL1L160->SetBinContent(56,54606.1); h_SL1L160->SetBinContent(57,54652.81); h_SL1L160->SetBinContent(58,53765.29); h_SL1L160->SetBinContent(59,54948.65); h_SL1L160->SetMaximum(231454.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(49,451.5474); h_SL1L261->SetMaximum(201265.6); 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(12,15.5706); h_SL1L362->SetMaximum(201265.6); 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,71889.46); h_SL1L463->SetBinContent(3,72294.3); h_SL1L463->SetBinContent(4,72854.84); h_SL1L463->SetBinContent(5,69133.47); h_SL1L463->SetBinContent(6,71079.79); h_SL1L463->SetBinContent(7,71469.05); h_SL1L463->SetBinContent(8,71375.63); h_SL1L463->SetBinContent(9,72014.03); h_SL1L463->SetBinContent(10,69631.73); h_SL1L463->SetBinContent(11,62920.8); h_SL1L463->SetBinContent(12,62297.97); h_SL1L463->SetBinContent(13,63029.79); h_SL1L463->SetBinContent(14,64462.29); h_SL1L463->SetBinContent(15,66564.32); h_SL1L463->SetBinContent(16,65069.54); h_SL1L463->SetBinContent(17,61114.61); h_SL1L463->SetBinContent(18,64446.71); h_SL1L463->SetBinContent(19,64477.86); h_SL1L463->SetBinContent(20,65131.82); h_SL1L463->SetBinContent(21,68308.23); h_SL1L463->SetBinContent(22,73166.25); h_SL1L463->SetBinContent(23,70270.12); h_SL1L463->SetBinContent(24,70986.37); h_SL1L463->SetBinContent(25,71500.2); h_SL1L463->SetBinContent(26,69631.73); h_SL1L463->SetBinContent(27,65754.65); h_SL1L463->SetBinContent(28,67576.41); h_SL1L463->SetBinContent(29,69974.28); h_SL1L463->SetBinContent(30,68931.05); h_SL1L463->SetBinContent(31,69071.19); h_SL1L463->SetBinContent(32,68463.93); h_SL1L463->SetBinContent(33,73119.54); h_SL1L463->SetBinContent(34,82290.62); h_SL1L463->SetBinContent(35,92894.2); h_SL1L463->SetBinContent(36,97674.38); h_SL1L463->SetBinContent(37,119551.1); h_SL1L463->SetBinContent(38,161000); h_SL1L463->SetBinContent(39,159660.9); h_SL1L463->SetBinContent(40,84735.21); h_SL1L463->SetBinContent(41,68074.66); h_SL1L463->SetBinContent(42,64758.13); h_SL1L463->SetBinContent(43,63699.33); h_SL1L463->SetBinContent(44,62282.4); h_SL1L463->SetBinContent(45,59791.11); h_SL1L463->SetBinContent(46,61753); h_SL1L463->SetBinContent(47,60071.38); h_SL1L463->SetBinContent(48,59915.67); h_SL1L463->SetBinContent(49,56241.01); h_SL1L463->SetBinContent(50,56241.01); h_SL1L463->SetBinContent(51,54855.23); h_SL1L463->SetBinContent(52,52083.66); h_SL1L463->SetBinContent(53,53920.99); h_SL1L463->SetBinContent(54,52068.09); h_SL1L463->SetBinContent(55,15.5706); h_SL1L463->SetBinContent(56,50199.62); h_SL1L463->SetBinContent(57,51367.41); h_SL1L463->SetBinContent(58,51881.24); h_SL1L463->SetBinContent(59,48595.84); h_SL1L463->SetMaximum(201265.6); 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 5474"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }