void RatesPerCell_Removing_noisy_cells_run_6791_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:05:54 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9133.013,67.5,82197.11); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6791",60,0,60); h_SL2L164->SetBinContent(1,4468.225); h_SL2L164->SetBinContent(2,5546.305); h_SL2L164->SetBinContent(3,6518.235); h_SL2L164->SetBinContent(4,6976.004); h_SL2L164->SetBinContent(5,6919.612); h_SL2L164->SetBinContent(6,6601.164); h_SL2L164->SetBinContent(7,5884.656); h_SL2L164->SetBinContent(8,5897.924); h_SL2L164->SetBinContent(9,6654.238); h_SL2L164->SetBinContent(10,6939.515); h_SL2L164->SetBinContent(11,6886.44); h_SL2L164->SetBinContent(12,6893.075); h_SL2L164->SetBinContent(13,7148.497); h_SL2L164->SetBinContent(14,7188.303); h_SL2L164->SetBinContent(15,7055.616); h_SL2L164->SetBinContent(16,6873.171); h_SL2L164->SetBinContent(17,6896.392); h_SL2L164->SetBinContent(18,7025.761); h_SL2L164->SetBinContent(19,7005.858); h_SL2L164->SetBinContent(20,6564.675); h_SL2L164->SetBinContent(21,6047.197); h_SL2L164->SetBinContent(22,6279.398); h_SL2L164->SetBinContent(23,6435.306); h_SL2L164->SetBinContent(24,6375.596); h_SL2L164->SetBinContent(25,11566.96); h_SL2L164->SetBinContent(26,30096.66); h_SL2L164->SetBinContent(27,43949.16); h_SL2L164->SetBinContent(28,51916.99); h_SL2L164->SetBinContent(29,55247.43); h_SL2L164->SetBinContent(30,52351.54); h_SL2L164->SetBinContent(31,51940.21); h_SL2L164->SetBinContent(32,51644.98); h_SL2L164->SetBinContent(33,23.22017); h_SL2L164->SetBinContent(34,19.90301); h_SL2L164->SetBinContent(36,9.951504); h_SL2L164->SetBinContent(49,3.317168); h_SL2L164->SetBinContent(51,6.634336); h_SL2L164->SetBinContent(52,3.317168); h_SL2L164->SetMaximum(73064.1); h_SL2L164->SetEntries(60); h_SL2L164->SetDirectory(0); h_SL2L164->SetStats(0); h_SL2L164->SetLineWidth(2); h_SL2L164->GetXaxis()->SetTitle("Cell"); h_SL2L164->GetXaxis()->SetLabelFont(42); h_SL2L164->GetXaxis()->SetLabelSize(0.035); h_SL2L164->GetXaxis()->SetTitleSize(0.035); h_SL2L164->GetXaxis()->SetTitleFont(42); h_SL2L164->GetYaxis()->SetTitle("Hz"); h_SL2L164->GetYaxis()->SetLabelFont(42); h_SL2L164->GetYaxis()->SetLabelSize(0.035); h_SL2L164->GetYaxis()->SetTitleSize(0.035); h_SL2L164->GetYaxis()->SetTitleOffset(1.45); h_SL2L164->GetYaxis()->SetTitleFont(42); h_SL2L164->GetZaxis()->SetLabelFont(42); h_SL2L164->GetZaxis()->SetLabelSize(0.035); h_SL2L164->GetZaxis()->SetTitleSize(0.035); h_SL2L164->GetZaxis()->SetTitleFont(42); h_SL2L164->Draw(""); TH1D *h_SL2L265 = new TH1D("h_SL2L265","",60,0,60); h_SL2L265->SetBinContent(1,3781.571); h_SL2L265->SetBinContent(2,5277.614); h_SL2L265->SetBinContent(3,5881.338); h_SL2L265->SetBinContent(4,6448.574); h_SL2L265->SetBinContent(5,6239.593); h_SL2L265->SetBinContent(6,6322.522); h_SL2L265->SetBinContent(7,6040.562); h_SL2L265->SetBinContent(8,5307.468); h_SL2L265->SetBinContent(9,5987.488); h_SL2L265->SetBinContent(10,6694.044); h_SL2L265->SetBinContent(11,6640.97); h_SL2L265->SetBinContent(12,6995.907); h_SL2L265->SetBinContent(13,6889.757); h_SL2L265->SetBinContent(14,6985.955); h_SL2L265->SetBinContent(15,6972.687); h_SL2L265->SetBinContent(16,6863.22); h_SL2L265->SetBinContent(17,6577.944); h_SL2L265->SetBinContent(18,6757.071); h_SL2L265->SetBinContent(19,6783.608); h_SL2L265->SetBinContent(20,6425.354); h_SL2L265->SetBinContent(21,6239.593); h_SL2L265->SetBinContent(22,5751.969); h_SL2L265->SetBinContent(23,5977.536); h_SL2L265->SetBinContent(24,6126.809); h_SL2L265->SetBinContent(25,7118.642); h_SL2L265->SetBinContent(26,20254.63); h_SL2L265->SetBinContent(27,37420.97); h_SL2L265->SetBinContent(28,48609.78); h_SL2L265->SetBinContent(29,53688.36); h_SL2L265->SetBinContent(30,53724.85); h_SL2L265->SetBinContent(31,51207.12); h_SL2L265->SetBinContent(32,51694.74); h_SL2L265->SetBinContent(33,43.12318); h_SL2L265->SetBinContent(34,26.53734); h_SL2L265->SetBinContent(35,13.26867); h_SL2L265->SetBinContent(36,3.317168); h_SL2L265->SetBinContent(50,3.317168); h_SL2L265->SetBinContent(52,3.317168); h_SL2L265->SetMaximum(63534.54); h_SL2L265->SetEntries(60); h_SL2L265->SetDirectory(0); h_SL2L265->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#cc0000"); h_SL2L265->SetLineColor(ci); h_SL2L265->SetLineWidth(2); h_SL2L265->GetXaxis()->SetTitle("Cell"); h_SL2L265->GetXaxis()->SetLabelFont(42); h_SL2L265->GetXaxis()->SetLabelSize(0.035); h_SL2L265->GetXaxis()->SetTitleSize(0.035); h_SL2L265->GetXaxis()->SetTitleFont(42); h_SL2L265->GetYaxis()->SetTitle("Hz"); h_SL2L265->GetYaxis()->SetLabelFont(42); h_SL2L265->GetYaxis()->SetLabelSize(0.035); h_SL2L265->GetYaxis()->SetTitleSize(0.035); h_SL2L265->GetYaxis()->SetTitleOffset(1.45); h_SL2L265->GetYaxis()->SetTitleFont(42); h_SL2L265->GetZaxis()->SetLabelFont(42); h_SL2L265->GetZaxis()->SetLabelSize(0.035); h_SL2L265->GetZaxis()->SetTitleSize(0.035); h_SL2L265->GetZaxis()->SetTitleFont(42); h_SL2L265->Draw("same"); TH1D *h_SL2L366 = new TH1D("h_SL2L366","",60,0,60); h_SL2L366->SetBinContent(1,4458.273); h_SL2L366->SetBinContent(2,5254.394); h_SL2L366->SetBinContent(3,6153.346); h_SL2L366->SetBinContent(4,6219.689); h_SL2L366->SetBinContent(5,6431.988); h_SL2L366->SetBinContent(6,5874.704); h_SL2L366->SetBinContent(7,5383.763); h_SL2L366->SetBinContent(8,5556.256); h_SL2L366->SetBinContent(9,6159.98); h_SL2L366->SetBinContent(10,6544.772); h_SL2L366->SetBinContent(11,6567.992); h_SL2L366->SetBinContent(12,6733.851); h_SL2L366->SetBinContent(13,6650.921); h_SL2L366->SetBinContent(14,6843.317); h_SL2L366->SetBinContent(15,6448.574); h_SL2L366->SetBinContent(16,6359.011); h_SL2L366->SetBinContent(17,6319.205); h_SL2L366->SetBinContent(18,6574.626); h_SL2L366->SetBinContent(19,6773.657); h_SL2L366->SetBinContent(20,6256.178); h_SL2L366->SetBinContent(21,5795.092); h_SL2L366->SetBinContent(22,5861.436); h_SL2L366->SetBinContent(23,5957.633); h_SL2L366->SetBinContent(24,6087.003); h_SL2L366->SetBinContent(25,11129.1); h_SL2L366->SetBinContent(26,29565.92); h_SL2L366->SetBinContent(27,43438.31); h_SL2L366->SetBinContent(28,51777.67); h_SL2L366->SetBinContent(29,54321.94); h_SL2L366->SetBinContent(30,51916.99); h_SL2L366->SetBinContent(31,51628.4); h_SL2L366->SetBinContent(32,51253.56); h_SL2L366->SetBinContent(33,13.26867); h_SL2L366->SetBinContent(34,19.90301); h_SL2L366->SetBinContent(35,3.317168); h_SL2L366->SetBinContent(36,6.634336); h_SL2L366->SetMaximum(63534.54); h_SL2L366->SetEntries(60); h_SL2L366->SetDirectory(0); h_SL2L366->SetStats(0); ci = TColor::GetColor("#009900"); h_SL2L366->SetLineColor(ci); h_SL2L366->SetLineWidth(2); h_SL2L366->GetXaxis()->SetTitle("Cell"); h_SL2L366->GetXaxis()->SetLabelFont(42); h_SL2L366->GetXaxis()->SetLabelSize(0.035); h_SL2L366->GetXaxis()->SetTitleSize(0.035); h_SL2L366->GetXaxis()->SetTitleFont(42); h_SL2L366->GetYaxis()->SetTitle("Hz"); h_SL2L366->GetYaxis()->SetLabelFont(42); h_SL2L366->GetYaxis()->SetLabelSize(0.035); h_SL2L366->GetYaxis()->SetTitleSize(0.035); h_SL2L366->GetYaxis()->SetTitleOffset(1.45); h_SL2L366->GetYaxis()->SetTitleFont(42); h_SL2L366->GetZaxis()->SetLabelFont(42); h_SL2L366->GetZaxis()->SetLabelSize(0.035); h_SL2L366->GetZaxis()->SetTitleSize(0.035); h_SL2L366->GetZaxis()->SetTitleFont(42); h_SL2L366->Draw("same"); TH1D *h_SL2L467 = new TH1D("h_SL2L467","",60,0,60); h_SL2L467->SetBinContent(2,4965.8); h_SL2L467->SetBinContent(3,5692.26); h_SL2L467->SetBinContent(4,5884.656); h_SL2L467->SetBinContent(5,6103.589); h_SL2L467->SetBinContent(6,5818.312); h_SL2L467->SetBinContent(7,5742.018); h_SL2L467->SetBinContent(8,4935.946); h_SL2L467->SetBinContent(9,5931.096); h_SL2L467->SetBinContent(10,6040.562); h_SL2L467->SetBinContent(11,6514.917); h_SL2L467->SetBinContent(12,6349.059); h_SL2L467->SetBinContent(13,6405.451); h_SL2L467->SetBinContent(14,6319.205); h_SL2L467->SetBinContent(15,6680.776); h_SL2L467->SetBinContent(16,6153.346); h_SL2L467->SetBinContent(17,6150.029); h_SL2L467->SetBinContent(18,6189.835); h_SL2L467->SetBinContent(19,6594.529); h_SL2L467->SetBinContent(20,6150.029); h_SL2L467->SetBinContent(21,5841.532); h_SL2L467->SetBinContent(22,5546.305); h_SL2L467->SetBinContent(23,5725.432); h_SL2L467->SetBinContent(24,5864.752); h_SL2L467->SetBinContent(25,6703.996); h_SL2L467->SetBinContent(26,19886.42); h_SL2L467->SetBinContent(27,37119.11); h_SL2L467->SetBinContent(28,48251.52); h_SL2L467->SetBinContent(29,53369.91); h_SL2L467->SetBinContent(30,54209.16); h_SL2L467->SetBinContent(31,51127.51); h_SL2L467->SetBinContent(32,51479.12); h_SL2L467->SetBinContent(33,43.12318); h_SL2L467->SetBinContent(34,23.22017); h_SL2L467->SetBinContent(35,9.951504); h_SL2L467->SetBinContent(36,6.634336); h_SL2L467->SetBinContent(52,3.317168); h_SL2L467->SetMaximum(63534.54); h_SL2L467->SetEntries(60); h_SL2L467->SetDirectory(0); h_SL2L467->SetStats(0); ci = TColor::GetColor("#0000cc"); h_SL2L467->SetLineColor(ci); h_SL2L467->SetLineWidth(2); h_SL2L467->GetXaxis()->SetTitle("Cell"); h_SL2L467->GetXaxis()->SetLabelFont(42); h_SL2L467->GetXaxis()->SetLabelSize(0.035); h_SL2L467->GetXaxis()->SetTitleSize(0.035); h_SL2L467->GetXaxis()->SetTitleFont(42); h_SL2L467->GetYaxis()->SetTitle("Hz"); h_SL2L467->GetYaxis()->SetLabelFont(42); h_SL2L467->GetYaxis()->SetLabelSize(0.035); h_SL2L467->GetYaxis()->SetTitleSize(0.035); h_SL2L467->GetYaxis()->SetTitleOffset(1.45); h_SL2L467->GetYaxis()->SetTitleFont(42); h_SL2L467->GetZaxis()->SetLabelFont(42); h_SL2L467->GetZaxis()->SetLabelSize(0.035); h_SL2L467->GetZaxis()->SetTitleSize(0.035); h_SL2L467->GetZaxis()->SetTitleFont(42); h_SL2L467->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_SL2L1","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_SL2L2","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_SL2L3","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_SL2L4","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.3744221,0.9362587,0.6255779,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); TText *AText = pt->AddText("SL2, run 6791"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }