void tid_re41_3000_4000() { //=========Macro generated from canvas: c/c //========= (Wed Jan 8 17:21:46 2020) by ROOT version6.08/06 TCanvas *c = new TCanvas("c", "c",95,175,834,600); gStyle->SetOptFit(1); c->Range(139.0193,-23.51097,348.826,169.279); 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] = { 43.19, 59.86, 39.37, 65.65, 62.33, 24.25, 26.65, 50.32, 19.5, 31.89, 16.79, 19.52, 22.53, 24.01, 18.36, 11.92}; 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]; Dose [Gy]"); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#990000"); gre->SetFillColor(ci); ci = TColor::GetColor("#990000"); gre->SetLineColor(ci); gre->SetLineWidth(2); ci = TColor::GetColor("#990000"); gre->SetMarkerColor(ci); 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(150); Graph_Graph_Graph10011001->SetDirectory(0); Graph_Graph_Graph10011001->SetStats(0); 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(" Dose [Gy]"); 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] = { 32.39, 44.9, 29.53, 49.24, 46.75, 18.19, 19.99, 37.74, 14.63, 23.92, 12.59, 14.64, 16.89, 18.01, 13.77, 8.94}; 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(4.91); Graph_Graph_Graph10021002->SetMaximum(53.27); 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"); TLegend *leg = new TLegend(0.7872596,0.7020906,0.9254808,0.8554007,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","4000 fb^{-1}","lp"); ci = TColor::GetColor("#990000"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(2); ci = TColor::GetColor("#990000"); entry->SetMarkerColor(ci); entry->SetMarkerStyle(20); entry->SetMarkerSize(1.4); entry->SetTextFont(42); entry=leg->AddEntry("NULL","3000 fb^{-1}","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); leg->Draw(); TLatex * tex = new TLatex(0.27,0.83,"CMS-FLUKA Simulation"); tex->SetNDC(); tex->SetTextFont(61); tex->SetTextSize(0.045); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.27,0.81,"Preliminary"); tex->SetNDC(); tex->SetTextAlign(13); tex->SetTextFont(52); tex->SetTextSize(0.045); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.27,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.1875,0.9355401,"Absorbed Dose 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.27,0.71,"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); }