void RatesPerCell_Removing_noisy_cells_run_5177_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 14:40:32 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-10822.22,67.5,97399.97); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L159 = new TH1D("h_SL1L159","SL1, run 5177",60,0,60); h_SL1L159->SetBinContent(1,348.3878); h_SL1L159->SetBinContent(2,458.1539); h_SL1L159->SetBinContent(3,503.492); h_SL1L159->SetBinContent(4,493.9471); h_SL1L159->SetBinContent(5,501.1058); h_SL1L159->SetBinContent(6,493.9471); h_SL1L159->SetBinContent(7,474.8574); h_SL1L159->SetBinContent(8,601.327); h_SL1L159->SetBinContent(9,570.3061); h_SL1L159->SetBinContent(10,668.1411); h_SL1L159->SetBinContent(11,727.7965); h_SL1L159->SetBinContent(12,804.1555); h_SL1L159->SetBinContent(13,956.8735); h_SL1L159->SetBinContent(14,904.3766); h_SL1L159->SetBinContent(15,820.859); h_SL1L159->SetBinContent(16,794.6106); h_SL1L159->SetBinContent(17,942.5562); h_SL1L159->SetBinContent(18,1221.744); h_SL1L159->SetBinContent(19,1281.399); h_SL1L159->SetBinContent(20,1517.635); h_SL1L159->SetBinContent(21,1858.864); h_SL1L159->SetBinContent(22,1863.636); h_SL1L159->SetBinContent(23,2083.168); h_SL1L159->SetBinContent(24,2278.838); h_SL1L159->SetBinContent(25,2546.095); h_SL1L159->SetBinContent(26,2884.938); h_SL1L159->SetBinContent(27,3016.18); h_SL1L159->SetBinContent(28,3712.955); h_SL1L159->SetBinContent(29,4140.088); h_SL1L159->SetBinContent(30,4457.456); h_SL1L159->SetBinContent(31,6681.411); h_SL1L159->SetBinContent(32,12742.4); h_SL1L159->SetBinContent(33,62526.07); h_SL1L159->SetBinContent(34,65465.89); h_SL1L159->SetBinContent(35,63284.89); h_SL1L159->SetBinContent(36,61602.61); h_SL1L159->SetBinContent(37,56376.79); h_SL1L159->SetBinContent(38,45111.45); h_SL1L159->SetBinContent(39,25291.53); h_SL1L159->SetBinContent(40,6488.127); h_SL1L159->SetBinContent(41,4464.614); h_SL1L159->SetBinContent(42,3903.853); h_SL1L159->SetBinContent(43,3419.45); h_SL1L159->SetBinContent(44,2999.476); h_SL1L159->SetBinContent(45,2810.965); h_SL1L159->SetBinContent(46,2741.765); h_SL1L159->SetBinContent(47,2565.184); h_SL1L159->SetBinContent(48,2297.928); h_SL1L159->SetBinContent(49,2192.934); h_SL1L159->SetBinContent(50,2257.362); h_SL1L159->SetBinContent(51,1897.043); h_SL1L159->SetBinContent(52,1889.885); h_SL1L159->SetBinContent(53,1811.14); h_SL1L159->SetBinContent(54,1720.463); h_SL1L159->SetBinContent(55,1543.883); h_SL1L159->SetBinContent(56,1460.365); h_SL1L159->SetBinContent(57,1574.904); h_SL1L159->SetBinContent(58,1453.207); h_SL1L159->SetBinContent(59,1438.89); h_SL1L159->SetMaximum(86577.75); 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(35,2.386218); h_SL1L260->SetBinContent(36,4.772436); h_SL1L260->SetBinContent(49,1047.55); h_SL1L260->SetBinContent(56,9.544872); h_SL1L260->SetMaximum(75285.78); 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->SetBinContent(35,2.386218); h_SL1L361->SetBinContent(36,4.772436); h_SL1L361->SetBinContent(53,40.56571); h_SL1L361->SetBinContent(56,35.79327); h_SL1L361->SetMaximum(75285.78); 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,272.0289); h_SL1L462->SetBinContent(3,236.2356); h_SL1L462->SetBinContent(4,221.9183); h_SL1L462->SetBinContent(5,257.7115); h_SL1L462->SetBinContent(6,283.96); h_SL1L462->SetBinContent(7,269.6426); h_SL1L462->SetBinContent(8,255.3253); h_SL1L462->SetBinContent(9,317.367); h_SL1L462->SetBinContent(10,331.6843); h_SL1L462->SetBinContent(11,338.843); h_SL1L462->SetBinContent(12,434.2917); h_SL1L462->SetBinContent(13,489.1747); h_SL1L462->SetBinContent(14,570.3061); h_SL1L462->SetBinContent(15,551.2164); h_SL1L462->SetBinContent(16,482.0161); h_SL1L462->SetBinContent(17,505.8782); h_SL1L462->SetBinContent(18,641.8926); h_SL1L462->SetBinContent(19,782.6795); h_SL1L462->SetBinContent(20,878.1282); h_SL1L462->SetBinContent(21,925.8526); h_SL1L462->SetBinContent(22,1200.268); h_SL1L462->SetBinContent(23,1207.426); h_SL1L462->SetBinContent(24,1240.833); h_SL1L462->SetBinContent(25,1434.117); h_SL1L462->SetBinContent(26,1572.518); h_SL1L462->SetBinContent(27,1889.885); h_SL1L462->SetBinContent(28,2197.707); h_SL1L462->SetBinContent(29,2481.667); h_SL1L462->SetBinContent(30,2825.282); h_SL1L462->SetBinContent(31,3584.1); h_SL1L462->SetBinContent(32,6318.706); h_SL1L462->SetBinContent(33,25298.68); h_SL1L462->SetBinContent(34,51272.67); h_SL1L462->SetBinContent(35,50222.73); h_SL1L462->SetBinContent(36,48256.49); h_SL1L462->SetBinContent(37,42443.66); h_SL1L462->SetBinContent(38,38444.36); h_SL1L462->SetBinContent(39,29536.61); h_SL1L462->SetBinContent(40,8091.666); h_SL1L462->SetBinContent(41,3817.949); h_SL1L462->SetBinContent(42,2918.345); h_SL1L462->SetBinContent(43,2646.316); h_SL1L462->SetBinContent(44,2223.955); h_SL1L462->SetBinContent(45,1999.651); h_SL1L462->SetBinContent(46,1863.636); h_SL1L462->SetBinContent(47,1694.215); h_SL1L462->SetBinContent(48,1505.704); h_SL1L462->SetBinContent(49,1386.393); h_SL1L462->SetBinContent(50,1388.779); h_SL1L462->SetBinContent(51,1321.965); h_SL1L462->SetBinContent(52,1128.681); h_SL1L462->SetBinContent(53,1102.433); h_SL1L462->SetBinContent(54,1102.433); h_SL1L462->SetBinContent(56,928.2388); h_SL1L462->SetBinContent(57,890.0593); h_SL1L462->SetBinContent(58,909.1491); h_SL1L462->SetBinContent(59,856.6523); h_SL1L462->SetMaximum(75285.78); 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 5177"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }