void RatesPerCell_Removing_noisy_cells_run_5461_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 14:43:43 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-26582.68,67.5,239244.1); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 5461",60,0,60); h_SL1L160->SetBinContent(1,81310); h_SL1L160->SetBinContent(2,80185.72); h_SL1L160->SetBinContent(3,78024.29); h_SL1L160->SetBinContent(4,77997.15); h_SL1L160->SetBinContent(5,77105.72); h_SL1L160->SetBinContent(6,79442.86); h_SL1L160->SetBinContent(7,78548.57); h_SL1L160->SetBinContent(8,78821.43); h_SL1L160->SetBinContent(9,76061.43); h_SL1L160->SetBinContent(10,71088.57); h_SL1L160->SetBinContent(11,68091.43); h_SL1L160->SetBinContent(12,66511.43); h_SL1L160->SetBinContent(13,68425.72); h_SL1L160->SetBinContent(14,70995.72); h_SL1L160->SetBinContent(15,71737.15); h_SL1L160->SetBinContent(16,66064.29); h_SL1L160->SetBinContent(17,67970); h_SL1L160->SetBinContent(18,70860); h_SL1L160->SetBinContent(19,73338.57); h_SL1L160->SetBinContent(20,74464.29); h_SL1L160->SetBinContent(21,77394.29); h_SL1L160->SetBinContent(22,78281.43); h_SL1L160->SetBinContent(23,78358.57); h_SL1L160->SetBinContent(24,78181.43); h_SL1L160->SetBinContent(25,79455.72); h_SL1L160->SetBinContent(26,73540); h_SL1L160->SetBinContent(27,73524.29); h_SL1L160->SetBinContent(28,76540); h_SL1L160->SetBinContent(29,77197.15); h_SL1L160->SetBinContent(30,77727.15); h_SL1L160->SetBinContent(31,79018.57); h_SL1L160->SetBinContent(32,86917.15); h_SL1L160->SetBinContent(33,160802.9); h_SL1L160->SetBinContent(34,149350); h_SL1L160->SetBinContent(35,130534.3); h_SL1L160->SetBinContent(36,116368.6); h_SL1L160->SetBinContent(37,104328.6); h_SL1L160->SetBinContent(38,95144.29); h_SL1L160->SetBinContent(39,83230); h_SL1L160->SetBinContent(40,70032.86); h_SL1L160->SetBinContent(41,68888.57); h_SL1L160->SetBinContent(42,69222.86); h_SL1L160->SetBinContent(43,67655.72); h_SL1L160->SetBinContent(44,66662.86); h_SL1L160->SetBinContent(45,64134.29); h_SL1L160->SetBinContent(46,63442.86); h_SL1L160->SetBinContent(47,63217.14); h_SL1L160->SetBinContent(48,62252.86); h_SL1L160->SetBinContent(49,61651.43); h_SL1L160->SetBinContent(50,61121.43); h_SL1L160->SetBinContent(51,59167.14); h_SL1L160->SetBinContent(52,58552.86); h_SL1L160->SetBinContent(53,58210); h_SL1L160->SetBinContent(54,57067.14); h_SL1L160->SetBinContent(55,57908.57); h_SL1L160->SetBinContent(56,55751.43); h_SL1L160->SetBinContent(57,55712.86); h_SL1L160->SetBinContent(58,54287.14); h_SL1L160->SetBinContent(59,55058.57); h_SL1L160->SetMaximum(212661.4); 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(7,1.428571); h_SL1L261->SetBinContent(12,1.428571); h_SL1L261->SetBinContent(23,1.428571); h_SL1L261->SetBinContent(24,1.428571); h_SL1L261->SetBinContent(49,270); h_SL1L261->SetMaximum(184923.3); 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(6,1.428571); h_SL1L362->SetBinContent(7,1.428571); h_SL1L362->SetBinContent(17,1.428571); h_SL1L362->SetBinContent(18,1.428571); h_SL1L362->SetBinContent(21,1.428571); h_SL1L362->SetBinContent(22,1.428571); h_SL1L362->SetBinContent(27,1.428571); h_SL1L362->SetBinContent(28,1.428571); h_SL1L362->SetBinContent(39,1.428571); h_SL1L362->SetBinContent(53,2.857143); h_SL1L362->SetBinContent(56,2.857143); h_SL1L362->SetMaximum(184923.3); 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,73991.43); h_SL1L463->SetBinContent(3,71890); h_SL1L463->SetBinContent(4,72374.29); h_SL1L463->SetBinContent(5,70398.57); h_SL1L463->SetBinContent(6,73238.57); h_SL1L463->SetBinContent(7,71398.57); h_SL1L463->SetBinContent(8,72355.72); h_SL1L463->SetBinContent(9,71038.57); h_SL1L463->SetBinContent(10,68354.29); h_SL1L463->SetBinContent(11,63222.86); h_SL1L463->SetBinContent(12,61774.29); h_SL1L463->SetBinContent(13,62070); h_SL1L463->SetBinContent(14,65318.57); h_SL1L463->SetBinContent(15,66434.29); h_SL1L463->SetBinContent(16,64794.29); h_SL1L463->SetBinContent(17,62784.29); h_SL1L463->SetBinContent(18,63920); h_SL1L463->SetBinContent(19,67690); h_SL1L463->SetBinContent(20,67994.29); h_SL1L463->SetBinContent(21,70042.86); h_SL1L463->SetBinContent(22,72251.43); h_SL1L463->SetBinContent(23,72504.29); h_SL1L463->SetBinContent(24,72844.29); h_SL1L463->SetBinContent(25,72534.29); h_SL1L463->SetBinContent(26,71100); h_SL1L463->SetBinContent(27,68308.57); h_SL1L463->SetBinContent(28,68082.86); h_SL1L463->SetBinContent(29,71835.72); h_SL1L463->SetBinContent(30,72234.29); h_SL1L463->SetBinContent(31,72617.15); h_SL1L463->SetBinContent(32,77567.15); h_SL1L463->SetBinContent(33,119094.3); h_SL1L463->SetBinContent(34,158845.7); h_SL1L463->SetBinContent(35,136930); h_SL1L463->SetBinContent(36,118635.7); h_SL1L463->SetBinContent(37,102828.6); h_SL1L463->SetBinContent(38,92112.86); h_SL1L463->SetBinContent(39,84742.86); h_SL1L463->SetBinContent(40,69364.29); h_SL1L463->SetBinContent(41,64541.43); h_SL1L463->SetBinContent(42,64232.86); h_SL1L463->SetBinContent(43,63027.14); h_SL1L463->SetBinContent(44,62032.86); h_SL1L463->SetBinContent(45,59767.14); h_SL1L463->SetBinContent(46,60354.29); h_SL1L463->SetBinContent(47,58065.71); h_SL1L463->SetBinContent(48,57727.14); h_SL1L463->SetBinContent(49,55772.86); h_SL1L463->SetBinContent(50,56554.29); h_SL1L463->SetBinContent(51,55690); h_SL1L463->SetBinContent(52,53372.86); h_SL1L463->SetBinContent(53,53364.29); h_SL1L463->SetBinContent(54,52477.14); h_SL1L463->SetBinContent(56,52835.71); h_SL1L463->SetBinContent(57,52015.71); h_SL1L463->SetBinContent(58,50768.57); h_SL1L463->SetBinContent(59,49351.43); h_SL1L463->SetMaximum(184923.3); 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.3744221,0.9362587,0.6255779,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); TText *AText = pt->AddText("SL1, run 5461"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }