#!/usr/bin/env python

import os
import sys
sys.path.append('%s/TntMaker/' % os.environ['BASE_WORK_DIR'])
import RunTntMaker

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

    print 'file list: %s' % file_list

    print ''
    print 'About to run TntMaker'
    RunTntMaker.runTntMaker( file_list = file_list
                           , is_data = False
                           , is_full_sim = True
                           # , tree_name = 'susy'
                           # , dsid = 110825
                           # , out_file_special_name = '110825.ZtautaubbNp0'
                           )
    RunHelpers.addSamplesToList( sample_dict = {'label':'202641.MadGraphPythia_AUET2B_CTEQ6L1_SM_TT_directBL_1000' , 'num_jobs':1}
                               , data_set_dicts = data_set_dicts
                               # , file_list_path = '%s/EosFileLists/local/raw_d3pd.202641.MadGraphPythia_AUET2B_CTEQ6L1_SM_TT_directBL_1000.txt' % os.environ['BASE_WORK_DIR']
                               , file_list_path = 'EosFileLists/local/raw_d3pd.202641.MadGraphPythia_AUET2B_CTEQ6L1_SM_TT_directBL_1000.txt'
                               , is_data = False
                               , is_egamma_stream = False
                               , is_full_sim = False
                               , dsid = 202641
                               , out_dir = 'local_tnt'
                               )

    print ''
    print data_set_dicts
    print ''
    RunTntMaker.runTntMaker( file_list = data_set_dicts[0]['file_list']
                           , is_data = False
                           , is_full_sim = False
                           )

    # # file_list = RunTntMaker.getFileListFromFile('%s/EosFileLists/local/raw_d3pd.202641.MadGraphPythia_AUET2B_CTEQ6L1_SM_TT_directBL_1000.txt' % os.environ['BASE_WORK_DIR'])
    # # file_list = file_list[:1]

    # print 'file list: %s' % file_list

    # print ''
    # print 'About to run TntMaker'
    # RunTntMaker.runTntMaker( file_list = file_list
    #                        , is_data = False
    #                        # , is_full_sim = True
    #                        , is_full_sim = False
    #                        # , tree_name = 'susy'
    #                        # , dsid = 105200
#!/usr/bin/env python

import RunTntMaker
import os

# ==============================================================================
if __name__ == '__main__':
    base_work_dir = os.environ['BASE_WORK_DIR']
    # file_list = RunTntMaker.getFileListFromDir('%s/../mc12/mc12_8TeV.116600.gg2ZZJimmy_AUET2CT10_ZZ4lep.merge.NTUP_SUSY.e1525_s1499_s1504_r3658_r3549_p1512_tid01267663_00/' % base_work_dir)
    file_list = RunTntMaker.getFileListFromDir('%s/../mc12/mc12_8TeV.105200.McAtNloJimmy_CT10_ttbar_LeptonFilter.merge.NTUP_SUSY.e1513_a159_a171_r3549_p1512_tid01267512_00/' % base_work_dir)
    print file_list

    RunTntMaker.runTntMaker( file_list = file_list
                           , is_data = False
                           , is_full_sim = False
                           )
#!/usr/bin/env python

import RunTntMaker

# ==============================================================================
if __name__ == '__main__':
    file_list = RunTntMaker.getFileListFromDir('/afs/cern.ch/user/b/bjackson/my_eos/mc12/mc12_8TeV.105200.McAtNloJimmy_CT10_ttbar_LeptonFilter.merge.NTUP_SUSY.e1513_a159_a171_r3549_p1512_tid01267512_00/')
    # /afs/cern.ch/user/b/bjackson/my_eos/mc12/mc12_8TeV.105200.McAtNloJimmy_CT10_ttbar_LeptonFilter.merge.NTUP_SUSY.e1513_a159_a171_r3549_p1512_tid01267513_00/
    # /afs/cern.ch/user/b/bjackson/my_eos/mc12/mc12_8TeV.105200.McAtNloJimmy_CT10_ttbar_LeptonFilter.merge.NTUP_SUSY.e1513_a159_a171_r3549_p1512_tid01267514_00/
    # /afs/cern.ch/user/b/bjackson/my_eos/mc12/mc12_8TeV.105200.McAtNloJimmy_CT10_ttbar_LeptonFilter.merge.NTUP_SUSY.e1513_a159_a171_r3549_p1512_tid01267515_00/
    # /afs/cern.ch/user/b/bjackson/my_eos/mc12/mc12_8TeV.105200.McAtNloJimmy_CT10_ttbar_LeptonFilter.merge.NTUP_SUSY.e1513_a159_a171_r3549_p1512_tid01267516_00/
    # /afs/cern.ch/user/b/bjackson/my_eos/mc12/mc12_8TeV.105200.McAtNloJimmy_CT10_ttbar_LeptonFilter.merge.NTUP_SUSY.e1513_a159_a171_r3549_p1512_tid01267517_00/
    # /afs/cern.ch/user/b/bjackson/my_eos/mc12/mc12_8TeV.105200.McAtNloJimmy_CT10_ttbar_LeptonFilter.merge.NTUP_SUSY.e1513_a159_a171_r3549_p1512_tid01267518_00/
    # /afs/cern.ch/user/b/bjackson/my_eos/mc12/mc12_8TeV.105200.McAtNloJimmy_CT10_ttbar_LeptonFilter.merge.NTUP_SUSY.e1513_a159_a171_r3549_p1512_tid01306755_00/
    # /afs/cern.ch/user/b/bjackson/my_eos/mc12/mc12_8TeV.105200.McAtNloJimmy_CT10_ttbar_LeptonFilter.merge.NTUP_SUSY.e1513_a159_a171_r3549_p1512_tid01306756_00/
    # /afs/cern.ch/user/b/bjackson/my_eos/mc12/mc12_8TeV.105200.McAtNloJimmy_CT10_ttbar_LeptonFilter.merge.NTUP_SUSY.e1513_a159_a171_r3549_p1512_tid01306757_00/
    # /afs/cern.ch/user/b/bjackson/my_eos/mc12/mc12_8TeV.105200.McAtNloJimmy_CT10_ttbar_LeptonFilter.merge.NTUP_SUSY.e1513_a159_a171_r3549_p1512_tid01306758_00/
    # /afs/cern.ch/user/b/bjackson/my_eos/mc12/mc12_8TeV.105200.McAtNloJimmy_CT10_ttbar_LeptonFilter.merge.NTUP_SUSY.e1513_a159_a171_r3549_p1512_tid01306759_00/
    # /afs/cern.ch/user/b/bjackson/my_eos/mc12/mc12_8TeV.105200.McAtNloJimmy_CT10_ttbar_LeptonFilter.merge.NTUP_SUSY.e1513_a159_a171_r3549_p1512_tid01306760_00/

    RunTntMaker.runTntMaker( file_list = file_list
                           , is_data = False
                           , is_full_sim = True
                           )

#!/usr/bin/env python

import RunTntMaker
import os

# ==============================================================================
if __name__ == '__main__':
    base_work_dir = os.environ['BASE_WORK_DIR']
    file_list = RunTntMaker.getFileListFromDir('%s/../data12/' % base_work_dir)
    print file_list

    RunTntMaker.runTntMaker( file_list = file_list
                           , is_data = True
                           # , is_full_sim = False
                           )
#!/usr/bin/env python

import os
import sys
sys.path.append('%s/TntMaker/' % os.environ['BASE_WORK_DIR'])
import RunTntMaker

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

    print 'file list: %s' % file_list

    print ''
    print 'About to run TntMaker'
    RunTntMaker.runTntMaker( 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'
                           )