void RatesPerCell_Removing_noisy_cells_run_7390_SL3() { //=========Macro generated from canvas: c/c //========= (Mon Jan 21 13:17:03 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-13288.54,67.5,119596.8); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL3L168 = new TH1D("h_SL3L168","SL3, run 7390",60,0,60); h_SL3L168->SetBinContent(1,44316.51); h_SL3L168->SetBinContent(2,53826.8); h_SL3L168->SetBinContent(4,80384.49); h_SL3L168->SetBinContent(5,72558.8); h_SL3L168->SetBinContent(6,72162.82); h_SL3L168->SetBinContent(7,69122.48); h_SL3L168->SetBinContent(8,63625.7); h_SL3L168->SetBinContent(9,57900.73); h_SL3L168->SetBinContent(10,53155.65); h_SL3L168->SetBinContent(11,48081.7); h_SL3L168->SetBinContent(12,48551.51); h_SL3L168->SetBinContent(13,41719.13); h_SL3L168->SetBinContent(14,43954.08); h_SL3L168->SetBinContent(15,42068.13); h_SL3L168->SetBinContent(16,43954.08); h_SL3L168->SetBinContent(17,49779.73); h_SL3L168->SetBinContent(18,49773.02); h_SL3L168->SetBinContent(19,52209.32); h_SL3L168->SetBinContent(20,53263.03); h_SL3L168->SetBinContent(21,47061.54); h_SL3L168->SetBinContent(22,45893.73); h_SL3L168->SetBinContent(23,44994.38); h_SL3L168->SetBinContent(24,45772.92); h_SL3L168->SetBinContent(25,36866.66); h_SL3L168->SetBinContent(26,35739.12); h_SL3L168->SetBinContent(27,36759.28); h_SL3L168->SetBinContent(28,38900.27); h_SL3L168->SetBinContent(29,33611.55); h_SL3L168->SetBinContent(30,32718.91); h_SL3L168->SetBinContent(31,25839.55); h_SL3L168->SetBinContent(32,24638.18); h_SL3L168->SetBinContent(33,28040.95); h_SL3L168->SetBinContent(34,27886.58); h_SL3L168->SetBinContent(35,26953.67); h_SL3L168->SetBinContent(36,27826.18); h_SL3L168->SetBinContent(37,22571.02); h_SL3L168->SetBinContent(38,23665); h_SL3L168->SetBinContent(39,22940.15); h_SL3L168->SetBinContent(40,22812.63); h_SL3L168->SetBinContent(41,19342.75); h_SL3L168->SetBinContent(42,20074.31); h_SL3L168->SetBinContent(43,20208.54); h_SL3L168->SetBinContent(44,20705.2); h_SL3L168->SetBinContent(45,16604.43); h_SL3L168->SetBinContent(46,16611.14); h_SL3L168->SetBinContent(47,16684.97); h_SL3L168->SetBinContent(48,16913.16); h_SL3L168->SetBinContent(49,14765.46); h_SL3L168->SetBinContent(50,13919.8); h_SL3L168->SetBinContent(51,13859.4); h_SL3L168->SetBinContent(52,14040.61); h_SL3L168->SetBinContent(53,11624.44); h_SL3L168->SetBinContent(54,10859.32); h_SL3L168->SetBinContent(55,10550.59); h_SL3L168->SetBinContent(56,10570.73); h_SL3L168->SetBinContent(57,7919.655); h_SL3L168->SetBinContent(58,7040.438); h_SL3L168->SetBinContent(59,6040.415); h_SL3L168->SetMaximum(106308.3); h_SL3L168->SetEntries(60); h_SL3L168->SetDirectory(0); h_SL3L168->SetStats(0); h_SL3L168->SetLineWidth(2); h_SL3L168->GetXaxis()->SetTitle("Cell"); h_SL3L168->GetXaxis()->SetLabelFont(42); h_SL3L168->GetXaxis()->SetLabelSize(0.035); h_SL3L168->GetXaxis()->SetTitleSize(0.035); h_SL3L168->GetXaxis()->SetTitleFont(42); h_SL3L168->GetYaxis()->SetTitle("Hz"); h_SL3L168->GetYaxis()->SetLabelFont(42); h_SL3L168->GetYaxis()->SetLabelSize(0.035); h_SL3L168->GetYaxis()->SetTitleSize(0.035); h_SL3L168->GetYaxis()->SetTitleOffset(1.45); h_SL3L168->GetYaxis()->SetTitleFont(42); h_SL3L168->GetZaxis()->SetLabelFont(42); h_SL3L168->GetZaxis()->SetLabelSize(0.035); h_SL3L168->GetZaxis()->SetTitleSize(0.035); h_SL3L168->GetZaxis()->SetTitleFont(42); h_SL3L168->Draw(""); TH1D *h_SL3L269 = new TH1D("h_SL3L269","",60,0,60); h_SL3L269->SetBinContent(1,4503.465); h_SL3L269->SetBinContent(2,5094.083); h_SL3L269->SetBinContent(4,8040.463); h_SL3L269->SetBinContent(5,7047.15); h_SL3L269->SetBinContent(6,6463.244); h_SL3L269->SetBinContent(7,6778.688); h_SL3L269->SetBinContent(8,5872.625); h_SL3L269->SetBinContent(9,4490.042); h_SL3L269->SetBinContent(10,4731.658); h_SL3L269->SetBinContent(11,4000.097); h_SL3L269->SetBinContent(12,3765.192); h_SL3L269->SetBinContent(13,2959.803); h_SL3L269->SetBinContent(14,3335.651); h_SL3L269->SetBinContent(15,3060.477); h_SL3L269->SetBinContent(16,2765.167); h_SL3L269->SetBinContent(17,2979.938); h_SL3L269->SetBinContent(18,3308.805); h_SL3L269->SetBinContent(19,3187.997); h_SL3L269->SetBinContent(20,3463.171); h_SL3L269->SetBinContent(21,2731.61); h_SL3L269->SetBinContent(22,2523.551); h_SL3L269->SetBinContent(23,2919.534); h_SL3L269->SetBinContent(24,2691.34); h_SL3L269->SetBinContent(25,1892.663); h_SL3L269->SetBinContent(26,1704.739); h_SL3L269->SetBinContent(27,1664.47); h_SL3L269->SetBinContent(28,1704.739); h_SL3L269->SetBinContent(29,1127.544); h_SL3L269->SetBinContent(30,1241.641); h_SL3L269->SetBinContent(31,959.7548); h_SL3L269->SetBinContent(32,1020.159); h_SL3L269->SetBinContent(33,1020.159); h_SL3L269->SetBinContent(34,872.5043); h_SL3L269->SetBinContent(35,1100.698); h_SL3L269->SetBinContent(36,1006.736); h_SL3L269->SetBinContent(37,778.5423); h_SL3L269->SetBinContent(38,818.8118); h_SL3L269->SetBinContent(39,738.2729); h_SL3L269->SetBinContent(40,778.5423); h_SL3L269->SetBinContent(41,624.1761); h_SL3L269->SetBinContent(42,597.3299); h_SL3L269->SetBinContent(43,577.1952); h_SL3L269->SetBinContent(44,637.5993); h_SL3L269->SetBinContent(45,288.5976); h_SL3L269->SetBinContent(46,436.2522); h_SL3L269->SetBinContent(47,248.3282); h_SL3L269->SetBinContent(48,469.81); h_SL3L269->SetBinContent(49,436.2522); h_SL3L269->SetBinContent(50,241.6166); h_SL3L269->SetBinContent(51,288.5976); h_SL3L269->SetBinContent(52,308.7323); h_SL3L269->SetBinContent(53,221.4819); h_SL3L269->SetBinContent(54,208.0587); h_SL3L269->SetBinContent(55,147.6546); h_SL3L269->SetBinContent(56,187.924); h_SL3L269->SetBinContent(57,100.6736); h_SL3L269->SetBinContent(58,87.25043); h_SL3L269->SetBinContent(59,80.53886); h_SL3L269->SetMaximum(92442.17); h_SL3L269->SetEntries(60); h_SL3L269->SetDirectory(0); h_SL3L269->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#cc0000"); h_SL3L269->SetLineColor(ci); h_SL3L269->SetLineWidth(2); h_SL3L269->GetXaxis()->SetTitle("Cell"); h_SL3L269->GetXaxis()->SetLabelFont(42); h_SL3L269->GetXaxis()->SetLabelSize(0.035); h_SL3L269->GetXaxis()->SetTitleSize(0.035); h_SL3L269->GetXaxis()->SetTitleFont(42); h_SL3L269->GetYaxis()->SetTitle("Hz"); h_SL3L269->GetYaxis()->SetLabelFont(42); h_SL3L269->GetYaxis()->SetLabelSize(0.035); h_SL3L269->GetYaxis()->SetTitleSize(0.035); h_SL3L269->GetYaxis()->SetTitleOffset(1.45); h_SL3L269->GetYaxis()->SetTitleFont(42); h_SL3L269->GetZaxis()->SetLabelFont(42); h_SL3L269->GetZaxis()->SetLabelSize(0.035); h_SL3L269->GetZaxis()->SetTitleSize(0.035); h_SL3L269->GetZaxis()->SetTitleFont(42); h_SL3L269->Draw("same"); TH1D *h_SL3L370 = new TH1D("h_SL3L370","",60,0,60); h_SL3L370->SetBinContent(1,26.84629); h_SL3L370->SetBinContent(2,80.53886); h_SL3L370->SetBinContent(3,60.40414); h_SL3L370->SetBinContent(4,114.0967); h_SL3L370->SetBinContent(5,100.6736); h_SL3L370->SetBinContent(6,80.53886); h_SL3L370->SetBinContent(7,60.40414); h_SL3L370->SetBinContent(8,93.96201); h_SL3L370->SetBinContent(9,40.26943); h_SL3L370->SetBinContent(10,46.981); h_SL3L370->SetBinContent(11,20.13472); h_SL3L370->SetBinContent(12,33.55786); h_SL3L370->SetBinContent(13,40.26943); h_SL3L370->SetBinContent(14,20.13472); h_SL3L370->SetBinContent(15,20.13472); h_SL3L370->SetBinContent(16,20.13472); h_SL3L370->SetBinContent(17,26.84629); h_SL3L370->SetBinContent(18,33.55786); h_SL3L370->SetBinContent(19,26.84629); h_SL3L370->SetBinContent(20,26.84629); h_SL3L370->SetBinContent(21,20.13472); h_SL3L370->SetBinContent(22,20.13472); h_SL3L370->SetBinContent(23,13.42314); h_SL3L370->SetBinContent(24,26.84629); h_SL3L370->SetBinContent(25,26.84629); h_SL3L370->SetBinContent(26,13.42314); h_SL3L370->SetBinContent(27,13.42314); h_SL3L370->SetBinContent(28,26.84629); h_SL3L370->SetBinContent(29,6.711572); h_SL3L370->SetBinContent(31,13.42314); h_SL3L370->SetBinContent(33,13.42314); h_SL3L370->SetBinContent(35,13.42314); h_SL3L370->SetBinContent(38,13.42314); h_SL3L370->SetBinContent(40,6.711572); h_SL3L370->SetBinContent(41,33.55786); h_SL3L370->SetBinContent(43,6.711572); h_SL3L370->SetBinContent(44,6.711572); h_SL3L370->SetMaximum(92442.17); h_SL3L370->SetEntries(60); h_SL3L370->SetDirectory(0); h_SL3L370->SetStats(0); ci = TColor::GetColor("#009900"); h_SL3L370->SetLineColor(ci); h_SL3L370->SetLineWidth(2); h_SL3L370->GetXaxis()->SetTitle("Cell"); h_SL3L370->GetXaxis()->SetLabelFont(42); h_SL3L370->GetXaxis()->SetLabelSize(0.035); h_SL3L370->GetXaxis()->SetTitleSize(0.035); h_SL3L370->GetXaxis()->SetTitleFont(42); h_SL3L370->GetYaxis()->SetTitle("Hz"); h_SL3L370->GetYaxis()->SetLabelFont(42); h_SL3L370->GetYaxis()->SetLabelSize(0.035); h_SL3L370->GetYaxis()->SetTitleSize(0.035); h_SL3L370->GetYaxis()->SetTitleOffset(1.45); h_SL3L370->GetYaxis()->SetTitleFont(42); h_SL3L370->GetZaxis()->SetLabelFont(42); h_SL3L370->GetZaxis()->SetLabelSize(0.035); h_SL3L370->GetZaxis()->SetTitleSize(0.035); h_SL3L370->GetZaxis()->SetTitleFont(42); h_SL3L370->Draw("same"); TH1D *h_SL3L471 = new TH1D("h_SL3L471","",60,0,60); h_SL3L471->SetMaximum(92442.17); h_SL3L471->SetEntries(60); h_SL3L471->SetDirectory(0); h_SL3L471->SetStats(0); ci = TColor::GetColor("#0000cc"); h_SL3L471->SetLineColor(ci); h_SL3L471->SetLineWidth(2); h_SL3L471->GetXaxis()->SetTitle("Cell"); h_SL3L471->GetXaxis()->SetLabelFont(42); h_SL3L471->GetXaxis()->SetLabelSize(0.035); h_SL3L471->GetXaxis()->SetTitleSize(0.035); h_SL3L471->GetXaxis()->SetTitleFont(42); h_SL3L471->GetYaxis()->SetTitle("Hz"); h_SL3L471->GetYaxis()->SetLabelFont(42); h_SL3L471->GetYaxis()->SetLabelSize(0.035); h_SL3L471->GetYaxis()->SetTitleSize(0.035); h_SL3L471->GetYaxis()->SetTitleOffset(1.45); h_SL3L471->GetYaxis()->SetTitleFont(42); h_SL3L471->GetZaxis()->SetLabelFont(42); h_SL3L471->GetZaxis()->SetLabelSize(0.035); h_SL3L471->GetZaxis()->SetTitleSize(0.035); h_SL3L471->GetZaxis()->SetTitleFont(42); h_SL3L471->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_SL3L1","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_SL3L2","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_SL3L3","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_SL3L4","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("SL3, run 7390"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }