truncate digit energy resolution issue #276
Reuquires LHCb!3564 (merged)
Propose of a solution for the Issue #276 (closed).
The function calculateClusterEXY
accumulates the energy of the entries tagged as UseForEnergy
and also calculates the corrected position X and Y according to the energy of the cluster. But it doesn't store the accumulated energy of the entries tagged as UseForPosition
.
In FutureClusterCovarianceMatrixTool
the accumulated energy of the UseForEnergy
and UseForPosition
entries is calculated, so in order to use the calculateClusterEXY
function in this tool, the loop structure to calculate the UseForPosition
energy should be maintained and the corrected position would not be used.
From that the simplest option to consistently truncate the energy values to 0.2 MeVs is to add the truncation at the energy value. However, there are three lines of code replicated from the calculateClusterEXY
function in LHCb project.
This is ready for testing.