Boole merge requestshttps://gitlab.cern.ch/lhcb/Boole/-/merge_requests2023-05-26T13:18:02+02:00https://gitlab.cern.ch/lhcb/Boole/-/merge_requests/474Remove lowest fraction from FTClusterCreator2023-05-26T13:18:02+02:00Louis Henrylouis.henry@cern.chRemove lowest fraction from FTClusterCreatorChannel position and fraction used to be calculated with
```
float m_lowestFraction = -0.25
float clusPosition = wsumPosition / totalCharge;
unsigned int chan = std::floor( clusPosition - m_lowestFraction );
...Channel position and fraction used to be calculated with
```
float m_lowestFraction = -0.25
float clusPosition = wsumPosition / totalCharge;
unsigned int chan = std::floor( clusPosition - m_lowestFraction );
float fractionChanPosition = ( clusPosition - chan );
int frac = int( 2 * ( fractionChanPosition - m_lowestFraction ) );
```
Which is a bit arcane, and seems to be equivalent to the simpler:
```
float clusPosition = wsumPosition / totalCharge;
int rounded = std::round(2*clusPosition);
int chan = rounded/2;
int frac = rounded & 1;
```
We need to find a way to test the resulting resolutions and efficiencies, and @sesen 's opinion on this would be very precious :smile: .