Skip to content

Commit 0e0ae17

Browse files
Benedikt Volkelchiarazampolli
authored andcommitted
Really use same binning for TTree comparison
1 parent 8c97ef7 commit 0e0ae17

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

RelVal/o2dpg_release_validation.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,9 @@ def make_generic_histograms_from_chain(filenames1, filenames2, output_filepath1,
267267
# if successful, append histogram and necessary info
268268
leaf_names2.append(b)
269269
hist = gDirectory.Get(h_name)
270+
hist.Reset("ICEMS")
271+
# After pre-defined binning, fill again to make sure really the very same binning is used in this and the compared histogram
272+
chain1.Draw(f"{b}>>+{h_name}")
270273
histograms.append(hist)
271274
output_file1.cd()
272275
hist.Write()

0 commit comments

Comments
 (0)