Closed plexoos closed 1 month ago
@jml985 git blame shows that you were the last one who touched these lines. Any comment from you?
Yeah its obviously bug, but not critical for anything. Its on my list to fix
And its "blamed" on me because I do all the commits for the production Jevp stuff, not necessarily because I changed the code.
Hi @jdbrice and @jml985 , Could you let me know if this issue has been resolved?
Probably not resolved, but I did comment out the code to get rid of the compile warnings and make a pull request. I'm not sure who the maintainer of this code is now, if there is one. It certainly appears as if the author intended to modify the indexes for this portion of the detector and screwed up redefining the variables, however, the code has been in use for several years so presumably it doesn't matter. The worst case scenario is that the online plots show the data shifted by a bin, but I'm not even sure that this code is relevant as it might have been for a protype version of the detector.
Hi Frank, this is certainly beyond my knowledge. Probably Daniel or David should have a look.
Thanks Xu for having looked into this. Sent from my iPhoneOn Mar 25, 2024, at 9:01 PM, Xu Sun @.***> wrote: Hi Frank, this is certainly beyond my knowledge. Probably Daniel or David should have a look.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>
Describe the bug
In OnlTools/Jevp/StJevpBuilders/fttBuilder.cxx variables
ix0
andix1
are redefined inside anif
statement, the assigned values do not change the variables defined in the outer scope:https://github.com/star-bnl/star-sw/blob/e48dc9d0e7bbb7f84776bba64573401ee4dd8277/OnlTools/Jevp/StJevpBuilders/fttBuilder.cxx#L438-L446
A similar pattern can be seen for
iy0
andiy1
variables:https://github.com/star-bnl/star-sw/blob/e48dc9d0e7bbb7f84776bba64573401ee4dd8277/OnlTools/Jevp/StJevpBuilders/fttBuilder.cxx#L458-L466
To Reproduce
Compile a trivial program:
Expected behavior
It appears the authors intended to modify the values of the variables inside the
if
statement