void RatesPerCell_Removing_noisy_cells_run_5786_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:28:49 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-1605.975,67.5,14453.78); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5786",60,0,60); h_SL2L164->SetBinContent(1,4410.873); h_SL2L164->SetBinContent(2,5187.926); h_SL2L164->SetBinContent(3,6455.749); h_SL2L164->SetBinContent(4,7585.732); h_SL2L164->SetBinContent(5,8149.209); h_SL2L164->SetBinContent(6,8562.729); h_SL2L164->SetBinContent(7,9061.072); h_SL2L164->SetBinContent(8,8750.554); h_SL2L164->SetBinContent(9,8817.201); h_SL2L164->SetBinContent(10,8983.821); h_SL2L164->SetBinContent(11,9089.852); h_SL2L164->SetBinContent(12,8989.88); h_SL2L164->SetBinContent(13,9092.881); h_SL2L164->SetBinContent(14,8821.746); h_SL2L164->SetBinContent(15,9011.086); h_SL2L164->SetBinContent(16,9068.646); h_SL2L164->SetBinContent(17,8900.512); h_SL2L164->SetBinContent(18,9271.618); h_SL2L164->SetBinContent(19,9406.429); h_SL2L164->SetBinContent(20,8974.732); h_SL2L164->SetBinContent(21,9176.19); h_SL2L164->SetBinContent(22,9215.573); h_SL2L164->SetBinContent(23,9229.206); h_SL2L164->SetBinContent(24,9055.013); h_SL2L164->SetBinContent(25,9285.251); h_SL2L164->SetBinContent(26,9320.09); h_SL2L164->SetBinContent(27,9492.768); h_SL2L164->SetBinContent(28,9371.59); h_SL2L164->SetBinContent(29,9412.487); h_SL2L164->SetBinContent(30,9238.295); h_SL2L164->SetBinContent(31,9008.057); h_SL2L164->SetBinContent(32,8683.906); h_SL2L164->SetBinContent(33,8988.365); h_SL2L164->SetBinContent(34,8962.615); h_SL2L164->SetBinContent(36,9715.433); h_SL2L164->SetBinContent(37,9253.441); h_SL2L164->SetBinContent(38,9086.822); h_SL2L164->SetBinContent(39,8877.79); h_SL2L164->SetBinContent(40,8297.651); h_SL2L164->SetBinContent(41,8776.304); h_SL2L164->SetBinContent(42,9156.499); h_SL2L164->SetBinContent(43,8923.232); h_SL2L164->SetBinContent(44,8992.909); h_SL2L164->SetBinContent(45,9045.925); h_SL2L164->SetBinContent(46,8882.335); h_SL2L164->SetBinContent(47,8782.363); h_SL2L164->SetBinContent(48,8749.039); h_SL2L164->SetBinContent(49,8786.907); h_SL2L164->SetBinContent(50,8767.216); h_SL2L164->SetBinContent(51,8614.229); h_SL2L164->SetBinContent(52,8290.078); h_SL2L164->SetBinContent(53,8140.121); h_SL2L164->SetBinContent(54,7493.334); h_SL2L164->SetBinContent(55,6017.994); h_SL2L164->SetBinContent(56,4400.27); h_SL2L164->SetBinContent(57,1916.124); h_SL2L164->SetMaximum(12847.8); 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,2147.877); h_SL2L265->SetBinContent(2,4766.833); h_SL2L265->SetBinContent(3,5952.861); h_SL2L265->SetBinContent(4,7410.024); h_SL2L265->SetBinContent(5,8041.664); h_SL2L265->SetBinContent(6,8491.536); h_SL2L265->SetBinContent(7,8800.54); h_SL2L265->SetBinContent(8,8679.361); h_SL2L265->SetBinContent(9,8876.275); h_SL2L265->SetBinContent(10,8589.993); h_SL2L265->SetBinContent(11,9021.689); h_SL2L265->SetBinContent(12,8926.262); h_SL2L265->SetBinContent(13,8814.172); h_SL2L265->SetBinContent(14,9073.189); h_SL2L265->SetBinContent(15,8726.318); h_SL2L265->SetBinContent(16,8980.792); h_SL2L265->SetBinContent(17,8930.806); h_SL2L265->SetBinContent(18,9079.249); h_SL2L265->SetBinContent(19,9450.355); h_SL2L265->SetBinContent(20,8961.101); h_SL2L265->SetBinContent(21,8912.629); h_SL2L265->SetBinContent(22,9182.25); h_SL2L265->SetBinContent(23,9108.028); h_SL2L265->SetBinContent(24,8974.732); h_SL2L265->SetBinContent(25,9009.571); h_SL2L265->SetBinContent(26,9321.604); h_SL2L265->SetBinContent(27,9298.884); h_SL2L265->SetBinContent(28,9397.341); h_SL2L265->SetBinContent(29,9324.634); h_SL2L265->SetBinContent(30,9253.441); h_SL2L265->SetBinContent(31,8950.497); h_SL2L265->SetBinContent(32,8812.657); h_SL2L265->SetBinContent(33,8771.76); h_SL2L265->SetBinContent(34,8964.13); h_SL2L265->SetBinContent(35,7637.232); h_SL2L265->SetBinContent(36,7543.32); h_SL2L265->SetBinContent(37,9064.102); h_SL2L265->SetBinContent(38,9206.485); h_SL2L265->SetBinContent(39,8849.011); h_SL2L265->SetBinContent(40,8880.82); h_SL2L265->SetBinContent(41,8770.245); h_SL2L265->SetBinContent(42,8939.895); h_SL2L265->SetBinContent(43,8945.953); h_SL2L265->SetBinContent(44,8800.54); h_SL2L265->SetBinContent(45,8856.584); h_SL2L265->SetBinContent(46,8593.022); h_SL2L265->SetBinContent(47,8847.496); h_SL2L265->SetBinContent(48,8562.729); h_SL2L265->SetBinContent(49,8671.788); h_SL2L265->SetBinContent(50,8570.302); h_SL2L265->SetBinContent(51,8497.595); h_SL2L265->SetBinContent(52,8490.021); h_SL2L265->SetBinContent(53,8427.918); h_SL2L265->SetBinContent(54,7938.662); h_SL2L265->SetBinContent(55,7191.904); h_SL2L265->SetBinContent(56,5530.253); h_SL2L265->SetBinContent(57,3683.806); h_SL2L265->SetMaximum(11172.75); 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,2797.693); h_SL2L366->SetBinContent(2,5404.531); h_SL2L366->SetBinContent(3,6996.505); h_SL2L366->SetBinContent(4,7938.662); h_SL2L366->SetBinContent(5,8235.548); h_SL2L366->SetBinContent(6,8802.055); h_SL2L366->SetBinContent(7,8736.921); h_SL2L366->SetBinContent(8,8833.863); h_SL2L366->SetBinContent(9,8864.158); h_SL2L366->SetBinContent(10,8680.877); h_SL2L366->SetBinContent(11,8948.982); h_SL2L366->SetBinContent(12,8948.982); h_SL2L366->SetBinContent(13,8826.29); h_SL2L366->SetBinContent(14,8941.409); h_SL2L366->SetBinContent(15,8873.246); h_SL2L366->SetBinContent(16,8892.938); h_SL2L366->SetBinContent(17,8902.026); h_SL2L366->SetBinContent(18,9156.499); h_SL2L366->SetBinContent(19,9148.926); h_SL2L366->SetBinContent(20,8912.629); h_SL2L366->SetBinContent(21,9174.676); h_SL2L366->SetBinContent(22,8991.395); h_SL2L366->SetBinContent(23,8849.011); h_SL2L366->SetBinContent(24,9045.925); h_SL2L366->SetBinContent(25,9186.794); h_SL2L366->SetBinContent(26,9182.25); h_SL2L366->SetBinContent(27,9273.133); h_SL2L366->SetBinContent(28,9426.12); h_SL2L366->SetBinContent(29,9297.369); h_SL2L366->SetBinContent(30,9111.058); h_SL2L366->SetBinContent(31,9012.601); h_SL2L366->SetBinContent(32,8771.76); h_SL2L366->SetBinContent(33,8795.995); h_SL2L366->SetBinContent(34,8343.094); h_SL2L366->SetBinContent(35,7899.279); h_SL2L366->SetBinContent(36,8093.164); h_SL2L366->SetBinContent(37,9024.719); h_SL2L366->SetBinContent(38,9050.469); h_SL2L366->SetBinContent(39,8888.394); h_SL2L366->SetBinContent(40,8536.978); h_SL2L366->SetBinContent(41,8808.113); h_SL2L366->SetBinContent(42,8864.158); h_SL2L366->SetBinContent(43,8911.114); h_SL2L366->SetBinContent(44,8615.743); h_SL2L366->SetBinContent(45,8753.583); h_SL2L366->SetBinContent(46,8705.112); h_SL2L366->SetBinContent(47,8699.053); h_SL2L366->SetBinContent(48,8605.141); h_SL2L366->SetBinContent(49,8512.742); h_SL2L366->SetBinContent(50,8467.301); h_SL2L366->SetBinContent(51,8486.992); h_SL2L366->SetBinContent(52,8382.477); h_SL2L366->SetBinContent(53,8430.947); h_SL2L366->SetBinContent(54,7672.071); h_SL2L366->SetBinContent(55,6872.297); h_SL2L366->SetBinContent(56,4359.372); h_SL2L366->SetBinContent(57,3065.799); h_SL2L366->SetMaximum(11172.75); 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,3821.646); h_SL2L467->SetBinContent(3,6776.87); h_SL2L467->SetBinContent(4,7914.427); h_SL2L467->SetBinContent(5,8350.667); h_SL2L467->SetBinContent(6,8577.875); h_SL2L467->SetBinContent(7,8817.201); h_SL2L467->SetBinContent(8,8752.068); h_SL2L467->SetBinContent(9,8958.07); h_SL2L467->SetBinContent(10,8746.01); h_SL2L467->SetBinContent(11,8842.952); h_SL2L467->SetBinContent(12,9121.661); h_SL2L467->SetBinContent(13,9008.057); h_SL2L467->SetBinContent(14,8952.012); h_SL2L467->SetBinContent(15,9133.778); h_SL2L467->SetBinContent(16,8841.438); h_SL2L467->SetBinContent(17,8720.26); h_SL2L467->SetBinContent(18,9112.572); h_SL2L467->SetBinContent(19,9209.515); h_SL2L467->SetBinContent(20,9027.748); h_SL2L467->SetBinContent(21,9104.999); h_SL2L467->SetBinContent(22,9121.661); h_SL2L467->SetBinContent(23,8973.218); h_SL2L467->SetBinContent(24,8968.674); h_SL2L467->SetBinContent(25,9338.267); h_SL2L467->SetBinContent(26,9274.647); h_SL2L467->SetBinContent(27,9267.074); h_SL2L467->SetBinContent(28,9342.811); h_SL2L467->SetBinContent(29,9423.091); h_SL2L467->SetBinContent(30,9407.943); h_SL2L467->SetBinContent(31,9082.278); h_SL2L467->SetBinContent(32,8952.012); h_SL2L467->SetBinContent(33,8924.747); h_SL2L467->SetBinContent(34,8524.86); h_SL2L467->SetBinContent(35,8290.078); h_SL2L467->SetBinContent(36,8390.05); h_SL2L467->SetBinContent(37,8341.578); h_SL2L467->SetBinContent(38,8842.952); h_SL2L467->SetBinContent(39,9212.544); h_SL2L467->SetBinContent(40,8898.997); h_SL2L467->SetBinContent(41,8606.655); h_SL2L467->SetBinContent(42,9006.542); h_SL2L467->SetBinContent(43,8964.13); h_SL2L467->SetBinContent(44,8768.73); h_SL2L467->SetBinContent(45,8818.716); h_SL2L467->SetBinContent(46,8971.703); h_SL2L467->SetBinContent(47,8768.73); h_SL2L467->SetBinContent(48,8624.832); h_SL2L467->SetBinContent(49,8741.466); h_SL2L467->SetBinContent(50,8641.494); h_SL2L467->SetBinContent(51,8589.993); h_SL2L467->SetBinContent(52,8553.64); h_SL2L467->SetBinContent(53,8576.36); h_SL2L467->SetBinContent(54,8497.595); h_SL2L467->SetBinContent(55,7616.026); h_SL2L467->SetBinContent(56,6116.451); h_SL2L467->SetBinContent(57,2802.237); h_SL2L467->SetMaximum(11172.75); 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 5786"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }