void RatesPerCell_Removing_noisy_cells_run_6105_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:13:49 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9927.376,67.5,89346.38); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 6105",60,0,60); h_SL1L160->SetBinContent(1,44254.17); h_SL1L160->SetBinContent(2,47180.95); h_SL1L160->SetBinContent(3,48104.34); h_SL1L160->SetBinContent(4,45595.2); h_SL1L160->SetBinContent(5,39376.19); h_SL1L160->SetBinContent(6,40609.55); h_SL1L160->SetBinContent(7,40482.3); h_SL1L160->SetBinContent(8,42991.44); h_SL1L160->SetBinContent(9,40952.15); h_SL1L160->SetBinContent(10,43301.41); h_SL1L160->SetBinContent(11,43676.64); h_SL1L160->SetBinContent(12,41457.9); h_SL1L160->SetBinContent(13,39832.99); h_SL1L160->SetBinContent(14,38247.24); h_SL1L160->SetBinContent(15,35911.04); h_SL1L160->SetBinContent(16,33679.24); h_SL1L160->SetBinContent(17,33398.63); h_SL1L160->SetBinContent(18,35937.14); h_SL1L160->SetBinContent(19,36351.52); h_SL1L160->SetBinContent(20,34755.98); h_SL1L160->SetBinContent(21,38116.73); h_SL1L160->SetBinContent(22,37079.14); h_SL1L160->SetBinContent(23,34873.45); h_SL1L160->SetBinContent(24,30837.29); h_SL1L160->SetBinContent(25,28935.04); h_SL1L160->SetBinContent(26,30791.61); h_SL1L160->SetBinContent(27,29829.06); h_SL1L160->SetBinContent(28,30452.27); h_SL1L160->SetBinContent(29,29150.39); h_SL1L160->SetBinContent(30,29235.22); h_SL1L160->SetBinContent(31,29476.68); h_SL1L160->SetBinContent(32,26944.7); h_SL1L160->SetBinContent(33,29032.93); h_SL1L160->SetBinContent(34,30318.49); h_SL1L160->SetBinContent(35,31718.26); h_SL1L160->SetBinContent(36,30028.1); h_SL1L160->SetBinContent(37,29891.06); h_SL1L160->SetBinContent(38,29864.96); h_SL1L160->SetBinContent(39,29603.93); h_SL1L160->SetBinContent(40,28021.44); h_SL1L160->SetBinContent(41,29463.62); h_SL1L160->SetBinContent(42,31248.41); h_SL1L160->SetBinContent(43,31065.69); h_SL1L160->SetBinContent(44,30830.76); h_SL1L160->SetBinContent(45,29584.35); h_SL1L160->SetBinContent(46,28243.31); h_SL1L160->SetBinContent(47,27169.83); h_SL1L160->SetBinContent(48,27558.11); h_SL1L160->SetBinContent(49,31365.87); h_SL1L160->SetBinContent(50,32664.49); h_SL1L160->SetBinContent(51,34312.23); h_SL1L160->SetBinContent(52,32945.09); h_SL1L160->SetBinContent(53,31979.29); h_SL1L160->SetBinContent(54,33317.06); h_SL1L160->SetBinContent(55,34416.64); h_SL1L160->SetBinContent(56,37216.18); h_SL1L160->SetBinContent(57,48123.92); h_SL1L160->SetBinContent(58,55276.11); h_SL1L160->SetBinContent(59,60052.93); h_SL1L160->SetMaximum(79419); 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(49,6.52572); h_SL1L261->SetMaximum(69060.87); 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(15,3.26286); h_SL1L362->SetBinContent(59,3.26286); h_SL1L362->SetMaximum(69060.87); 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,41063.09); h_SL1L463->SetBinContent(3,39555.65); h_SL1L463->SetBinContent(4,36420.04); h_SL1L463->SetBinContent(5,33806.49); h_SL1L463->SetBinContent(6,32909.2); h_SL1L463->SetBinContent(7,32925.52); h_SL1L463->SetBinContent(8,36188.38); h_SL1L463->SetBinContent(9,37956.85); h_SL1L463->SetBinContent(10,43650.54); h_SL1L463->SetBinContent(11,50972.39); h_SL1L463->SetBinContent(12,54372.3); h_SL1L463->SetBinContent(13,54349.46); h_SL1L463->SetBinContent(14,56303.91); h_SL1L463->SetBinContent(15,51605.39); h_SL1L463->SetBinContent(16,45458.16); h_SL1L463->SetBinContent(17,42443.28); h_SL1L463->SetBinContent(18,44166.07); h_SL1L463->SetBinContent(19,43382.98); h_SL1L463->SetBinContent(20,42185.52); h_SL1L463->SetBinContent(21,41754.82); h_SL1L463->SetBinContent(22,42097.42); h_SL1L463->SetBinContent(23,42361.71); h_SL1L463->SetBinContent(24,40198.43); h_SL1L463->SetBinContent(25,36044.81); h_SL1L463->SetBinContent(26,36162.28); h_SL1L463->SetBinContent(27,35108.37); h_SL1L463->SetBinContent(28,36863.79); h_SL1L463->SetBinContent(29,35095.32); h_SL1L463->SetBinContent(30,35676.11); h_SL1L463->SetBinContent(31,35291.09); h_SL1L463->SetBinContent(32,33878.27); h_SL1L463->SetBinContent(33,31734.57); h_SL1L463->SetBinContent(34,35496.65); h_SL1L463->SetBinContent(35,36354.79); h_SL1L463->SetBinContent(36,32429.56); h_SL1L463->SetBinContent(37,29466.89); h_SL1L463->SetBinContent(38,29460.36); h_SL1L463->SetBinContent(39,31649.74); h_SL1L463->SetBinContent(40,28220.47); h_SL1L463->SetBinContent(41,27483.07); h_SL1L463->SetBinContent(42,29897.58); h_SL1L463->SetBinContent(43,32393.67); h_SL1L463->SetBinContent(44,31917.29); h_SL1L463->SetBinContent(45,27861.56); h_SL1L463->SetBinContent(46,29284.17); h_SL1L463->SetBinContent(47,27342.77); h_SL1L463->SetBinContent(48,27026.27); h_SL1L463->SetBinContent(49,26256.23); h_SL1L463->SetBinContent(50,28151.96); h_SL1L463->SetBinContent(51,26889.23); h_SL1L463->SetBinContent(52,28050.81); h_SL1L463->SetBinContent(53,26285.6); h_SL1L463->SetBinContent(54,27740.83); h_SL1L463->SetBinContent(56,30941.7); h_SL1L463->SetBinContent(57,35871.88); h_SL1L463->SetBinContent(58,48982.05); h_SL1L463->SetBinContent(59,52845.28); h_SL1L463->SetMaximum(69060.87); 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 6105"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }