#set up everything here

# edit
MaxEventsPerTree=500
# edit
OutputDirectoryForMEMTrees="/nfs/dust/cms/user/kelmorab/wjetsMemOnBirds/"

InputDirectoryOfMEMTrees="/nfs/dust/cms/user/kelmorab/MEMInputTrees80x_ICHEP_V3wjetsrest/haddedTrees/"

#OutputDirectoryForMEMDatabase="/nfs/dust/cms/user/mwassmer/MEM_database_new/"
#OutputDirectoryForMEMDatabase_ETH="/nfs/dust/cms/user/mwassmer/MEM_database_ETH/"

cmsswpath='/nfs/dust/cms/user/kelmorab/MEMProd/CMSSW_8_0_19/'
#cmsswpath='/nfs/dust/cms/user/kelmi/CMSSW_8_0_19/'
looperpath='/nfs/dust/cms/user/kelmorab/MEMProd/CMSSW_8_0_19/src/TTH/CommonClassifier/crab/'
#looperpath='/nfs/dust/cms/user/mwassmer/CMSSW_8_0_19/src/TTH/CommonClassifier/crab/'
Samples=[
  
  	["WJets-HT-200-400nominal","WJets-HT-200-400*nominal.root",500],
  	["WJets-HT-200-400JESUP","WJets-HT-200-400*JESUP.root",500],
  	["WJets-HT-200-400JESDOWN","WJets-HT-200-400*JESDOWN.root",500],
  	["WJets-HT-200-400JERUP","WJets-HT-200-400*JERUP.root",500],
  	["WJets-HT-200-400JERDOWN","WJets-HT-200-400*JERDOWN.root",500],

	#["ttHbb_nominal","ttHbb*nominal.root",400000],
#["ttHnonbb_nominal","ttHnonbb*nominal.root",400000],
#["Tranche3_ttHbb_nominal","Tranche3_ttHbb*nominal.root",400000],
#["Tranche3_ttHnonbb_nominal","Tranche3_ttHnonbb*nominal.root",400000],
#["ttbar_incl_All_nominal","ttbar_incl_All*nominal.root",400000],
#["ttbar_SL_nominal","ttbar_SL*nominal.root",400000],
#["scaleDown_ttbar_SL_nominal","scaleDown_ttbar_SL*nominal.root",400000],
#["scaleDown_ttbar_incl_nominal","scaleDown_ttbar_incl*nominal.root",400000],
#["scaleUp_ttbar_SL_nominal","scaleUp_ttbar_SL*nominal.root",400000],
#["scaleUp_ttbar_incl_nominal","scaleUp_ttbar_incl*nominal.root",400000],
#["stbar_s-channel_nominal","stbar_s-channel*nominal.root",400000],
#["WW_nominal","WW*nominal.root",400000],
#["WZ_nominal","WZ*nominal.root",400000],
#["ZZ_nominal","ZZ*nominal.root",400000],
#["el_data_nominal","el_data*nominal.root",400000],
#["mu_data_nominal","mu_data*nominal.root",400000],
#["WJets-HT-800-1200_nominal","WJets-HT-800-1200*nominal.root",400000],
#["WJets-HT-600-800_nominal","WJets-HT-600-800*nominal.root",400000],
#["WJets-HT-400-600_nominal","WJets-HT-400-600*nominal.root",400000],
#["WJets-HT-2500-Inf_nominal","WJets-HT-2500-Inf*nominal.root",400000],
#["WJets-HT-1200-2500_nominal","WJets-HT-1200-2500*nominal.root",400000],
#["WJets-HT-100-200_nominal","WJets-HT-100-200*nominal.root",400000],
#["WJets-HT-200-400_nominal","WJets-HT-200-400*nominal.root",400000],
#["ttHbb_JESUP","ttHbb*JESUP.root",400000],
#["ttHnonbb_JESUP","ttHnonbb*JESUP.root",400000],
#["Tranche3_ttHbb_JESUP","Tranche3_ttHbb*JESUP.root",400000],
#["Tranche3_ttHnonbb_JESUP","Tranche3_ttHnonbb*JESUP.root",400000],
#["ttbar_incl_All_JESUP","ttbar_incl_All*JESUP.root",400000],
#["ttbar_SL_JESUP","ttbar_SL*JESUP.root",400000],
#["scaleDown_ttbar_SL_JESUP","scaleDown_ttbar_SL*JESUP.root",400000],
#["scaleDown_ttbar_incl_JESUP","scaleDown_ttbar_incl*JESUP.root",400000],
#["scaleUp_ttbar_SL_JESUP","scaleUp_ttbar_SL*JESUP.root",400000],
#["scaleUp_ttbar_incl_JESUP","scaleUp_ttbar_incl*JESUP.root",400000],
#["stbar_s-channel_JESUP","stbar_s-channel*JESUP.root",400000],
#["WW_JESUP","WW*JESUP.root",400000],
#["WZ_JESUP","WZ*JESUP.root",400000],
#["ZZ_JESUP","ZZ*JESUP.root",400000],
#["WJets-HT-800-1200_JESUP","WJets-HT-800-1200*JESUP.root",400000],
#["WJets-HT-600-800_JESUP","WJets-HT-600-800*JESUP.root",400000],
#["WJets-HT-400-600_JESUP","WJets-HT-400-600*JESUP.root",400000],
#["WJets-HT-2500-Inf_JESUP","WJets-HT-2500-Inf*JESUP.root",400000],
#["WJets-HT-1200-2500_JESUP","WJets-HT-1200-2500*JESUP.root",400000],
#["WJets-HT-100-200_JESUP","WJets-HT-100-200*JESUP.root",400000],
#["WJets-HT-200-400_JESUP","WJets-HT-200-400*JESUP.root",400000],
#["ttHbb_JESDOWN","ttHbb*JESDOWN.root",400000],
#["ttHnonbb_JESDOWN","ttHnonbb*JESDOWN.root",400000],
#["Tranche3_ttHbb_JESDOWN","Tranche3_ttHbb*JESDOWN.root",400000],
#["Tranche3_ttHnonbb_JESDOWN","Tranche3_ttHnonbb*JESDOWN.root",400000],
#["ttbar_incl_All_JESDOWN","ttbar_incl_All*JESDOWN.root",400000],
#["ttbar_SL_JESDOWN","ttbar_SL*JESDOWN.root",400000],
#["scaleDown_ttbar_SL_JESDOWN","scaleDown_ttbar_SL*JESDOWN.root",400000],
#["scaleDown_ttbar_incl_JESDOWN","scaleDown_ttbar_incl*JESDOWN.root",400000],
#["scaleUp_ttbar_SL_JESDOWN","scaleUp_ttbar_SL*JESDOWN.root",400000],
#["scaleUp_ttbar_incl_JESDOWN","scaleUp_ttbar_incl*JESDOWN.root",400000],
#["stbar_s-channel_JESDOWN","stbar_s-channel*JESDOWN.root",400000],
#["WW_JESDOWN","WW*JESDOWN.root",400000],
#["WZ_JESDOWN","WZ*JESDOWN.root",400000],
#["ZZ_JESDOWN","ZZ*JESDOWN.root",400000],
#["WJets-HT-800-1200_JESDOWN","WJets-HT-800-1200*JESDOWN.root",400000],
#["WJets-HT-600-800_JESDOWN","WJets-HT-600-800*JESDOWN.root",400000],
#["WJets-HT-400-600_JESDOWN","WJets-HT-400-600*JESDOWN.root",400000],
#["WJets-HT-2500-Inf_JESDOWN","WJets-HT-2500-Inf*JESDOWN.root",400000],
#["WJets-HT-1200-2500_JESDOWN","WJets-HT-1200-2500*JESDOWN.root",400000],
#["WJets-HT-100-200_JESDOWN","WJets-HT-100-200*JESDOWN.root",400000],
#["WJets-HT-200-400_JESDOWN","WJets-HT-200-400*JESDOWN.root",400000],
#["ttHbb_JERUP","ttHbb*JERUP.root",400000],
#["ttHnonbb_JERUP","ttHnonbb*JERUP.root",400000],
#["Tranche3_ttHbb_JERUP","Tranche3_ttHbb*JERUP.root",400000],
#["Tranche3_ttHnonbb_JERUP","Tranche3_ttHnonbb*JERUP.root",400000],
#["ttbar_incl_All_JERUP","ttbar_incl_All*JERUP.root",400000],
#["ttbar_SL_JERUP","ttbar_SL*JERUP.root",400000],
#["scaleDown_ttbar_SL_JERUP","scaleDown_ttbar_SL*JERUP.root",400000],
#["scaleDown_ttbar_incl_JERUP","scaleDown_ttbar_incl*JERUP.root",400000],
#["scaleUp_ttbar_SL_JERUP","scaleUp_ttbar_SL*JERUP.root",400000],
#["WW_JERUP","WW*JERUP.root",400000],
#["scaleUp_ttbar_incl_JERUP","scaleUp_ttbar_incl*JERUP.root",400000],
#["stbar_s-channel_JERUP","stbar_s-channel*JERUP.root",400000],
#["WZ_JERUP","WZ*JERUP.root",400000],
#["ZZ_JERUP","ZZ*JERUP.root",400000],
#["WJets-HT-800-1200_JERUP","WJets-HT-800-1200*JERUP.root",400000],
#["WJets-HT-600-800_JERUP","WJets-HT-600-800*JERUP.root",400000],
#["WJets-HT-400-600_JERUP","WJets-HT-400-600*JERUP.root",400000],
#["WJets-HT-2500-Inf_JERUP","WJets-HT-2500-Inf*JERUP.root",400000],
#["WJets-HT-1200-2500_JERUP","WJets-HT-1200-2500*JERUP.root",400000],
#["WJets-HT-100-200_JERUP","WJets-HT-100-200*JERUP.root",400000],
#["WJets-HT-200-400_JERUP","WJets-HT-200-400*JERUP.root",400000],
#["ttHbb_JERDOWN","ttHbb*JERDOWN.root",400000],
#["ttHnonbb_JERDOWN","ttHnonbb*JERDOWN.root",400000],
#["Tranche3_ttHbb_JERDOWN","Tranche3_ttHbb*JERDOWN.root",400000],
#["Tranche3_ttHnonbb_JERDOWN","Tranche3_ttHnonbb*JERDOWN.root",400000],
#["ttbar_incl_All_JERDOWN","ttbar_incl_All*JERDOWN.root",400000],
#["ttbar_SL_JERDOWN","ttbar_SL*JERDOWN.root",400000],
#["scaleDown_ttbar_SL_JERDOWN","scaleDown_ttbar_SL*JERDOWN.root",400000],
#["scaleDown_ttbar_incl_JERDOWN","scaleDown_ttbar_incl*JERDOWN.root",400000],
#["scaleUp_ttbar_SL_JERDOWN","scaleUp_ttbar_SL*JERDOWN.root",400000],
#["scaleUp_ttbar_incl_JERDOWN","scaleUp_ttbar_incl*JERDOWN.root",400000],
#["stbar_s-channel_JERDOWN","stbar_s-channel*JERDOWN.root",400000],
#["WW_JERDOWN","WW*JERDOWN.root",400000],
#["WZ_JERDOWN","WZ*JERDOWN.root",400000],
#["ZZ_JERDOWN","ZZ*JERDOWN.root",400000],
#["WJets-HT-800-1200_JERDOWN","WJets-HT-800-1200*JERDOWN.root",400000],
#["WJets-HT-600-800_JERDOWN","WJets-HT-600-800*JERDOWN.root",400000],
#["WJets-HT-400-600_JERDOWN","WJets-HT-400-600*JERDOWN.root",400000],
#["WJets-HT-2500-Inf_JERDOWN","WJets-HT-2500-Inf*JERDOWN.root",400000],
#["WJets-HT-1200-2500_JERDOWN","WJets-HT-1200-2500*JERDOWN.root",400000],
#["WJets-HT-100-200_JERDOWN","WJets-HT-100-200*JERDOWN.root",400000],
#["WJets-HT-200-400_JERDOWN","WJets-HT-200-400*JERDOWN.root",400000],
#["st_tchan_nominal","st_tchan*nominal.root",400000],
#["stbar_tchan_nominal","stbar_tchan*nominal.root",400000],
#["st_tWchan_nominal","st_tWchan*nominal.root",400000],
#["stbar_tWchan_nominal","stbar_tWchan*nominal.root",400000],
#["st_tchan_JESUP","st_tchan*JESUP.root",400000],
#["stbar_tchan_JESUP","stbar_tchan*JESUP.root",400000],
#["st_tWchan_JESUP","st_tWchan*JESUP.root",400000],
#["stbar_tWchan_JESUP","stbar_tWchan*JESUP.root",400000],
#["st_tchan_JESDOWN","st_tchan*JESDOWN.root",400000],
#["stbar_tchan_JESDOWN","stbar_tchan*JESDOWN.root",400000],
#["st_tWchan_JESDOWN","st_tWchan*JESDOWN.root",400000],
#["stbar_tWchan_JESDOWN","stbar_tWchan*JESDOWN.root",400000],
#["st_tchan_JERUP","st_tchan*JERUP.root",400000],
#["stbar_tchan_JERUP","stbar_tchan*JERUP.root",400000],
#["st_tWchan_JERUP","st_tWchan*JERUP.root",400000],
#["stbar_tWchan_JERUP","stbar_tWchan*JERUP.root",400000],
#["st_tchan_JERDOWN","st_tchan*JERDOWN.root",400000],
#["stbar_tchan_JERDOWN","stbar_tchan*JERDOWN.root",400000],
#["st_tWchan_JERDOWN","st_tWchan*JERDOWN.root",400000],
#["stbar_tWchan_JERDOWN","stbar_tWchan*JERDOWN.root",400000],
#["Zjets_m50toInf_JERDOWN","Zjets_m50toInf*JERDOWN.root",400000],
#["Zjets_m50toInf_JERUP","Zjets_m50toInf*JERUP.root",400000],
#["Zjets_m50toInf_JESDOWN","Zjets_m50toInf*JESDOWN.root",400000],
#["Zjets_m50toInf_JESUP","Zjets_m50toInf*JESUP.root",400000],
#["Zjets_m50toInf_nominal","Zjets_m50toInf*nominal.root",400000],
#["ttW_JetToLNu_JERDOWN","ttW_JetToLNu*JERDOWN.root",400000],
#["ttW_JetToLNu_JERUP","ttW_JetToLNu*JERUP.root",400000],
#["ttW_JetToLNu_JESDOWN","ttW_JetToLNu*JESDOWN.root",400000],
#["ttW_JetToLNu_JESUP","ttW_JetToLNu*JESUP.root",400000],
#["ttW_JetToLNu_nominal","ttW_JetToLNu*nominal.root",400000],
#["ttW_JetToQQ_JERDOWN","ttW_JetToQQ*JERDOWN.root",400000],
#["ttW_JetToQQ_JERUP","ttW_JetToQQ*JERUP.root",400000],
#["ttW_JetToQQ_JESDOWN","ttW_JetToQQ*JESDOWN.root",400000],
#["ttW_JetToQQ_JESUP","ttW_JetToQQ*JESUP.root",400000],
#["ttW_JetToQQ_nominal","ttW_JetToQQ*nominal.root",400000],
#["ttZ_ToQQ_JERDOWN","ttZ_ToQQ*JERDOWN.root",400000],
#["ttZ_ToQQ_JERUP","ttZ_ToQQ*JERUP.root",400000],
#["ttZ_ToQQ_JESDOWN","ttZ_ToQQ*JESDOWN.root",400000],
#["ttZ_ToQQ_JESUP","ttZ_ToQQ*JESUP.root",400000],
#["ttZ_ToQQ_nominal","ttZ_ToQQ*nominal.root",400000],


]
