void hRates() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:13:55 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,1500,800); gStyle->SetOptStat(0); c->Range(0,0,1,1); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); // ------------>Primitives in pad: c_1 TPad *c_1 = new TPad("c_1", "c_1",0.01,0.51,0.3233333,0.99); c_1->Draw(); c_1->cd(); c_1->Range(-7.500001,-8632.61,67.5,77693.48); c_1->SetFillColor(0); c_1->SetBorderMode(0); c_1->SetBorderSize(2); c_1->SetFrameBorderMode(0); c_1->SetFrameBorderMode(0); TH1D *h_SL1L172 = new TH1D("h_SL1L172","Occupancy removing noisy cells",60,0,60); h_SL1L172->SetBinContent(1,44254.17); h_SL1L172->SetBinContent(2,47180.95); h_SL1L172->SetBinContent(3,48104.34); h_SL1L172->SetBinContent(4,45595.2); h_SL1L172->SetBinContent(5,39376.19); h_SL1L172->SetBinContent(6,40609.55); h_SL1L172->SetBinContent(7,40482.3); h_SL1L172->SetBinContent(8,42991.44); h_SL1L172->SetBinContent(9,40952.15); h_SL1L172->SetBinContent(10,43301.41); h_SL1L172->SetBinContent(11,43676.64); h_SL1L172->SetBinContent(12,41457.9); h_SL1L172->SetBinContent(13,39832.99); h_SL1L172->SetBinContent(14,38247.24); h_SL1L172->SetBinContent(15,35911.04); h_SL1L172->SetBinContent(16,33679.24); h_SL1L172->SetBinContent(17,33398.63); h_SL1L172->SetBinContent(18,35937.14); h_SL1L172->SetBinContent(19,36351.52); h_SL1L172->SetBinContent(20,34755.98); h_SL1L172->SetBinContent(21,38116.73); h_SL1L172->SetBinContent(22,37079.14); h_SL1L172->SetBinContent(23,34873.45); h_SL1L172->SetBinContent(24,30837.29); h_SL1L172->SetBinContent(25,28935.04); h_SL1L172->SetBinContent(26,30791.61); h_SL1L172->SetBinContent(27,29829.06); h_SL1L172->SetBinContent(28,30452.27); h_SL1L172->SetBinContent(29,29150.39); h_SL1L172->SetBinContent(30,29235.22); h_SL1L172->SetBinContent(31,29476.68); h_SL1L172->SetBinContent(32,26944.7); h_SL1L172->SetBinContent(33,29032.93); h_SL1L172->SetBinContent(34,30318.49); h_SL1L172->SetBinContent(35,31718.26); h_SL1L172->SetBinContent(36,30028.1); h_SL1L172->SetBinContent(37,29891.06); h_SL1L172->SetBinContent(38,29864.96); h_SL1L172->SetBinContent(39,29603.93); h_SL1L172->SetBinContent(40,28021.44); h_SL1L172->SetBinContent(41,29463.62); h_SL1L172->SetBinContent(42,31248.41); h_SL1L172->SetBinContent(43,31065.69); h_SL1L172->SetBinContent(44,30830.76); h_SL1L172->SetBinContent(45,29584.35); h_SL1L172->SetBinContent(46,28243.31); h_SL1L172->SetBinContent(47,27169.83); h_SL1L172->SetBinContent(48,27558.11); h_SL1L172->SetBinContent(49,31365.87); h_SL1L172->SetBinContent(50,32664.49); h_SL1L172->SetBinContent(51,34312.23); h_SL1L172->SetBinContent(52,32945.09); h_SL1L172->SetBinContent(53,31979.29); h_SL1L172->SetBinContent(54,33317.06); h_SL1L172->SetBinContent(55,34416.64); h_SL1L172->SetBinContent(56,37216.18); h_SL1L172->SetBinContent(57,48123.92); h_SL1L172->SetBinContent(58,55276.11); h_SL1L172->SetBinContent(59,60052.93); h_SL1L172->SetMaximum(69060.87); h_SL1L172->SetEntries(60); h_SL1L172->SetDirectory(0); h_SL1L172->SetStats(0); h_SL1L172->SetLineWidth(2); h_SL1L172->GetXaxis()->SetTitle("Cell"); h_SL1L172->GetXaxis()->SetLabelFont(42); h_SL1L172->GetXaxis()->SetLabelSize(0.035); h_SL1L172->GetXaxis()->SetTitleSize(0.035); h_SL1L172->GetXaxis()->SetTitleFont(42); h_SL1L172->GetYaxis()->SetTitle("Hz per wire"); h_SL1L172->GetYaxis()->SetLabelFont(42); h_SL1L172->GetYaxis()->SetLabelSize(0.035); h_SL1L172->GetYaxis()->SetTitleSize(0.035); h_SL1L172->GetYaxis()->SetTitleOffset(1.45); h_SL1L172->GetYaxis()->SetTitleFont(42); h_SL1L172->GetZaxis()->SetLabelFont(42); h_SL1L172->GetZaxis()->SetLabelSize(0.035); h_SL1L172->GetZaxis()->SetTitleSize(0.035); h_SL1L172->GetZaxis()->SetTitleFont(42); h_SL1L172->Draw("hist, "); TH1D *h_SL1L273 = new TH1D("h_SL1L273","Occupancy removing noisy cells",60,0,60); h_SL1L273->SetBinContent(49,6.52572); h_SL1L273->SetMaximum(69060.87); h_SL1L273->SetEntries(60); h_SL1L273->SetDirectory(0); h_SL1L273->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#cc0000"); h_SL1L273->SetLineColor(ci); h_SL1L273->SetLineWidth(2); h_SL1L273->GetXaxis()->SetTitle("Cell"); h_SL1L273->GetXaxis()->SetLabelFont(42); h_SL1L273->GetXaxis()->SetLabelSize(0.035); h_SL1L273->GetXaxis()->SetTitleSize(0.035); h_SL1L273->GetXaxis()->SetTitleFont(42); h_SL1L273->GetYaxis()->SetTitle("Hz per wire"); h_SL1L273->GetYaxis()->SetLabelFont(42); h_SL1L273->GetYaxis()->SetLabelSize(0.035); h_SL1L273->GetYaxis()->SetTitleSize(0.035); h_SL1L273->GetYaxis()->SetTitleOffset(1.45); h_SL1L273->GetYaxis()->SetTitleFont(42); h_SL1L273->GetZaxis()->SetLabelFont(42); h_SL1L273->GetZaxis()->SetLabelSize(0.035); h_SL1L273->GetZaxis()->SetTitleSize(0.035); h_SL1L273->GetZaxis()->SetTitleFont(42); h_SL1L273->Draw("hist, same"); TH1D *h_SL1L374 = new TH1D("h_SL1L374","Occupancy removing noisy cells",60,0,60); h_SL1L374->SetBinContent(15,3.26286); h_SL1L374->SetBinContent(59,3.26286); h_SL1L374->SetMaximum(69060.87); h_SL1L374->SetEntries(60); h_SL1L374->SetDirectory(0); h_SL1L374->SetStats(0); ci = TColor::GetColor("#009900"); h_SL1L374->SetLineColor(ci); h_SL1L374->SetLineWidth(2); h_SL1L374->GetXaxis()->SetTitle("Cell"); h_SL1L374->GetXaxis()->SetLabelFont(42); h_SL1L374->GetXaxis()->SetLabelSize(0.035); h_SL1L374->GetXaxis()->SetTitleSize(0.035); h_SL1L374->GetXaxis()->SetTitleFont(42); h_SL1L374->GetYaxis()->SetTitle("Hz per wire"); h_SL1L374->GetYaxis()->SetLabelFont(42); h_SL1L374->GetYaxis()->SetLabelSize(0.035); h_SL1L374->GetYaxis()->SetTitleSize(0.035); h_SL1L374->GetYaxis()->SetTitleOffset(1.45); h_SL1L374->GetYaxis()->SetTitleFont(42); h_SL1L374->GetZaxis()->SetLabelFont(42); h_SL1L374->GetZaxis()->SetLabelSize(0.035); h_SL1L374->GetZaxis()->SetTitleSize(0.035); h_SL1L374->GetZaxis()->SetTitleFont(42); h_SL1L374->Draw("hist, same"); TH1D *h_SL1L475 = new TH1D("h_SL1L475","Occupancy removing noisy cells",60,0,60); h_SL1L475->SetBinContent(2,41063.09); h_SL1L475->SetBinContent(3,39555.65); h_SL1L475->SetBinContent(4,36420.04); h_SL1L475->SetBinContent(5,33806.49); h_SL1L475->SetBinContent(6,32909.2); h_SL1L475->SetBinContent(7,32925.52); h_SL1L475->SetBinContent(8,36188.38); h_SL1L475->SetBinContent(9,37956.85); h_SL1L475->SetBinContent(10,43650.54); h_SL1L475->SetBinContent(11,50972.39); h_SL1L475->SetBinContent(12,54372.3); h_SL1L475->SetBinContent(13,54349.46); h_SL1L475->SetBinContent(14,56303.91); h_SL1L475->SetBinContent(15,51605.39); h_SL1L475->SetBinContent(16,45458.16); h_SL1L475->SetBinContent(17,42443.28); h_SL1L475->SetBinContent(18,44166.07); h_SL1L475->SetBinContent(19,43382.98); h_SL1L475->SetBinContent(20,42185.52); h_SL1L475->SetBinContent(21,41754.82); h_SL1L475->SetBinContent(22,42097.42); h_SL1L475->SetBinContent(23,42361.71); h_SL1L475->SetBinContent(24,40198.43); h_SL1L475->SetBinContent(25,36044.81); h_SL1L475->SetBinContent(26,36162.28); h_SL1L475->SetBinContent(27,35108.37); h_SL1L475->SetBinContent(28,36863.79); h_SL1L475->SetBinContent(29,35095.32); h_SL1L475->SetBinContent(30,35676.11); h_SL1L475->SetBinContent(31,35291.09); h_SL1L475->SetBinContent(32,33878.27); h_SL1L475->SetBinContent(33,31734.57); h_SL1L475->SetBinContent(34,35496.65); h_SL1L475->SetBinContent(35,36354.79); h_SL1L475->SetBinContent(36,32429.56); h_SL1L475->SetBinContent(37,29466.89); h_SL1L475->SetBinContent(38,29460.36); h_SL1L475->SetBinContent(39,31649.74); h_SL1L475->SetBinContent(40,28220.47); h_SL1L475->SetBinContent(41,27483.07); h_SL1L475->SetBinContent(42,29897.58); h_SL1L475->SetBinContent(43,32393.67); h_SL1L475->SetBinContent(44,31917.29); h_SL1L475->SetBinContent(45,27861.56); h_SL1L475->SetBinContent(46,29284.17); h_SL1L475->SetBinContent(47,27342.77); h_SL1L475->SetBinContent(48,27026.27); h_SL1L475->SetBinContent(49,26256.23); h_SL1L475->SetBinContent(50,28151.96); h_SL1L475->SetBinContent(51,26889.23); h_SL1L475->SetBinContent(52,28050.81); h_SL1L475->SetBinContent(53,26285.6); h_SL1L475->SetBinContent(54,27740.83); h_SL1L475->SetBinContent(56,30941.7); h_SL1L475->SetBinContent(57,35871.88); h_SL1L475->SetBinContent(58,48982.05); h_SL1L475->SetBinContent(59,52845.28); h_SL1L475->SetMaximum(69060.87); h_SL1L475->SetEntries(60); h_SL1L475->SetDirectory(0); h_SL1L475->SetStats(0); ci = TColor::GetColor("#0000cc"); h_SL1L475->SetLineColor(ci); h_SL1L475->SetLineWidth(2); h_SL1L475->GetXaxis()->SetTitle("Cell"); h_SL1L475->GetXaxis()->SetLabelFont(42); h_SL1L475->GetXaxis()->SetLabelSize(0.035); h_SL1L475->GetXaxis()->SetTitleSize(0.035); h_SL1L475->GetXaxis()->SetTitleFont(42); h_SL1L475->GetYaxis()->SetTitle("Hz per wire"); h_SL1L475->GetYaxis()->SetLabelFont(42); h_SL1L475->GetYaxis()->SetLabelSize(0.035); h_SL1L475->GetYaxis()->SetTitleSize(0.035); h_SL1L475->GetYaxis()->SetTitleOffset(1.45); h_SL1L475->GetYaxis()->SetTitleFont(42); h_SL1L475->GetZaxis()->SetLabelFont(42); h_SL1L475->GetZaxis()->SetLabelSize(0.035); h_SL1L475->GetZaxis()->SetTitleSize(0.035); h_SL1L475->GetZaxis()->SetTitleFont(42); h_SL1L475->Draw("hist, same"); TPaveText *pt = new TPaveText(0.1753311,0.9302332,0.8246689,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); TText *AText = pt->AddText("Occupancy removing noisy cells"); pt->Draw(); c_1->Modified(); c->cd(); // ------------>Primitives in pad: c_2 TPad *c_2 = new TPad("c_2", "c_2",0.3433333,0.51,0.6566667,0.99); c_2->Draw(); c_2->cd(); c_2->Range(-7.500001,-0.125,67.5,1.125); c_2->SetFillColor(0); c_2->SetBorderMode(0); c_2->SetBorderSize(2); c_2->SetFrameBorderMode(0); c_2->SetFrameBorderMode(0); TH1D *h_SL2L176 = new TH1D("h_SL2L176","Occupancy removing noisy cells",60,0,60); h_SL2L176->SetMaximum(0); h_SL2L176->SetEntries(60); h_SL2L176->SetDirectory(0); h_SL2L176->SetStats(0); h_SL2L176->SetLineWidth(2); h_SL2L176->GetXaxis()->SetTitle("Cell"); h_SL2L176->GetXaxis()->SetLabelFont(42); h_SL2L176->GetXaxis()->SetLabelSize(0.035); h_SL2L176->GetXaxis()->SetTitleSize(0.035); h_SL2L176->GetXaxis()->SetTitleFont(42); h_SL2L176->GetYaxis()->SetTitle("Hz per wire"); h_SL2L176->GetYaxis()->SetLabelFont(42); h_SL2L176->GetYaxis()->SetLabelSize(0.035); h_SL2L176->GetYaxis()->SetTitleSize(0.035); h_SL2L176->GetYaxis()->SetTitleOffset(1.45); h_SL2L176->GetYaxis()->SetTitleFont(42); h_SL2L176->GetZaxis()->SetLabelFont(42); h_SL2L176->GetZaxis()->SetLabelSize(0.035); h_SL2L176->GetZaxis()->SetTitleSize(0.035); h_SL2L176->GetZaxis()->SetTitleFont(42); h_SL2L176->Draw("hist, "); TH1D *h_SL2L277 = new TH1D("h_SL2L277","Occupancy removing noisy cells",60,0,60); h_SL2L277->SetMaximum(0); h_SL2L277->SetEntries(60); h_SL2L277->SetDirectory(0); h_SL2L277->SetStats(0); ci = TColor::GetColor("#cc0000"); h_SL2L277->SetLineColor(ci); h_SL2L277->SetLineWidth(2); h_SL2L277->GetXaxis()->SetTitle("Cell"); h_SL2L277->GetXaxis()->SetLabelFont(42); h_SL2L277->GetXaxis()->SetLabelSize(0.035); h_SL2L277->GetXaxis()->SetTitleSize(0.035); h_SL2L277->GetXaxis()->SetTitleFont(42); h_SL2L277->GetYaxis()->SetTitle("Hz per wire"); h_SL2L277->GetYaxis()->SetLabelFont(42); h_SL2L277->GetYaxis()->SetLabelSize(0.035); h_SL2L277->GetYaxis()->SetTitleSize(0.035); h_SL2L277->GetYaxis()->SetTitleOffset(1.45); h_SL2L277->GetYaxis()->SetTitleFont(42); h_SL2L277->GetZaxis()->SetLabelFont(42); h_SL2L277->GetZaxis()->SetLabelSize(0.035); h_SL2L277->GetZaxis()->SetTitleSize(0.035); h_SL2L277->GetZaxis()->SetTitleFont(42); h_SL2L277->Draw("hist, same"); TH1D *h_SL2L378 = new TH1D("h_SL2L378","Occupancy removing noisy cells",60,0,60); h_SL2L378->SetMaximum(0); h_SL2L378->SetEntries(60); h_SL2L378->SetDirectory(0); h_SL2L378->SetStats(0); ci = TColor::GetColor("#009900"); h_SL2L378->SetLineColor(ci); h_SL2L378->SetLineWidth(2); h_SL2L378->GetXaxis()->SetTitle("Cell"); h_SL2L378->GetXaxis()->SetLabelFont(42); h_SL2L378->GetXaxis()->SetLabelSize(0.035); h_SL2L378->GetXaxis()->SetTitleSize(0.035); h_SL2L378->GetXaxis()->SetTitleFont(42); h_SL2L378->GetYaxis()->SetTitle("Hz per wire"); h_SL2L378->GetYaxis()->SetLabelFont(42); h_SL2L378->GetYaxis()->SetLabelSize(0.035); h_SL2L378->GetYaxis()->SetTitleSize(0.035); h_SL2L378->GetYaxis()->SetTitleOffset(1.45); h_SL2L378->GetYaxis()->SetTitleFont(42); h_SL2L378->GetZaxis()->SetLabelFont(42); h_SL2L378->GetZaxis()->SetLabelSize(0.035); h_SL2L378->GetZaxis()->SetTitleSize(0.035); h_SL2L378->GetZaxis()->SetTitleFont(42); h_SL2L378->Draw("hist, same"); TH1D *h_SL2L479 = new TH1D("h_SL2L479","Occupancy removing noisy cells",60,0,60); h_SL2L479->SetMaximum(0); h_SL2L479->SetEntries(60); h_SL2L479->SetDirectory(0); h_SL2L479->SetStats(0); ci = TColor::GetColor("#0000cc"); h_SL2L479->SetLineColor(ci); h_SL2L479->SetLineWidth(2); h_SL2L479->GetXaxis()->SetTitle("Cell"); h_SL2L479->GetXaxis()->SetLabelFont(42); h_SL2L479->GetXaxis()->SetLabelSize(0.035); h_SL2L479->GetXaxis()->SetTitleSize(0.035); h_SL2L479->GetXaxis()->SetTitleFont(42); h_SL2L479->GetYaxis()->SetTitle("Hz per wire"); h_SL2L479->GetYaxis()->SetLabelFont(42); h_SL2L479->GetYaxis()->SetLabelSize(0.035); h_SL2L479->GetYaxis()->SetTitleSize(0.035); h_SL2L479->GetYaxis()->SetTitleOffset(1.45); h_SL2L479->GetYaxis()->SetTitleFont(42); h_SL2L479->GetZaxis()->SetLabelFont(42); h_SL2L479->GetZaxis()->SetLabelSize(0.035); h_SL2L479->GetZaxis()->SetTitleSize(0.035); h_SL2L479->GetZaxis()->SetTitleFont(42); h_SL2L479->Draw("hist, same"); pt = new TPaveText(0.1753311,0.9302332,0.8246689,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); AText = pt->AddText("Occupancy removing noisy cells"); pt->Draw(); c_2->Modified(); c->cd(); // ------------>Primitives in pad: c_3 TPad *c_3 = new TPad("c_3", "c_3",0.6766667,0.51,0.99,0.99); c_3->Draw(); c_3->cd(); c_3->Range(-7.500001,-0.125,67.5,1.125); c_3->SetFillColor(0); c_3->SetBorderMode(0); c_3->SetBorderSize(2); c_3->SetFrameBorderMode(0); c_3->SetFrameBorderMode(0); TH1D *h_SL3L180 = new TH1D("h_SL3L180","Occupancy removing noisy cells",60,0,60); h_SL3L180->SetMaximum(0); h_SL3L180->SetEntries(60); h_SL3L180->SetDirectory(0); h_SL3L180->SetStats(0); h_SL3L180->SetLineWidth(2); h_SL3L180->GetXaxis()->SetTitle("Cell"); h_SL3L180->GetXaxis()->SetLabelFont(42); h_SL3L180->GetXaxis()->SetLabelSize(0.035); h_SL3L180->GetXaxis()->SetTitleSize(0.035); h_SL3L180->GetXaxis()->SetTitleFont(42); h_SL3L180->GetYaxis()->SetTitle("Hz per wire"); h_SL3L180->GetYaxis()->SetLabelFont(42); h_SL3L180->GetYaxis()->SetLabelSize(0.035); h_SL3L180->GetYaxis()->SetTitleSize(0.035); h_SL3L180->GetYaxis()->SetTitleOffset(1.45); h_SL3L180->GetYaxis()->SetTitleFont(42); h_SL3L180->GetZaxis()->SetLabelFont(42); h_SL3L180->GetZaxis()->SetLabelSize(0.035); h_SL3L180->GetZaxis()->SetTitleSize(0.035); h_SL3L180->GetZaxis()->SetTitleFont(42); h_SL3L180->Draw("hist, "); TH1D *h_SL3L281 = new TH1D("h_SL3L281","Occupancy removing noisy cells",60,0,60); h_SL3L281->SetMaximum(0); h_SL3L281->SetEntries(60); h_SL3L281->SetDirectory(0); h_SL3L281->SetStats(0); ci = TColor::GetColor("#cc0000"); h_SL3L281->SetLineColor(ci); h_SL3L281->SetLineWidth(2); h_SL3L281->GetXaxis()->SetTitle("Cell"); h_SL3L281->GetXaxis()->SetLabelFont(42); h_SL3L281->GetXaxis()->SetLabelSize(0.035); h_SL3L281->GetXaxis()->SetTitleSize(0.035); h_SL3L281->GetXaxis()->SetTitleFont(42); h_SL3L281->GetYaxis()->SetTitle("Hz per wire"); h_SL3L281->GetYaxis()->SetLabelFont(42); h_SL3L281->GetYaxis()->SetLabelSize(0.035); h_SL3L281->GetYaxis()->SetTitleSize(0.035); h_SL3L281->GetYaxis()->SetTitleOffset(1.45); h_SL3L281->GetYaxis()->SetTitleFont(42); h_SL3L281->GetZaxis()->SetLabelFont(42); h_SL3L281->GetZaxis()->SetLabelSize(0.035); h_SL3L281->GetZaxis()->SetTitleSize(0.035); h_SL3L281->GetZaxis()->SetTitleFont(42); h_SL3L281->Draw("hist, same"); TH1D *h_SL3L382 = new TH1D("h_SL3L382","Occupancy removing noisy cells",60,0,60); h_SL3L382->SetMaximum(0); h_SL3L382->SetEntries(60); h_SL3L382->SetDirectory(0); h_SL3L382->SetStats(0); ci = TColor::GetColor("#009900"); h_SL3L382->SetLineColor(ci); h_SL3L382->SetLineWidth(2); h_SL3L382->GetXaxis()->SetTitle("Cell"); h_SL3L382->GetXaxis()->SetLabelFont(42); h_SL3L382->GetXaxis()->SetLabelSize(0.035); h_SL3L382->GetXaxis()->SetTitleSize(0.035); h_SL3L382->GetXaxis()->SetTitleFont(42); h_SL3L382->GetYaxis()->SetTitle("Hz per wire"); h_SL3L382->GetYaxis()->SetLabelFont(42); h_SL3L382->GetYaxis()->SetLabelSize(0.035); h_SL3L382->GetYaxis()->SetTitleSize(0.035); h_SL3L382->GetYaxis()->SetTitleOffset(1.45); h_SL3L382->GetYaxis()->SetTitleFont(42); h_SL3L382->GetZaxis()->SetLabelFont(42); h_SL3L382->GetZaxis()->SetLabelSize(0.035); h_SL3L382->GetZaxis()->SetTitleSize(0.035); h_SL3L382->GetZaxis()->SetTitleFont(42); h_SL3L382->Draw("hist, same"); TH1D *h_SL3L483 = new TH1D("h_SL3L483","Occupancy removing noisy cells",60,0,60); h_SL3L483->SetMaximum(0); h_SL3L483->SetEntries(60); h_SL3L483->SetDirectory(0); h_SL3L483->SetStats(0); ci = TColor::GetColor("#0000cc"); h_SL3L483->SetLineColor(ci); h_SL3L483->SetLineWidth(2); h_SL3L483->GetXaxis()->SetTitle("Cell"); h_SL3L483->GetXaxis()->SetLabelFont(42); h_SL3L483->GetXaxis()->SetLabelSize(0.035); h_SL3L483->GetXaxis()->SetTitleSize(0.035); h_SL3L483->GetXaxis()->SetTitleFont(42); h_SL3L483->GetYaxis()->SetTitle("Hz per wire"); h_SL3L483->GetYaxis()->SetLabelFont(42); h_SL3L483->GetYaxis()->SetLabelSize(0.035); h_SL3L483->GetYaxis()->SetTitleSize(0.035); h_SL3L483->GetYaxis()->SetTitleOffset(1.45); h_SL3L483->GetYaxis()->SetTitleFont(42); h_SL3L483->GetZaxis()->SetLabelFont(42); h_SL3L483->GetZaxis()->SetLabelSize(0.035); h_SL3L483->GetZaxis()->SetTitleSize(0.035); h_SL3L483->GetZaxis()->SetTitleFont(42); h_SL3L483->Draw("hist, same"); pt = new TPaveText(0.1753311,0.9302332,0.8246689,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); AText = pt->AddText("Occupancy removing noisy cells"); pt->Draw(); c_3->Modified(); c->cd(); // ------------>Primitives in pad: c_4 TPad *c_4 = new TPad("c_4", "c_4",0.01,0.01,0.3233333,0.49); c_4->Draw(); c_4->cd(); c_4->Range(0,0,1,1); c_4->SetFillColor(0); c_4->SetBorderMode(0); c_4->SetBorderSize(2); c_4->SetFrameBorderMode(0); c_4->Modified(); c->cd(); // ------------>Primitives in pad: c_5 TPad *c_5 = new TPad("c_5", "c_5",0.3433333,0.01,0.6566667,0.49); c_5->Draw(); c_5->cd(); c_5->Range(0,0,1,1); c_5->SetFillColor(0); c_5->SetBorderMode(0); c_5->SetBorderSize(2); c_5->SetFrameBorderMode(0); c_5->Modified(); c->cd(); // ------------>Primitives in pad: c_6 TPad *c_6 = new TPad("c_6", "c_6",0.05,0,0.95,0.5); c_6->Draw(); c_6->cd(); c_6->Range(-1,-5428.841,14,48859.57); c_6->SetFillColor(0); c_6->SetBorderMode(0); c_6->SetBorderSize(2); c_6->SetFrameBorderMode(0); c_6->SetFrameBorderMode(0); TH1D *hRateSub84 = new TH1D("hRateSub84","Average rate per layer for run 6105 (no noisy cells)",12,0.5,12.5); hRateSub84->SetBinContent(1,35375.1); hRateSub84->SetBinContent(4,37635.37); hRateSub84->SetMinimum(0); hRateSub84->SetMaximum(43430.72); hRateSub84->SetEntries(2098283); hRateSub84->SetDirectory(0); hRateSub84->SetStats(0); ci = TColor::GetColor("#330066"); hRateSub84->SetLineColor(ci); hRateSub84->SetLineWidth(2); hRateSub84->GetXaxis()->SetBinLabel(1,"SL1L1"); hRateSub84->GetXaxis()->SetBinLabel(2,"SL1L2"); hRateSub84->GetXaxis()->SetBinLabel(3,"SL1L3"); hRateSub84->GetXaxis()->SetBinLabel(4,"SL1L4"); hRateSub84->GetXaxis()->SetBinLabel(5,"SL2L1"); hRateSub84->GetXaxis()->SetBinLabel(6,"SL2L2"); hRateSub84->GetXaxis()->SetBinLabel(7,"SL2L3"); hRateSub84->GetXaxis()->SetBinLabel(8,"SL2L4"); hRateSub84->GetXaxis()->SetBinLabel(9,"SL3L1"); hRateSub84->GetXaxis()->SetBinLabel(10,"SL3L2"); hRateSub84->GetXaxis()->SetBinLabel(11,"SL3L3"); hRateSub84->GetXaxis()->SetBinLabel(12,"SL3L4"); hRateSub84->GetXaxis()->SetLabelFont(42); hRateSub84->GetXaxis()->SetLabelSize(0.035); hRateSub84->GetXaxis()->SetTitleSize(0.035); hRateSub84->GetXaxis()->SetTitleFont(42); hRateSub84->GetYaxis()->SetTitle("Mean Hz/Cell"); hRateSub84->GetYaxis()->SetLabelFont(42); hRateSub84->GetYaxis()->SetLabelSize(0.06); hRateSub84->GetYaxis()->SetTitleSize(0.035); hRateSub84->GetYaxis()->SetTitleOffset(1.3); hRateSub84->GetYaxis()->SetTitleFont(42); hRateSub84->GetZaxis()->SetLabelFont(42); hRateSub84->GetZaxis()->SetLabelSize(0.035); hRateSub84->GetZaxis()->SetTitleSize(0.035); hRateSub84->GetZaxis()->SetTitleFont(42); hRateSub84->Draw("hist"); TH1D *hRateSub85 = new TH1D("hRateSub85","Average rate per layer for run 6105 (no noisy cells)",12,0.5,12.5); hRateSub85->SetBinContent(1,35470.78); hRateSub85->SetBinContent(4,37765.85); hRateSub85->SetEntries(2098283); hRateSub85->SetDirectory(0); hRateSub85->SetStats(0); ci = TColor::GetColor("#cc6600"); hRateSub85->SetLineColor(ci); hRateSub85->SetLineWidth(2); hRateSub85->GetXaxis()->SetBinLabel(1,"SL1L1"); hRateSub85->GetXaxis()->SetBinLabel(2,"SL1L2"); hRateSub85->GetXaxis()->SetBinLabel(3,"SL1L3"); hRateSub85->GetXaxis()->SetBinLabel(4,"SL1L4"); hRateSub85->GetXaxis()->SetBinLabel(5,"SL2L1"); hRateSub85->GetXaxis()->SetBinLabel(6,"SL2L2"); hRateSub85->GetXaxis()->SetBinLabel(7,"SL2L3"); hRateSub85->GetXaxis()->SetBinLabel(8,"SL2L4"); hRateSub85->GetXaxis()->SetBinLabel(9,"SL3L1"); hRateSub85->GetXaxis()->SetBinLabel(10,"SL3L2"); hRateSub85->GetXaxis()->SetBinLabel(11,"SL3L3"); hRateSub85->GetXaxis()->SetBinLabel(12,"SL3L4"); hRateSub85->GetXaxis()->SetLabelFont(42); hRateSub85->GetXaxis()->SetLabelSize(0.035); hRateSub85->GetXaxis()->SetTitleSize(0.035); hRateSub85->GetXaxis()->SetTitleFont(42); hRateSub85->GetYaxis()->SetTitle("Mean Hz/Cell"); hRateSub85->GetYaxis()->SetLabelFont(42); hRateSub85->GetYaxis()->SetLabelSize(0.035); hRateSub85->GetYaxis()->SetTitleSize(0.035); hRateSub85->GetYaxis()->SetTitleOffset(1.3); hRateSub85->GetYaxis()->SetTitleFont(42); hRateSub85->GetZaxis()->SetLabelFont(42); hRateSub85->GetZaxis()->SetLabelSize(0.035); hRateSub85->GetZaxis()->SetTitleSize(0.035); hRateSub85->GetZaxis()->SetTitleFont(42); hRateSub85->Draw("hist, same"); TLegend *leg = new TLegend(0.7,0.92,0.9,0.97,NULL,"brNDC"); leg->SetBorderSize(1); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); TLegendEntry *entry=leg->AddEntry("hRateSub","Occupancy","l"); ci = TColor::GetColor("#330066"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(2); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("hRateSub","Background","l"); ci = TColor::GetColor("#cc6600"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(2); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); leg->Draw(); pt = new TPaveText(0.91,0.45,1,0.55,"brNDC"); pt->SetFillColor(0); pt->SetTextAlign(12); pt->SetTextFont(42); pt->SetTextSize(0.07); AText = pt->AddText("Run 6105"); pt->Draw(); pt = new TPaveText(0.3113755,0.9328238,0.6886245,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); AText = pt->AddText("Average rate per layer for run 6105 (no noisy cells)"); pt->Draw(); c_6->Modified(); c->cd(); c->Modified(); c->cd(); c->SetSelected(c); }