void RatesPerCell_Removing_noisy_cells_run_7568_SL1() { //=========Macro generated from canvas: c/c //========= (Fri Jan 18 19:11:48 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-31767.03,67.5,285903.2); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 7568",60,0,60); h_SL1L160->SetBinContent(1,108392.9); h_SL1L160->SetBinContent(2,108700); h_SL1L160->SetBinContent(3,108135.7); h_SL1L160->SetBinContent(4,99328.57); h_SL1L160->SetBinContent(5,78978.57); h_SL1L160->SetBinContent(6,82664.28); h_SL1L160->SetBinContent(7,79085.71); h_SL1L160->SetBinContent(8,83735.71); h_SL1L160->SetBinContent(9,79835.71); h_SL1L160->SetBinContent(10,81014.28); h_SL1L160->SetBinContent(11,80507.14); h_SL1L160->SetBinContent(12,78621.43); h_SL1L160->SetBinContent(13,125185.7); h_SL1L160->SetBinContent(14,140335.7); h_SL1L160->SetBinContent(15,135521.4); h_SL1L160->SetBinContent(16,68092.86); h_SL1L160->SetBinContent(17,75471.43); h_SL1L160->SetBinContent(18,80464.28); h_SL1L160->SetBinContent(19,82350); h_SL1L160->SetBinContent(20,79000); h_SL1L160->SetBinContent(21,73092.86); h_SL1L160->SetBinContent(22,72742.86); h_SL1L160->SetBinContent(23,65678.57); h_SL1L160->SetBinContent(24,58650); h_SL1L160->SetBinContent(25,56850); h_SL1L160->SetBinContent(26,58935.71); h_SL1L160->SetBinContent(27,57792.86); h_SL1L160->SetBinContent(28,58978.57); h_SL1L160->SetBinContent(29,61950); h_SL1L160->SetBinContent(30,58057.14); h_SL1L160->SetBinContent(31,57107.14); h_SL1L160->SetBinContent(32,52292.86); h_SL1L160->SetBinContent(33,137235.7); h_SL1L160->SetBinContent(34,141785.7); h_SL1L160->SetBinContent(35,139335.7); h_SL1L160->SetBinContent(36,141250); h_SL1L160->SetBinContent(37,134478.6); h_SL1L160->SetBinContent(38,136450); h_SL1L160->SetBinContent(39,133035.7); h_SL1L160->SetBinContent(41,55842.86); h_SL1L160->SetBinContent(42,56292.86); h_SL1L160->SetBinContent(43,53792.86); h_SL1L160->SetBinContent(44,51157.14); h_SL1L160->SetBinContent(45,49050); h_SL1L160->SetBinContent(46,46978.57); h_SL1L160->SetBinContent(47,48414.29); h_SL1L160->SetBinContent(48,48400); h_SL1L160->SetBinContent(49,56671.43); h_SL1L160->SetBinContent(50,60500); h_SL1L160->SetBinContent(51,61350); h_SL1L160->SetBinContent(52,58550); h_SL1L160->SetBinContent(53,52364.29); h_SL1L160->SetBinContent(54,53800); h_SL1L160->SetBinContent(55,56050); h_SL1L160->SetBinContent(56,62492.86); h_SL1L160->SetMaximum(254136.2); 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,126707.1); h_SL1L261->SetBinContent(2,129200); h_SL1L261->SetBinContent(3,128914.3); h_SL1L261->SetBinContent(4,132757.1); h_SL1L261->SetBinContent(5,125171.4); h_SL1L261->SetBinContent(6,129507.1); h_SL1L261->SetBinContent(7,125357.1); h_SL1L261->SetBinContent(8,131057.1); h_SL1L261->SetBinContent(9,130035.7); h_SL1L261->SetBinContent(10,125935.7); h_SL1L261->SetBinContent(11,132642.9); h_SL1L261->SetBinContent(12,131807.1); h_SL1L261->SetBinContent(13,131514.3); h_SL1L261->SetBinContent(14,137414.3); h_SL1L261->SetBinContent(15,142542.9); h_SL1L261->SetBinContent(16,131242.9); h_SL1L261->SetBinContent(17,135621.4); h_SL1L261->SetBinContent(18,144164.3); h_SL1L261->SetBinContent(19,149585.7); h_SL1L261->SetBinContent(20,148185.7); h_SL1L261->SetBinContent(21,142821.4); h_SL1L261->SetBinContent(22,136400); h_SL1L261->SetBinContent(23,131871.4); h_SL1L261->SetBinContent(24,129992.9); h_SL1L261->SetBinContent(25,131721.4); h_SL1L261->SetBinContent(26,120228.6); h_SL1L261->SetBinContent(27,120007.1); h_SL1L261->SetBinContent(28,128628.6); h_SL1L261->SetBinContent(29,136492.9); h_SL1L261->SetBinContent(30,134800); h_SL1L261->SetBinContent(31,133071.4); h_SL1L261->SetBinContent(32,130100); h_SL1L261->SetBinContent(33,134371.4); h_SL1L261->SetBinContent(34,135185.7); h_SL1L261->SetBinContent(35,132235.7); h_SL1L261->SetBinContent(36,132942.9); h_SL1L261->SetBinContent(37,130421.4); h_SL1L261->SetBinContent(38,134150); h_SL1L261->SetBinContent(39,133064.3); h_SL1L261->SetBinContent(40,129914.3); h_SL1L261->SetBinContent(41,131564.3); h_SL1L261->SetBinContent(42,133685.7); h_SL1L261->SetBinContent(43,131892.9); h_SL1L261->SetBinContent(44,126500); h_SL1L261->SetBinContent(45,126914.3); h_SL1L261->SetBinContent(46,130242.9); h_SL1L261->SetBinContent(47,131135.7); h_SL1L261->SetBinContent(48,131535.7); h_SL1L261->SetBinContent(49,143178.6); h_SL1L261->SetBinContent(50,139107.1); h_SL1L261->SetBinContent(51,138450); h_SL1L261->SetBinContent(52,136735.7); h_SL1L261->SetBinContent(53,132564.3); h_SL1L261->SetBinContent(54,131164.3); h_SL1L261->SetBinContent(55,131900); h_SL1L261->SetBinContent(56,130042.9); h_SL1L261->SetMaximum(220988.9); 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,124850); h_SL1L362->SetBinContent(2,126778.6); h_SL1L362->SetBinContent(3,126528.6); h_SL1L362->SetBinContent(4,127328.6); h_SL1L362->SetBinContent(5,123714.3); h_SL1L362->SetBinContent(6,124550); h_SL1L362->SetBinContent(7,125035.7); h_SL1L362->SetBinContent(8,127114.3); h_SL1L362->SetBinContent(9,125421.4); h_SL1L362->SetBinContent(10,126071.4); h_SL1L362->SetBinContent(11,128664.3); h_SL1L362->SetBinContent(12,130264.3); h_SL1L362->SetBinContent(13,127264.3); h_SL1L362->SetBinContent(14,141878.6); h_SL1L362->SetBinContent(15,168507.1); h_SL1L362->SetBinContent(16,129914.3); h_SL1L362->SetBinContent(17,136150); h_SL1L362->SetBinContent(18,145707.1); h_SL1L362->SetBinContent(19,142171.4); h_SL1L362->SetBinContent(20,145221.4); h_SL1L362->SetBinContent(21,134592.9); h_SL1L362->SetBinContent(22,130714.3); h_SL1L362->SetBinContent(23,127842.9); h_SL1L362->SetBinContent(24,126085.7); h_SL1L362->SetBinContent(25,119921.4); h_SL1L362->SetBinContent(26,114964.3); h_SL1L362->SetBinContent(27,119800); h_SL1L362->SetBinContent(28,130385.7); h_SL1L362->SetBinContent(29,133171.4); h_SL1L362->SetBinContent(30,130307.1); h_SL1L362->SetBinContent(31,129407.1); h_SL1L362->SetBinContent(32,121028.6); h_SL1L362->SetBinContent(33,132028.6); h_SL1L362->SetBinContent(34,131557.1); h_SL1L362->SetBinContent(35,128978.6); h_SL1L362->SetBinContent(36,132385.7); h_SL1L362->SetBinContent(37,128428.6); h_SL1L362->SetBinContent(38,128092.9); h_SL1L362->SetBinContent(39,127385.7); h_SL1L362->SetBinContent(40,126650); h_SL1L362->SetBinContent(41,129778.6); h_SL1L362->SetBinContent(42,130157.1); h_SL1L362->SetBinContent(43,124550); h_SL1L362->SetBinContent(44,122157.1); h_SL1L362->SetBinContent(45,122942.9); h_SL1L362->SetBinContent(46,126792.9); h_SL1L362->SetBinContent(47,128071.4); h_SL1L362->SetBinContent(48,127971.4); h_SL1L362->SetBinContent(49,136828.6); h_SL1L362->SetBinContent(50,134671.4); h_SL1L362->SetBinContent(51,131564.3); h_SL1L362->SetBinContent(52,134007.1); h_SL1L362->SetBinContent(53,125971.4); h_SL1L362->SetBinContent(54,127921.4); h_SL1L362->SetBinContent(55,129471.4); h_SL1L362->SetBinContent(56,126357.1); h_SL1L362->SetMaximum(220988.9); 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,89378.57); h_SL1L463->SetBinContent(3,83257.14); h_SL1L463->SetBinContent(4,80164.28); h_SL1L463->SetBinContent(5,73300); h_SL1L463->SetBinContent(6,71264.28); h_SL1L463->SetBinContent(7,71650); h_SL1L463->SetBinContent(8,76085.71); h_SL1L463->SetBinContent(9,80064.28); h_SL1L463->SetBinContent(10,86507.14); h_SL1L463->SetBinContent(11,92514.28); h_SL1L463->SetBinContent(12,94414.28); h_SL1L463->SetBinContent(13,99271.43); h_SL1L463->SetBinContent(14,192164.3); h_SL1L463->SetBinContent(15,163014.3); h_SL1L463->SetBinContent(16,156421.4); h_SL1L463->SetBinContent(17,86585.71); h_SL1L463->SetBinContent(18,87600); h_SL1L463->SetBinContent(19,86421.43); h_SL1L463->SetBinContent(20,85828.57); h_SL1L463->SetBinContent(21,82657.14); h_SL1L463->SetBinContent(22,76078.57); h_SL1L463->SetBinContent(23,73900); h_SL1L463->SetBinContent(24,73371.43); h_SL1L463->SetBinContent(25,65178.57); h_SL1L463->SetBinContent(26,64992.86); h_SL1L463->SetBinContent(27,63578.57); h_SL1L463->SetBinContent(28,65607.14); h_SL1L463->SetBinContent(29,64121.43); h_SL1L463->SetBinContent(30,68221.43); h_SL1L463->SetBinContent(31,66242.86); h_SL1L463->SetBinContent(32,62021.43); h_SL1L463->SetBinContent(33,56700); h_SL1L463->SetBinContent(34,66785.71); h_SL1L463->SetBinContent(35,73735.71); h_SL1L463->SetBinContent(36,59300); h_SL1L463->SetBinContent(37,2871.428); h_SL1L463->SetBinContent(38,57.14286); h_SL1L463->SetBinContent(39,7.142857); h_SL1L463->SetBinContent(40,7.142857); h_SL1L463->SetBinContent(41,49664.29); h_SL1L463->SetBinContent(42,53542.86); h_SL1L463->SetBinContent(43,55464.29); h_SL1L463->SetBinContent(44,52392.86); h_SL1L463->SetBinContent(45,46978.57); h_SL1L463->SetBinContent(46,49407.14); h_SL1L463->SetBinContent(47,47814.29); h_SL1L463->SetBinContent(48,47185.71); h_SL1L463->SetBinContent(49,45814.29); h_SL1L463->SetBinContent(50,49485.71); h_SL1L463->SetBinContent(51,49064.29); h_SL1L463->SetBinContent(52,50785.71); h_SL1L463->SetBinContent(53,50128.57); h_SL1L463->SetBinContent(54,46335.71); h_SL1L463->SetBinContent(55,7.142857); h_SL1L463->SetBinContent(56,54050); h_SL1L463->SetMaximum(220988.9); 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 7568"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }