Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Corrected way to find some observables.
These observables are found using the function (example for the first of the changes) XZ_YZ_SigmaXYBalance, that previously used as input energiesY[0].first. This can, however, differ as the map energiesY is sorted and these values will change (energiesY[0].first can be 4, for example). The way the function is defined XZ_YZ_SigmaXYBalance[i] = (XZ_SigmaX[energiesX[i].first] - YZ_SigmaY[energiesY[i].first]) / (XZ_SigmaX[energiesX[i].first] + YZ_SigmaY[energiesY[i].first]); i will be 4 in this example and will call XZ_SigmaX[energiesX[4].first] instead of the desired XZ_SigmaX[energiesX[0].first] that will correspond to the highest energy track, while XZ_SigmaX[energiesX[4].first] is the 4th highest energy one. This gives a wrong result for the MaxTrack and problems can arise when there is a different number of tracks in X and Y.