Ejemplo n.º 1
0
		for line in f:
			if line[0] == "#":
				continue
			line_contents = line.split()
			xs = float(line_contents[1])
			this_xss[float(line_contents[0])] = xs
			if xs > max_xs:
				max_xs = xs
			if xs < min_xs:
				min_xs = xs
		xs_graphs[sqrts] = TGraph(len(this_xss))
		for i, mass in enumerate(sorted(this_xss.keys())):
			xs_graphs[sqrts].SetPoint(i, mass, this_xss[mass])

xs_graphs[8].SetMarkerStyle(20)
xs_graphs[8].SetMarkerColor(seaborn_colors.get_root_color("Oranges_d", 1))
xs_graphs[8].SetLineColor(seaborn_colors.get_root_color("Oranges_d", 1))
xs_graphs[13].SetMarkerStyle(22)
xs_graphs[13].SetMarkerColor(seaborn_colors.get_root_color("Blues_d", 3))
xs_graphs[13].SetLineColor(seaborn_colors.get_root_color("Blues_d", 3))

c = TCanvas("c_reference_xses", "Reference #sigma", 800, 600)
c.SetLogy()
frame = TH1F("frame", "frame", 100, 0., 1500.)
frame.GetXaxis().SetTitle("m_{Z'} [GeV]")
frame.GetYaxis().SetTitle("#sigma(pp#rightarrow Z') [pb]")
frame.SetMinimum(min_xs / 10.)
frame.SetMaximum(max_xs * 10.)
frame.Draw()
xs_graphs[8].Draw("cp")
xs_graphs[13].Draw("cp")
Ejemplo n.º 2
0
from ROOT import TLine

# Set all the plot styling here
style = {
    "default": {
        "line_color": 1,
        "line_width": 2,
        "line_style": 1,
        "marker_style": 20,
        "marker_size": 0,
        "marker_color": 1,
        "fill_style": 0,
        "fill_color": 0,
    },
    "EXO16046_obs": {
        "line_color": seaborn_colors.get_root_color("Blues_d", 3),
        "line_style": 1,
        "fill_color": seaborn_colors.get_root_color("Blues_d", 3),
    },
    "EXO16056_narrow_obs": {
        "line_color": seaborn_colors.get_root_color("Reds_d", 2),
        "line_style": 1,
        "fill_color": seaborn_colors.get_root_color("Reds_d", 2),
    },
    "EXO16056_narrow_lowmass_obs": {
        "line_color": seaborn_colors.get_root_color("Reds_d", 5),
        "line_style": 1,
        "fill_color": seaborn_colors.get_root_color("Reds_d", 5),
    },
    "EXO16056_narrow_highmass_obs": {
        "line_color": seaborn_colors.get_root_color("Reds_d", 2),