void RatesPerCell_Removing_noisy_cells_run_5448_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 14:43:35 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-26481.34,67.5,238332); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 5448",60,0,60); h_SL1L160->SetBinContent(1,80415.72); h_SL1L160->SetBinContent(2,80520); h_SL1L160->SetBinContent(3,78625.72); h_SL1L160->SetBinContent(4,78450); h_SL1L160->SetBinContent(5,77228.57); h_SL1L160->SetBinContent(6,79022.86); h_SL1L160->SetBinContent(7,78261.43); h_SL1L160->SetBinContent(8,78522.86); h_SL1L160->SetBinContent(9,75667.15); h_SL1L160->SetBinContent(10,71317.15); h_SL1L160->SetBinContent(11,68151.43); h_SL1L160->SetBinContent(12,67367.14); h_SL1L160->SetBinContent(13,67981.43); h_SL1L160->SetBinContent(14,70772.86); h_SL1L160->SetBinContent(15,72004.29); h_SL1L160->SetBinContent(16,66512.86); h_SL1L160->SetBinContent(17,67688.57); h_SL1L160->SetBinContent(18,71398.57); h_SL1L160->SetBinContent(19,73537.15); h_SL1L160->SetBinContent(20,74811.43); h_SL1L160->SetBinContent(21,77838.57); h_SL1L160->SetBinContent(22,78194.29); h_SL1L160->SetBinContent(23,78634.29); h_SL1L160->SetBinContent(24,78617.15); h_SL1L160->SetBinContent(25,79022.86); h_SL1L160->SetBinContent(26,73948.57); h_SL1L160->SetBinContent(27,73935.72); h_SL1L160->SetBinContent(28,76542.86); h_SL1L160->SetBinContent(29,76954.29); h_SL1L160->SetBinContent(30,77374.29); h_SL1L160->SetBinContent(31,79164.29); h_SL1L160->SetBinContent(32,87891.43); h_SL1L160->SetBinContent(33,160190); h_SL1L160->SetBinContent(34,149942.9); h_SL1L160->SetBinContent(35,132110); h_SL1L160->SetBinContent(36,116514.3); h_SL1L160->SetBinContent(37,103807.1); h_SL1L160->SetBinContent(38,95234.29); h_SL1L160->SetBinContent(39,83185.72); h_SL1L160->SetBinContent(40,70190); h_SL1L160->SetBinContent(41,69182.86); h_SL1L160->SetBinContent(42,68888.57); h_SL1L160->SetBinContent(43,67772.86); h_SL1L160->SetBinContent(44,66137.14); h_SL1L160->SetBinContent(45,64440); h_SL1L160->SetBinContent(46,63434.29); h_SL1L160->SetBinContent(47,64471.43); h_SL1L160->SetBinContent(48,62034.29); h_SL1L160->SetBinContent(49,62154.29); h_SL1L160->SetBinContent(50,61620); h_SL1L160->SetBinContent(51,58928.57); h_SL1L160->SetBinContent(52,59207.14); h_SL1L160->SetBinContent(53,58781.43); h_SL1L160->SetBinContent(54,56735.71); h_SL1L160->SetBinContent(55,57438.57); h_SL1L160->SetBinContent(56,55954.29); h_SL1L160->SetBinContent(57,54897.14); h_SL1L160->SetBinContent(58,53547.14); h_SL1L160->SetBinContent(59,54637.14); h_SL1L160->SetMaximum(211850.7); 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(2,1.428571); h_SL1L261->SetBinContent(3,1.428571); h_SL1L261->SetBinContent(35,1.428571); h_SL1L261->SetBinContent(36,1.428571); h_SL1L261->SetBinContent(38,1.428571); h_SL1L261->SetBinContent(48,1.428571); h_SL1L261->SetBinContent(49,262.8571); h_SL1L261->SetBinContent(53,1.428571); h_SL1L261->SetBinContent(54,1.428571); h_SL1L261->SetBinContent(56,1.428571); h_SL1L261->SetMaximum(184218.5); 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(2,1.428571); h_SL1L362->SetBinContent(20,1.428571); h_SL1L362->SetBinContent(41,1.428571); h_SL1L362->SetBinContent(42,1.428571); h_SL1L362->SetBinContent(53,2.857143); h_SL1L362->SetBinContent(56,4.285714); h_SL1L362->SetMaximum(184218.5); 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,74364.29); h_SL1L463->SetBinContent(3,71688.57); h_SL1L463->SetBinContent(4,72907.15); h_SL1L463->SetBinContent(5,70910); h_SL1L463->SetBinContent(6,72192.86); h_SL1L463->SetBinContent(7,71354.29); h_SL1L463->SetBinContent(8,71678.57); h_SL1L463->SetBinContent(9,70551.43); h_SL1L463->SetBinContent(10,67928.57); h_SL1L463->SetBinContent(11,63465.71); h_SL1L463->SetBinContent(12,62197.14); h_SL1L463->SetBinContent(13,62037.14); h_SL1L463->SetBinContent(14,64722.86); h_SL1L463->SetBinContent(15,66188.57); h_SL1L463->SetBinContent(16,64570); h_SL1L463->SetBinContent(17,62854.29); h_SL1L463->SetBinContent(18,63814.29); h_SL1L463->SetBinContent(19,67441.43); h_SL1L463->SetBinContent(20,68152.86); h_SL1L463->SetBinContent(21,70131.43); h_SL1L463->SetBinContent(22,72457.15); h_SL1L463->SetBinContent(23,72485.72); h_SL1L463->SetBinContent(24,73152.86); h_SL1L463->SetBinContent(25,72955.72); h_SL1L463->SetBinContent(26,71322.86); h_SL1L463->SetBinContent(27,68317.14); h_SL1L463->SetBinContent(28,68537.14); h_SL1L463->SetBinContent(29,71455.72); h_SL1L463->SetBinContent(30,72912.86); h_SL1L463->SetBinContent(31,73147.15); h_SL1L463->SetBinContent(32,78185.72); h_SL1L463->SetBinContent(33,119415.7); h_SL1L463->SetBinContent(34,159262.9); h_SL1L463->SetBinContent(35,137648.6); h_SL1L463->SetBinContent(36,120501.4); h_SL1L463->SetBinContent(37,103234.3); h_SL1L463->SetBinContent(38,92251.43); h_SL1L463->SetBinContent(39,85475.72); h_SL1L463->SetBinContent(40,68621.43); h_SL1L463->SetBinContent(41,64458.57); h_SL1L463->SetBinContent(42,64570); h_SL1L463->SetBinContent(43,62605.71); h_SL1L463->SetBinContent(44,61961.43); h_SL1L463->SetBinContent(45,59917.14); h_SL1L463->SetBinContent(46,60710); h_SL1L463->SetBinContent(47,58440); h_SL1L463->SetBinContent(48,57968.57); h_SL1L463->SetBinContent(49,55601.43); h_SL1L463->SetBinContent(50,56432.86); h_SL1L463->SetBinContent(51,56047.14); h_SL1L463->SetBinContent(52,52878.57); h_SL1L463->SetBinContent(53,54027.14); h_SL1L463->SetBinContent(54,52955.71); h_SL1L463->SetBinContent(56,52970); h_SL1L463->SetBinContent(57,51820); h_SL1L463->SetBinContent(58,51391.43); h_SL1L463->SetBinContent(59,49037.14); h_SL1L463->SetMaximum(184218.5); 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 5448"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }