void etaDistroDetailRB2() { //=========Macro generated from canvas: c1/Canvas //========= (Tue Mar 19 15:35:22 2019) by ROOT version 6.14/04 TCanvas *c1 = new TCanvas("c1", "Canvas",56,77,800,800); gStyle->SetOptFit(1); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); c1->SetHighLightColor(2); c1->Range(-2.180107,-0.597762,1.857128,3.229644); c1->SetFillColor(0); c1->SetBorderMode(0); c1->SetBorderSize(2); c1->SetLogy(); c1->SetLeftMargin(0.12); c1->SetRightMargin(0.04); c1->SetTopMargin(0.06); c1->SetFrameFillStyle(0); c1->SetFrameBorderMode(0); c1->SetFrameFillStyle(0); c1->SetFrameBorderMode(0); TMultiGraph *multigraph = new TMultiGraph(); multigraph->SetName(""); multigraph->SetTitle("RB1in"); Double_t Graph_fx23[6] = { -1.30087, -1.418788, -1.54149, -1.006991, -1.088097, -1.186697}; Double_t Graph_fy23[6] = { 8.67, 19.02, 34.95, 5.015, 4.12, 5}; TGraph *graph1 = new TGraph(6,Graph_fx23,Graph_fy23); graph1->SetName("Graph"); graph1->SetTitle("Layer 3 Endcap"); graph1->SetFillStyle(1000); graph1->SetLineColor(4); graph1->SetLineWidth(6); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#ff0000"); graph1->SetMarkerColor(ci); graph1->SetMarkerStyle(25); graph1->SetMarkerSize(1.5); TH1F *Graph_Graph23 = new TH1F("Graph_Graph23","Layer 3 Endcap",100,-1.59494,-0.9535416); Graph_Graph23->SetMinimum(1.037); Graph_Graph23->SetMaximum(38.033); Graph_Graph23->SetDirectory(0); Graph_Graph23->SetStats(0); Graph_Graph23->SetLineStyle(0); Graph_Graph23->SetMarkerStyle(20); Graph_Graph23->GetXaxis()->SetTitle("#eta"); Graph_Graph23->GetXaxis()->SetLabelFont(42); Graph_Graph23->GetXaxis()->SetLabelOffset(0.007); Graph_Graph23->GetXaxis()->SetLabelSize(0.05); Graph_Graph23->GetXaxis()->SetTitleSize(0.06); Graph_Graph23->GetXaxis()->SetTitleOffset(0.9); Graph_Graph23->GetXaxis()->SetTitleFont(42); Graph_Graph23->GetYaxis()->SetTitle("RPC hit rate (Hz/cm^{2})"); Graph_Graph23->GetYaxis()->SetLabelFont(42); Graph_Graph23->GetYaxis()->SetLabelOffset(0.007); Graph_Graph23->GetYaxis()->SetLabelSize(0.05); Graph_Graph23->GetYaxis()->SetTitleSize(0.06); Graph_Graph23->GetYaxis()->SetTitleOffset(1.25); Graph_Graph23->GetYaxis()->SetTitleFont(42); Graph_Graph23->GetZaxis()->SetLabelFont(42); Graph_Graph23->GetZaxis()->SetLabelOffset(0.007); Graph_Graph23->GetZaxis()->SetLabelSize(0.05); Graph_Graph23->GetZaxis()->SetTitleSize(0.06); Graph_Graph23->GetZaxis()->SetTitleFont(42); graph1->SetHistogram(Graph_Graph23); multigraph->Add(graph1,"AP"); Double_t Graph_fx24[4] = { -0.6402547, -0.3577033, -0.9968613, -0.8309316}; Double_t Graph_fy24[4] = { 2.29, 1.65, 4.7, 3.71}; graph2 = new TGraph(4,Graph_fx24,Graph_fy24); graph2->SetName("Graph"); graph2->SetTitle("Layer 3 Wheel"); graph2->SetFillStyle(1000); graph2->SetLineColor(4); graph2->SetLineWidth(6); ci = TColor::GetColor("#ff0000"); graph2->SetMarkerColor(ci); graph2->SetMarkerStyle(21); graph2->SetMarkerSize(1.5); TH1F *Graph_Graph24 = new TH1F("Graph_Graph24","Layer 3 Wheel",100,-1.060777,-0.2937875); Graph_Graph24->SetMinimum(1.345); Graph_Graph24->SetMaximum(5.005); Graph_Graph24->SetDirectory(0); Graph_Graph24->SetStats(0); Graph_Graph24->SetLineStyle(0); Graph_Graph24->SetMarkerStyle(20); Graph_Graph24->GetXaxis()->SetTitle("#eta"); Graph_Graph24->GetXaxis()->SetLabelFont(42); Graph_Graph24->GetXaxis()->SetLabelOffset(0.007); Graph_Graph24->GetXaxis()->SetLabelSize(0.05); Graph_Graph24->GetXaxis()->SetTitleSize(0.06); Graph_Graph24->GetXaxis()->SetTitleOffset(0.9); Graph_Graph24->GetXaxis()->SetTitleFont(42); Graph_Graph24->GetYaxis()->SetTitle("RPC hit rate (Hz/cm^{2})"); Graph_Graph24->GetYaxis()->SetLabelFont(42); Graph_Graph24->GetYaxis()->SetLabelOffset(0.007); Graph_Graph24->GetYaxis()->SetLabelSize(0.05); Graph_Graph24->GetYaxis()->SetTitleSize(0.06); Graph_Graph24->GetYaxis()->SetTitleOffset(1.25); Graph_Graph24->GetYaxis()->SetTitleFont(42); Graph_Graph24->GetZaxis()->SetLabelFont(42); Graph_Graph24->GetZaxis()->SetLabelOffset(0.007); Graph_Graph24->GetZaxis()->SetLabelSize(0.05); Graph_Graph24->GetZaxis()->SetTitleSize(0.06); Graph_Graph24->GetZaxis()->SetTitleFont(42); graph2->SetHistogram(Graph_Graph24); multigraph->Add(graph2,"AP"); Double_t Graph_fx25[6] = { 1.30087, 1.418788, 1.54149, 1.006991, 1.088097, 1.186697}; Double_t Graph_fy25[6] = { 7.165, 16.775, 29.81, 4.53, 4.02, 4.33}; graph3 = new TGraph(6,Graph_fx25,Graph_fy25); graph3->SetName("Graph"); graph3->SetTitle("Layer 4 Endcap"); graph3->SetFillStyle(1000); graph3->SetLineColor(5); graph3->SetLineWidth(7); ci = TColor::GetColor("#ff0000"); graph3->SetMarkerColor(ci); graph3->SetMarkerStyle(25); graph3->SetMarkerSize(1.5); TH1F *Graph_Graph25 = new TH1F("Graph_Graph25","Layer 4 Endcap",100,0.9535416,1.59494); Graph_Graph25->SetMinimum(1.441); Graph_Graph25->SetMaximum(32.389); Graph_Graph25->SetDirectory(0); Graph_Graph25->SetStats(0); Graph_Graph25->SetLineStyle(0); Graph_Graph25->SetMarkerStyle(20); Graph_Graph25->GetXaxis()->SetTitle("#eta"); Graph_Graph25->GetXaxis()->SetLabelFont(42); Graph_Graph25->GetXaxis()->SetLabelOffset(0.007); Graph_Graph25->GetXaxis()->SetLabelSize(0.05); Graph_Graph25->GetXaxis()->SetTitleSize(0.06); Graph_Graph25->GetXaxis()->SetTitleOffset(0.9); Graph_Graph25->GetXaxis()->SetTitleFont(42); Graph_Graph25->GetYaxis()->SetTitle("RPC hit rate (Hz/cm^{2})"); Graph_Graph25->GetYaxis()->SetLabelFont(42); Graph_Graph25->GetYaxis()->SetLabelOffset(0.007); Graph_Graph25->GetYaxis()->SetLabelSize(0.05); Graph_Graph25->GetYaxis()->SetTitleSize(0.06); Graph_Graph25->GetYaxis()->SetTitleOffset(1.25); Graph_Graph25->GetYaxis()->SetTitleFont(42); Graph_Graph25->GetZaxis()->SetLabelFont(42); Graph_Graph25->GetZaxis()->SetLabelOffset(0.007); Graph_Graph25->GetZaxis()->SetLabelSize(0.05); Graph_Graph25->GetZaxis()->SetTitleSize(0.06); Graph_Graph25->GetZaxis()->SetTitleFont(42); graph3->SetHistogram(Graph_Graph25); multigraph->Add(graph3,"AP"); Double_t Graph_fx26[6] = { 0.1508182, -0.1620493, 0.6307283, 0.3519274, 0.984016, 0.8194372}; Double_t Graph_fy26[6] = { 1.16, 1, 3.13, 1.44, 4.23, 3.01}; graph4 = new TGraph(6,Graph_fx26,Graph_fy26); graph4->SetName("Graph"); graph4->SetTitle("Layer 4 Wheel"); graph4->SetFillStyle(1000); graph4->SetLineColor(5); graph4->SetLineWidth(7); ci = TColor::GetColor("#ff0000"); graph4->SetMarkerColor(ci); graph4->SetMarkerStyle(21); graph4->SetMarkerSize(1.5); TH1F *Graph_Graph26 = new TH1F("Graph_Graph26","Layer 4 Wheel",100,-0.2766558,1.098623); Graph_Graph26->SetMinimum(0.677); Graph_Graph26->SetMaximum(4.553); Graph_Graph26->SetDirectory(0); Graph_Graph26->SetStats(0); Graph_Graph26->SetLineStyle(0); Graph_Graph26->SetMarkerStyle(20); Graph_Graph26->GetXaxis()->SetTitle("#eta"); Graph_Graph26->GetXaxis()->SetLabelFont(42); Graph_Graph26->GetXaxis()->SetLabelOffset(0.007); Graph_Graph26->GetXaxis()->SetLabelSize(0.05); Graph_Graph26->GetXaxis()->SetTitleSize(0.06); Graph_Graph26->GetXaxis()->SetTitleOffset(0.9); Graph_Graph26->GetXaxis()->SetTitleFont(42); Graph_Graph26->GetYaxis()->SetTitle("RPC hit rate (Hz/cm^{2})"); Graph_Graph26->GetYaxis()->SetLabelFont(42); Graph_Graph26->GetYaxis()->SetLabelOffset(0.007); Graph_Graph26->GetYaxis()->SetLabelSize(0.05); Graph_Graph26->GetYaxis()->SetTitleSize(0.06); Graph_Graph26->GetYaxis()->SetTitleOffset(1.25); Graph_Graph26->GetYaxis()->SetTitleFont(42); Graph_Graph26->GetZaxis()->SetLabelFont(42); Graph_Graph26->GetZaxis()->SetLabelOffset(0.007); Graph_Graph26->GetZaxis()->SetLabelSize(0.05); Graph_Graph26->GetZaxis()->SetTitleSize(0.06); Graph_Graph26->GetZaxis()->SetTitleFont(42); graph4->SetHistogram(Graph_Graph26); multigraph->Add(graph4,"AP"); Double_t Graph_fx27[4] = { -0.5647852, -0.3653146, -0.961078, -0.7492043}; Double_t Graph_fy27[4] = { 1.81, 1.31, 4.33, 3.37}; graph5 = new TGraph(4,Graph_fx27,Graph_fy27); graph5->SetName("Graph"); graph5->SetTitle("Layer 4 Wheel"); graph5->SetFillStyle(1000); graph5->SetLineColor(5); graph5->SetLineWidth(7); ci = TColor::GetColor("#0000ff"); graph5->SetMarkerColor(ci); graph5->SetMarkerStyle(23); graph5->SetMarkerSize(1.5); TH1F *Graph_Graph27 = new TH1F("Graph_Graph27","Layer 4 Wheel",100,-1.020654,-0.3057383); Graph_Graph27->SetMinimum(1.008); Graph_Graph27->SetMaximum(4.632); Graph_Graph27->SetDirectory(0); Graph_Graph27->SetStats(0); Graph_Graph27->SetLineStyle(0); Graph_Graph27->SetMarkerStyle(20); Graph_Graph27->GetXaxis()->SetTitle("#eta"); Graph_Graph27->GetXaxis()->SetLabelFont(42); Graph_Graph27->GetXaxis()->SetLabelOffset(0.007); Graph_Graph27->GetXaxis()->SetLabelSize(0.05); Graph_Graph27->GetXaxis()->SetTitleSize(0.06); Graph_Graph27->GetXaxis()->SetTitleOffset(0.9); Graph_Graph27->GetXaxis()->SetTitleFont(42); Graph_Graph27->GetYaxis()->SetTitle("RPC hit rate (Hz/cm^{2})"); Graph_Graph27->GetYaxis()->SetLabelFont(42); Graph_Graph27->GetYaxis()->SetLabelOffset(0.007); Graph_Graph27->GetYaxis()->SetLabelSize(0.05); Graph_Graph27->GetYaxis()->SetTitleSize(0.06); Graph_Graph27->GetYaxis()->SetTitleOffset(1.25); Graph_Graph27->GetYaxis()->SetTitleFont(42); Graph_Graph27->GetZaxis()->SetLabelFont(42); Graph_Graph27->GetZaxis()->SetLabelOffset(0.007); Graph_Graph27->GetZaxis()->SetLabelSize(0.05); Graph_Graph27->GetZaxis()->SetTitleSize(0.06); Graph_Graph27->GetZaxis()->SetTitleFont(42); graph5->SetHistogram(Graph_Graph27); multigraph->Add(graph5,"AP"); Double_t Graph_fx28[6] = { 0.1070081, -0.1177723, 0.5727437, 0.3707642, 0.9726389, 0.759068}; Double_t Graph_fy28[6] = { 0.99, 1.15, 2.05, 1.43, 3.51, 3.57}; graph6 = new TGraph(6,Graph_fx28,Graph_fy28); graph6->SetName("Graph"); graph6->SetTitle("Layer 4 Wheel"); graph6->SetFillStyle(1000); graph6->SetLineColor(5); graph6->SetLineWidth(7); ci = TColor::GetColor("#0000ff"); graph6->SetMarkerColor(ci); graph6->SetMarkerStyle(23); graph6->SetMarkerSize(1.5); TH1F *Graph_Graph28 = new TH1F("Graph_Graph28","Layer 4 Wheel",100,-0.2268135,1.08168); Graph_Graph28->SetMinimum(0.732); Graph_Graph28->SetMaximum(3.828); Graph_Graph28->SetDirectory(0); Graph_Graph28->SetStats(0); Graph_Graph28->SetLineStyle(0); Graph_Graph28->SetMarkerStyle(20); Graph_Graph28->GetXaxis()->SetTitle("#eta"); Graph_Graph28->GetXaxis()->SetLabelFont(42); Graph_Graph28->GetXaxis()->SetLabelOffset(0.007); Graph_Graph28->GetXaxis()->SetLabelSize(0.05); Graph_Graph28->GetXaxis()->SetTitleSize(0.06); Graph_Graph28->GetXaxis()->SetTitleOffset(0.9); Graph_Graph28->GetXaxis()->SetTitleFont(42); Graph_Graph28->GetYaxis()->SetTitle("RPC hit rate (Hz/cm^{2})"); Graph_Graph28->GetYaxis()->SetLabelFont(42); Graph_Graph28->GetYaxis()->SetLabelOffset(0.007); Graph_Graph28->GetYaxis()->SetLabelSize(0.05); Graph_Graph28->GetYaxis()->SetTitleSize(0.06); Graph_Graph28->GetYaxis()->SetTitleOffset(1.25); Graph_Graph28->GetYaxis()->SetTitleFont(42); Graph_Graph28->GetZaxis()->SetLabelFont(42); Graph_Graph28->GetZaxis()->SetLabelOffset(0.007); Graph_Graph28->GetZaxis()->SetLabelSize(0.05); Graph_Graph28->GetZaxis()->SetTitleSize(0.06); Graph_Graph28->GetZaxis()->SetTitleFont(42); graph6->SetHistogram(Graph_Graph28); multigraph->Add(graph6,"AP"); multigraph->Draw("a"); multigraph->GetXaxis()->SetTitle("#eta"); multigraph->GetXaxis()->SetLabelFont(42); multigraph->GetXaxis()->SetLabelOffset(0.007); multigraph->GetXaxis()->SetLabelSize(0.043); multigraph->GetXaxis()->SetTitleSize(0.05); multigraph->GetXaxis()->SetTitleOffset(1.06); multigraph->GetXaxis()->SetTitleFont(42); multigraph->GetYaxis()->SetTitle("RPC hit rate (Hz/cm^{2})"); multigraph->GetYaxis()->SetLabelFont(42); multigraph->GetYaxis()->SetLabelOffset(0.008); multigraph->GetYaxis()->SetLabelSize(0.05); multigraph->GetYaxis()->SetTitleSize(0.06); multigraph->GetYaxis()->SetTitleOffset(0.87); multigraph->GetYaxis()->SetTitleFont(42); TPaveText *pt = new TPaveText(0.02,0.97,0.55,0.97,"brNDC"); pt->SetBorderSize(0); pt->SetFillStyle(0); pt->SetTextSize(0.035); TText *pt_LaTex = pt->AddText("CMS Preliminary"); pt->Draw(); pt = new TPaveText(0.6,0.97,0.9,0.97,"brNDC"); pt->SetBorderSize(0); pt->SetFillStyle(0); pt->SetTextSize(0.035); pt_LaTex = pt->AddText("1.5 #times 10^{34} cm^{-2}s^{-1} (13 TeV)"); pt->Draw(); TLegend *leg = new TLegend(0.4,0.6,0.7,0.8,NULL,"brNDC"); leg->SetTextFont(62); leg->SetTextSize(0.05); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); TLegendEntry *entry=leg->AddEntry(graph1,"RE2","p"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); ci = TColor::GetColor("#ff0000"); entry->SetMarkerColor(ci); entry->SetMarkerStyle(25); entry->SetMarkerSize(1.5); entry->SetTextFont(62); entry=leg->AddEntry(graph2,"RB2in","p"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); ci = TColor::GetColor("#ff0000"); entry->SetMarkerColor(ci); entry->SetMarkerStyle(21); entry->SetMarkerSize(1.5); entry->SetTextFont(62); entry=leg->AddEntry(graph5,"RB2out","p"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); ci = TColor::GetColor("#0000ff"); entry->SetMarkerColor(ci); entry->SetMarkerStyle(23); entry->SetMarkerSize(1.5); entry->SetTextFont(62); leg->Draw(); c1->Modified(); c1->cd(); c1->SetSelected(c1); }