From 40237e7cba5288577e5b49cbf262860105616218 Mon Sep 17 00:00:00 2001
From: "lvalery@ifae.es" <lvalery@at301.pic.es>
Date: Thu, 20 Apr 2017 11:40:57 +0200
Subject: [PATCH] Move macros to dump the IFP config files

---
 .../PrepareConfigFilesForIFAEPlotter.py       | 33 ++++++++++++-------
 1 file changed, 22 insertions(+), 11 deletions(-)
 rename {python => macros/macros_loic}/PrepareConfigFilesForIFAEPlotter.py (94%)

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 1dc015e..c473cb0 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:
-- 
GitLab