Beispiel #1
0
    def defineStyle(self):

        print "=================="
        import LatinoAnalysis.ShapeAnalysis.tdrStyle as tdrStyle
        tdrStyle.setTDRStyle()
        
        ROOT.TGaxis.SetExponentOffset(-0.08, 0.00,"y")
    count_dict[cut]['ones'] = count_dict[cut]['nominal'].Clone()
    count_dict[cut]['ones'].Divide(count_dict[cut]['nominal'])

    count_dict[cut]['r_err_up'] = count_dict[cut]['err_up'].Clone()
    count_dict[cut]['r_err_up'].Divide(count_dict[cut]['nominal'])

    count_dict[cut]['r_err_do'] = count_dict[cut]['err_do'].Clone()
    count_dict[cut]['r_err_do'].Divide(count_dict[cut]['nominal'])
    count_dict[cut]['r_tge'] = hists_2_tge(count_dict[cut]['ones'], count_dict[cut]['r_err_up'], count_dict[cut]['r_err_do'])

# Now start plotting
canvas = {}

# Set style
tdrStyle.setTDRStyle()
ROOT.TGaxis.SetExponentOffset(-0.03, 0.00,"y")
def set_axis_style(hist):
    xaxis = hist.GetXaxis()
    xaxis.SetLabelFont ( 42)
    xaxis.SetLabelOffset( 0.025)
    xaxis.SetLabelSize ( 0.1)
    xaxis.SetNdivisions ( 505)
    xaxis.SetTitleFont ( 42)
    xaxis.SetTitleOffset( 1.35)   
    xaxis.SetTitleSize ( 0.11)
    
    yaxis = hist.GetYaxis()
    yaxis.CenterTitle ( )
    yaxis.SetLabelFont ( 42)
    yaxis.SetLabelOffset( 0.02)
Beispiel #3
0
    def defineStyle(self):

        print "=================="
        import LatinoAnalysis.ShapeAnalysis.tdrStyle as tdrStyle
        tdrStyle.setTDRStyle()