diff --git a/python/PrepareConfigFilesForIFAEPlotter.py b/macros/macros_loic/PrepareConfigFilesForIFAEPlotter.py similarity index 94% rename from python/PrepareConfigFilesForIFAEPlotter.py rename to macros/macros_loic/PrepareConfigFilesForIFAEPlotter.py index 1dc015eca84b501d01933650a475d688db2f306b..c473cb037e701febc75c0f29ce5e2c34eb95a68e 100644 --- a/python/PrepareConfigFilesForIFAEPlotter.py +++ b/macros/macros_loic/PrepareConfigFilesForIFAEPlotter.py @@ -15,7 +15,7 @@ from Samples import * ## OPTIONS channels = ["./.",] dataLumi = (3212.96 + 33257.2) #in pb-1 -isMCMC = True +isMCMC = False dumpFiles = False lumiLabel = "%.1f fb^{-1}"%(dataLumi/1000.) ##........................................................ @@ -28,7 +28,7 @@ here = os.getcwd() ##________________________________________________________ ## Defining the paths and the tarball -inputDir="/nfs/pic.es/user/l/lvalery/scratch2/VLQAnalysisRun2/VLQAnalysisOutputs_MCMC_HighMETEvents_2017_02_23_1026/" +inputDir="/nfs/pic.es/user/l/lvalery/scratch2/VLQAnalysisRun2/VLQAnalysisOutputs_DataMC_WithNNLO_2017_04_07_1018/" outputDir = inputDir folderRootFiles=here+"/Rootfiles_Plots_" + now ##........................................................ @@ -41,7 +41,7 @@ os.system("mkdir -p " + folderRootFiles) ##________________________________________________________ ## Getting all samples and their associated weight/object systematics Samples = [] -#Samples += [{'type':"data",'pattern':["Data"]}] +Samples += [{'type':"data",'pattern':["Data_data.DAOD_TOPQ1"]}] Samples += [{'type':"ttbarlight",'pattern':["ttbarlight",]}] Samples += [{'type':"ttbarcc",'pattern':["ttbarcc",]}] Samples += [{'type':"ttbarbb",'pattern':["ttbarbb"]}] @@ -51,7 +51,7 @@ Samples += [{'type':"zjets",'pattern':["Z+jets22light","Z+jets22beauty","Z+jets2 Samples += [{'type':"singletop",'pattern':["Singletop",]}] Samples += [{'type':"dibosons",'pattern':["Dibosons",]}] Samples += [{'type':"ttX",'pattern':["topEW","ttH"]}] -#Samples += [{'type':"qcd",'pattern':["QCDE","QCDMU"]}] +Samples += [{'type':"qcd",'pattern':["QCDE","QCDMU"]}] if isMCMC: Samples += [{'type':"vlq_1000_doublet",'pattern':["VLQ_TT_1000_TDoublet",]}] Samples += [{'type':"vlq_1200_doublet",'pattern':["VLQ_TT_1200_TDoublet",]}] @@ -110,17 +110,22 @@ else: Variables += [{'name':"mtw"}] # Jet variables - Variables += [{'name':"jet0_pt"}] - Variables += [{'name':"jet0_eta"}] Variables += [{'name':"jets_pt"}] Variables += [{'name':"jets_eta"}] Variables += [{'name':"jets_phi"}] Variables += [{'name':"jets_btagw"}] Variables += [{'name':"jets_jvt"}] + for counter in range(0,5): + Variables += [{'name':"jet"+`counter`+"_pt"}] + Variables += [{'name':"jet"+`counter`+"_eta"}] + Variables += [{'name':"jet"+`counter`+"_phi"}] Variables += [{'name':"bjets_eta"}] Variables += [{'name':"bjets_pt"}] Variables += [{'name':"bjets_btagw"}] Variables += [{'name':"bjets_jvt"}] + for counter in range(0,4): + Variables += [{'name':"bjet"+`counter`+"_pt"}] + Variables += [{'name':"bjet"+`counter`+"_eta"}] # Lepton variables Variables += [{'name':"mus_pt"}] @@ -155,9 +160,9 @@ else: Variables += [{'name':"dPhi_jetmet"}] Variables += [{'name':"mbb_mindR"}] - Variables += [{'name':"lep0_pt"}] - Variables += [{'name':"lep0_pt_zoom"}] - Variables += [{'name':"lep0_eta"}] + # Variables += [{'name':"lep0_pt"}] + # Variables += [{'name':"lep0_pt_zoom"}] + # Variables += [{'name':"lep0_eta"}] #Variables += [{'name':"lep0_charge"}] Variables += [{'name':"mtbmin"}] @@ -213,9 +218,15 @@ Regions = [] # #Regions += [{'name':"c1lep"+jetmult+"1bex"+channel,'legend':"1l, "+jet_mult_legend+", 1b"+channel_label}] # #Regions += [{'name':"c1lep"+jetmult+"0bex"+channel,'legend':"1l, "+jet_mult_legend+", 0b"+channel_label}] # Regions += [{'name':"c0lep6jin2bin",'legend':"0l, #geq6j, #geq2b"}] + Regions = [] -for reg in fit_regions_1l: - Regions += [{'name':reg['name'],'legend':reg['legend']}] +Regions += [{'name':"c1lep4jin2bin",'legend':"1l, #geq 4j, #geq 2b"}] +Regions += [{'name':"c1lep4jin2bex",'legend':"1l, #geq 4j, 2b"}] +Regions += [{'name':"c1lep5jin2bin",'legend':"1l, #geq 4j, #geq 2b"}] +Regions += [{'name':"c1lep5jin2bex",'legend':"1l, #geq 4j, 2b"}] +# Regions = [] +# for reg in fit_regions_1l: +# Regions += [{'name':reg['name'],'legend':reg['legend']}] FullNameVariables = [] for var in Variables: for reg in Regions: