void RatesPerCell_Removing_noisy_cells_run_7683_SL1() { //=========Macro generated from canvas: c/c //========= (Mon Jan 21 13:19:17 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-7391.769,67.5,66525.92); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 7683",60,0,60); h_SL1L160->SetBinContent(1,7957.143); h_SL1L160->SetBinContent(2,8214.285); h_SL1L160->SetBinContent(3,7414.286); h_SL1L160->SetBinContent(4,6707.143); h_SL1L160->SetBinContent(5,5535.714); h_SL1L160->SetBinContent(6,5542.857); h_SL1L160->SetBinContent(7,5607.143); h_SL1L160->SetBinContent(8,6014.286); h_SL1L160->SetBinContent(9,5492.857); h_SL1L160->SetBinContent(10,5735.714); h_SL1L160->SetBinContent(11,5421.429); h_SL1L160->SetBinContent(12,5914.286); h_SL1L160->SetBinContent(13,9164.285); h_SL1L160->SetBinContent(14,9828.571); h_SL1L160->SetBinContent(15,9285.714); h_SL1L160->SetBinContent(16,5121.429); h_SL1L160->SetBinContent(17,3757.143); h_SL1L160->SetBinContent(18,4278.571); h_SL1L160->SetBinContent(19,4192.857); h_SL1L160->SetBinContent(20,4071.428); h_SL1L160->SetBinContent(21,4428.571); h_SL1L160->SetBinContent(22,3957.143); h_SL1L160->SetBinContent(23,3864.286); h_SL1L160->SetBinContent(24,3214.286); h_SL1L160->SetBinContent(25,2785.714); h_SL1L160->SetBinContent(26,3457.143); h_SL1L160->SetBinContent(27,3428.571); h_SL1L160->SetBinContent(28,3514.286); h_SL1L160->SetBinContent(29,4042.857); h_SL1L160->SetBinContent(30,3721.428); h_SL1L160->SetBinContent(31,3142.857); h_SL1L160->SetBinContent(32,2850); h_SL1L160->SetBinContent(33,14157.14); h_SL1L160->SetBinContent(34,15235.71); h_SL1L160->SetBinContent(35,15235.71); h_SL1L160->SetBinContent(36,13871.43); h_SL1L160->SetBinContent(37,14535.71); h_SL1L160->SetBinContent(38,15735.71); h_SL1L160->SetBinContent(39,14064.29); h_SL1L160->SetBinContent(41,3135.714); h_SL1L160->SetBinContent(42,3214.286); h_SL1L160->SetBinContent(43,3192.857); h_SL1L160->SetBinContent(44,3071.428); h_SL1L160->SetBinContent(45,2264.286); h_SL1L160->SetBinContent(46,2357.143); h_SL1L160->SetBinContent(47,2235.714); h_SL1L160->SetBinContent(48,2378.571); h_SL1L160->SetBinContent(49,2492.857); h_SL1L160->SetBinContent(50,2728.571); h_SL1L160->SetBinContent(51,2671.428); h_SL1L160->SetBinContent(52,2907.143); h_SL1L160->SetBinContent(53,2814.286); h_SL1L160->SetBinContent(54,2700); h_SL1L160->SetBinContent(55,3100); h_SL1L160->SetBinContent(56,3521.428); h_SL1L160->SetMaximum(59134.15); 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,34392.86); h_SL1L261->SetBinContent(2,35871.43); h_SL1L261->SetBinContent(3,37342.86); h_SL1L261->SetBinContent(4,38471.43); h_SL1L261->SetBinContent(5,37450); h_SL1L261->SetBinContent(6,39028.57); h_SL1L261->SetBinContent(7,40278.57); h_SL1L261->SetBinContent(8,41050); h_SL1L261->SetBinContent(9,39942.86); h_SL1L261->SetBinContent(10,39014.29); h_SL1L261->SetBinContent(11,40921.43); h_SL1L261->SetBinContent(12,40664.29); h_SL1L261->SetBinContent(13,40685.71); h_SL1L261->SetBinContent(14,42357.14); h_SL1L261->SetBinContent(15,42557.14); h_SL1L261->SetBinContent(16,40821.43); h_SL1L261->SetBinContent(17,41478.57); h_SL1L261->SetBinContent(18,43621.43); h_SL1L261->SetBinContent(19,44164.29); h_SL1L261->SetBinContent(20,44442.86); h_SL1L261->SetBinContent(21,44714.29); h_SL1L261->SetBinContent(22,42542.86); h_SL1L261->SetBinContent(23,42128.57); h_SL1L261->SetBinContent(24,40635.71); h_SL1L261->SetBinContent(25,41107.14); h_SL1L261->SetBinContent(26,38507.14); h_SL1L261->SetBinContent(27,38707.14); h_SL1L261->SetBinContent(28,42057.14); h_SL1L261->SetBinContent(29,42692.86); h_SL1L261->SetBinContent(30,43685.71); h_SL1L261->SetBinContent(31,41442.86); h_SL1L261->SetBinContent(32,41121.43); h_SL1L261->SetBinContent(33,40564.29); h_SL1L261->SetBinContent(34,41700); h_SL1L261->SetBinContent(35,39742.86); h_SL1L261->SetBinContent(36,39278.57); h_SL1L261->SetBinContent(37,43592.86); h_SL1L261->SetBinContent(38,44042.86); h_SL1L261->SetBinContent(39,41292.86); h_SL1L261->SetBinContent(40,41871.43); h_SL1L261->SetBinContent(41,42578.57); h_SL1L261->SetBinContent(42,43550); h_SL1L261->SetBinContent(43,42692.86); h_SL1L261->SetBinContent(44,39950); h_SL1L261->SetBinContent(45,41700); h_SL1L261->SetBinContent(46,41728.57); h_SL1L261->SetBinContent(47,41850); h_SL1L261->SetBinContent(48,41964.29); h_SL1L261->SetBinContent(49,44657.14); h_SL1L261->SetBinContent(50,42400); h_SL1L261->SetBinContent(51,41600); h_SL1L261->SetBinContent(52,41042.86); h_SL1L261->SetBinContent(53,42650); h_SL1L261->SetBinContent(54,41314.29); h_SL1L261->SetBinContent(55,41507.14); h_SL1L261->SetBinContent(56,39771.43); h_SL1L261->SetMaximum(51421.43); 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,34271.43); h_SL1L362->SetBinContent(2,35192.86); h_SL1L362->SetBinContent(3,36328.57); h_SL1L362->SetBinContent(4,36428.57); h_SL1L362->SetBinContent(5,37964.29); h_SL1L362->SetBinContent(6,38321.43); h_SL1L362->SetBinContent(7,38150); h_SL1L362->SetBinContent(8,40178.57); h_SL1L362->SetBinContent(9,38800); h_SL1L362->SetBinContent(10,39178.57); h_SL1L362->SetBinContent(11,39735.71); h_SL1L362->SetBinContent(12,41185.71); h_SL1L362->SetBinContent(13,41321.43); h_SL1L362->SetBinContent(14,41178.57); h_SL1L362->SetBinContent(15,42028.57); h_SL1L362->SetBinContent(16,41014.29); h_SL1L362->SetBinContent(17,41192.86); h_SL1L362->SetBinContent(18,43621.43); h_SL1L362->SetBinContent(19,43142.86); h_SL1L362->SetBinContent(20,44185.71); h_SL1L362->SetBinContent(21,43321.43); h_SL1L362->SetBinContent(22,40321.43); h_SL1L362->SetBinContent(23,40685.71); h_SL1L362->SetBinContent(24,40364.29); h_SL1L362->SetBinContent(25,38935.71); h_SL1L362->SetBinContent(26,37250); h_SL1L362->SetBinContent(27,38428.57); h_SL1L362->SetBinContent(28,42114.29); h_SL1L362->SetBinContent(29,41978.57); h_SL1L362->SetBinContent(30,41021.43); h_SL1L362->SetBinContent(31,41328.57); h_SL1L362->SetBinContent(32,39992.86); h_SL1L362->SetBinContent(33,40807.14); h_SL1L362->SetBinContent(34,40171.43); h_SL1L362->SetBinContent(35,38492.86); h_SL1L362->SetBinContent(36,41514.29); h_SL1L362->SetBinContent(37,42671.43); h_SL1L362->SetBinContent(38,42085.71); h_SL1L362->SetBinContent(39,41135.71); h_SL1L362->SetBinContent(40,41028.57); h_SL1L362->SetBinContent(41,42128.57); h_SL1L362->SetBinContent(42,41721.43); h_SL1L362->SetBinContent(43,39178.57); h_SL1L362->SetBinContent(44,39814.29); h_SL1L362->SetBinContent(45,39971.43); h_SL1L362->SetBinContent(46,41407.14); h_SL1L362->SetBinContent(47,40442.86); h_SL1L362->SetBinContent(48,40721.43); h_SL1L362->SetBinContent(49,41592.86); h_SL1L362->SetBinContent(50,40728.57); h_SL1L362->SetBinContent(51,40085.71); h_SL1L362->SetBinContent(52,41742.86); h_SL1L362->SetBinContent(53,40835.71); h_SL1L362->SetBinContent(54,39364.29); h_SL1L362->SetBinContent(55,40250); h_SL1L362->SetBinContent(56,39521.43); h_SL1L362->SetMaximum(51421.43); 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,31285.71); h_SL1L463->SetBinContent(3,30100); h_SL1L463->SetBinContent(4,30300); h_SL1L463->SetBinContent(5,29914.29); h_SL1L463->SetBinContent(6,29978.57); h_SL1L463->SetBinContent(7,29257.14); h_SL1L463->SetBinContent(8,30507.14); h_SL1L463->SetBinContent(9,32242.86); h_SL1L463->SetBinContent(10,33192.86); h_SL1L463->SetBinContent(11,33907.14); h_SL1L463->SetBinContent(12,36750); h_SL1L463->SetBinContent(13,35735.71); h_SL1L463->SetBinContent(14,42235.71); h_SL1L463->SetBinContent(15,38935.71); h_SL1L463->SetBinContent(16,39228.57); h_SL1L463->SetBinContent(17,34507.14); h_SL1L463->SetBinContent(18,35692.86); h_SL1L463->SetBinContent(19,33592.86); h_SL1L463->SetBinContent(20,34700); h_SL1L463->SetBinContent(21,34278.57); h_SL1L463->SetBinContent(22,33021.43); h_SL1L463->SetBinContent(23,30735.71); h_SL1L463->SetBinContent(24,31728.57); h_SL1L463->SetBinContent(25,29692.86); h_SL1L463->SetBinContent(26,29764.29); h_SL1L463->SetBinContent(27,28335.71); h_SL1L463->SetBinContent(28,30607.14); h_SL1L463->SetBinContent(29,29857.14); h_SL1L463->SetBinContent(30,31250); h_SL1L463->SetBinContent(31,29714.29); h_SL1L463->SetBinContent(32,28000); h_SL1L463->SetBinContent(33,25257.14); h_SL1L463->SetBinContent(34,28557.14); h_SL1L463->SetBinContent(35,30871.43); h_SL1L463->SetBinContent(36,26421.43); h_SL1L463->SetBinContent(37,4728.571); h_SL1L463->SetBinContent(38,28.57143); h_SL1L463->SetBinContent(39,7.142857); h_SL1L463->SetBinContent(40,14.28571); h_SL1L463->SetBinContent(41,23671.43); h_SL1L463->SetBinContent(42,25028.57); h_SL1L463->SetBinContent(43,25778.57); h_SL1L463->SetBinContent(44,23814.29); h_SL1L463->SetBinContent(45,22171.43); h_SL1L463->SetBinContent(46,24000); h_SL1L463->SetBinContent(47,23442.86); h_SL1L463->SetBinContent(48,21278.57); h_SL1L463->SetBinContent(49,21028.57); h_SL1L463->SetBinContent(50,23207.14); h_SL1L463->SetBinContent(51,22350); h_SL1L463->SetBinContent(52,22900); h_SL1L463->SetBinContent(53,23250); h_SL1L463->SetBinContent(54,22035.71); h_SL1L463->SetBinContent(55,7.142857); h_SL1L463->SetBinContent(56,24242.86); h_SL1L463->SetMaximum(51421.43); 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 7683"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }