Open ingomueller-net opened 4 years ago
Shame on me, I found it again after 3 minutes. But it is almost certainly a bug.
The problem is that .argdistincts()
refers to the dimuons produced by dimu = muons.distincts()
, but a few lines later, dimu
is actually overwritten and filtered, so the indices returned by .argdistincts()
are invalid.
I am pretty sure something is wrong in Task 8. The following line:
is supposed to return the indices to the two muons whose mass is closest to 91.18, but I have an example event where
dimu
contains a dimuon whose mass is closer than the one ~returned byargmin
~ you get after resolvingbest_dimu
withargdistincts
.To be able to examine an individual event, I have produced a ROOT file with just that one problematic event, on which I run
example8.ipynb
:The following is a part of the notebook, to which I have added print statements and comments to show the problem:
The following patch should make the same changes against the repository: