def runBMinusLAnalysisFun(data_set_dict):
    print "label: %s" % data_set_dict["label"]
    print "file_list: %s" % data_set_dict["label"]
    print "is data: %s" % data_set_dict["is_data"]
    print "is full sim: %s" % data_set_dict["is_full_sim"]
    print "dsid: %s" % data_set_dict["dsid"]

    print "lep_pt_cut : %s" % data_set_dict["lep_pt_cut"]
    print "jet_pt_cut : %s" % data_set_dict["jet_pt_cut"]
    print "met_cut    : %s" % data_set_dict["met_cut"]

    print "About to run BMinusLAnalysis"
    RunBMinusLAnalysis.runBMinusLAnalysis(
        file_list=data_set_dict["file_list"],
        is_data=data_set_dict["is_data"],
        is_full_sim=data_set_dict["is_full_sim"],
        tree_name="TNT",
        dsid=data_set_dict["dsid"],
        out_file_special_name=data_set_dict["label"],
        is_tnt=True,
        lep_pt_cut=data_set_dict["lep_pt_cut"],
        jet_pt_cut=data_set_dict["jet_pt_cut"],
        met_cut=data_set_dict["met_cut"],
        fancy_progress_bar=False,
    )
def makeDataSetDict(label_base, file_list_path, is_data, is_full_sim, dsid, lep_pt_cut, jet_pt_cut, met_cut):
    label = "%s.%s" % (dsid, label_base)
    label += "__lep_pt_%s" % lep_pt_cut
    label += "__jet_pt_%s" % jet_pt_cut
    label += "__met_%s" % met_cut

    return {
        "label": label,
        "file_list": RunBMinusLAnalysis.getFileListFromFile("%s/%s" % (os.environ["BASE_WORK_DIR"], file_list_path)),
        "is_data": is_data,
        "is_full_sim": is_full_sim,
        "dsid": dsid,
        "lep_pt_cut": lep_pt_cut,
        "jet_pt_cut": jet_pt_cut,
        "met_cut": met_cut,
    }
#!/usr/bin/env python

import RunBMinusLAnalysis
import os

# ==============================================================================
if __name__ == '__main__':
    print 'getting file list'
    file_list = RunBMinusLAnalysis.getFileListFromFile("%s/EosFileLists/d3pd.110819.ZeebbNp2.txt" % os.environ["BASE_WORK_DIR"])
    # file_list = file_list[:10]

    print 'file list: %s' % file_list

    print ''
    print 'About to run BMinusLAnalysis'
    RunBMinusLAnalysis.runBMinusLAnalysis( file_list = file_list
                                         , is_data = False
                                         , is_full_sim = True
                                         , tree_name = 'susy'
                                         , dsid = 110819
                                         , out_file_special_name = '110819.ZeebbNp2'
                                         )
#!/usr/bin/env python

import RunBMinusLAnalysis
import os

# ==============================================================================
if __name__ == "__main__":
    print "getting file list"
    file_list = RunBMinusLAnalysis.getFileListFromFile(
        "%s/EosFileLists/d3pd.110821.ZmumubbNp0.txt" % os.environ["BASE_WORK_DIR"]
    )
    # file_list = file_list[:10]

    print "file list: %s" % file_list

    print ""
    print "About to run BMinusLAnalysis"
    RunBMinusLAnalysis.runBMinusLAnalysis(
        file_list=file_list,
        is_data=False,
        is_full_sim=True,
        tree_name="susy",
        dsid=110821,
        out_file_special_name="110821.ZmumubbNp0",
    )
#!/usr/bin/env python

import RunBMinusLAnalysis

# ==============================================================================
if __name__ == '__main__':
    print 'getting file list'
    file_list = RunBMinusLAnalysis.getFileListFromDir('/afs/cern.ch/user/b/bjackson/my_eos/data12/')
    print 'file list: %s' % file_list

    print 'About to run BMinusLAnalysis'
    RunBMinusLAnalysis.runBMinusLAnalysis( file_list = file_list
                                         , is_data = True
                                         , is_full_sim = False
                                         )
#!/usr/bin/env python

import RunBMinusLAnalysis

# ==============================================================================
if __name__ == '__main__':
    print 'getting file list'
    # file_list = RunBMinusLAnalysis.getFileListFromDir('/Users/bjackson/work/PennSusyFrame.00.03.13/Tnt.root')
    file_list = ['/Users/bjackson/work/PennSusyFrame.00.03.13/Tnt.root']
    # file_list = file_list[:1]
    print 'file list: %s' % file_list

    print 'About to run BMinusLAnalysis'
    RunBMinusLAnalysis.runBMinusLAnalysis( file_list = file_list
                                         , is_data = False
                                         , is_full_sim = True
                                         , tree_name = 'TNT'
                                         , dsid = 105200
                                         , out_file_special_name = 'ttbar'
                                         , is_tnt = True
                                         )
