void RatesPerCell_Removing_noisy_cells_run_6208_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:20:04 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11593.01,67.5,104337.1); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 6208",60,0,60); h_SL1L160->SetBinContent(1,59742.86); h_SL1L160->SetBinContent(2,63278.57); h_SL1L160->SetBinContent(3,62835.71); h_SL1L160->SetBinContent(4,60714.29); h_SL1L160->SetBinContent(5,56450); h_SL1L160->SetBinContent(6,59642.86); h_SL1L160->SetBinContent(7,60242.86); h_SL1L160->SetBinContent(8,63878.57); h_SL1L160->SetBinContent(9,59592.86); h_SL1L160->SetBinContent(10,61800); h_SL1L160->SetBinContent(11,65214.29); h_SL1L160->SetBinContent(12,62778.57); h_SL1L160->SetBinContent(13,62828.57); h_SL1L160->SetBinContent(14,57257.14); h_SL1L160->SetBinContent(15,53264.29); h_SL1L160->SetBinContent(16,51442.86); h_SL1L160->SetBinContent(17,51500); h_SL1L160->SetBinContent(18,54614.29); h_SL1L160->SetBinContent(19,54807.14); h_SL1L160->SetBinContent(20,53757.14); h_SL1L160->SetBinContent(21,55400); h_SL1L160->SetBinContent(22,54307.14); h_SL1L160->SetBinContent(23,51342.86); h_SL1L160->SetBinContent(24,47171.43); h_SL1L160->SetBinContent(25,45400); h_SL1L160->SetBinContent(26,46578.57); h_SL1L160->SetBinContent(27,45321.43); h_SL1L160->SetBinContent(28,49171.43); h_SL1L160->SetBinContent(29,48264.29); h_SL1L160->SetBinContent(30,47750); h_SL1L160->SetBinContent(31,47000); h_SL1L160->SetBinContent(32,46364.29); h_SL1L160->SetBinContent(33,46264.29); h_SL1L160->SetBinContent(34,47928.57); h_SL1L160->SetBinContent(35,46928.57); h_SL1L160->SetBinContent(36,45128.57); h_SL1L160->SetBinContent(37,45814.29); h_SL1L160->SetBinContent(38,50042.86); h_SL1L160->SetBinContent(39,47228.57); h_SL1L160->SetBinContent(40,44485.71); h_SL1L160->SetBinContent(41,46821.43); h_SL1L160->SetBinContent(42,48557.14); h_SL1L160->SetBinContent(43,47842.86); h_SL1L160->SetBinContent(44,48978.57); h_SL1L160->SetBinContent(45,45507.14); h_SL1L160->SetBinContent(46,42285.71); h_SL1L160->SetBinContent(47,42592.86); h_SL1L160->SetBinContent(48,42342.86); h_SL1L160->SetBinContent(49,45757.14); h_SL1L160->SetBinContent(50,50242.86); h_SL1L160->SetBinContent(51,47842.86); h_SL1L160->SetBinContent(52,46514.29); h_SL1L160->SetBinContent(53,46292.86); h_SL1L160->SetBinContent(54,45250); h_SL1L160->SetBinContent(55,46300); h_SL1L160->SetBinContent(56,51485.71); h_SL1L160->SetBinContent(57,62478.57); h_SL1L160->SetBinContent(58,67950); h_SL1L160->SetBinContent(59,69650); h_SL1L160->SetMaximum(92744.05); 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,27942.86); h_SL1L261->SetBinContent(52,450); h_SL1L261->SetBinContent(53,321.4286); h_SL1L261->SetBinContent(56,5835.714); h_SL1L261->SetBinContent(57,28.57143); h_SL1L261->SetMaximum(80647.86); 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(28,7.142857); h_SL1L362->SetBinContent(49,7.142857); h_SL1L362->SetBinContent(53,9021.429); h_SL1L362->SetBinContent(56,14157.14); h_SL1L362->SetBinContent(57,171.4286); h_SL1L362->SetMaximum(80647.86); 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,54121.43); h_SL1L463->SetBinContent(3,52071.43); h_SL1L463->SetBinContent(4,51607.14); h_SL1L463->SetBinContent(5,50164.29); h_SL1L463->SetBinContent(6,48928.57); h_SL1L463->SetBinContent(7,49664.29); h_SL1L463->SetBinContent(8,53407.14); h_SL1L463->SetBinContent(9,57107.14); h_SL1L463->SetBinContent(10,60342.86); h_SL1L463->SetBinContent(11,66800); h_SL1L463->SetBinContent(12,70128.57); h_SL1L463->SetBinContent(13,68314.28); h_SL1L463->SetBinContent(14,69000); h_SL1L463->SetBinContent(15,67250); h_SL1L463->SetBinContent(16,60878.57); h_SL1L463->SetBinContent(17,56228.57); h_SL1L463->SetBinContent(18,59242.86); h_SL1L463->SetBinContent(19,56700); h_SL1L463->SetBinContent(20,58021.43); h_SL1L463->SetBinContent(21,55628.57); h_SL1L463->SetBinContent(22,54221.43); h_SL1L463->SetBinContent(23,52957.14); h_SL1L463->SetBinContent(24,53628.57); h_SL1L463->SetBinContent(25,48014.29); h_SL1L463->SetBinContent(26,47528.57); h_SL1L463->SetBinContent(27,49292.86); h_SL1L463->SetBinContent(28,50928.57); h_SL1L463->SetBinContent(29,51864.29); h_SL1L463->SetBinContent(30,52600); h_SL1L463->SetBinContent(31,53728.57); h_SL1L463->SetBinContent(32,52000); h_SL1L463->SetBinContent(33,47928.57); h_SL1L463->SetBinContent(34,49964.29); h_SL1L463->SetBinContent(35,51142.86); h_SL1L463->SetBinContent(36,45092.86); h_SL1L463->SetBinContent(37,38828.57); h_SL1L463->SetBinContent(38,43100); h_SL1L463->SetBinContent(39,50800); h_SL1L463->SetBinContent(40,43364.29); h_SL1L463->SetBinContent(41,42600); h_SL1L463->SetBinContent(42,46614.29); h_SL1L463->SetBinContent(43,48314.29); h_SL1L463->SetBinContent(44,46614.29); h_SL1L463->SetBinContent(45,37942.86); h_SL1L463->SetBinContent(46,41178.57); h_SL1L463->SetBinContent(47,38557.14); h_SL1L463->SetBinContent(48,37557.14); h_SL1L463->SetBinContent(49,36014.29); h_SL1L463->SetBinContent(50,39557.14); h_SL1L463->SetBinContent(51,37778.57); h_SL1L463->SetBinContent(52,39435.71); h_SL1L463->SetBinContent(53,37171.43); h_SL1L463->SetBinContent(54,37192.86); h_SL1L463->SetBinContent(55,21.42857); h_SL1L463->SetBinContent(56,42092.86); h_SL1L463->SetBinContent(57,48457.14); h_SL1L463->SetBinContent(58,60657.14); h_SL1L463->SetBinContent(59,65250); h_SL1L463->SetMaximum(80647.86); 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 6208"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }