void hitRate_re3_23_4000() { //=========Macro generated from canvas: c/c //========= (Tue Jan 7 13:25:35 2020) by ROOT version6.08/06 TCanvas *c = new TCanvas("c", "c",95,175,834,600); gStyle->SetOptFit(1); c->Range(248.6464,-70.53291,752.1824,507.837); 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[37] = { 335, 345, 355, 365, 375, 385, 395, 405, 415, 425, 435, 445, 455, 465, 475, 485, 495, 505, 515, 525, 535, 545, 555, 565, 575, 585, 595, 605, 615, 625, 635, 645, 655, 665, 675, 685, 695}; Double_t Graph0_fy1001[37] = { 338.99, 331.03, 306.09, 270.14, 248.46, 228.55, 221.29, 196.93, 184.02, 176.15, 164.19, 151.39, 144.23, 130.25, 136.57, 126.28, 109.5, 112.15, 108.44, 100.14, 103.28, 109.96, 98.29, 103.78, 95.57, 90.98, 91.14, 100.06, 99.51, 98.97, 95.12, 99.34, 107.76, 111.6, 111.77, 123.27, 164.63}; Double_t Graph0_fex1001[37] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; Double_t Graph0_fey1001[37] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; TGraphErrors *gre = new TGraphErrors(37,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,299,731); Graph_Graph_Graph10011001->SetMinimum(0); Graph_Graph_Graph10011001->SetMaximum(450); 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[37] = { 335, 345, 355, 365, 375, 385, 395, 405, 415, 425, 435, 445, 455, 465, 475, 485, 495, 505, 515, 525, 535, 545, 555, 565, 575, 585, 595, 605, 615, 625, 635, 645, 655, 665, 675, 685, 695}; Double_t Graph1_fy1002[37] = { 76.98, 71.1, 66.27, 58.26, 54.07, 49.86, 45.19, 41.57, 38.57, 36.02, 34.67, 31.53, 29.67, 28.2, 27.58, 26.09, 24.63, 23.76, 22.77, 20.97, 20.28, 20.1, 19.55, 20.43, 18.61, 19.28, 19.69, 18.93, 19.15, 19.41, 19.5, 20.14, 20.86, 21.44, 21.85, 23.65, 30.7}; Double_t Graph1_fex1002[37] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; Double_t Graph1_fey1002[37] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; gre = new TGraphErrors(37,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,299,731); Graph_Graph_Graph10021002->SetMinimum(12.773); Graph_Graph_Graph10021002->SetMaximum(82.817); 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[37] = { 335, 345, 355, 365, 375, 385, 395, 405, 415, 425, 435, 445, 455, 465, 475, 485, 495, 505, 515, 525, 535, 545, 555, 565, 575, 585, 595, 605, 615, 625, 635, 645, 655, 665, 675, 685, 695}; Double_t Graph2_fy1003[37] = { 67.1, 75.43, 67.19, 60.38, 54.89, 48.49, 49.63, 39.56, 36.91, 37.91, 33.35, 29.52, 29.93, 25.13, 29.58, 25.07, 18.58, 20.42, 20.36, 19.14, 22.34, 28.83, 20.19, 24.87, 21.21, 18.07, 18.04, 24.09, 23.52, 20.21, 17.93, 19.44, 25.15, 25.93, 24.59, 27.65, 33.5}; Double_t Graph2_fex1003[37] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; Double_t Graph2_fey1003[37] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; gre = new TGraphErrors(37,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,299,731); Graph_Graph_Graph10031003->SetMinimum(12.18); Graph_Graph_Graph10031003->SetMaximum(81.18); 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[37] = { 335, 345, 355, 365, 375, 385, 395, 405, 415, 425, 435, 445, 455, 465, 475, 485, 495, 505, 515, 525, 535, 545, 555, 565, 575, 585, 595, 605, 615, 625, 635, 645, 655, 665, 675, 685, 695}; Double_t Graph3_fy1004[37] = { 194.92, 184.5, 172.63, 151.5, 139.5, 130.2, 126.48, 115.81, 108.54, 102.22, 96.17, 90.34, 84.62, 76.91, 79.41, 75.12, 66.28, 67.97, 65.31, 60.03, 60.66, 61.04, 58.55, 58.48, 55.75, 53.63, 53.41, 57.05, 56.83, 59.35, 57.69, 59.76, 61.75, 64.23, 65.34, 71.97, 100.43}; Double_t Graph3_fex1004[37] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; Double_t Graph3_fey1004[37] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; gre = new TGraphErrors(37,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,299,731); Graph_Graph_Graph10041004->SetMinimum(39.259); Graph_Graph_Graph10041004->SetMaximum(209.071); 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.25,0.83,"CMS-FLUKA Simulation"); tex->SetNDC(); tex->SetTextFont(61); tex->SetTextSize(0.045); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.25,0.81,"Preliminary"); tex->SetNDC(); tex->SetTextAlign(13); tex->SetTextFont(52); tex->SetTextSize(0.045); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.25,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.25,0.715,"L=7.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.25,0.665,"neut(0.27%), ph(1.6%), e+-(29%)"); tex->SetNDC(); tex->SetTextAlign(13); tex->SetTextFont(52); tex->SetTextSize(0.035); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.17,0.925,"RPC Expected hit rate in RE3/2 and RE3/3"); 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.64,0.86,"970 cm < Z < 980 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); }