void hitRate_re3_1_3000() { //=========Macro generated from canvas: c/c //========= (Tue Jan 7 12:52:33 2020) by ROOT version6.08/06 TCanvas *c = new TCanvas("c", "c",121,195,834,600); gStyle->SetOptFit(1); c->Range(114.2219,-313.4796,352.0028,2257.053); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetRightMargin(0.04206731); c->SetBottomMargin(0.1219512); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); Double_t Graph0_fx1001[18] = { 155, 165, 175, 185, 195, 205, 215, 225, 235, 245, 255, 265, 275, 285, 295, 305, 315, 325}; Double_t Graph0_fy1001[18] = { 1383.03, 1175.59, 951.1, 821.82, 727.74, 656.92, 618.86, 594.37, 624.86, 620.45, 571.73, 544.17, 500.28, 463.62, 437.67, 394.62, 362.11, 339.95}; Double_t Graph0_fex1001[18] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; Double_t Graph0_fey1001[18] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; TGraphErrors *gre = new TGraphErrors(18,Graph0_fx1001,Graph0_fy1001,Graph0_fex1001,Graph0_fey1001); gre->SetName("Graph0"); gre->SetTitle(" ; R [cm]; Hit rate [Hz/cm^{2}]"); gre->SetFillColor(1); gre->SetLineWidth(2); gre->SetMarkerStyle(20); gre->SetMarkerSize(1.4); TH1F *Graph_Graph_Graph10011001 = new TH1F("Graph_Graph_Graph10011001"," ",100,138,342); Graph_Graph_Graph10011001->SetMinimum(0); Graph_Graph_Graph10011001->SetMaximum(2000); Graph_Graph_Graph10011001->SetDirectory(0); Graph_Graph_Graph10011001->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#000099"); Graph_Graph_Graph10011001->SetLineColor(ci); Graph_Graph_Graph10011001->GetXaxis()->SetTitle(" R [cm]"); Graph_Graph_Graph10011001->GetXaxis()->SetLabelFont(42); Graph_Graph_Graph10011001->GetXaxis()->SetLabelSize(0.035); Graph_Graph_Graph10011001->GetXaxis()->SetTitleSize(0.05); Graph_Graph_Graph10011001->GetXaxis()->SetTitleOffset(0.9); Graph_Graph_Graph10011001->GetXaxis()->SetTitleFont(42); Graph_Graph_Graph10011001->GetYaxis()->SetTitle(" Hit rate [Hz/cm^{2}]"); Graph_Graph_Graph10011001->GetYaxis()->SetLabelFont(42); Graph_Graph_Graph10011001->GetYaxis()->SetLabelSize(0.035); Graph_Graph_Graph10011001->GetYaxis()->SetTitleSize(0.05); Graph_Graph_Graph10011001->GetYaxis()->SetTitleOffset(0.95); Graph_Graph_Graph10011001->GetYaxis()->SetTitleFont(42); Graph_Graph_Graph10011001->GetZaxis()->SetLabelFont(42); Graph_Graph_Graph10011001->GetZaxis()->SetLabelSize(0.035); Graph_Graph_Graph10011001->GetZaxis()->SetTitleSize(0.035); Graph_Graph_Graph10011001->GetZaxis()->SetTitleFont(42); gre->SetHistogram(Graph_Graph_Graph10011001); gre->Draw("pae"); Double_t Graph1_fx1002[18] = { 155, 165, 175, 185, 195, 205, 215, 225, 235, 245, 255, 265, 275, 285, 295, 305, 315, 325}; Double_t Graph1_fy1002[18] = { 774.51, 649.79, 529.31, 451.55, 393.96, 345.66, 311.68, 283.11, 272.79, 257.26, 234.25, 217.59, 201.02, 184.87, 167.06, 153.65, 138.95, 129.24}; Double_t Graph1_fex1002[18] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; Double_t Graph1_fey1002[18] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; gre = new TGraphErrors(18,Graph1_fx1002,Graph1_fy1002,Graph1_fex1002,Graph1_fey1002); gre->SetName("Graph1"); gre->SetTitle("Graph"); ci = TColor::GetColor("#000099"); gre->SetFillColor(ci); ci = TColor::GetColor("#000099"); gre->SetLineColor(ci); ci = TColor::GetColor("#000099"); gre->SetMarkerColor(ci); gre->SetMarkerStyle(21); gre->SetMarkerSize(1.5); TH1F *Graph_Graph_Graph10021002 = new TH1F("Graph_Graph_Graph10021002","Graph",100,138,342); Graph_Graph_Graph10021002->SetMinimum(64.713); Graph_Graph_Graph10021002->SetMaximum(839.037); Graph_Graph_Graph10021002->SetDirectory(0); Graph_Graph_Graph10021002->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph_Graph10021002->SetLineColor(ci); Graph_Graph_Graph10021002->GetXaxis()->SetLabelFont(42); Graph_Graph_Graph10021002->GetXaxis()->SetLabelSize(0.035); Graph_Graph_Graph10021002->GetXaxis()->SetTitleSize(0.035); Graph_Graph_Graph10021002->GetXaxis()->SetTitleFont(42); Graph_Graph_Graph10021002->GetYaxis()->SetLabelFont(42); Graph_Graph_Graph10021002->GetYaxis()->SetLabelSize(0.035); Graph_Graph_Graph10021002->GetYaxis()->SetTitleSize(0.035); Graph_Graph_Graph10021002->GetYaxis()->SetTitleFont(42); Graph_Graph_Graph10021002->GetZaxis()->SetLabelFont(42); Graph_Graph_Graph10021002->GetZaxis()->SetLabelSize(0.035); Graph_Graph_Graph10021002->GetZaxis()->SetTitleSize(0.035); Graph_Graph_Graph10021002->GetZaxis()->SetTitleFont(42); gre->SetHistogram(Graph_Graph_Graph10021002); gre->Draw("pe"); Double_t Graph2_fx1003[18] = { 155, 165, 175, 185, 195, 205, 215, 225, 235, 245, 255, 265, 275, 285, 295, 305, 315, 325}; Double_t Graph2_fy1003[18] = { 36.81, 48.58, 36.04, 28.69, 24.51, 20.79, 24.48, 18.88, 19.72, 22.2, 19.84, 21.82, 16.17, 17.49, 22.25, 15.39, 12.53, 10.85}; Double_t Graph2_fex1003[18] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; Double_t Graph2_fey1003[18] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; gre = new TGraphErrors(18,Graph2_fx1003,Graph2_fy1003,Graph2_fex1003,Graph2_fey1003); gre->SetName("Graph2"); gre->SetTitle("Graph"); ci = TColor::GetColor("#ff3300"); gre->SetFillColor(ci); ci = TColor::GetColor("#ff3300"); gre->SetLineColor(ci); ci = TColor::GetColor("#ff3300"); gre->SetMarkerColor(ci); gre->SetMarkerStyle(33); gre->SetMarkerSize(2); TH1F *Graph_Graph_Graph10031003 = new TH1F("Graph_Graph_Graph10031003","Graph",100,138,342); Graph_Graph_Graph10031003->SetMinimum(7.077); Graph_Graph_Graph10031003->SetMaximum(52.353); Graph_Graph_Graph10031003->SetDirectory(0); Graph_Graph_Graph10031003->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph_Graph10031003->SetLineColor(ci); Graph_Graph_Graph10031003->GetXaxis()->SetLabelFont(42); Graph_Graph_Graph10031003->GetXaxis()->SetLabelSize(0.035); Graph_Graph_Graph10031003->GetXaxis()->SetTitleSize(0.035); Graph_Graph_Graph10031003->GetXaxis()->SetTitleFont(42); Graph_Graph_Graph10031003->GetYaxis()->SetLabelFont(42); Graph_Graph_Graph10031003->GetYaxis()->SetLabelSize(0.035); Graph_Graph_Graph10031003->GetYaxis()->SetTitleSize(0.035); Graph_Graph_Graph10031003->GetYaxis()->SetTitleFont(42); Graph_Graph_Graph10031003->GetZaxis()->SetLabelFont(42); Graph_Graph_Graph10031003->GetZaxis()->SetLabelSize(0.035); Graph_Graph_Graph10031003->GetZaxis()->SetTitleSize(0.035); Graph_Graph_Graph10031003->GetZaxis()->SetTitleFont(42); gre->SetHistogram(Graph_Graph_Graph10031003); gre->Draw("pe"); Double_t Graph3_fx1004[18] = { 155, 165, 175, 185, 195, 205, 215, 225, 235, 245, 255, 265, 275, 285, 295, 305, 315, 325}; Double_t Graph3_fy1004[18] = { 571.71, 477.22, 385.74, 341.58, 309.27, 290.47, 282.7, 292.38, 332.35, 340.99, 317.64, 304.76, 283.1, 261.26, 248.36, 225.58, 210.63, 199.87}; Double_t Graph3_fex1004[18] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; Double_t Graph3_fey1004[18] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; gre = new TGraphErrors(18,Graph3_fx1004,Graph3_fy1004,Graph3_fex1004,Graph3_fey1004); gre->SetName("Graph3"); gre->SetTitle("Graph"); ci = TColor::GetColor("#009900"); gre->SetFillColor(ci); ci = TColor::GetColor("#009900"); gre->SetLineColor(ci); ci = TColor::GetColor("#009900"); gre->SetMarkerColor(ci); gre->SetMarkerStyle(23); gre->SetMarkerSize(1.7); TH1F *Graph_Graph_Graph10041004 = new TH1F("Graph_Graph_Graph10041004","Graph",100,138,342); Graph_Graph_Graph10041004->SetMinimum(162.686); Graph_Graph_Graph10041004->SetMaximum(608.894); Graph_Graph_Graph10041004->SetDirectory(0); Graph_Graph_Graph10041004->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph_Graph10041004->SetLineColor(ci); Graph_Graph_Graph10041004->GetXaxis()->SetLabelFont(42); Graph_Graph_Graph10041004->GetXaxis()->SetLabelSize(0.035); Graph_Graph_Graph10041004->GetXaxis()->SetTitleSize(0.035); Graph_Graph_Graph10041004->GetXaxis()->SetTitleFont(42); Graph_Graph_Graph10041004->GetYaxis()->SetLabelFont(42); Graph_Graph_Graph10041004->GetYaxis()->SetLabelSize(0.035); Graph_Graph_Graph10041004->GetYaxis()->SetTitleSize(0.035); Graph_Graph_Graph10041004->GetYaxis()->SetTitleFont(42); Graph_Graph_Graph10041004->GetZaxis()->SetLabelFont(42); Graph_Graph_Graph10041004->GetZaxis()->SetLabelSize(0.035); Graph_Graph_Graph10041004->GetZaxis()->SetTitleSize(0.035); Graph_Graph_Graph10041004->GetZaxis()->SetTitleFont(42); gre->SetHistogram(Graph_Graph_Graph10041004); gre->Draw("pe"); TLegend *leg = new TLegend(0.6586538,0.4912892,0.9074519,0.7648084,NULL,"brNDC"); leg->SetBorderSize(1); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(0); leg->SetFillColor(0); leg->SetFillStyle(1001); TLegendEntry *entry=leg->AddEntry("NULL","Total hit rate","lp"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(2); entry->SetMarkerColor(1); entry->SetMarkerStyle(20); entry->SetMarkerSize(1.4); entry->SetTextFont(42); entry=leg->AddEntry("NULL","Neutrons","lp"); ci = TColor::GetColor("#000099"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); ci = TColor::GetColor("#000099"); entry->SetMarkerColor(ci); entry->SetMarkerStyle(21); entry->SetMarkerSize(1.5); entry->SetTextFont(42); entry=leg->AddEntry("NULL","All charged particles","lp"); ci = TColor::GetColor("#ff3300"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); ci = TColor::GetColor("#ff3300"); entry->SetMarkerColor(ci); entry->SetMarkerStyle(33); entry->SetMarkerSize(2); entry->SetTextFont(42); entry=leg->AddEntry("NULL","Photons","lp"); ci = TColor::GetColor("#009900"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); ci = TColor::GetColor("#009900"); entry->SetMarkerColor(ci); entry->SetMarkerStyle(23); entry->SetMarkerSize(1.7); entry->SetTextFont(42); leg->Draw(); TLatex * tex = new TLatex(0.24,0.83,"CMS-FLUKA Simulation"); tex->SetNDC(); tex->SetTextFont(61); tex->SetTextSize(0.045); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.24,0.81,"Preliminary"); tex->SetNDC(); tex->SetTextAlign(13); tex->SetTextFont(52); tex->SetTextSize(0.045); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.24,0.76,"Phase-2 geometry"); tex->SetNDC(); tex->SetTextAlign(13); tex->SetTextFont(52); tex->SetTextSize(0.045); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.24,0.715,"L=5x10^{34}cm^{-2}s^{-1}"); tex->SetNDC(); tex->SetTextAlign(13); tex->SetTextFont(52); tex->SetTextSize(0.045); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.24,0.66,"neut(0.47%), ph(2%), e+-(7%)"); tex->SetNDC(); tex->SetTextAlign(13); tex->SetTextFont(52); tex->SetTextSize(0.035); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.29,0.925,"RPC Expected hit rate in RE3/1"); tex->SetNDC(); tex->SetTextAlign(15); tex->SetTextFont(42); tex->SetTextSize(0.055); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.1,0.03,"CMS FLUKA Study v.3.7.20.0"); tex->SetNDC(); tex->SetTextAlign(15); tex->SetTextFont(42); tex->SetTextSize(0.038); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.66,0.86,"960 cm < Z < 970 cm"); tex->SetNDC(); tex->SetTextAlign(13); tex->SetTextFont(42); tex->SetTextSize(0.045); tex->SetLineWidth(2); tex->Draw(); TPaveText *pt = new TPaveText(0.4821875,0.94,0.5178125,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); AText = pt->AddText(" "); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }