void RatesPerCell_Removing_noisy_cells_run_6646_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:59:16 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-20586.73,67.5,185280.5); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6646",60,0,60); h_SL2L164->SetBinContent(1,8391.82); h_SL2L164->SetBinContent(2,10328.39); h_SL2L164->SetBinContent(3,12602.98); h_SL2L164->SetBinContent(4,13179.88); h_SL2L164->SetBinContent(5,12544.53); h_SL2L164->SetBinContent(6,11820.22); h_SL2L164->SetBinContent(7,10839.22); h_SL2L164->SetBinContent(8,10447.84); h_SL2L164->SetBinContent(9,12130.27); h_SL2L164->SetBinContent(10,12638.56); h_SL2L164->SetBinContent(11,12554.69); h_SL2L164->SetBinContent(12,12475.91); h_SL2L164->SetBinContent(13,12572.48); h_SL2L164->SetBinContent(14,12425.08); h_SL2L164->SetBinContent(15,12000.66); h_SL2L164->SetBinContent(16,11998.12); h_SL2L164->SetBinContent(17,11510.16); h_SL2L164->SetBinContent(18,11779.55); h_SL2L164->SetBinContent(19,11695.69); h_SL2L164->SetBinContent(20,10689.28); h_SL2L164->SetBinContent(21,10391.93); h_SL2L164->SetBinContent(22,9738.78); h_SL2L164->SetBinContent(23,9781.985); h_SL2L164->SetBinContent(24,9713.366); h_SL2L164->SetBinContent(25,14221.87); h_SL2L164->SetBinContent(26,32194.9); h_SL2L164->SetBinContent(27,46561.64); h_SL2L164->SetBinContent(28,53202.41); h_SL2L164->SetBinContent(29,56778.21); h_SL2L164->SetBinContent(30,54882.3); h_SL2L164->SetBinContent(31,53769.15); h_SL2L164->SetBinContent(32,54008.05); h_SL2L164->SetBinContent(33,52381.53); h_SL2L164->SetBinContent(34,31414.68); h_SL2L164->SetBinContent(36,7446.406); h_SL2L164->SetBinContent(37,8668.836); h_SL2L164->SetBinContent(38,7372.704); h_SL2L164->SetBinContent(39,8030.936); h_SL2L164->SetBinContent(40,57438.98); h_SL2L164->SetBinContent(41,124532.9); h_SL2L164->SetBinContent(42,11581.32); h_SL2L164->SetBinContent(43,11728.72); h_SL2L164->SetBinContent(44,11840.55); h_SL2L164->SetBinContent(45,4851.6); h_SL2L164->SetBinContent(46,4561.876); h_SL2L164->SetBinContent(47,4640.661); h_SL2L164->SetBinContent(48,4721.987); h_SL2L164->SetBinContent(49,4805.854); h_SL2L164->SetBinContent(50,4277.236); h_SL2L164->SetBinContent(51,4854.142); h_SL2L164->SetBinContent(52,5161.655); h_SL2L164->SetBinContent(53,5471.71); h_SL2L164->SetBinContent(54,5537.788); h_SL2L164->SetBinContent(55,5647.07); h_SL2L164->SetBinContent(56,5146.407); h_SL2L164->SetBinContent(57,11017.12); h_SL2L164->SetMaximum(164693.8); 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,6869.5); h_SL2L265->SetBinContent(2,10125.08); h_SL2L265->SetBinContent(3,10714.69); h_SL2L265->SetBinContent(4,12417.45); h_SL2L265->SetBinContent(5,12364.08); h_SL2L265->SetBinContent(6,11881.21); h_SL2L265->SetBinContent(7,11001.87); h_SL2L265->SetBinContent(8,9736.239); h_SL2L265->SetBinContent(9,11268.72); h_SL2L265->SetBinContent(10,11611.82); h_SL2L265->SetBinContent(11,12508.95); h_SL2L265->SetBinContent(12,12013.37); h_SL2L265->SetBinContent(13,12048.95); h_SL2L265->SetBinContent(14,11924.42); h_SL2L265->SetBinContent(15,11820.22); h_SL2L265->SetBinContent(16,11505.08); h_SL2L265->SetBinContent(17,11502.54); h_SL2L265->SetBinContent(18,11413.59); h_SL2L265->SetBinContent(19,11149.28); h_SL2L265->SetBinContent(20,10539.33); h_SL2L265->SetBinContent(21,10053.92); h_SL2L265->SetBinContent(22,9596.46); h_SL2L265->SetBinContent(23,9527.842); h_SL2L265->SetBinContent(24,9436.35); h_SL2L265->SetBinContent(25,9510.052); h_SL2L265->SetBinContent(26,22293.47); h_SL2L265->SetBinContent(27,40141.97); h_SL2L265->SetBinContent(28,50307.71); h_SL2L265->SetBinContent(29,55291.47); h_SL2L265->SetBinContent(30,55756.55); h_SL2L265->SetBinContent(31,53583.62); h_SL2L265->SetBinContent(32,52849.15); h_SL2L265->SetBinContent(33,54048.71); h_SL2L265->SetBinContent(34,44360.76); h_SL2L265->SetBinContent(35,18244.96); h_SL2L265->SetBinContent(36,8447.731); h_SL2L265->SetBinContent(37,6927.953); h_SL2L265->SetBinContent(38,6386.627); h_SL2L265->SetBinContent(39,6534.031); h_SL2L265->SetBinContent(40,7883.533); h_SL2L265->SetBinContent(41,6650.937); h_SL2L265->SetBinContent(42,6561.986); h_SL2L265->SetBinContent(43,5652.152); h_SL2L265->SetBinContent(44,6135.025); h_SL2L265->SetBinContent(45,4803.313); h_SL2L265->SetBinContent(46,4554.252); h_SL2L265->SetBinContent(47,4508.506); h_SL2L265->SetBinContent(48,4483.092); h_SL2L265->SetBinContent(49,4663.534); h_SL2L265->SetBinContent(50,4645.744); h_SL2L265->SetBinContent(51,4500.882); h_SL2L265->SetBinContent(52,4635.578); h_SL2L265->SetBinContent(53,5347.18); h_SL2L265->SetBinContent(54,5451.379); h_SL2L265->SetBinContent(55,5550.495); h_SL2L265->SetBinContent(56,5100.661); h_SL2L265->SetBinContent(57,5049.833); h_SL2L265->SetMaximum(143212.8); 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,7723.422); h_SL2L366->SetBinContent(2,9787.068); h_SL2L366->SetBinContent(3,11817.67); h_SL2L366->SetBinContent(4,12465.74); h_SL2L366->SetBinContent(5,11685.52); h_SL2L366->SetBinContent(6,10806.18); h_SL2L366->SetBinContent(7,9977.676); h_SL2L366->SetBinContent(8,10175.91); h_SL2L366->SetBinContent(9,11472.04); h_SL2L366->SetBinContent(10,11665.19); h_SL2L366->SetBinContent(11,11832.92); h_SL2L366->SetBinContent(12,11655.02); h_SL2L366->SetBinContent(13,11378.01); h_SL2L366->SetBinContent(14,11647.4); h_SL2L366->SetBinContent(15,11446.62); h_SL2L366->SetBinContent(16,11233.14); h_SL2L366->SetBinContent(17,10846.85); h_SL2L366->SetBinContent(18,11233.14); h_SL2L366->SetBinContent(19,10597.79); h_SL2L366->SetBinContent(20,9964.969); h_SL2L366->SetBinContent(21,9413.477); h_SL2L366->SetBinContent(22,9131.378); h_SL2L366->SetBinContent(23,9433.809); h_SL2L366->SetBinContent(24,9083.091); h_SL2L366->SetBinContent(25,13817.79); h_SL2L366->SetBinContent(26,31625.62); h_SL2L366->SetBinContent(27,45875.45); h_SL2L366->SetBinContent(28,52493.35); h_SL2L366->SetBinContent(29,55924.29); h_SL2L366->SetBinContent(30,54401.97); h_SL2L366->SetBinContent(31,53161.75); h_SL2L366->SetBinContent(32,53677.66); h_SL2L366->SetBinContent(33,51657.22); h_SL2L366->SetBinContent(34,31048.72); h_SL2L366->SetBinContent(35,10729.94); h_SL2L366->SetBinContent(36,7286.295); h_SL2L366->SetBinContent(37,6150.274); h_SL2L366->SetBinContent(38,6089.279); h_SL2L366->SetBinContent(39,5517.457); h_SL2L366->SetBinContent(40,6099.445); h_SL2L366->SetBinContent(41,5690.274); h_SL2L366->SetBinContent(42,4973.589); h_SL2L366->SetBinContent(43,4882.098); h_SL2L366->SetBinContent(44,4922.761); h_SL2L366->SetBinContent(45,4432.264); h_SL2L366->SetBinContent(46,4236.573); h_SL2L366->SetBinContent(47,4587.291); h_SL2L366->SetBinContent(48,4287.402); h_SL2L366->SetBinContent(49,4518.672); h_SL2L366->SetBinContent(50,4213.7); h_SL2L366->SetBinContent(51,4249.28); h_SL2L366->SetBinContent(52,4846.518); h_SL2L366->SetBinContent(53,4993.921); h_SL2L366->SetBinContent(54,5098.12); h_SL2L366->SetBinContent(55,5553.037); h_SL2L366->SetBinContent(56,4559.335); h_SL2L366->SetBinContent(57,4742.319); h_SL2L366->SetMaximum(143212.8); 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,9484.638); h_SL2L467->SetBinContent(3,10386.85); h_SL2L467->SetBinContent(4,11423.75); h_SL2L467->SetBinContent(5,11568.61); h_SL2L467->SetBinContent(6,10783.31); h_SL2L467->SetBinContent(7,10257.23); h_SL2L467->SetBinContent(8,9111.046); h_SL2L467->SetBinContent(9,10498.67); h_SL2L467->SetBinContent(10,10864.64); h_SL2L467->SetBinContent(11,11505.08); h_SL2L467->SetBinContent(12,11365.3); h_SL2L467->SetBinContent(13,11080.66); h_SL2L467->SetBinContent(14,11289.06); h_SL2L467->SetBinContent(15,11027.29); h_SL2L467->SetBinContent(16,10826.52); h_SL2L467->SetBinContent(17,10679.11); h_SL2L467->SetBinContent(18,10422.43); h_SL2L467->SetBinContent(19,10788.39); h_SL2L467->SetBinContent(20,9858.229); h_SL2L467->SetBinContent(21,9693.035); h_SL2L467->SetBinContent(22,8706.958); h_SL2L467->SetBinContent(23,8897.565); h_SL2L467->SetBinContent(24,8981.433); h_SL2L467->SetBinContent(25,9273.698); h_SL2L467->SetBinContent(26,22204.52); h_SL2L467->SetBinContent(27,39748.05); h_SL2L467->SetBinContent(28,49743.52); h_SL2L467->SetBinContent(29,55050.04); h_SL2L467->SetBinContent(30,55916.66); h_SL2L467->SetBinContent(31,53255.78); h_SL2L467->SetBinContent(32,52551.8); h_SL2L467->SetBinContent(33,54013.13); h_SL2L467->SetBinContent(34,44259.1); h_SL2L467->SetBinContent(35,18051.82); h_SL2L467->SetBinContent(36,7934.361); h_SL2L467->SetBinContent(37,6597.566); h_SL2L467->SetBinContent(38,6068.948); h_SL2L467->SetBinContent(39,5812.263); h_SL2L467->SetBinContent(40,5176.904); h_SL2L467->SetBinContent(41,5093.037); h_SL2L467->SetBinContent(42,5484.418); h_SL2L467->SetBinContent(43,4767.733); h_SL2L467->SetBinContent(44,4874.473); h_SL2L467->SetBinContent(45,4427.181); h_SL2L467->SetBinContent(46,4279.777); h_SL2L467->SetBinContent(47,4310.274); h_SL2L467->SetBinContent(48,4246.739); h_SL2L467->SetBinContent(49,4312.816); h_SL2L467->SetBinContent(50,4259.446); h_SL2L467->SetBinContent(51,4071.38); h_SL2L467->SetBinContent(52,4582.208); h_SL2L467->SetBinContent(53,4673.7); h_SL2L467->SetBinContent(54,4986.296); h_SL2L467->SetBinContent(55,5273.479); h_SL2L467->SetBinContent(56,4986.296); h_SL2L467->SetBinContent(57,4592.374); h_SL2L467->SetMaximum(143212.8); 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.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("SL2, run 6646"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }