void RatesPerCell_Removing_noisy_cells_run_5836_SL1() { //=========Macro generated from canvas: c/c //========= (Mon Jan 14 19:44:04 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-1321.494,67.5,11893.44); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 5836",60,0,60); h_SL1L160->SetBinContent(1,3057.827); h_SL1L160->SetBinContent(2,3777.316); h_SL1L160->SetBinContent(3,4719.979); h_SL1L160->SetBinContent(4,5426.144); h_SL1L160->SetBinContent(5,5815.867); h_SL1L160->SetBinContent(6,6432.096); h_SL1L160->SetBinContent(7,6245.562); h_SL1L160->SetBinContent(8,6558.672); h_SL1L160->SetBinContent(9,6645.278); h_SL1L160->SetBinContent(10,6668.594); h_SL1L160->SetBinContent(11,6818.488); h_SL1L160->SetBinContent(12,6845.136); h_SL1L160->SetBinContent(13,7368.097); h_SL1L160->SetBinContent(14,7035); h_SL1L160->SetBinContent(15,6548.68); h_SL1L160->SetBinContent(16,6738.545); h_SL1L160->SetBinContent(17,6778.516); h_SL1L160->SetBinContent(18,7128.268); h_SL1L160->SetBinContent(19,6675.256); h_SL1L160->SetBinContent(20,7068.311); h_SL1L160->SetBinContent(21,6875.114); h_SL1L160->SetBinContent(22,7008.353); h_SL1L160->SetBinContent(23,6811.826); h_SL1L160->SetBinContent(24,6955.058); h_SL1L160->SetBinContent(25,7381.421); h_SL1L160->SetBinContent(26,7284.823); h_SL1L160->SetBinContent(27,6668.594); h_SL1L160->SetBinContent(28,7008.353); h_SL1L160->SetBinContent(29,7271.5); h_SL1L160->SetBinContent(30,7594.603); h_SL1L160->SetBinContent(31,6928.41); h_SL1L160->SetBinContent(32,7358.104); h_SL1L160->SetBinContent(40,3.330966); h_SL1L160->SetBinContent(54,3.330966); h_SL1L160->SetMaximum(10571.95); 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,3031.179); h_SL1L261->SetBinContent(2,3147.763); h_SL1L261->SetBinContent(3,4463.495); h_SL1L261->SetBinContent(4,5246.272); h_SL1L261->SetBinContent(5,5879.155); h_SL1L261->SetBinContent(6,6378.8); h_SL1L261->SetBinContent(7,6328.836); h_SL1L261->SetBinContent(8,6448.75); h_SL1L261->SetBinContent(9,6815.157); h_SL1L261->SetBinContent(10,6831.812); h_SL1L261->SetBinContent(11,6685.249); h_SL1L261->SetBinContent(12,6878.445); h_SL1L261->SetBinContent(13,7591.272); h_SL1L261->SetBinContent(14,7454.703); h_SL1L261->SetBinContent(15,6835.143); h_SL1L261->SetBinContent(16,6721.89); h_SL1L261->SetBinContent(17,7041.663); h_SL1L261->SetBinContent(18,7134.93); h_SL1L261->SetBinContent(19,6911.755); h_SL1L261->SetBinContent(20,6948.396); h_SL1L261->SetBinContent(21,6971.712); h_SL1L261->SetBinContent(22,7381.421); h_SL1L261->SetBinContent(23,6658.602); h_SL1L261->SetBinContent(24,7138.261); h_SL1L261->SetBinContent(25,7424.724); h_SL1L261->SetBinContent(26,7611.258); h_SL1L261->SetBinContent(27,6745.207); h_SL1L261->SetBinContent(28,7521.322); h_SL1L261->SetBinContent(29,7314.802); h_SL1L261->SetBinContent(30,7817.778); h_SL1L261->SetBinContent(31,7154.916); h_SL1L261->SetBinContent(32,7394.745); h_SL1L261->SetBinContent(40,3.330966); h_SL1L261->SetBinContent(55,3.330966); h_SL1L261->SetMaximum(9193.467); 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,3047.834); h_SL1L362->SetBinContent(2,3793.97); h_SL1L362->SetBinContent(3,4846.556); h_SL1L362->SetBinContent(4,5932.451); h_SL1L362->SetBinContent(5,6252.224); h_SL1L362->SetBinContent(6,6422.103); h_SL1L362->SetBinContent(7,6575.327); h_SL1L362->SetBinContent(8,6851.797); h_SL1L362->SetBinContent(9,7078.303); h_SL1L362->SetBinContent(10,6542.018); h_SL1L362->SetBinContent(11,6745.207); h_SL1L362->SetBinContent(12,7441.378); h_SL1L362->SetBinContent(13,7677.877); h_SL1L362->SetBinContent(14,6881.776); h_SL1L362->SetBinContent(15,6765.192); h_SL1L362->SetBinContent(16,7041.663); h_SL1L362->SetBinContent(17,7194.887); h_SL1L362->SetBinContent(18,7234.859); h_SL1L362->SetBinContent(19,6911.755); h_SL1L362->SetBinContent(20,7251.514); h_SL1L362->SetBinContent(21,7454.703); h_SL1L362->SetBinContent(22,6778.516); h_SL1L362->SetBinContent(23,6871.783); h_SL1L362->SetBinContent(24,7484.681); h_SL1L362->SetBinContent(25,7541.308); h_SL1L362->SetBinContent(26,7058.317); h_SL1L362->SetBinContent(27,6855.128); h_SL1L362->SetBinContent(28,7214.873); h_SL1L362->SetBinContent(29,7691.201); h_SL1L362->SetBinContent(30,7451.372); h_SL1L362->SetBinContent(31,7211.542); h_SL1L362->SetBinContent(32,7994.319); h_SL1L362->SetBinContent(40,3.330966); h_SL1L362->SetBinContent(54,3.330966); h_SL1L362->SetMaximum(9193.467); 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,3181.073); h_SL1L463->SetBinContent(3,4433.516); h_SL1L463->SetBinContent(4,5476.108); h_SL1L463->SetBinContent(5,6022.387); h_SL1L463->SetBinContent(6,6595.313); h_SL1L463->SetBinContent(7,6322.174); h_SL1L463->SetBinContent(8,6788.509); h_SL1L463->SetBinContent(9,7111.613); h_SL1L463->SetBinContent(10,6825.15); h_SL1L463->SetBinContent(11,6505.377); h_SL1L463->SetBinContent(12,7248.183); h_SL1L463->SetBinContent(13,7677.877); h_SL1L463->SetBinContent(14,7371.428); h_SL1L463->SetBinContent(15,6731.883); h_SL1L463->SetBinContent(16,7071.641); h_SL1L463->SetBinContent(17,7258.175); h_SL1L463->SetBinContent(18,7221.535); h_SL1L463->SetBinContent(19,6788.509); h_SL1L463->SetBinContent(20,7161.578); h_SL1L463->SetBinContent(21,7438.047); h_SL1L463->SetBinContent(22,7374.759); h_SL1L463->SetBinContent(23,6545.349); h_SL1L463->SetBinContent(24,7344.781); h_SL1L463->SetBinContent(25,7597.934); h_SL1L463->SetBinContent(26,7507.998); h_SL1L463->SetBinContent(27,6728.552); h_SL1L463->SetBinContent(28,7208.211); h_SL1L463->SetBinContent(29,7481.35); h_SL1L463->SetBinContent(30,7927.7); h_SL1L463->SetBinContent(31,7121.606); h_SL1L463->SetBinContent(32,7697.863); h_SL1L463->SetMaximum(9193.467); 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 5836"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }