Exemplo n.º 1
0
 def saveMVAPlots(self,outputdir):
     Drawer.set_palette("simple", 127)
     save = '/playground/ThesisPlots/MVATraining/%s/' % outputdir
     cfg = 'plotconfigs/MVAHists.xml'
     f = open(cfg)
     cfg = f.read()
     f.close()
     Macro.savePlotsFromCfg(cfg, save)
Exemplo n.º 2
0
        if "macro" in what:        
            self.saveMacroPlots("")
        if "MVA" in what:
            self.saveMVAPlots('')
        if "shapes" in what:
            self.saveShapePlots('')
#    saveAllPlots = staticmethod(saveAllPlots)

if __name__ == '__main__':
#===============================================================================
#    delete the Latex file if it exists
#===============================================================================
    if os.path.exists('MacroTables.tex'):
        os.remove('MacroTables.tex')
    gROOT.Reset()
    Drawer.set_palette('', 999)
    TGaxis.SetMaxDigits(3)
#===============================================================================
#    for white background
#===============================================================================
    gROOT.SetStyle("Plain")
    gROOT.SetBatch(True)
    #set color palette for TH2F
#    inputfiles = {}
#    folder = '/playground/rootfiles/FINAL/'
#    inputfiles['qcd'] = folder + "qcdmu_20j20m.root"
#    inputfiles['top'] = folder + "top_20j20m.root"
#    inputfiles['wjets'] = folder + "wjets_20j20m.root"
    inputdirs = ["all", "jetIso", "calo", "track"]
#    inputs = {}
#    inputs['qcd'] = folder + "qcdmu_20j20m.root"