void RatesPerCell_Removing_noisy_cells_run_7042_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Dec 23 12:27:32 2018) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-2087.106,67.5,18783.96); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 7042",60,0,60); h_SL1L160->SetBinContent(1,2778.234); h_SL1L160->SetBinContent(2,3008.384); h_SL1L160->SetBinContent(3,3781.029); h_SL1L160->SetBinContent(4,4109.814); h_SL1L160->SetBinContent(5,4093.375); h_SL1L160->SetBinContent(6,4816.702); h_SL1L160->SetBinContent(7,4487.917); h_SL1L160->SetBinContent(8,5408.516); h_SL1L160->SetBinContent(9,5112.609); h_SL1L160->SetBinContent(10,4882.459); h_SL1L160->SetBinContent(11,6033.207); h_SL1L160->SetBinContent(12,5260.562); h_SL1L160->SetBinContent(13,9452.572); h_SL1L160->SetBinContent(14,11441.72); h_SL1L160->SetBinContent(15,10685.52); h_SL1L160->SetBinContent(16,5638.665); h_SL1L160->SetBinContent(17,4964.655); h_SL1L160->SetBinContent(18,6066.086); h_SL1L160->SetBinContent(19,5655.104); h_SL1L160->SetBinContent(20,5622.226); h_SL1L160->SetBinContent(21,6115.403); h_SL1L160->SetBinContent(22,6164.721); h_SL1L160->SetBinContent(23,5605.787); h_SL1L160->SetBinContent(24,5309.88); h_SL1L160->SetBinContent(25,6263.357); h_SL1L160->SetBinContent(26,6082.525); h_SL1L160->SetBinContent(27,5227.684); h_SL1L160->SetBinContent(28,5507.151); h_SL1L160->SetBinContent(29,5967.45); h_SL1L160->SetBinContent(30,6427.75); h_SL1L160->SetBinContent(31,5572.908); h_SL1L160->SetBinContent(32,5704.422); h_SL1L160->SetBinContent(49,4734.506); h_SL1L160->SetBinContent(50,5687.983); h_SL1L160->SetBinContent(51,5112.609); h_SL1L160->SetBinContent(52,4734.506); h_SL1L160->SetBinContent(53,5277.001); h_SL1L160->SetBinContent(54,5063.291); h_SL1L160->SetBinContent(55,4060.496); h_SL1L160->SetBinContent(56,3665.954); h_SL1L160->SetMaximum(16696.85); 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(1,2926.188); h_SL1L261->SetBinContent(2,3402.926); h_SL1L261->SetBinContent(3,4208.45); h_SL1L261->SetBinContent(4,4339.964); h_SL1L261->SetBinContent(5,4866.02); h_SL1L261->SetBinContent(6,5244.123); h_SL1L261->SetBinContent(7,5194.805); h_SL1L261->SetBinContent(8,6098.964); h_SL1L261->SetBinContent(9,10307.41); h_SL1L261->SetBinContent(10,6033.207); h_SL1L261->SetBinContent(11,6246.917); h_SL1L261->SetBinContent(12,6477.067); h_SL1L261->SetBinContent(13,6526.385); h_SL1L261->SetBinContent(14,7562.058); h_SL1L261->SetBinContent(15,7118.198); h_SL1L261->SetBinContent(16,5934.572); h_SL1L261->SetBinContent(17,6033.207); h_SL1L261->SetBinContent(18,6690.777); h_SL1L261->SetBinContent(19,6394.871); h_SL1L261->SetBinContent(20,6164.721); h_SL1L261->SetBinContent(21,6608.581); h_SL1L261->SetBinContent(22,6904.488); h_SL1L261->SetBinContent(23,6444.188); h_SL1L261->SetBinContent(24,6575.703); h_SL1L261->SetBinContent(25,7463.422); h_SL1L261->SetBinContent(26,6904.488); h_SL1L261->SetBinContent(27,6690.777); h_SL1L261->SetBinContent(28,6016.768); h_SL1L261->SetBinContent(29,7101.759); h_SL1L261->SetBinContent(30,7808.647); h_SL1L261->SetBinContent(31,6871.609); h_SL1L261->SetBinContent(32,6460.628); h_SL1L261->SetBinContent(42,16.43926); h_SL1L261->SetBinContent(49,5605.787); h_SL1L261->SetBinContent(50,5868.814); h_SL1L261->SetBinContent(51,5589.347); h_SL1L261->SetBinContent(52,5441.394); h_SL1L261->SetBinContent(53,5622.226); h_SL1L261->SetBinContent(54,5934.572); h_SL1L261->SetBinContent(55,5129.048); h_SL1L261->SetBinContent(56,4405.721); h_SL1L261->SetMaximum(14519.15); 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(1,3090.58); h_SL1L362->SetBinContent(2,3353.608); h_SL1L362->SetBinContent(3,3748.151); h_SL1L362->SetBinContent(4,5063.291); h_SL1L362->SetBinContent(5,5211.244); h_SL1L362->SetBinContent(6,5211.244); h_SL1L362->SetBinContent(7,5375.637); h_SL1L362->SetBinContent(8,6625.021); h_SL1L362->SetBinContent(9,6098.964); h_SL1L362->SetBinContent(10,5934.572); h_SL1L362->SetBinContent(11,6361.992); h_SL1L362->SetBinContent(12,6329.114); h_SL1L362->SetBinContent(13,7348.348); h_SL1L362->SetBinContent(14,7874.404); h_SL1L362->SetBinContent(15,9058.03); h_SL1L362->SetBinContent(16,6789.413); h_SL1L362->SetBinContent(17,6690.777); h_SL1L362->SetBinContent(18,6460.628); h_SL1L362->SetBinContent(19,6329.114); h_SL1L362->SetBinContent(20,6888.048); h_SL1L362->SetBinContent(21,7348.348); h_SL1L362->SetBinContent(22,7331.909); h_SL1L362->SetBinContent(23,6477.067); h_SL1L362->SetBinContent(24,7118.198); h_SL1L362->SetBinContent(25,7216.833); h_SL1L362->SetBinContent(26,6625.021); h_SL1L362->SetBinContent(27,6526.385); h_SL1L362->SetBinContent(28,6756.535); h_SL1L362->SetBinContent(29,7841.525); h_SL1L362->SetBinContent(30,7118.198); h_SL1L362->SetBinContent(31,6575.703); h_SL1L362->SetBinContent(32,6986.684); h_SL1L362->SetBinContent(49,5687.983); h_SL1L362->SetBinContent(50,5523.59); h_SL1L362->SetBinContent(51,5885.254); h_SL1L362->SetBinContent(52,5622.226); h_SL1L362->SetBinContent(53,6246.917); h_SL1L362->SetBinContent(54,5737.301); h_SL1L362->SetBinContent(55,4833.142); h_SL1L362->SetBinContent(56,4438.599); h_SL1L362->SetMaximum(14519.15); 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,2531.646); h_SL1L463->SetBinContent(3,2712.477); h_SL1L463->SetBinContent(4,2827.552); h_SL1L463->SetBinContent(5,3682.394); h_SL1L463->SetBinContent(6,3370.048); h_SL1L463->SetBinContent(7,3172.777); h_SL1L463->SetBinContent(8,3879.665); h_SL1L463->SetBinContent(9,4274.207); h_SL1L463->SetBinContent(10,4076.936); h_SL1L463->SetBinContent(11,4356.403); h_SL1L463->SetBinContent(12,5309.88); h_SL1L463->SetBinContent(13,4898.898); h_SL1L463->SetBinContent(14,12625.35); h_SL1L463->SetBinContent(15,10274.54); h_SL1L463->SetBinContent(16,9534.769); h_SL1L463->SetBinContent(17,4537.235); h_SL1L463->SetBinContent(18,4833.142); h_SL1L463->SetBinContent(19,4635.871); h_SL1L463->SetBinContent(20,5194.805); h_SL1L463->SetBinContent(21,5293.44); h_SL1L463->SetBinContent(22,5605.787); h_SL1L463->SetBinContent(23,4882.459); h_SL1L463->SetBinContent(24,5392.076); h_SL1L463->SetBinContent(25,5013.973); h_SL1L463->SetBinContent(26,5161.927); h_SL1L463->SetBinContent(27,5129.048); h_SL1L463->SetBinContent(28,4931.777); h_SL1L463->SetBinContent(29,5540.029); h_SL1L463->SetBinContent(30,5490.712); h_SL1L463->SetBinContent(31,4767.384); h_SL1L463->SetBinContent(32,4898.898); h_SL1L463->SetBinContent(49,3797.468); h_SL1L463->SetBinContent(50,3764.59); h_SL1L463->SetBinContent(51,3764.59); h_SL1L463->SetBinContent(52,4192.01); h_SL1L463->SetBinContent(53,4339.964); h_SL1L463->SetBinContent(54,4504.356); h_SL1L463->SetBinContent(55,16.43926); h_SL1L463->SetBinContent(56,4109.814); h_SL1L463->SetMaximum(14519.15); 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 7042"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }