From c3acfeae39ec044f5ba395c4a86c27e00d6845e5 Mon Sep 17 00:00:00 2001 From: rkansal47 Date: Sat, 11 Nov 2023 17:34:14 -0600 Subject: [PATCH] remove print statements --- src/HHbbVV/postprocessing/CreateDatacard.py | 1 - src/HHbbVV/postprocessing/postprocessing.py | 4 ++-- src/HHbbVV/processors/bbVVSkimmer.py | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/HHbbVV/postprocessing/CreateDatacard.py b/src/HHbbVV/postprocessing/CreateDatacard.py index f2f42c11..bb8b63e1 100644 --- a/src/HHbbVV/postprocessing/CreateDatacard.py +++ b/src/HHbbVV/postprocessing/CreateDatacard.py @@ -1178,7 +1178,6 @@ def createDatacardABCD(args, templates_dict, templates_summed, shape_vars): if args.model_name is not None else args.cards_dir ) - print(out_dir) with open(f"{out_dir}/datacard.txt", "w") as f: f.write(helpers.abcd_datacard_template.substitute(datacard_dict)) diff --git a/src/HHbbVV/postprocessing/postprocessing.py b/src/HHbbVV/postprocessing/postprocessing.py index d3c6947b..4df769ce 100644 --- a/src/HHbbVV/postprocessing/postprocessing.py +++ b/src/HHbbVV/postprocessing/postprocessing.py @@ -339,6 +339,7 @@ def get_res_selection_regions( nonres_vbf_scan_cuts = ["txbb", "thww"] # TODO: add more cuts being scanned over res_scan_cuts = ["txbb", "thww", "leadingpt", "subleadingpt"] + nonres_sig_keys_ggf = [ "HHbbVV", "ggHH_kl_2p45_kt_1_HHbbVV", @@ -1540,7 +1541,6 @@ def get_templates( if sample in wsyst.samples and year in wsyst.years: # print(wshift) for skey, shift in [("Down", "down"), ("Up", "up")]: - print(sample, shift, "debugging on line 1319") if "QCDscale" in wshift: # QCDscale7pt/QCDscale4 # https://github.com/LPC-HH/HHLooper/blob/master/python/prepare_card_SR_final.py#L263-L288 @@ -1602,7 +1602,7 @@ def get_templates( if sig_splits is None: sig_splits = [plot_sig_keys] - print(sig_splits, plot_sig_keys) + for i, shape_var in enumerate(shape_vars): for j, p_sig_keys in enumerate(sig_splits): split_str = "" if len(sig_splits) == 1 else f"sigs{j}_" diff --git a/src/HHbbVV/processors/bbVVSkimmer.py b/src/HHbbVV/processors/bbVVSkimmer.py index cccc4663..fb96b02f 100644 --- a/src/HHbbVV/processors/bbVVSkimmer.py +++ b/src/HHbbVV/processors/bbVVSkimmer.py @@ -892,7 +892,6 @@ def getVBFVars( # Apply base masks, sort, and calculate vbf dijet (jj) cuts vbfJets_mask = ak4_jet_mask # & electron_muon_overlap_mask & fatjet_overlap_mask vbfJets = jets[vbfJets_mask] - print() vbfJets_sorted_pt = vbfJets[ak.argsort(vbfJets.pt, ascending=False)] # this is the only which does not guarantee two guys. in the other sorts, the entries are specifically None. @@ -1025,7 +1024,7 @@ def getVBFVars( # int list representing the number of passing vbf jets per event vbfVars[f"nGoodVBFJets"] = n_good_vbf_jets_sorted_pt.to_numpy() - adding_bdt_vars = True + adding_bdt_vars = False if adding_bdt_vars == True: # Adapted from HIG-20-005 ggF_Killer 6.2.2 # https://coffeateam.github.io/coffea/api/coffea.nanoevents.methods.vector.PtEtaPhiMLorentzVector.html