void hitRate_re4_1_3000() { //=========Macro generated from canvas: c/c //========= (Tue Jan 7 13:09:21 2020) by ROOT version6.08/06 TCanvas *c = new TCanvas("c", "c",95,175,834,600); gStyle->SetOptFit(1); c->Range(139.0193,-313.4796,348.826,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[16] = { 175, 185, 195, 205, 215, 225, 235, 245, 255, 265, 275, 285, 295, 305, 315, 325}; Double_t Graph0_fy1001[16] = { 949.37, 824.42, 733.49, 641.77, 579.64, 539.24, 498.68, 479.83, 493.4, 505.62, 488.03, 460.81, 436.87, 412.53, 391.25, 371.53}; Double_t Graph0_fex1001[16] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; Double_t Graph0_fey1001[16] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; TGraphErrors *gre = new TGraphErrors(16,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,160,340); 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[16] = { 175, 185, 195, 205, 215, 225, 235, 245, 255, 265, 275, 285, 295, 305, 315, 325}; Double_t Graph1_fy1002[16] = { 499.06, 430.75, 375.24, 325.25, 287.91, 261.14, 232.95, 209.86, 195.16, 185.21, 174.44, 161.84, 148.47, 140.87, 132.42, 123.53}; Double_t Graph1_fex1002[16] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; Double_t Graph1_fey1002[16] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; gre = new TGraphErrors(16,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,160,340); Graph_Graph_Graph10021002->SetMinimum(85.977); Graph_Graph_Graph10021002->SetMaximum(536.613); 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[16] = { 175, 185, 195, 205, 215, 225, 235, 245, 255, 265, 275, 285, 295, 305, 315, 325}; Double_t Graph2_fy1003[16] = { 30.71, 32.7, 34.7, 30.39, 27.68, 27.51, 23.48, 24.47, 25.96, 31.56, 31.8, 25.75, 22.66, 23.84, 23.52, 19.43}; Double_t Graph2_fex1003[16] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; Double_t Graph2_fey1003[16] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; gre = new TGraphErrors(16,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,160,340); Graph_Graph_Graph10031003->SetMinimum(17.903); Graph_Graph_Graph10031003->SetMaximum(36.227); 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[16] = { 175, 185, 195, 205, 215, 225, 235, 245, 255, 265, 275, 285, 295, 305, 315, 325}; Double_t Graph3_fy1004[16] = { 419.6, 360.96, 323.55, 286.13, 264.06, 250.59, 242.24, 245.5, 272.28, 288.85, 281.79, 273.21, 265.74, 247.82, 235.31, 228.58}; Double_t Graph3_fex1004[16] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; Double_t Graph3_fey1004[16] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; gre = new TGraphErrors(16,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,160,340); Graph_Graph_Graph10041004->SetMinimum(209.478); Graph_Graph_Graph10041004->SetMaximum(438.702); 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.22,0.83,"CMS-FLUKA Simulation"); tex->SetNDC(); tex->SetTextFont(61); tex->SetTextSize(0.045); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.22,0.81,"Preliminary"); tex->SetNDC(); tex->SetTextAlign(13); tex->SetTextFont(52); tex->SetTextSize(0.045); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.22,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.22,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.22,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 RE4/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.63,0.86,"1050 cm < Z < 1060 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); }