#!/usr/bin/env python

import RunBMinusLAnalysis

# ==============================================================================
if __name__ == '__main__':
    print 'getting file list'
    file_list = RunBMinusLAnalysis.getFileListFromDir('/afs/cern.ch/user/b/bjackson/my_eos/mc12/mc12_8TeV.116600.gg2ZZJimmy_AUET2CT10_ZZ4lep.merge.NTUP_SUSY.e1525_s1499_s1504_r3658_r3549_p1512_tid01267663_00/')
    file_list = RunBMinusLAnalysis.getFileListFromFile("%s/EosFileLists/d3pd.116600.ZZ4lep.txt" % os.environ["BASE_WORK_DIR"]) 
    print 'file list: %s' % file_list

    print 'About to run BMinusLAnalysis'
    RunBMinusLAnalysis.runBMinusLAnalysis( file_list = file_list
                                         , is_data = False
                                         , is_full_sim = True
                                         , dsid = 116600
                                         , out_file_special_name = 'ZZ4lep'
                                         )


#!/usr/bin/env python

import RunBMinusLAnalysis

# ==============================================================================
if __name__ == '__main__':
    print 'getting file list'
    file_list = RunBMinusLAnalysis.getFileListFromDir('/Users/bjackson/work/mc12/mc12_8TeV.105200.McAtNloJimmy_CT10_ttbar_LeptonFilter.merge.NTUP_SUSY.e1513_a159_a171_r3549_p1512_tid01267512_00/')
    file_list = file_list[:1]
    print 'file list: %s' % file_list

    print 'About to run BMinusLAnalysis'
    RunBMinusLAnalysis.runBMinusLAnalysis( file_list = file_list
                                         , is_data = False
                                         , is_full_sim = True
                                         , dsid = 105200
                                         , out_file_special_name = 'ttbar'
                                         )
#!/usr/bin/env python

import RunBMinusLAnalysis
import os

# ==============================================================================
if __name__ == "__main__":
    print "getting file list"

    data_set_dicts = {}
    data_set_dicts["105200.ttbar"] = {
        "file_list": RunBMinusLAnalysis.getFileListFromFile(
            "%s/EosFileLists/tnt_local.105200.ttbar.txt" % os.environ["BASE_WORK_DIR"]
        ),
        "is_data": False,
        "is_full_sim": False,
        "dsid": 105200,
    }
    data_set_dicts["110817.ZeebbNp0"] = {
        "file_list": RunBMinusLAnalysis.getFileListFromFile(
            "%s/EosFileLists/tnt_local.110817.ZeebbNp0.txt" % os.environ["BASE_WORK_DIR"]
        ),
        "is_data": False,
        "is_full_sim": True,
        "dsid": 110817,
    }
    data_set_dicts["110818.ZeebbNp1"] = {
        "file_list": RunBMinusLAnalysis.getFileListFromFile(
            "%s/EosFileLists/tnt_local.110818.ZeebbNp1.txt" % os.environ["BASE_WORK_DIR"]
        ),
        "is_data": False,
#!/usr/bin/env python

import RunBMinusLAnalysis

# ==============================================================================
if __name__ == '__main__':
    print 'getting file list'
    file_list = RunBMinusLAnalysis.getFileListFromDir('/Users/bjackson/work/mc12/mc12_8TeV.116600.gg2ZZJimmy_AUET2CT10_ZZ4lep.merge.NTUP_SUSY.e1525_s1499_s1504_r3658_r3549_p1512_tid01267663_00/')
    # file_list = file_list[:1]
    print 'file list: %s' % file_list

    print 'About to run BMinusLAnalysis'
    RunBMinusLAnalysis.runBMinusLAnalysis( file_list = file_list
                                         , is_data = False
                                         , is_full_sim = True
                                         , dsid = 116600
                                         , out_file_special_name = 'ZZ4lep'
                                         )
#!/usr/bin/env python

import RunBMinusLAnalysis
import os

# ==============================================================================
if __name__ == "__main__":
    print "getting file list"
    file_list = RunBMinusLAnalysis.getFileListFromFile(
        "%s/EosFileLists/d3pd.105200.ttbar.txt" % os.environ["BASE_WORK_DIR"]
    )
    # file_list = file_list[:1]
    # file_list = file_list[15:16]

    print "file list: %s" % file_list

    print ""
    print "About to run BMinusLAnalysis"
    RunBMinusLAnalysis.runBMinusLAnalysis(
        file_list=file_list,
        is_data=False
        # , is_full_sim = True
        ,
        is_full_sim=False,
        tree_name="susy",
        dsid=105200,
        out_file_special_name="105200.ttbar",
    )