void RatesPerCell_Removing_noisy_cells_run_5724_SL1() { //=========Macro generated from canvas: c/c //========= (Mon Jan 14 19:34:13 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-4434.975,67.5,39914.78); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L159 = new TH1D("h_SL1L159","SL1, run 5724",60,0,60); h_SL1L159->SetBinContent(1,13240.08); h_SL1L159->SetBinContent(2,15231); h_SL1L159->SetBinContent(3,19739.59); h_SL1L159->SetBinContent(4,21203.77); h_SL1L159->SetBinContent(5,21284.12); h_SL1L159->SetBinContent(6,17829.02); h_SL1L159->SetBinContent(7,21346.61); h_SL1L159->SetBinContent(8,20061); h_SL1L159->SetBinContent(12,8.927902); h_SL1L159->SetBinContent(13,23873.21); h_SL1L159->SetBinContent(14,22757.22); h_SL1L159->SetBinContent(15,22034.06); h_SL1L159->SetBinContent(16,18641.46); h_SL1L159->SetBinContent(29,24739.22); h_SL1L159->SetBinContent(30,26828.35); h_SL1L159->SetBinContent(31,26426.59); h_SL1L159->SetBinContent(32,26212.32); h_SL1L159->SetBinContent(33,20159.2); h_SL1L159->SetBinContent(34,19239.63); h_SL1L159->SetBinContent(35,16989.8); h_SL1L159->SetBinContent(36,18427.19); h_SL1L159->SetBinContent(37,14695.33); h_SL1L159->SetBinContent(38,12713.33); h_SL1L159->SetBinContent(39,14525.7); h_SL1L159->SetBinContent(40,16793.38); h_SL1L159->SetBinContent(41,12597.27); h_SL1L159->SetBinContent(42,14454.27); h_SL1L159->SetBinContent(43,15525.62); h_SL1L159->SetBinContent(44,14704.25); h_SL1L159->SetBinContent(45,16659.46); h_SL1L159->SetBinContent(46,17900.44); h_SL1L159->SetBinContent(47,19239.63); h_SL1L159->SetBinContent(48,21748.37); h_SL1L159->SetBinContent(50,8.927902); h_SL1L159->SetMaximum(35479.8); h_SL1L159->SetEntries(60); h_SL1L159->SetDirectory(0); h_SL1L159->SetStats(0); h_SL1L159->SetLineWidth(2); h_SL1L159->GetXaxis()->SetTitle("Cell"); h_SL1L159->GetXaxis()->SetLabelFont(42); h_SL1L159->GetXaxis()->SetLabelSize(0.035); h_SL1L159->GetXaxis()->SetTitleSize(0.035); h_SL1L159->GetXaxis()->SetTitleFont(42); h_SL1L159->GetYaxis()->SetTitle("Hz"); h_SL1L159->GetYaxis()->SetLabelFont(42); h_SL1L159->GetYaxis()->SetLabelSize(0.035); h_SL1L159->GetYaxis()->SetTitleSize(0.035); h_SL1L159->GetYaxis()->SetTitleOffset(1.45); h_SL1L159->GetYaxis()->SetTitleFont(42); h_SL1L159->GetZaxis()->SetLabelFont(42); h_SL1L159->GetZaxis()->SetLabelSize(0.035); h_SL1L159->GetZaxis()->SetTitleSize(0.035); h_SL1L159->GetZaxis()->SetTitleFont(42); h_SL1L159->Draw(""); TH1D *h_SL1L260 = new TH1D("h_SL1L260","",60,0,60); h_SL1L260->SetBinContent(4,8.927902); h_SL1L260->SetBinContent(7,8.927902); h_SL1L260->SetMaximum(30852.6); h_SL1L260->SetEntries(60); h_SL1L260->SetDirectory(0); h_SL1L260->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#cc0000"); h_SL1L260->SetLineColor(ci); h_SL1L260->SetLineWidth(2); h_SL1L260->GetXaxis()->SetTitle("Cell"); h_SL1L260->GetXaxis()->SetLabelFont(42); h_SL1L260->GetXaxis()->SetLabelSize(0.035); h_SL1L260->GetXaxis()->SetTitleSize(0.035); h_SL1L260->GetXaxis()->SetTitleFont(42); h_SL1L260->GetYaxis()->SetTitle("Hz"); h_SL1L260->GetYaxis()->SetLabelFont(42); h_SL1L260->GetYaxis()->SetLabelSize(0.035); h_SL1L260->GetYaxis()->SetTitleSize(0.035); h_SL1L260->GetYaxis()->SetTitleOffset(1.45); h_SL1L260->GetYaxis()->SetTitleFont(42); h_SL1L260->GetZaxis()->SetLabelFont(42); h_SL1L260->GetZaxis()->SetLabelSize(0.035); h_SL1L260->GetZaxis()->SetTitleSize(0.035); h_SL1L260->GetZaxis()->SetTitleFont(42); h_SL1L260->Draw("same"); TH1D *h_SL1L361 = new TH1D("h_SL1L361","",60,0,60); h_SL1L361->SetMaximum(30852.6); h_SL1L361->SetEntries(60); h_SL1L361->SetDirectory(0); h_SL1L361->SetStats(0); ci = TColor::GetColor("#009900"); h_SL1L361->SetLineColor(ci); h_SL1L361->SetLineWidth(2); h_SL1L361->GetXaxis()->SetTitle("Cell"); h_SL1L361->GetXaxis()->SetLabelFont(42); h_SL1L361->GetXaxis()->SetLabelSize(0.035); h_SL1L361->GetXaxis()->SetTitleSize(0.035); h_SL1L361->GetXaxis()->SetTitleFont(42); h_SL1L361->GetYaxis()->SetTitle("Hz"); h_SL1L361->GetYaxis()->SetLabelFont(42); h_SL1L361->GetYaxis()->SetLabelSize(0.035); h_SL1L361->GetYaxis()->SetTitleSize(0.035); h_SL1L361->GetYaxis()->SetTitleOffset(1.45); h_SL1L361->GetYaxis()->SetTitleFont(42); h_SL1L361->GetZaxis()->SetLabelFont(42); h_SL1L361->GetZaxis()->SetLabelSize(0.035); h_SL1L361->GetZaxis()->SetTitleSize(0.035); h_SL1L361->GetZaxis()->SetTitleFont(42); h_SL1L361->Draw("same"); TH1D *h_SL1L462 = new TH1D("h_SL1L462","",60,0,60); h_SL1L462->SetBinContent(2,13740.04); h_SL1L462->SetBinContent(3,17498.69); h_SL1L462->SetBinContent(4,16516.62); h_SL1L462->SetBinContent(5,20418.11); h_SL1L462->SetBinContent(6,18096.86); h_SL1L462->SetBinContent(7,16329.13); h_SL1L462->SetBinContent(8,18016.51); h_SL1L462->SetBinContent(13,20953.79); h_SL1L462->SetBinContent(14,22748.29); h_SL1L462->SetBinContent(15,18230.78); h_SL1L462->SetBinContent(16,16239.85); h_SL1L462->SetBinContent(25,8.927902); h_SL1L462->SetBinContent(26,8.927902); h_SL1L462->SetBinContent(29,23248.26); h_SL1L462->SetBinContent(30,24516.02); h_SL1L462->SetBinContent(31,24801.71); h_SL1L462->SetBinContent(32,24667.79); h_SL1L462->SetBinContent(33,18989.65); h_SL1L462->SetBinContent(34,19203.92); h_SL1L462->SetBinContent(35,16364.84); h_SL1L462->SetBinContent(36,17579.04); h_SL1L462->SetBinContent(37,16882.66); h_SL1L462->SetBinContent(38,15918.45); h_SL1L462->SetBinContent(39,13070.45); h_SL1L462->SetBinContent(40,14650.69); h_SL1L462->SetBinContent(41,14204.29); h_SL1L462->SetBinContent(42,12579.41); h_SL1L462->SetBinContent(43,14802.46); h_SL1L462->SetBinContent(44,13900.74); h_SL1L462->SetBinContent(45,15025.66); h_SL1L462->SetBinContent(46,15650.61); h_SL1L462->SetBinContent(47,15927.38); h_SL1L462->SetBinContent(48,18123.64); h_SL1L462->SetMaximum(30852.6); h_SL1L462->SetEntries(60); h_SL1L462->SetDirectory(0); h_SL1L462->SetStats(0); ci = TColor::GetColor("#0000cc"); h_SL1L462->SetLineColor(ci); h_SL1L462->SetLineWidth(2); h_SL1L462->GetXaxis()->SetTitle("Cell"); h_SL1L462->GetXaxis()->SetLabelFont(42); h_SL1L462->GetXaxis()->SetLabelSize(0.035); h_SL1L462->GetXaxis()->SetTitleSize(0.035); h_SL1L462->GetXaxis()->SetTitleFont(42); h_SL1L462->GetYaxis()->SetTitle("Hz"); h_SL1L462->GetYaxis()->SetLabelFont(42); h_SL1L462->GetYaxis()->SetLabelSize(0.035); h_SL1L462->GetYaxis()->SetTitleSize(0.035); h_SL1L462->GetYaxis()->SetTitleOffset(1.45); h_SL1L462->GetYaxis()->SetTitleFont(42); h_SL1L462->GetZaxis()->SetLabelFont(42); h_SL1L462->GetZaxis()->SetLabelSize(0.035); h_SL1L462->GetZaxis()->SetTitleSize(0.035); h_SL1L462->GetZaxis()->SetTitleFont(42); h_SL1L462->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 5724"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }