Skip to content

Commit 83ffd3a

Browse files
author
Luigi Dello Stritto
committed
fix
1 parent e97082c commit 83ffd3a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

machine_learning_hep/analysis/analyzerdhadrons_mult.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ def fit(self):
344344
)
345345
h_invmass = rfile.Get("hmass_" + suffix)
346346
# Rebin
347-
#rebin = self.p_rebin[ibin2][ipt]
347+
# rebin = self.p_rebin[ibin2][ipt]
348348
rebin = self.p_rebin[ipt]
349349
h_invmass.Rebin(rebin)
350350
if h_invmass.GetEntries() < 100: # TODO: reconsider criterion

machine_learning_hep/hf_pt_spectrum.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def hf_pt_spectrum(
114114
infile_pred.Get("hCovNonPromptNonPrompt"),
115115
infile_pred.Get("hCovPromptNonPrompt"),
116116
]
117-
else:
117+
elif frac_method in ("Nb", "fc"):
118118
histos["FONLL"] = {"prompt": {}, "nonprompt": {}}
119119
for pred in ("central", "min", "max"):
120120
histos["FONLL"]["nonprompt"][pred] = infile_pred.Get(f"{fonll_hist_name[channel]}fromBpred_{pred}_corr")
@@ -185,7 +185,7 @@ def hf_pt_spectrum(
185185
rawy_unc = histos["rawyields"].GetBinError(i_pt + 1)
186186
eff_times_acc_prompt = histos["acceffp"].GetBinContent(i_pt + 1)
187187
eff_times_acc_nonprompt = histos["acceffnp"].GetBinContent(i_pt + 1)
188-
if frac_method not in ("dd", "dd_N"):
188+
if frac_method not in ("dd", "dd_N", "ext"):
189189
ptmin_fonll = histos["FONLL"]["nonprompt"]["central"].GetXaxis().FindBin(ptmin * 1.0001)
190190
ptmax_fonll = histos["FONLL"]["nonprompt"]["central"].GetXaxis().FindBin(ptmax * 0.9999)
191191
crosssec_nonprompt_fonll = [

0 commit comments

Comments
 (0)