void RatesPerCell_Removing_noisy_cells_run_5967_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 14:59:52 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-5657.138,67.5,50914.24); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 5967",60,0,60); h_SL1L160->SetBinContent(1,27321.43); h_SL1L160->SetBinContent(2,27821.43); h_SL1L160->SetBinContent(3,27835.71); h_SL1L160->SetBinContent(4,24350); h_SL1L160->SetBinContent(5,22614.29); h_SL1L160->SetBinContent(6,22142.86); h_SL1L160->SetBinContent(7,22635.71); h_SL1L160->SetBinContent(8,23971.43); h_SL1L160->SetBinContent(9,24771.43); h_SL1L160->SetBinContent(10,24742.86); h_SL1L160->SetBinContent(11,23735.71); h_SL1L160->SetBinContent(12,23107.14); h_SL1L160->SetBinContent(13,22535.71); h_SL1L160->SetBinContent(14,22235.71); h_SL1L160->SetBinContent(15,21014.29); h_SL1L160->SetBinContent(16,19878.57); h_SL1L160->SetBinContent(17,19750); h_SL1L160->SetBinContent(18,20678.57); h_SL1L160->SetBinContent(19,20414.29); h_SL1L160->SetBinContent(20,21250); h_SL1L160->SetBinContent(21,21185.71); h_SL1L160->SetBinContent(22,20678.57); h_SL1L160->SetBinContent(23,21292.86); h_SL1L160->SetBinContent(24,18707.14); h_SL1L160->SetBinContent(25,17514.29); h_SL1L160->SetBinContent(26,18664.29); h_SL1L160->SetBinContent(27,18407.14); h_SL1L160->SetBinContent(28,18578.57); h_SL1L160->SetBinContent(29,19314.29); h_SL1L160->SetBinContent(30,17642.86); h_SL1L160->SetBinContent(31,17528.57); h_SL1L160->SetBinContent(32,17085.71); h_SL1L160->SetBinContent(33,17400); h_SL1L160->SetBinContent(34,17178.57); h_SL1L160->SetBinContent(35,17235.71); h_SL1L160->SetBinContent(36,17707.14); h_SL1L160->SetBinContent(37,17714.29); h_SL1L160->SetBinContent(38,17571.43); h_SL1L160->SetBinContent(39,17135.71); h_SL1L160->SetBinContent(40,15914.29); h_SL1L160->SetBinContent(41,17114.29); h_SL1L160->SetBinContent(42,16750); h_SL1L160->SetBinContent(43,17407.14); h_SL1L160->SetBinContent(44,15800); h_SL1L160->SetBinContent(45,14971.43); h_SL1L160->SetBinContent(46,16150); h_SL1L160->SetBinContent(47,16535.71); h_SL1L160->SetBinContent(48,15207.14); h_SL1L160->SetBinContent(49,16642.86); h_SL1L160->SetBinContent(50,17500); h_SL1L160->SetBinContent(51,18800); h_SL1L160->SetBinContent(52,18135.71); h_SL1L160->SetBinContent(53,17671.43); h_SL1L160->SetBinContent(54,17778.57); h_SL1L160->SetBinContent(55,19128.57); h_SL1L160->SetBinContent(56,21528.57); h_SL1L160->SetBinContent(57,24721.43); h_SL1L160->SetBinContent(58,30964.29); h_SL1L160->SetBinContent(59,33035.71); h_SL1L160->SetMaximum(45257.1); 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->SetMaximum(39354.64); 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->SetMaximum(39354.64); 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,24878.57); h_SL1L463->SetBinContent(3,22142.86); h_SL1L463->SetBinContent(4,21142.86); h_SL1L463->SetBinContent(5,20564.29); h_SL1L463->SetBinContent(6,20985.71); h_SL1L463->SetBinContent(7,21357.14); h_SL1L463->SetBinContent(8,21814.29); h_SL1L463->SetBinContent(9,23842.86); h_SL1L463->SetBinContent(10,25857.14); h_SL1L463->SetBinContent(11,29357.14); h_SL1L463->SetBinContent(12,33607.14); h_SL1L463->SetBinContent(13,33750); h_SL1L463->SetBinContent(14,34221.43); h_SL1L463->SetBinContent(15,32178.57); h_SL1L463->SetBinContent(16,28157.14); h_SL1L463->SetBinContent(17,27485.71); h_SL1L463->SetBinContent(18,27092.86); h_SL1L463->SetBinContent(19,25135.71); h_SL1L463->SetBinContent(20,24364.29); h_SL1L463->SetBinContent(21,24200); h_SL1L463->SetBinContent(22,25557.14); h_SL1L463->SetBinContent(23,25564.29); h_SL1L463->SetBinContent(24,24607.14); h_SL1L463->SetBinContent(25,21871.43); h_SL1L463->SetBinContent(26,23492.86); h_SL1L463->SetBinContent(27,22271.43); h_SL1L463->SetBinContent(28,22792.86); h_SL1L463->SetBinContent(29,20592.86); h_SL1L463->SetBinContent(30,21292.86); h_SL1L463->SetBinContent(31,21250); h_SL1L463->SetBinContent(32,19542.86); h_SL1L463->SetBinContent(33,18764.29); h_SL1L463->SetBinContent(34,18092.86); h_SL1L463->SetBinContent(35,18250); h_SL1L463->SetBinContent(36,18185.71); h_SL1L463->SetBinContent(37,16857.14); h_SL1L463->SetBinContent(38,14464.29); h_SL1L463->SetBinContent(39,14621.43); h_SL1L463->SetBinContent(40,13971.43); h_SL1L463->SetBinContent(41,14485.71); h_SL1L463->SetBinContent(42,14821.43); h_SL1L463->SetBinContent(43,16842.86); h_SL1L463->SetBinContent(44,15507.14); h_SL1L463->SetBinContent(45,14207.14); h_SL1L463->SetBinContent(46,15478.57); h_SL1L463->SetBinContent(47,15485.71); h_SL1L463->SetBinContent(48,14942.86); h_SL1L463->SetBinContent(49,15385.71); h_SL1L463->SetBinContent(50,15785.71); h_SL1L463->SetBinContent(51,16835.71); h_SL1L463->SetBinContent(52,16935.71); h_SL1L463->SetBinContent(53,17178.57); h_SL1L463->SetBinContent(54,16950); h_SL1L463->SetBinContent(56,18792.86); h_SL1L463->SetBinContent(57,21500); h_SL1L463->SetBinContent(58,27314.29); h_SL1L463->SetBinContent(59,31135.71); h_SL1L463->SetMaximum(39354.64); 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 5967"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }