void RatesPerCell_Removing_noisy_cells_run_7298_SL2() { //=========Macro generated from canvas: c/c //========= (Sat Dec 22 21:54:27 2018) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-7402.407,67.5,66621.66); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 7298",60,0,60); h_SL2L164->SetBinContent(1,4062.289); h_SL2L164->SetBinContent(2,4480.042); h_SL2L164->SetBinContent(3,6093.433); h_SL2L164->SetBinContent(4,7281.868); h_SL2L164->SetBinContent(5,7678.013); h_SL2L164->SetBinContent(6,7922.903); h_SL2L164->SetBinContent(7,8081.361); h_SL2L164->SetBinContent(8,7886.89); h_SL2L164->SetBinContent(9,7728.432); h_SL2L164->SetBinContent(10,8405.479); h_SL2L164->SetBinContent(11,8700.788); h_SL2L164->SetBinContent(12,8707.99); h_SL2L164->SetBinContent(13,8290.237); h_SL2L164->SetBinContent(14,7757.242); h_SL2L164->SetBinContent(15,8146.185); h_SL2L164->SetBinContent(16,8945.678); h_SL2L164->SetBinContent(17,8232.616); h_SL2L164->SetBinContent(18,8218.211); h_SL2L164->SetBinContent(19,8448.695); h_SL2L164->SetBinContent(20,8340.656); h_SL2L164->SetBinContent(21,8700.788); h_SL2L164->SetBinContent(22,8023.74); h_SL2L164->SetBinContent(23,8203.806); h_SL2L164->SetBinContent(24,8182.198); h_SL2L164->SetBinContent(25,8470.304); h_SL2L164->SetBinContent(26,8952.881); h_SL2L164->SetBinContent(27,9212.176); h_SL2L164->SetBinContent(28,8744.004); h_SL2L164->SetBinContent(29,8434.29); h_SL2L164->SetBinContent(30,8196.604); h_SL2L164->SetBinContent(31,8592.748); h_SL2L164->SetBinContent(32,8167.793); h_SL2L164->SetBinContent(33,8657.572); h_SL2L164->SetBinContent(34,8427.088); h_SL2L164->SetBinContent(36,8549.532); h_SL2L164->SetBinContent(37,15809.79); h_SL2L164->SetBinContent(38,10955.21); h_SL2L164->SetBinContent(39,12093.23); h_SL2L164->SetBinContent(40,44778.81); h_SL2L164->SetBinContent(41,14095.56); h_SL2L164->SetBinContent(42,15197.57); h_SL2L164->SetBinContent(43,15708.96); h_SL2L164->SetBinContent(44,14664.57); h_SL2L164->SetBinContent(45,8441.493); h_SL2L164->SetBinContent(46,8780.017); h_SL2L164->SetBinContent(47,8499.114); h_SL2L164->SetBinContent(48,7951.713); h_SL2L164->SetBinContent(49,8398.277); h_SL2L164->SetBinContent(50,7584.379); h_SL2L164->SetBinContent(51,8254.225); h_SL2L164->SetBinContent(52,8023.74); h_SL2L164->SetBinContent(53,7735.634); h_SL2L164->SetBinContent(54,7512.353); h_SL2L164->SetBinContent(55,5365.966); h_SL2L164->SetBinContent(56,4011.87); h_SL2L164->SetBinContent(57,1671.012); h_SL2L164->SetMaximum(59219.25); 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,2117.576); h_SL2L265->SetBinContent(2,4379.205); h_SL2L265->SetBinContent(3,5430.79); h_SL2L265->SetBinContent(4,7166.626); h_SL2L265->SetBinContent(5,7591.582); h_SL2L265->SetBinContent(6,7757.242); h_SL2L265->SetBinContent(7,8319.048); h_SL2L265->SetBinContent(8,7994.929); h_SL2L265->SetBinContent(9,8095.766); h_SL2L265->SetBinContent(10,7850.876); h_SL2L265->SetBinContent(11,8499.114); h_SL2L265->SetBinContent(12,8563.938); h_SL2L265->SetBinContent(13,8499.114); h_SL2L265->SetBinContent(14,8239.819); h_SL2L265->SetBinContent(15,8218.211); h_SL2L265->SetBinContent(16,8499.114); h_SL2L265->SetBinContent(17,8391.074); h_SL2L265->SetBinContent(18,8297.44); h_SL2L265->SetBinContent(19,8232.616); h_SL2L265->SetBinContent(20,8376.669); h_SL2L265->SetBinContent(21,8203.806); h_SL2L265->SetBinContent(22,8297.44); h_SL2L265->SetBinContent(23,8189.401); h_SL2L265->SetBinContent(24,7944.511); h_SL2L265->SetBinContent(25,8427.088); h_SL2L265->SetBinContent(26,8607.153); h_SL2L265->SetBinContent(27,8751.206); h_SL2L265->SetBinContent(28,8736.801); h_SL2L265->SetBinContent(29,8715.193); h_SL2L265->SetBinContent(30,8412.683); h_SL2L265->SetBinContent(31,8189.401); h_SL2L265->SetBinContent(32,8412.683); h_SL2L265->SetBinContent(33,8304.643); h_SL2L265->SetBinContent(34,8664.774); h_SL2L265->SetBinContent(35,7519.555); h_SL2L265->SetBinContent(36,7289.071); h_SL2L265->SetBinContent(37,8780.017); h_SL2L265->SetBinContent(38,8527.925); h_SL2L265->SetBinContent(39,9370.634); h_SL2L265->SetBinContent(40,9795.589); h_SL2L265->SetBinContent(41,7721.229); h_SL2L265->SetBinContent(42,8751.206); h_SL2L265->SetBinContent(43,8066.956); h_SL2L265->SetBinContent(44,8563.938); h_SL2L265->SetBinContent(45,8196.604); h_SL2L265->SetBinContent(46,8664.774); h_SL2L265->SetBinContent(47,8729.599); h_SL2L265->SetBinContent(48,8059.753); h_SL2L265->SetBinContent(49,8117.375); h_SL2L265->SetBinContent(50,8283.035); h_SL2L265->SetBinContent(51,7555.568); h_SL2L265->SetBinContent(52,8391.074); h_SL2L265->SetBinContent(53,8182.198); h_SL2L265->SetBinContent(54,7915.7); h_SL2L265->SetBinContent(55,6835.305); h_SL2L265->SetBinContent(56,4638.5); h_SL2L265->SetBinContent(57,3543.698); h_SL2L265->SetMaximum(51495.63); 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,2737.003); h_SL2L366->SetBinContent(2,4998.631); h_SL2L366->SetBinContent(3,6612.022); h_SL2L366->SetBinContent(4,7735.634); h_SL2L366->SetBinContent(5,7836.471); h_SL2L366->SetBinContent(6,8196.604); h_SL2L366->SetBinContent(7,7951.713); h_SL2L366->SetBinContent(8,7692.418); h_SL2L366->SetBinContent(9,8304.643); h_SL2L366->SetBinContent(10,8016.537); h_SL2L366->SetBinContent(11,7980.524); h_SL2L366->SetBinContent(12,8412.683); h_SL2L366->SetBinContent(13,8102.969); h_SL2L366->SetBinContent(14,8455.898); h_SL2L366->SetBinContent(15,7879.687); h_SL2L366->SetBinContent(16,8153.388); h_SL2L366->SetBinContent(17,8578.343); h_SL2L366->SetBinContent(18,8311.846); h_SL2L366->SetBinContent(19,8239.819); h_SL2L366->SetBinContent(20,8009.334); h_SL2L366->SetBinContent(21,8427.088); h_SL2L366->SetBinContent(22,8383.872); h_SL2L366->SetBinContent(23,8355.062); h_SL2L366->SetBinContent(24,8218.211); h_SL2L366->SetBinContent(25,8715.193); h_SL2L366->SetBinContent(26,8988.894); h_SL2L366->SetBinContent(27,8527.925); h_SL2L366->SetBinContent(28,8787.22); h_SL2L366->SetBinContent(29,8535.127); h_SL2L366->SetBinContent(30,8131.78); h_SL2L366->SetBinContent(31,8203.806); h_SL2L366->SetBinContent(32,8398.277); h_SL2L366->SetBinContent(33,8513.52); h_SL2L366->SetBinContent(34,8174.996); h_SL2L366->SetBinContent(35,7447.529); h_SL2L366->SetBinContent(36,8247.021); h_SL2L366->SetBinContent(37,8340.656); h_SL2L366->SetBinContent(38,8679.18); h_SL2L366->SetBinContent(39,7980.524); h_SL2L366->SetBinContent(40,9003.299); h_SL2L366->SetBinContent(41,8095.766); h_SL2L366->SetBinContent(42,8333.453); h_SL2L366->SetBinContent(43,8081.361); h_SL2L366->SetBinContent(44,7894.092); h_SL2L366->SetBinContent(45,8369.467); h_SL2L366->SetBinContent(46,8772.814); h_SL2L366->SetBinContent(47,8391.074); h_SL2L366->SetBinContent(48,8376.669); h_SL2L366->SetBinContent(49,8117.375); h_SL2L366->SetBinContent(50,7994.929); h_SL2L366->SetBinContent(51,7735.634); h_SL2L366->SetBinContent(52,8268.63); h_SL2L366->SetBinContent(53,8211.009); h_SL2L366->SetBinContent(54,7670.811); h_SL2L366->SetBinContent(55,6475.172); h_SL2L366->SetBinContent(56,3846.209); h_SL2L366->SetBinContent(57,2816.232); h_SL2L366->SetMaximum(51495.63); 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,3795.791); h_SL2L467->SetBinContent(3,6129.446); h_SL2L467->SetBinContent(4,7368.3); h_SL2L467->SetBinContent(5,7879.687); h_SL2L467->SetBinContent(6,8333.453); h_SL2L467->SetBinContent(7,8275.832); h_SL2L467->SetBinContent(8,7872.484); h_SL2L467->SetBinContent(9,8196.604); h_SL2L467->SetBinContent(10,8347.858); h_SL2L467->SetBinContent(11,7944.511); h_SL2L467->SetBinContent(12,8196.604); h_SL2L467->SetBinContent(13,8146.185); h_SL2L467->SetBinContent(14,8405.479); h_SL2L467->SetBinContent(15,8261.427); h_SL2L467->SetBinContent(16,8463.101); h_SL2L467->SetBinContent(17,8160.59); h_SL2L467->SetBinContent(18,8830.436); h_SL2L467->SetBinContent(19,8700.788); h_SL2L467->SetBinContent(20,8038.145); h_SL2L467->SetBinContent(21,8419.885); h_SL2L467->SetBinContent(22,8045.348); h_SL2L467->SetBinContent(23,8066.956); h_SL2L467->SetBinContent(24,8535.127); h_SL2L467->SetBinContent(25,8333.453); h_SL2L467->SetBinContent(26,9046.515); h_SL2L467->SetBinContent(27,9154.555); h_SL2L467->SetBinContent(28,8657.572); h_SL2L467->SetBinContent(29,8607.153); h_SL2L467->SetBinContent(30,8419.885); h_SL2L467->SetBinContent(31,7922.903); h_SL2L467->SetBinContent(32,8268.63); h_SL2L467->SetBinContent(33,8304.643); h_SL2L467->SetBinContent(34,8405.479); h_SL2L467->SetBinContent(35,8016.537); h_SL2L467->SetBinContent(36,8247.021); h_SL2L467->SetBinContent(37,7814.863); h_SL2L467->SetBinContent(38,8398.277); h_SL2L467->SetBinContent(39,8506.316); h_SL2L467->SetBinContent(40,7750.04); h_SL2L467->SetBinContent(41,8038.145); h_SL2L467->SetBinContent(42,8174.996); h_SL2L467->SetBinContent(43,8556.735); h_SL2L467->SetBinContent(44,7670.811); h_SL2L467->SetBinContent(45,8455.898); h_SL2L467->SetBinContent(46,8412.683); h_SL2L467->SetBinContent(47,8513.52); h_SL2L467->SetBinContent(48,8405.479); h_SL2L467->SetBinContent(49,8059.753); h_SL2L467->SetBinContent(50,7865.282); h_SL2L467->SetBinContent(51,8095.766); h_SL2L467->SetBinContent(52,7872.484); h_SL2L467->SetBinContent(53,8499.114); h_SL2L467->SetBinContent(54,8045.348); h_SL2L467->SetBinContent(55,7519.555); h_SL2L467->SetBinContent(56,5301.143); h_SL2L467->SetBinContent(57,2448.897); h_SL2L467->SetMaximum(51495.63); 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 7298"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }