void RatesPerCell_Removing_noisy_cells_run_7240_SL2() { //=========Macro generated from canvas: c/c //========= (Fri Dec 21 17:28:55 2018) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-12541.47,67.5,112873.2); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 7240",60,0,60); h_SL2L164->SetBinContent(1,9185.173); h_SL2L164->SetBinContent(2,10931.53); h_SL2L164->SetBinContent(3,13202.64); h_SL2L164->SetBinContent(4,14214.35); h_SL2L164->SetBinContent(5,13874.31); h_SL2L164->SetBinContent(6,12753.45); h_SL2L164->SetBinContent(7,11808.91); h_SL2L164->SetBinContent(8,11636.79); h_SL2L164->SetBinContent(9,12761.85); h_SL2L164->SetBinContent(10,14042.23); h_SL2L164->SetBinContent(11,14781.08); h_SL2L164->SetBinContent(12,15213.47); h_SL2L164->SetBinContent(13,14554.38); h_SL2L164->SetBinContent(14,15200.87); h_SL2L164->SetBinContent(15,15952.31); h_SL2L164->SetBinContent(16,14902.82); h_SL2L164->SetBinContent(17,14839.85); h_SL2L164->SetBinContent(18,14579.57); h_SL2L164->SetBinContent(19,14483.02); h_SL2L164->SetBinContent(20,12619.12); h_SL2L164->SetBinContent(21,11750.14); h_SL2L164->SetBinContent(22,12627.51); h_SL2L164->SetBinContent(23,12438.6); h_SL2L164->SetBinContent(24,12426.01); h_SL2L164->SetBinContent(25,16884.26); h_SL2L164->SetBinContent(26,35011.12); h_SL2L164->SetBinContent(27,59111.71); h_SL2L164->SetBinContent(28,73796.23); h_SL2L164->SetBinContent(29,75865.84); h_SL2L164->SetBinContent(30,68326.27); h_SL2L164->SetBinContent(31,50724.15); h_SL2L164->SetBinContent(32,44532.14); h_SL2L164->SetBinContent(33,42143.49); h_SL2L164->SetBinContent(34,28542.04); h_SL2L164->SetBinContent(35,4.197977); h_SL2L164->SetBinContent(36,9974.393); h_SL2L164->SetBinContent(37,17757.44); h_SL2L164->SetBinContent(38,12228.71); h_SL2L164->SetBinContent(39,12908.78); h_SL2L164->SetBinContent(40,55123.63); h_SL2L164->SetBinContent(41,14403.26); h_SL2L164->SetBinContent(42,14566.98); h_SL2L164->SetBinContent(43,15121.11); h_SL2L164->SetBinContent(44,14378.07); h_SL2L164->SetBinContent(45,5234.877); h_SL2L164->SetBinContent(46,5054.364); h_SL2L164->SetBinContent(47,5003.988); h_SL2L164->SetBinContent(48,4579.993); h_SL2L164->SetBinContent(49,4454.053); h_SL2L164->SetBinContent(50,4281.936); h_SL2L164->SetBinContent(51,4370.094); h_SL2L164->SetBinContent(52,4638.764); h_SL2L164->SetBinContent(53,5234.877); h_SL2L164->SetBinContent(54,5889.761); h_SL2L164->SetBinContent(55,6292.767); h_SL2L164->SetBinContent(56,5520.339); h_SL2L164->SetBinContent(57,4945.216); h_SL2L164->SetMaximum(100331.7); h_SL2L164->SetEntries(60); h_SL2L164->SetDirectory(0); h_SL2L164->SetStats(0); h_SL2L164->SetLineWidth(2); h_SL2L164->GetXaxis()->SetTitle("Cell"); h_SL2L164->GetXaxis()->SetLabelFont(42); h_SL2L164->GetXaxis()->SetLabelSize(0.035); h_SL2L164->GetXaxis()->SetTitleSize(0.035); h_SL2L164->GetXaxis()->SetTitleFont(42); h_SL2L164->GetYaxis()->SetTitle("Hz"); h_SL2L164->GetYaxis()->SetLabelFont(42); h_SL2L164->GetYaxis()->SetLabelSize(0.035); h_SL2L164->GetYaxis()->SetTitleSize(0.035); h_SL2L164->GetYaxis()->SetTitleOffset(1.45); h_SL2L164->GetYaxis()->SetTitleFont(42); h_SL2L164->GetZaxis()->SetLabelFont(42); h_SL2L164->GetZaxis()->SetLabelSize(0.035); h_SL2L164->GetZaxis()->SetTitleSize(0.035); h_SL2L164->GetZaxis()->SetTitleFont(42); h_SL2L164->Draw(""); TH1D *h_SL2L265 = new TH1D("h_SL2L265","",60,0,60); h_SL2L265->SetBinContent(1,7547.962); h_SL2L265->SetBinContent(2,10851.77); h_SL2L265->SetBinContent(3,11972.63); h_SL2L265->SetBinContent(4,13173.25); h_SL2L265->SetBinContent(5,12904.58); h_SL2L265->SetBinContent(6,12635.91); h_SL2L265->SetBinContent(7,12820.62); h_SL2L265->SetBinContent(8,10939.93); h_SL2L265->SetBinContent(9,11951.64); h_SL2L265->SetBinContent(10,12111.16); h_SL2L265->SetBinContent(11,13752.57); h_SL2L265->SetBinContent(12,14038.03); h_SL2L265->SetBinContent(13,14432.64); h_SL2L265->SetBinContent(14,14722.3); h_SL2L265->SetBinContent(15,14718.11); h_SL2L265->SetBinContent(16,15083.33); h_SL2L265->SetBinContent(17,14323.5); h_SL2L265->SetBinContent(18,14373.87); h_SL2L265->SetBinContent(19,13840.73); h_SL2L265->SetBinContent(20,13647.62); h_SL2L265->SetBinContent(21,11792.12); h_SL2L265->SetBinContent(22,11922.25); h_SL2L265->SetBinContent(23,12862.6); h_SL2L265->SetBinContent(24,12262.29); h_SL2L265->SetBinContent(25,13387.35); h_SL2L265->SetBinContent(26,24155.16); h_SL2L265->SetBinContent(27,46480); h_SL2L265->SetBinContent(28,69128.08); h_SL2L265->SetBinContent(29,75454.43); h_SL2L265->SetBinContent(30,73653.5); h_SL2L265->SetBinContent(31,57440.91); h_SL2L265->SetBinContent(32,46643.72); h_SL2L265->SetBinContent(33,42991.48); h_SL2L265->SetBinContent(34,38260.36); h_SL2L265->SetBinContent(35,17929.56); h_SL2L265->SetBinContent(36,10776.21); h_SL2L265->SetBinContent(37,8635.238); h_SL2L265->SetBinContent(38,7988.75); h_SL2L265->SetBinContent(39,7799.84); h_SL2L265->SetBinContent(40,9332.102); h_SL2L265->SetBinContent(41,6544.646); h_SL2L265->SetBinContent(42,6846.9); h_SL2L265->SetBinContent(43,5801.604); h_SL2L265->SetBinContent(44,6460.686); h_SL2L265->SetBinContent(45,4953.612); h_SL2L265->SetBinContent(46,5096.344); h_SL2L265->SetBinContent(47,4915.831); h_SL2L265->SetBinContent(48,4567.398); h_SL2L265->SetBinContent(49,4361.698); h_SL2L265->SetBinContent(50,4395.281); h_SL2L265->SetBinContent(51,3954.494); h_SL2L265->SetBinContent(52,4252.55); h_SL2L265->SetBinContent(53,4731.12); h_SL2L265->SetBinContent(54,5465.766); h_SL2L265->SetBinContent(55,5637.882); h_SL2L265->SetBinContent(56,5490.954); h_SL2L265->SetBinContent(57,5293.648); h_SL2L265->SetMaximum(87245.71); h_SL2L265->SetEntries(60); h_SL2L265->SetDirectory(0); h_SL2L265->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#cc0000"); h_SL2L265->SetLineColor(ci); h_SL2L265->SetLineWidth(2); h_SL2L265->GetXaxis()->SetTitle("Cell"); h_SL2L265->GetXaxis()->SetLabelFont(42); h_SL2L265->GetXaxis()->SetLabelSize(0.035); h_SL2L265->GetXaxis()->SetTitleSize(0.035); h_SL2L265->GetXaxis()->SetTitleFont(42); h_SL2L265->GetYaxis()->SetTitle("Hz"); h_SL2L265->GetYaxis()->SetLabelFont(42); h_SL2L265->GetYaxis()->SetLabelSize(0.035); h_SL2L265->GetYaxis()->SetTitleSize(0.035); h_SL2L265->GetYaxis()->SetTitleOffset(1.45); h_SL2L265->GetYaxis()->SetTitleFont(42); h_SL2L265->GetZaxis()->SetLabelFont(42); h_SL2L265->GetZaxis()->SetLabelSize(0.035); h_SL2L265->GetZaxis()->SetTitleSize(0.035); h_SL2L265->GetZaxis()->SetTitleFont(42); h_SL2L265->Draw("same"); TH1D *h_SL2L366 = new TH1D("h_SL2L366","",60,0,60); h_SL2L366->SetBinContent(1,8601.654); h_SL2L366->SetBinContent(2,10381.6); h_SL2L366->SetBinContent(3,12749.25); h_SL2L366->SetBinContent(4,12497.38); h_SL2L366->SetBinContent(5,12451.2); h_SL2L366->SetBinContent(6,12447); h_SL2L366->SetBinContent(7,11212.8); h_SL2L366->SetBinContent(8,10885.35); h_SL2L366->SetBinContent(9,11981.03); h_SL2L366->SetBinContent(10,12833.21); h_SL2L366->SetBinContent(11,13744.18); h_SL2L366->SetBinContent(12,13874.31); h_SL2L366->SetBinContent(13,14138.79); h_SL2L366->SetBinContent(14,14621.55); h_SL2L366->SetBinContent(15,14718.11); h_SL2L366->SetBinContent(16,14046.43); h_SL2L366->SetBinContent(17,13903.7); h_SL2L366->SetBinContent(18,13681.21); h_SL2L366->SetBinContent(19,13336.97); h_SL2L366->SetBinContent(20,11976.83); h_SL2L366->SetBinContent(21,11112.04); h_SL2L366->SetBinContent(22,12123.76); h_SL2L366->SetBinContent(23,11850.89); h_SL2L366->SetBinContent(24,12111.16); h_SL2L366->SetBinContent(25,16174.8); h_SL2L366->SetBinContent(26,34545.15); h_SL2L366->SetBinContent(27,60421.48); h_SL2L366->SetBinContent(28,73930.56); h_SL2L366->SetBinContent(29,74908.7); h_SL2L366->SetBinContent(30,67562.23); h_SL2L366->SetBinContent(31,50455.48); h_SL2L366->SetBinContent(32,43734.52); h_SL2L366->SetBinContent(33,41719.49); h_SL2L366->SetBinContent(34,28332.14); h_SL2L366->SetBinContent(35,12547.75); h_SL2L366->SetBinContent(36,9327.904); h_SL2L366->SetBinContent(37,7808.236); h_SL2L366->SetBinContent(38,7401.033); h_SL2L366->SetBinContent(39,6414.508); h_SL2L366->SetBinContent(40,7048.403); h_SL2L366->SetBinContent(41,5940.137); h_SL2L366->SetBinContent(42,5558.121); h_SL2L366->SetBinContent(43,4911.633); h_SL2L366->SetBinContent(44,5171.907); h_SL2L366->SetBinContent(45,4588.388); h_SL2L366->SetBinContent(46,4953.612); h_SL2L366->SetBinContent(47,4726.922); h_SL2L366->SetBinContent(48,4231.561); h_SL2L366->SetBinContent(49,4093.027); h_SL2L366->SetBinContent(50,3698.417); h_SL2L366->SetBinContent(51,3920.91); h_SL2L366->SetBinContent(52,4265.144); h_SL2L366->SetBinContent(53,4806.683); h_SL2L366->SetBinContent(54,5457.37); h_SL2L366->SetBinContent(55,5642.081); h_SL2L366->SetBinContent(56,5205.491); h_SL2L366->SetBinContent(57,5113.135); h_SL2L366->SetMaximum(87245.71); h_SL2L366->SetEntries(60); h_SL2L366->SetDirectory(0); h_SL2L366->SetStats(0); ci = TColor::GetColor("#009900"); h_SL2L366->SetLineColor(ci); h_SL2L366->SetLineWidth(2); h_SL2L366->GetXaxis()->SetTitle("Cell"); h_SL2L366->GetXaxis()->SetLabelFont(42); h_SL2L366->GetXaxis()->SetLabelSize(0.035); h_SL2L366->GetXaxis()->SetTitleSize(0.035); h_SL2L366->GetXaxis()->SetTitleFont(42); h_SL2L366->GetYaxis()->SetTitle("Hz"); h_SL2L366->GetYaxis()->SetLabelFont(42); h_SL2L366->GetYaxis()->SetLabelSize(0.035); h_SL2L366->GetYaxis()->SetTitleSize(0.035); h_SL2L366->GetYaxis()->SetTitleOffset(1.45); h_SL2L366->GetYaxis()->SetTitleFont(42); h_SL2L366->GetZaxis()->SetLabelFont(42); h_SL2L366->GetZaxis()->SetLabelSize(0.035); h_SL2L366->GetZaxis()->SetTitleSize(0.035); h_SL2L366->GetZaxis()->SetTitleFont(42); h_SL2L366->Draw("same"); TH1D *h_SL2L467 = new TH1D("h_SL2L467","",60,0,60); h_SL2L467->SetBinContent(2,9781.285); h_SL2L467->SetBinContent(3,10935.73); h_SL2L467->SetBinContent(4,11762.73); h_SL2L467->SetBinContent(5,11779.52); h_SL2L467->SetBinContent(6,11712.35); h_SL2L467->SetBinContent(7,11422.69); h_SL2L467->SetBinContent(8,9940.809); h_SL2L467->SetBinContent(9,11410.1); h_SL2L467->SetBinContent(10,11951.64); h_SL2L467->SetBinContent(11,12564.54); h_SL2L467->SetBinContent(12,13362.16); h_SL2L467->SetBinContent(13,13647.62); h_SL2L467->SetBinContent(14,14088.41); h_SL2L467->SetBinContent(15,14205.95); h_SL2L467->SetBinContent(16,14029.64); h_SL2L467->SetBinContent(17,13353.76); h_SL2L467->SetBinContent(18,13290.79); h_SL2L467->SetBinContent(19,13085.09); h_SL2L467->SetBinContent(20,12782.84); h_SL2L467->SetBinContent(21,11254.78); h_SL2L467->SetBinContent(22,11460.48); h_SL2L467->SetBinContent(23,12153.14); h_SL2L467->SetBinContent(24,11666.18); h_SL2L467->SetBinContent(25,12774.44); h_SL2L467->SetBinContent(26,23760.55); h_SL2L467->SetBinContent(27,46076.99); h_SL2L467->SetBinContent(28,68427.02); h_SL2L467->SetBinContent(29,75676.92); h_SL2L467->SetBinContent(30,74434.32); h_SL2L467->SetBinContent(31,56807.02); h_SL2L467->SetBinContent(32,45430.5); h_SL2L467->SetBinContent(33,42878.13); h_SL2L467->SetBinContent(34,37643.26); h_SL2L467->SetBinContent(35,17874.98); h_SL2L467->SetBinContent(36,10306.03); h_SL2L467->SetBinContent(37,8534.486); h_SL2L467->SetBinContent(38,7455.606); h_SL2L467->SetBinContent(39,6490.072); h_SL2L467->SetBinContent(40,5994.71); h_SL2L467->SetBinContent(41,5692.456); h_SL2L467->SetBinContent(42,5839.385); h_SL2L467->SetBinContent(43,5184.501); h_SL2L467->SetBinContent(44,4823.475); h_SL2L467->SetBinContent(45,4588.388); h_SL2L467->SetBinContent(46,4655.556); h_SL2L467->SetBinContent(47,4756.308); h_SL2L467->SetBinContent(48,4357.5); h_SL2L467->SetBinContent(49,4361.698); h_SL2L467->SetBinContent(50,4126.611); h_SL2L467->SetBinContent(51,3983.88); h_SL2L467->SetBinContent(52,3983.88); h_SL2L467->SetBinContent(53,4630.368); h_SL2L467->SetBinContent(54,4928.424); h_SL2L467->SetBinContent(55,5478.359); h_SL2L467->SetBinContent(56,4941.019); h_SL2L467->SetBinContent(57,4953.612); h_SL2L467->SetMaximum(87245.71); h_SL2L467->SetEntries(60); h_SL2L467->SetDirectory(0); h_SL2L467->SetStats(0); ci = TColor::GetColor("#0000cc"); h_SL2L467->SetLineColor(ci); h_SL2L467->SetLineWidth(2); h_SL2L467->GetXaxis()->SetTitle("Cell"); h_SL2L467->GetXaxis()->SetLabelFont(42); h_SL2L467->GetXaxis()->SetLabelSize(0.035); h_SL2L467->GetXaxis()->SetTitleSize(0.035); h_SL2L467->GetXaxis()->SetTitleFont(42); h_SL2L467->GetYaxis()->SetTitle("Hz"); h_SL2L467->GetYaxis()->SetLabelFont(42); h_SL2L467->GetYaxis()->SetLabelSize(0.035); h_SL2L467->GetYaxis()->SetTitleSize(0.035); h_SL2L467->GetYaxis()->SetTitleOffset(1.45); h_SL2L467->GetYaxis()->SetTitleFont(42); h_SL2L467->GetZaxis()->SetLabelFont(42); h_SL2L467->GetZaxis()->SetLabelSize(0.035); h_SL2L467->GetZaxis()->SetTitleSize(0.035); h_SL2L467->GetZaxis()->SetTitleFont(42); h_SL2L467->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_SL2L1","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_SL2L2","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_SL2L3","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_SL2L4","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("SL2, run 7240"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }