Skip to content

Commit

Permalink
remove print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
rkansal47 committed Nov 11, 2023
1 parent e6b2642 commit c3acfea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/HHbbVV/postprocessing/CreateDatacard.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down
4 changes: 2 additions & 2 deletions src/HHbbVV/postprocessing/postprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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}_"
Expand Down
3 changes: 1 addition & 2 deletions src/HHbbVV/processors/bbVVSkimmer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c3acfea

Please sign in to comment.