Skip to content

Commit b79ed3a

Browse files
committed
Add 3D histogram for gen prompt.
1 parent 94d3978 commit b79ed3a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

machine_learning_hep/processerdhadrons_jet.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,12 +395,19 @@ def process_response_single(self, index): # pylint: disable=too-many-locals
395395
df_zvsjetpt_gen_unmatched = df_gen_prompt.loc[:, [self.v_varshape_binning, "pt_jet"]]
396396
fill_hist(hzvsjetpt_gen_unmatched, df_zvsjetpt_gen_unmatched)
397397
hzvsjetpt_gen_unmatched.Write()
398+
399+
# 3D histogram for gen non-prompt
398400
titlehist = "hzvsjetptvscandpt_gen_nonprompt"
399401
hzvsjetptvscandpt_gen_nonprompt = makefill3dhist(df_gen_nonprompt, titlehist, \
400402
self.varshapebinarray_gen, self.var2binarray_gen, self.var1binarray, self.v_varshape_binning, "pt_jet", "pt_cand")
401403
hzvsjetptvscandpt_gen_nonprompt.Write()
402-
# TODO
404+
403405
# 3D histogram for gen prompt
406+
titlehist = "hzvsjetptvscandpt_gen_prompt"
407+
hzvsjetptvscandpt_gen_prompt = makefill3dhist(df_gen_prompt, titlehist, \
408+
self.varshapebinarray_gen, self.var2binarray_gen, self.var1binarray, \
409+
self.v_varshape_binning, "pt_jet", "pt_cand")
410+
hzvsjetptvscandpt_gen_prompt.Write()
404411

405412
# hz_gen_nocuts is the distribution of generated z values in b in
406413
# bins of gen_jet pt before the reco z and jetpt selection. hz_gen_cuts

0 commit comments

Comments
 (0)