void RatesPerCell_Removing_noisy_cells_run_5170_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:31:04 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11466.79,67.5,103201.1); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 5170",60,0,60); h_SL1L160->SetBinContent(1,32.50768); h_SL1L160->SetBinContent(2,24.38076); h_SL1L160->SetBinContent(3,35.21665); h_SL1L160->SetBinContent(4,37.92562); h_SL1L160->SetBinContent(5,32.50768); h_SL1L160->SetBinContent(6,50.116); h_SL1L160->SetBinContent(7,39.28011); h_SL1L160->SetBinContent(8,43.34357); h_SL1L160->SetBinContent(9,39.28011); h_SL1L160->SetBinContent(10,39.28011); h_SL1L160->SetBinContent(11,40.63459); h_SL1L160->SetBinContent(12,48.76151); h_SL1L160->SetBinContent(13,51.47049); h_SL1L160->SetBinContent(14,51.47049); h_SL1L160->SetBinContent(15,36.57114); h_SL1L160->SetBinContent(16,56.88843); h_SL1L160->SetBinContent(17,59.5974); h_SL1L160->SetBinContent(18,74.49676); h_SL1L160->SetBinContent(19,97.52303); h_SL1L160->SetBinContent(20,89.3961); h_SL1L160->SetBinContent(21,108.3589); h_SL1L160->SetBinContent(22,107.0044); h_SL1L160->SetBinContent(23,123.2583); h_SL1L160->SetBinContent(24,142.2211); h_SL1L160->SetBinContent(25,146.2845); h_SL1L160->SetBinContent(26,189.6281); h_SL1L160->SetBinContent(27,204.5275); h_SL1L160->SetBinContent(28,273.6063); h_SL1L160->SetBinContent(29,319.6588); h_SL1L160->SetBinContent(30,288.5056); h_SL1L160->SetBinContent(31,407.7004); h_SL1L160->SetBinContent(32,782.8932); h_SL1L160->SetBinContent(33,3212.842); h_SL1L160->SetBinContent(34,3846.741); h_SL1L160->SetBinContent(35,3684.203); h_SL1L160->SetBinContent(36,3378.089); h_SL1L160->SetBinContent(37,3747.864); h_SL1L160->SetBinContent(38,2736.063); h_SL1L160->SetBinContent(39,1527.861); h_SL1L160->SetBinContent(40,358.9389); h_SL1L160->SetBinContent(41,308.8229); h_SL1L160->SetBinContent(42,255.9979); h_SL1L160->SetBinContent(43,208.5909); h_SL1L160->SetBinContent(44,246.5165); h_SL1L160->SetBinContent(45,172.0198); h_SL1L160->SetBinContent(46,131.3852); h_SL1L160->SetBinContent(47,159.8294); h_SL1L160->SetBinContent(48,135.4486); h_SL1L160->SetBinContent(49,155.7659); h_SL1L160->SetBinContent(50,117.8403); h_SL1L160->SetBinContent(51,130.0307); h_SL1L160->SetBinContent(52,92.10508); h_SL1L160->SetBinContent(53,119.1948); h_SL1L160->SetBinContent(54,111.0679); h_SL1L160->SetBinContent(55,77.20573); h_SL1L160->SetBinContent(56,82.62367); h_SL1L160->SetBinContent(57,108.3589); h_SL1L160->SetBinContent(58,74.49676); h_SL1L160->SetBinContent(59,102.941); h_SL1L160->SetMaximum(91734.35); 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(1,440.2081); h_SL1L261->SetBinContent(2,414.4729); h_SL1L261->SetBinContent(3,421.2453); h_SL1L261->SetBinContent(4,421.2453); h_SL1L261->SetBinContent(5,451.044); h_SL1L261->SetBinContent(6,464.5889); h_SL1L261->SetBinContent(7,522.8318); h_SL1L261->SetBinContent(8,471.3613); h_SL1L261->SetBinContent(9,537.7311); h_SL1L261->SetBinContent(10,559.4029); h_SL1L261->SetBinContent(11,674.5342); h_SL1L261->SetBinContent(12,700.2695); h_SL1L261->SetBinContent(13,734.1317); h_SL1L261->SetBinContent(14,766.6393); h_SL1L261->SetBinContent(15,822.1733); h_SL1L261->SetBinContent(16,834.3636); h_SL1L261->SetBinContent(17,899.379); h_SL1L261->SetBinContent(18,1029.41); h_SL1L261->SetBinContent(19,1289.471); h_SL1L261->SetBinContent(20,1328.751); h_SL1L261->SetBinContent(21,1488.581); h_SL1L261->SetBinContent(22,1767.605); h_SL1L261->SetBinContent(23,1894.927); h_SL1L261->SetBinContent(24,2211.876); h_SL1L261->SetBinContent(25,2511.218); h_SL1L261->SetBinContent(26,2341.907); h_SL1L261->SetBinContent(27,2797.015); h_SL1L261->SetBinContent(28,3383.507); h_SL1L261->SetBinContent(29,4049.915); h_SL1L261->SetBinContent(30,4328.939); h_SL1L261->SetBinContent(31,5244.572); h_SL1L261->SetBinContent(32,9335.121); h_SL1L261->SetBinContent(33,36365.25); h_SL1L261->SetBinContent(34,68696.84); h_SL1L261->SetBinContent(35,63922.28); h_SL1L261->SetBinContent(36,63797.67); h_SL1L261->SetBinContent(37,60553.67); h_SL1L261->SetBinContent(38,51306.59); h_SL1L261->SetBinContent(39,37880.92); h_SL1L261->SetBinContent(40,12027.84); h_SL1L261->SetBinContent(41,5805.329); h_SL1L261->SetBinContent(42,3946.974); h_SL1L261->SetBinContent(43,3541.982); h_SL1L261->SetBinContent(44,3135.636); h_SL1L261->SetBinContent(45,2987.997); h_SL1L261->SetBinContent(46,2717.1); h_SL1L261->SetBinContent(47,2467.874); h_SL1L261->SetBinContent(48,2309.399); h_SL1L261->SetBinContent(49,2272.828); h_SL1L261->SetBinContent(50,2061.528); h_SL1L261->SetBinContent(51,2008.703); h_SL1L261->SetBinContent(52,1874.609); h_SL1L261->SetBinContent(53,1833.975); h_SL1L261->SetBinContent(54,1642.992); h_SL1L261->SetBinContent(55,1603.712); h_SL1L261->SetBinContent(56,1544.115); h_SL1L261->SetBinContent(57,1535.988); h_SL1L261->SetBinContent(58,1438.465); h_SL1L261->SetBinContent(59,1423.565); h_SL1L261->SetMaximum(79769.3); 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(1,373.8383); h_SL1L362->SetBinContent(2,360.2934); h_SL1L362->SetBinContent(3,403.637); h_SL1L362->SetBinContent(4,429.3722); h_SL1L362->SetBinContent(5,422.5998); h_SL1L362->SetBinContent(6,406.3459); h_SL1L362->SetBinContent(7,410.4094); h_SL1L362->SetBinContent(8,460.5254); h_SL1L362->SetBinContent(9,493.0331); h_SL1L362->SetBinContent(10,594.6196); h_SL1L362->SetBinContent(11,567.5298); h_SL1L362->SetBinContent(12,681.3067); h_SL1L362->SetBinContent(13,707.0419); h_SL1L362->SetBinContent(14,761.2214); h_SL1L362->SetBinContent(15,743.6131); h_SL1L362->SetBinContent(16,765.2849); h_SL1L362->SetBinContent(17,912.9239); h_SL1L362->SetBinContent(18,1091.716); h_SL1L362->SetBinContent(19,1228.519); h_SL1L362->SetBinContent(20,1346.359); h_SL1L362->SetBinContent(21,1554.95); h_SL1L362->SetBinContent(22,1732.388); h_SL1L362->SetBinContent(23,2076.428); h_SL1L362->SetBinContent(24,2241.675); h_SL1L362->SetBinContent(25,2382.542); h_SL1L362->SetBinContent(26,2508.509); h_SL1L362->SetBinContent(27,2950.072); h_SL1L362->SetBinContent(28,3818.297); h_SL1L362->SetBinContent(29,4083.777); h_SL1L362->SetBinContent(30,4530.757); h_SL1L362->SetBinContent(31,6952.579); h_SL1L362->SetBinContent(32,13028.81); h_SL1L362->SetBinContent(33,63299.21); h_SL1L362->SetBinContent(34,66314.3); h_SL1L362->SetBinContent(35,63781.41); h_SL1L362->SetBinContent(36,63093.34); h_SL1L362->SetBinContent(37,56716.41); h_SL1L362->SetBinContent(38,45138.26); h_SL1L362->SetBinContent(39,25794.84); h_SL1L362->SetBinContent(40,6760.242); h_SL1L362->SetBinContent(41,4296.431); h_SL1L362->SetBinContent(42,3726.192); h_SL1L362->SetBinContent(43,3130.218); h_SL1L362->SetBinContent(44,3085.52); h_SL1L362->SetBinContent(45,2725.227); h_SL1L362->SetBinContent(46,2513.927); h_SL1L362->SetBinContent(47,2350.034); h_SL1L362->SetBinContent(48,2121.126); h_SL1L362->SetBinContent(49,2129.253); h_SL1L362->SetBinContent(50,1974.841); h_SL1L362->SetBinContent(51,1934.207); h_SL1L362->SetBinContent(52,1726.97); h_SL1L362->SetBinContent(53,1633.511); h_SL1L362->SetBinContent(54,1580.686); h_SL1L362->SetBinContent(55,1535.988); h_SL1L362->SetBinContent(56,1470.972); h_SL1L362->SetBinContent(57,1503.48); h_SL1L362->SetBinContent(58,1350.423); h_SL1L362->SetBinContent(59,1382.931); h_SL1L362->SetMaximum(79769.3); 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,419.8908); h_SL1L463->SetBinContent(3,369.7748); h_SL1L463->SetBinContent(4,398.219); h_SL1L463->SetBinContent(5,403.637); h_SL1L463->SetBinContent(6,379.2562); h_SL1L463->SetBinContent(7,417.1818); h_SL1L463->SetBinContent(8,381.9652); h_SL1L463->SetBinContent(9,451.044); h_SL1L463->SetBinContent(10,437.4991); h_SL1L463->SetBinContent(11,539.0856); h_SL1L463->SetBinContent(12,602.7465); h_SL1L463->SetBinContent(13,644.7355); h_SL1L463->SetBinContent(14,669.1163); h_SL1L463->SetBinContent(15,724.6503); h_SL1L463->SetBinContent(16,753.0945); h_SL1L463->SetBinContent(17,808.6284); h_SL1L463->SetBinContent(18,956.2675); h_SL1L463->SetBinContent(19,1136.414); h_SL1L463->SetBinContent(20,1228.519); h_SL1L463->SetBinContent(21,1381.576); h_SL1L463->SetBinContent(22,1548.178); h_SL1L463->SetBinContent(23,1703.944); h_SL1L463->SetBinContent(24,2007.349); h_SL1L463->SetBinContent(25,2270.119); h_SL1L463->SetBinContent(26,2243.03); h_SL1L463->SetBinContent(27,2642.603); h_SL1L463->SetBinContent(28,3313.074); h_SL1L463->SetBinContent(29,3906.339); h_SL1L463->SetBinContent(30,4236.833); h_SL1L463->SetBinContent(31,5111.832); h_SL1L463->SetBinContent(32,9286.359); h_SL1L463->SetBinContent(33,36148.54); h_SL1L463->SetBinContent(34,69364.61); h_SL1L463->SetBinContent(35,64419.38); h_SL1L463->SetBinContent(36,63938.54); h_SL1L463->SetBinContent(37,60909.9); h_SL1L463->SetBinContent(38,51291.7); h_SL1L463->SetBinContent(39,38188.39); h_SL1L463->SetBinContent(40,12022.42); h_SL1L463->SetBinContent(41,5652.272); h_SL1L463->SetBinContent(42,3792.562); h_SL1L463->SetBinContent(43,3357.772); h_SL1L463->SetBinContent(44,3082.811); h_SL1L463->SetBinContent(45,2867.448); h_SL1L463->SetBinContent(46,2631.767); h_SL1L463->SetBinContent(47,2295.854); h_SL1L463->SetBinContent(48,2176.66); h_SL1L463->SetBinContent(49,2077.782); h_SL1L463->SetBinContent(50,1978.905); h_SL1L463->SetBinContent(51,1871.9); h_SL1L463->SetBinContent(52,1767.605); h_SL1L463->SetBinContent(53,1694.463); h_SL1L463->SetBinContent(54,1515.67); h_SL1L463->SetBinContent(56,1381.576); h_SL1L463->SetBinContent(57,1447.946); h_SL1L463->SetBinContent(58,1361.259); h_SL1L463->SetBinContent(59,1300.307); h_SL1L463->SetMaximum(79769.3); 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 5170"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }