void RatesPerCell_Removing_noisy_cells_run_7258_SL3() { //=========Macro generated from canvas: c/c //========= (Fri Jan 18 19:23:31 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-16859.43,67.5,151734.9); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL3L168 = new TH1D("h_SL3L168","SL3, run 7258",60,0,60); h_SL3L168->SetBinContent(1,378.5979); h_SL3L168->SetBinContent(2,192.8707); h_SL3L168->SetBinContent(4,317.8794); h_SL3L168->SetBinContent(5,342.8812); h_SL3L168->SetBinContent(6,303.5927); h_SL3L168->SetBinContent(7,364.3112); h_SL3L168->SetBinContent(8,403.5997); h_SL3L168->SetBinContent(9,489.32); h_SL3L168->SetBinContent(10,435.7448); h_SL3L168->SetBinContent(11,582.1836); h_SL3L168->SetBinContent(12,625.0438); h_SL3L168->SetBinContent(13,564.3252); h_SL3L168->SetBinContent(14,717.9074); h_SL3L168->SetBinContent(15,760.7676); h_SL3L168->SetBinContent(16,835.7728); h_SL3L168->SetBinContent(17,964.3532); h_SL3L168->SetBinContent(18,1121.507); h_SL3L168->SetBinContent(19,1271.518); h_SL3L168->SetBinContent(20,1696.547); h_SL3L168->SetBinContent(21,1900.133); h_SL3L168->SetBinContent(22,2146.579); h_SL3L168->SetBinContent(23,2757.336); h_SL3L168->SetBinContent(24,3107.36); h_SL3L168->SetBinContent(25,5082.499); h_SL3L168->SetBinContent(26,15065.34); h_SL3L168->SetBinContent(27,32180.82); h_SL3L168->SetBinContent(28,53914.49); h_SL3L168->SetBinContent(29,84034.45); h_SL3L168->SetBinContent(30,101985.7); h_SL3L168->SetBinContent(31,76094.62); h_SL3L168->SetBinContent(32,37188.32); h_SL3L168->SetBinContent(33,8839.904); h_SL3L168->SetBinContent(34,5189.649); h_SL3L168->SetBinContent(35,3678.829); h_SL3L168->SetBinContent(36,2668.044); h_SL3L168->SetBinContent(37,2418.026); h_SL3L168->SetBinContent(38,2085.86); h_SL3L168->SetBinContent(39,1817.984); h_SL3L168->SetBinContent(40,1607.255); h_SL3L168->SetBinContent(41,1432.243); h_SL3L168->SetBinContent(42,1160.796); h_SL3L168->SetBinContent(43,1039.359); h_SL3L168->SetBinContent(44,1060.789); h_SL3L168->SetBinContent(45,1192.941); h_SL3L168->SetBinContent(46,1039.359); h_SL3L168->SetBinContent(47,914.3497); h_SL3L168->SetBinContent(48,857.2029); h_SL3L168->SetBinContent(49,835.7728); h_SL3L168->SetBinContent(50,782.1976); h_SL3L168->SetBinContent(51,732.1941); h_SL3L168->SetBinContent(52,742.9092); h_SL3L168->SetBinContent(53,782.1976); h_SL3L168->SetBinContent(54,739.3375); h_SL3L168->SetBinContent(55,585.7553); h_SL3L168->SetBinContent(56,510.75); h_SL3L168->SetBinContent(57,500.035); h_SL3L168->SetBinContent(58,442.8882); h_SL3L168->SetBinContent(59,335.7378); h_SL3L168->SetMaximum(134875.4); 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,210.729); h_SL3L269->SetBinContent(2,207.1574); h_SL3L269->SetBinContent(4,257.1609); h_SL3L269->SetBinContent(5,346.4528); h_SL3L269->SetBinContent(6,375.0262); h_SL3L269->SetBinContent(7,364.3112); h_SL3L269->SetBinContent(8,407.1714); h_SL3L269->SetBinContent(9,432.1731); h_SL3L269->SetBinContent(10,532.1801); h_SL3L269->SetBinContent(11,492.8917); h_SL3L269->SetBinContent(12,539.3235); h_SL3L269->SetBinContent(13,635.7588); h_SL3L269->SetBinContent(14,664.3322); h_SL3L269->SetBinContent(15,675.0472); h_SL3L269->SetBinContent(16,700.049); h_SL3L269->SetBinContent(17,928.6365); h_SL3L269->SetBinContent(18,928.6365); h_SL3L269->SetBinContent(19,1117.935); h_SL3L269->SetBinContent(20,1360.81); h_SL3L269->SetBinContent(21,1839.415); h_SL3L269->SetBinContent(22,2128.72); h_SL3L269->SetBinContent(23,2382.31); h_SL3L269->SetBinContent(24,2789.481); h_SL3L269->SetBinContent(25,3935.99); h_SL3L269->SetBinContent(26,7629.105); h_SL3L269->SetBinContent(27,24355.28); h_SL3L269->SetBinContent(28,40688.56); h_SL3L269->SetBinContent(29,69079.84); h_SL3L269->SetBinContent(30,96238.88); h_SL3L269->SetBinContent(31,93677.98); h_SL3L269->SetBinContent(32,55536.03); h_SL3L269->SetBinContent(33,20290.71); h_SL3L269->SetBinContent(34,6146.859); h_SL3L269->SetBinContent(35,4096.715); h_SL3L269->SetBinContent(36,2985.923); h_SL3L269->SetBinContent(37,2482.317); h_SL3L269->SetBinContent(38,2071.574); h_SL3L269->SetBinContent(39,1903.705); h_SL3L269->SetBinContent(40,1528.678); h_SL3L269->SetBinContent(41,1532.25); h_SL3L269->SetBinContent(42,1217.942); h_SL3L269->SetBinContent(43,1153.652); h_SL3L269->SetBinContent(44,1071.504); h_SL3L269->SetBinContent(45,1046.502); h_SL3L269->SetBinContent(46,1114.364); h_SL3L269->SetBinContent(47,921.4931); h_SL3L269->SetBinContent(48,857.2029); h_SL3L269->SetBinContent(49,885.7763); h_SL3L269->SetBinContent(50,767.9109); h_SL3L269->SetBinContent(51,778.6259); h_SL3L269->SetBinContent(52,700.049); h_SL3L269->SetBinContent(53,857.2029); h_SL3L269->SetBinContent(54,742.9092); h_SL3L269->SetBinContent(55,517.8934); h_SL3L269->SetBinContent(56,614.3287); h_SL3L269->SetBinContent(57,450.0315); h_SL3L269->SetBinContent(58,435.7448); h_SL3L269->SetBinContent(59,364.3112); h_SL3L269->SetMaximum(117283.6); 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,210.729); h_SL3L370->SetBinContent(2,239.3025); h_SL3L370->SetBinContent(3,207.1574); h_SL3L370->SetBinContent(4,307.1644); h_SL3L370->SetBinContent(5,385.7413); h_SL3L370->SetBinContent(6,335.7378); h_SL3L370->SetBinContent(7,367.8829); h_SL3L370->SetBinContent(8,396.4563); h_SL3L370->SetBinContent(9,478.6049); h_SL3L370->SetBinContent(10,439.3165); h_SL3L370->SetBinContent(11,610.757); h_SL3L370->SetBinContent(12,596.4703); h_SL3L370->SetBinContent(13,589.327); h_SL3L370->SetBinContent(14,746.4808); h_SL3L370->SetBinContent(15,725.0508); h_SL3L370->SetBinContent(16,785.7693); h_SL3L370->SetBinContent(17,925.0648); h_SL3L370->SetBinContent(18,971.4966); h_SL3L370->SetBinContent(19,1178.654); h_SL3L370->SetBinContent(20,1617.97); h_SL3L370->SetBinContent(21,1835.843); h_SL3L370->SetBinContent(22,2203.726); h_SL3L370->SetBinContent(23,2410.883); h_SL3L370->SetBinContent(24,3021.64); h_SL3L370->SetBinContent(25,4861.055); h_SL3L370->SetBinContent(26,14797.46); h_SL3L370->SetBinContent(27,31662.93); h_SL3L370->SetBinContent(28,53893.06); h_SL3L370->SetBinContent(29,84134.46); h_SL3L370->SetBinContent(30,100410.6); h_SL3L370->SetBinContent(31,75741.02); h_SL3L370->SetBinContent(32,37106.17); h_SL3L370->SetBinContent(33,8718.468); h_SL3L370->SetBinContent(34,4871.77); h_SL3L370->SetBinContent(35,3421.668); h_SL3L370->SetBinContent(36,2489.46); h_SL3L370->SetBinContent(37,2214.441); h_SL3L370->SetBinContent(38,1975.138); h_SL3L370->SetBinContent(39,1621.542); h_SL3L370->SetBinContent(40,1375.096); h_SL3L370->SetBinContent(41,1435.815); h_SL3L370->SetBinContent(42,1189.369); h_SL3L370->SetBinContent(43,953.6382); h_SL3L370->SetBinContent(44,1010.785); h_SL3L370->SetBinContent(45,32.14511); h_SL3L370->SetBinContent(46,1010.785); h_SL3L370->SetBinContent(47,910.7781); h_SL3L370->SetBinContent(48,760.7676); h_SL3L370->SetBinContent(49,939.3515); h_SL3L370->SetBinContent(50,757.1959); h_SL3L370->SetBinContent(51,603.6137); h_SL3L370->SetBinContent(52,732.1941); h_SL3L370->SetBinContent(53,821.4861); h_SL3L370->SetBinContent(54,685.7623); h_SL3L370->SetBinContent(55,482.1766); h_SL3L370->SetBinContent(56,478.6049); h_SL3L370->SetBinContent(57,446.4598); h_SL3L370->SetBinContent(58,407.1714); h_SL3L370->SetBinContent(59,303.5927); h_SL3L370->SetMaximum(117283.6); 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->SetBinContent(2,228.5874); h_SL3L471->SetBinContent(3,253.5892); h_SL3L471->SetBinContent(4,271.4476); h_SL3L471->SetBinContent(5,339.3095); h_SL3L471->SetBinContent(6,317.8794); h_SL3L471->SetBinContent(7,357.1679); h_SL3L471->SetBinContent(8,450.0315); h_SL3L471->SetBinContent(9,446.4598); h_SL3L471->SetBinContent(10,535.7518); h_SL3L471->SetBinContent(11,482.1766); h_SL3L471->SetBinContent(12,578.6119); h_SL3L471->SetBinContent(13,632.1871); h_SL3L471->SetBinContent(14,600.042); h_SL3L471->SetBinContent(15,689.334); h_SL3L471->SetBinContent(16,746.4808); h_SL3L471->SetBinContent(17,928.6365); h_SL3L471->SetBinContent(18,1053.645); h_SL3L471->SetBinContent(19,1117.935); h_SL3L471->SetBinContent(20,1335.808); h_SL3L471->SetBinContent(21,1703.691); h_SL3L471->SetBinContent(22,2000.14); h_SL3L471->SetBinContent(23,2350.165); h_SL3L471->SetBinContent(24,2728.762); h_SL3L471->SetBinContent(25,3789.551); h_SL3L471->SetBinContent(26,7475.523); h_SL3L471->SetBinContent(27,24455.28); h_SL3L471->SetBinContent(28,40531.41); h_SL3L471->SetBinContent(29,68951.26); h_SL3L471->SetBinContent(30,96524.62); h_SL3L471->SetBinContent(31,94128.02); h_SL3L471->SetBinContent(32,55711.04); h_SL3L471->SetBinContent(33,19994.26); h_SL3L471->SetBinContent(34,5925.415); h_SL3L471->SetBinContent(35,3996.708); h_SL3L471->SetBinContent(36,2807.339); h_SL3L471->SetBinContent(37,2343.021); h_SL3L471->SetBinContent(38,2021.57); h_SL3L471->SetBinContent(39,1903.705); h_SL3L471->SetBinContent(40,1428.672); h_SL3L471->SetBinContent(41,1500.105); h_SL3L471->SetBinContent(42,1289.376); h_SL3L471->SetBinContent(43,1135.794); h_SL3L471->SetBinContent(44,928.6365); h_SL3L471->SetBinContent(45,1053.645); h_SL3L471->SetBinContent(46,1046.502); h_SL3L471->SetBinContent(47,928.6365); h_SL3L471->SetBinContent(48,907.2064); h_SL3L471->SetBinContent(49,828.6295); h_SL3L471->SetBinContent(50,821.4861); h_SL3L471->SetBinContent(51,735.7658); h_SL3L471->SetBinContent(52,678.619); h_SL3L471->SetBinContent(53,689.334); h_SL3L471->SetBinContent(54,632.1871); h_SL3L471->SetBinContent(55,532.1801); h_SL3L471->SetBinContent(56,475.0333); h_SL3L471->SetBinContent(57,425.0298); h_SL3L471->SetBinContent(58,442.8882); h_SL3L471->SetBinContent(59,371.4546); h_SL3L471->SetMaximum(117283.6); 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 7258"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }