T2tt_exp_smooth.Smooth() T2tt_exp_up_smooth.Smooth() T2tt_exp_down_smooth.Smooth() T2tt_obs_smooth.SetName("T2tt_obs_smooth") T2tt_obs_up_smooth.SetName("T2tt_obs_up_smooth") T2tt_obs_down_smooth.SetName("T2tt_obs_down_smooth") T2tt_exp_smooth.SetName("T2tt_exp_smooth") T2tt_exp_up_smooth.SetName("T2tt_exp_up_smooth") T2tt_exp_down_smooth.SetName("T2tt_exp_down_smooth") ROOT.gStyle.SetPadRightMargin(0.15) c1 = ROOT.TCanvas() niceColorPalette(255) contours_exp = getContours(T2tt_exp_smooth) contours_exp_up = getContours(T2tt_exp_up_smooth) contours_exp_down = getContours(T2tt_exp_down_smooth) contours_obs = getContours(T2tt_obs_smooth) contours_obs_up = getContours(T2tt_obs_up_smooth) contours_obs_down = getContours(T2tt_obs_down_smooth) for cs in [contours_exp, contours_exp_up, contours_exp_down, contours_obs, contours_obs_up, contours_obs_down]: for css in cs: cleanContour(css) contour_exp = max(contours_exp , key=lambda x:x.GetN()).Clone("contour_exp") contour_exp_up = max(contours_exp_up , key=lambda x:x.GetN()).Clone("contour_exp_up") contour_exp_down = max(contours_exp_down, key=lambda x:x.GetN()).Clone("contour_exp_down") contour_obs = max(contours_obs , key=lambda x:x.GetN()).Clone("contour_obs") contour_obs_up = max(contours_obs_up , key=lambda x:x.GetN()).Clone("contour_obs_up")
files = [] legendNames={} for f in options.filenames.split(','): if ":" in f: n,f=f.split(":") files.append(f) legendNames[f]=n contours = {} for i, f in enumerate(files): T2tt_exp = getObjFromFile(f, "T2tt_exp") T2tt_exp_int = interpolate(T2tt_exp) T2tt_exp_smooth = T2tt_exp_int.Clone("T2tt_exp_smooth") T2tt_exp_smooth.Smooth() T2tt_exp_smooth.SetName("T2tt_exp_smooth") contours_exp = getContours(T2tt_exp_smooth) contour_exp = max(contours_exp , key=lambda x:x.GetN()).Clone("contour_exp") if contours_exp else None if not contour_exp: continue cleanContour(contour_exp) contours[f]=contour_exp contours[f].SetLineColor(ROOT_colors[i]) contours[f].SetFillColor(0) contours[f].SetMarkerStyle(0) contours[f].SetMarkerColor(ROOT_colors[i]) ROOT.gStyle.SetPadRightMargin(0.15) c1 = ROOT.TCanvas() niceColorPalette(255) l=ROOT.TLegend(0.16,0.13,0.4,0.5)