void RatesPerCell_Removing_noisy_cells_run_5472_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 14:44:18 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-28616.17,67.5,257545.5); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 5472",60,0,60); h_SL1L160->SetBinContent(1,80460); h_SL1L160->SetBinContent(2,79898.57); h_SL1L160->SetBinContent(3,77807.15); h_SL1L160->SetBinContent(4,78201.43); h_SL1L160->SetBinContent(5,76930); h_SL1L160->SetBinContent(6,79220); h_SL1L160->SetBinContent(7,77451.43); h_SL1L160->SetBinContent(8,79072.86); h_SL1L160->SetBinContent(9,76168.57); h_SL1L160->SetBinContent(10,72117.15); h_SL1L160->SetBinContent(11,68028.57); h_SL1L160->SetBinContent(12,65915.72); h_SL1L160->SetBinContent(13,67952.86); h_SL1L160->SetBinContent(14,71230); h_SL1L160->SetBinContent(15,72534.29); h_SL1L160->SetBinContent(16,66265.72); h_SL1L160->SetBinContent(17,67620); h_SL1L160->SetBinContent(18,71261.43); h_SL1L160->SetBinContent(19,72655.72); h_SL1L160->SetBinContent(20,73161.43); h_SL1L160->SetBinContent(21,77032.86); h_SL1L160->SetBinContent(22,77640); h_SL1L160->SetBinContent(23,77511.43); h_SL1L160->SetBinContent(24,77390); h_SL1L160->SetBinContent(25,78398.57); h_SL1L160->SetBinContent(26,71870); h_SL1L160->SetBinContent(27,73300); h_SL1L160->SetBinContent(28,75395.72); h_SL1L160->SetBinContent(29,74592.86); h_SL1L160->SetBinContent(30,75021.43); h_SL1L160->SetBinContent(31,74367.15); h_SL1L160->SetBinContent(32,75138.57); h_SL1L160->SetBinContent(33,84712.86); h_SL1L160->SetBinContent(34,91495.72); h_SL1L160->SetBinContent(35,100001.4); h_SL1L160->SetBinContent(36,112427.1); h_SL1L160->SetBinContent(37,148030); h_SL1L160->SetBinContent(38,173104.3); h_SL1L160->SetBinContent(39,130261.4); h_SL1L160->SetBinContent(40,75174.29); h_SL1L160->SetBinContent(41,69980); h_SL1L160->SetBinContent(42,69698.57); h_SL1L160->SetBinContent(43,68468.57); h_SL1L160->SetBinContent(44,65658.57); h_SL1L160->SetBinContent(45,63858.57); h_SL1L160->SetBinContent(46,63317.14); h_SL1L160->SetBinContent(47,63338.57); h_SL1L160->SetBinContent(48,61830); h_SL1L160->SetBinContent(49,61354.29); h_SL1L160->SetBinContent(50,61782.86); h_SL1L160->SetBinContent(51,59150); h_SL1L160->SetBinContent(52,58255.71); h_SL1L160->SetBinContent(53,58618.57); h_SL1L160->SetBinContent(54,56938.57); h_SL1L160->SetBinContent(55,57581.43); h_SL1L160->SetBinContent(56,55867.14); h_SL1L160->SetBinContent(57,55594.29); h_SL1L160->SetBinContent(58,54234.29); h_SL1L160->SetBinContent(59,54760); h_SL1L160->SetMaximum(228929.3); 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(49,301.4286); h_SL1L261->SetBinContent(56,1.428571); h_SL1L261->SetMaximum(199069.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(21,1.428571); h_SL1L362->SetBinContent(22,1.428571); h_SL1L362->SetBinContent(32,1.428571); h_SL1L362->SetBinContent(36,1.428571); h_SL1L362->SetBinContent(39,1.428571); h_SL1L362->SetBinContent(53,4.285714); h_SL1L362->SetBinContent(56,5.714286); h_SL1L362->SetMaximum(199069.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,75102.86); h_SL1L463->SetBinContent(3,71582.86); h_SL1L463->SetBinContent(4,72100); h_SL1L463->SetBinContent(5,70560); h_SL1L463->SetBinContent(6,72001.43); h_SL1L463->SetBinContent(7,71275.72); h_SL1L463->SetBinContent(8,72030); h_SL1L463->SetBinContent(9,70881.43); h_SL1L463->SetBinContent(10,68474.29); h_SL1L463->SetBinContent(11,63205.71); h_SL1L463->SetBinContent(12,61651.43); h_SL1L463->SetBinContent(13,61924.29); h_SL1L463->SetBinContent(14,64890); h_SL1L463->SetBinContent(15,66231.43); h_SL1L463->SetBinContent(16,64452.86); h_SL1L463->SetBinContent(17,61617.14); h_SL1L463->SetBinContent(18,63718.57); h_SL1L463->SetBinContent(19,66660); h_SL1L463->SetBinContent(20,67018.57); h_SL1L463->SetBinContent(21,69277.14); h_SL1L463->SetBinContent(22,70817.15); h_SL1L463->SetBinContent(23,71777.15); h_SL1L463->SetBinContent(24,72191.43); h_SL1L463->SetBinContent(25,72390); h_SL1L463->SetBinContent(26,71405.72); h_SL1L463->SetBinContent(27,67281.43); h_SL1L463->SetBinContent(28,67564.29); h_SL1L463->SetBinContent(29,70454.29); h_SL1L463->SetBinContent(30,70294.29); h_SL1L463->SetBinContent(31,70038.57); h_SL1L463->SetBinContent(32,70400); h_SL1L463->SetBinContent(33,73595.72); h_SL1L463->SetBinContent(34,85354.29); h_SL1L463->SetBinContent(35,91065.72); h_SL1L463->SetBinContent(36,100277.1); h_SL1L463->SetBinContent(37,120198.6); h_SL1L463->SetBinContent(38,160020); h_SL1L463->SetBinContent(39,160245.7); h_SL1L463->SetBinContent(40,85270); h_SL1L463->SetBinContent(41,67897.14); h_SL1L463->SetBinContent(42,64880); h_SL1L463->SetBinContent(43,63354.29); h_SL1L463->SetBinContent(44,61827.14); h_SL1L463->SetBinContent(45,59952.86); h_SL1L463->SetBinContent(46,60118.57); h_SL1L463->SetBinContent(47,58007.14); h_SL1L463->SetBinContent(48,57697.14); h_SL1L463->SetBinContent(49,55674.29); h_SL1L463->SetBinContent(50,56142.86); h_SL1L463->SetBinContent(51,55008.57); h_SL1L463->SetBinContent(52,52605.71); h_SL1L463->SetBinContent(53,53195.71); h_SL1L463->SetBinContent(54,52665.71); h_SL1L463->SetBinContent(56,53038.57); h_SL1L463->SetBinContent(57,51357.14); h_SL1L463->SetBinContent(58,51085.71); h_SL1L463->SetBinContent(59,48308.57); h_SL1L463->SetMaximum(199069.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 5472"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }