Pixel digitisation planar tool speed up
This MR contains 2 changes:
- Initialising vector to size 9 in the constructor as maximum of 9 elements are needed - this removes the vector allocation as the main bottleneck from profiling
- Optimised the way how the diode position is retrieved - this is courtesy of @tbisanz
Output verified with diff-root
, no differences were observed