void RatesPerCell_Removing_noisy_cells_run_5178_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 14:40:42 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-7367.188,67.5,66304.69); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 5178",60,0,60); h_SL1L160->SetBinContent(1,473.6122); h_SL1L160->SetBinContent(2,681.5394); h_SL1L160->SetBinContent(3,489.7843); h_SL1L160->SetBinContent(4,408.9237); h_SL1L160->SetBinContent(5,529.0594); h_SL1L160->SetBinContent(6,499.0255); h_SL1L160->SetBinContent(7,496.7152); h_SL1L160->SetBinContent(8,584.5067); h_SL1L160->SetBinContent(9,577.5758); h_SL1L160->SetBinContent(10,644.5746); h_SL1L160->SetBinContent(11,711.5734); h_SL1L160->SetBinContent(12,716.194); h_SL1L160->SetBinContent(13,843.2607); h_SL1L160->SetBinContent(14,903.3286); h_SL1L160->SetBinContent(15,743.9177); h_SL1L160->SetBinContent(16,746.228); h_SL1L160->SetBinContent(17,838.6401); h_SL1L160->SetBinContent(18,1102.015); h_SL1L160->SetBinContent(19,1254.495); h_SL1L160->SetBinContent(20,1506.318); h_SL1L160->SetBinContent(21,1728.107); h_SL1L160->SetBinContent(22,1741.969); h_SL1L160->SetBinContent(23,2058.48); h_SL1L160->SetBinContent(24,2238.684); h_SL1L160->SetBinContent(25,2478.955); h_SL1L160->SetBinContent(26,2587.54); h_SL1L160->SetBinContent(27,2825.501); h_SL1L160->SetBinContent(28,3456.214); h_SL1L160->SetBinContent(29,4017.617); h_SL1L160->SetBinContent(30,4424.23); h_SL1L160->SetBinContent(31,6792.292); h_SL1L160->SetBinContent(32,12471.02); h_SL1L160->SetBinContent(38,44565.75); h_SL1L160->SetBinContent(39,25545.02); h_SL1L160->SetBinContent(40,6649.053); h_SL1L160->SetBinContent(41,4412.679); h_SL1L160->SetBinContent(42,3738.071); h_SL1L160->SetBinContent(43,3370.732); h_SL1L160->SetBinContent(44,3044.98); h_SL1L160->SetBinContent(45,2726.158); h_SL1L160->SetBinContent(46,2432.749); h_SL1L160->SetBinContent(47,2340.337); h_SL1L160->SetBinContent(48,2314.924); h_SL1L160->SetBinContent(49,2206.34); h_SL1L160->SetBinContent(50,2173.995); h_SL1L160->SetBinContent(51,1882.897); h_SL1L160->SetBinContent(52,1751.21); h_SL1L160->SetBinContent(53,1739.658); h_SL1L160->SetBinContent(54,1640.315); h_SL1L160->SetBinContent(55,1483.215); h_SL1L160->SetBinContent(56,1411.595); h_SL1L160->SetBinContent(57,1524.8); h_SL1L160->SetBinContent(58,1443.939); h_SL1L160->SetBinContent(59,1323.804); h_SL1L160->SetMaximum(58937.5); 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,2.310303); h_SL1L261->SetBinContent(8,2.310303); h_SL1L261->SetBinContent(16,2.310303); h_SL1L261->SetBinContent(49,1088.153); h_SL1L261->SetBinContent(56,2.310303); h_SL1L261->SetMaximum(51250.61); 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(53,36.96485); h_SL1L362->SetBinContent(56,55.44728); h_SL1L362->SetMaximum(51250.61); 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,94.72243); h_SL1L463->SetBinContent(3,55.44728); h_SL1L463->SetBinContent(4,50.82667); h_SL1L463->SetBinContent(5,76.24001); h_SL1L463->SetBinContent(6,83.17091); h_SL1L463->SetBinContent(7,97.03274); h_SL1L463->SetBinContent(8,101.6533); h_SL1L463->SetBinContent(9,101.6533); h_SL1L463->SetBinContent(10,78.55031); h_SL1L463->SetBinContent(11,99.34304); h_SL1L463->SetBinContent(12,122.4461); h_SL1L463->SetBinContent(13,129.377); h_SL1L463->SetBinContent(14,143.2388); h_SL1L463->SetBinContent(15,152.48); h_SL1L463->SetBinContent(16,115.5152); h_SL1L463->SetBinContent(17,161.7212); h_SL1L463->SetBinContent(18,187.1346); h_SL1L463->SetBinContent(19,279.5467); h_SL1L463->SetBinContent(20,288.7879); h_SL1L463->SetBinContent(21,304.96); h_SL1L463->SetBinContent(22,288.7879); h_SL1L463->SetBinContent(23,316.5115); h_SL1L463->SetBinContent(24,360.4073); h_SL1L463->SetBinContent(25,316.5115); h_SL1L463->SetBinContent(26,473.6122); h_SL1L463->SetBinContent(27,503.6461); h_SL1L463->SetBinContent(28,642.2643); h_SL1L463->SetBinContent(29,711.5734); h_SL1L463->SetBinContent(30,868.674); h_SL1L463->SetBinContent(31,1090.463); h_SL1L463->SetBinContent(32,1859.794); h_SL1L463->SetBinContent(33,6729.913); h_SL1L463->SetBinContent(34,15305.76); h_SL1L463->SetBinContent(35,17036.18); h_SL1L463->SetBinContent(36,15181); h_SL1L463->SetBinContent(37,11484.52); h_SL1L463->SetBinContent(38,11214.21); h_SL1L463->SetBinContent(39,9871.926); h_SL1L463->SetBinContent(40,2160.134); h_SL1L463->SetBinContent(41,1272.977); h_SL1L463->SetBinContent(42,942.6037); h_SL1L463->SetBinContent(43,931.0522); h_SL1L463->SetBinContent(44,785.5031); h_SL1L463->SetBinContent(45,607.6097); h_SL1L463->SetBinContent(46,642.2643); h_SL1L463->SetBinContent(47,464.3709); h_SL1L463->SetBinContent(48,452.8194); h_SL1L463->SetBinContent(49,399.6825); h_SL1L463->SetBinContent(50,374.2691); h_SL1L463->SetBinContent(51,415.8546); h_SL1L463->SetBinContent(52,318.8218); h_SL1L463->SetBinContent(53,307.2703); h_SL1L463->SetBinContent(54,341.9249); h_SL1L463->SetBinContent(56,295.7188); h_SL1L463->SetBinContent(57,258.754); h_SL1L463->SetBinContent(58,304.96); h_SL1L463->SetBinContent(59,265.6849); h_SL1L463->SetMaximum(51250.61); 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 5178"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }