void hitRate_re3_23_3000() { //=========Macro generated from canvas: c/c //========= (Tue Jan 7 13:22:31 2020) by ROOT version6.08/06 TCanvas *c = new TCanvas("c", "c",95,175,834,600); gStyle->SetOptFit(1); c->Range(248.6464,-54.85893,752.1824,394.9843); 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] = { 225.99, 220.69, 204.06, 180.09, 165.64, 152.37, 147.53, 131.29, 122.68, 117.43, 109.46, 100.93, 96.15, 86.83, 91.05, 84.19, 73, 74.76, 72.3, 66.76, 68.85, 73.31, 65.53, 69.19, 63.71, 60.65, 60.76, 66.71, 66.34, 65.98, 63.41, 66.23, 71.84, 74.4, 74.52, 81.82, 110.27}; 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(350); 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.9); 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] = { 51.32, 47.4, 44.18, 38.84, 36.05, 33.24, 30.12, 27.71, 25.72, 24.01, 23.11, 21.02, 19.78, 18.8, 18.38, 17.39, 16.42, 15.84, 15.18, 13.98, 13.52, 13.4, 13.04, 13.62, 12.41, 12.85, 13.13, 12.62, 12.77, 12.94, 13, 13.42, 13.91, 14.29, 14.56, 15.41, 20.98}; 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(8.519); Graph_Graph_Graph10021002->SetMaximum(55.211); 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] = { 44.73, 50.29, 44.79, 40.25, 36.59, 32.32, 33.08, 26.37, 24.61, 25.27, 22.23, 19.68, 19.96, 16.75, 19.72, 16.71, 12.39, 13.61, 13.58, 12.76, 14.9, 19.22, 13.46, 16.58, 14.14, 12.05, 12.03, 16.06, 15.68, 13.48, 11.96, 12.96, 16.77, 17.29, 16.39, 18.43, 22.33}; 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(8.127); Graph_Graph_Graph10031003->SetMaximum(54.123); 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] = { 129.94, 123, 115.09, 101, 93, 86.8, 84.32, 77.21, 72.36, 68.15, 64.11, 60.23, 56.41, 51.28, 52.94, 50.08, 44.19, 45.31, 43.54, 40.02, 40.44, 40.69, 39.03, 38.99, 37.17, 35.75, 35.6, 38.03, 37.89, 39.57, 38.46, 39.84, 41.17, 42.82, 43.56, 47.98, 66.95}; 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(26.166); Graph_Graph_Graph10041004->SetMaximum(139.374); 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.72,"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.67,"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.19,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.4818546,0.94,0.5181454,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); }