When using the GmAPD detector model in the basic/general LIDAR detector tool, the LAS files produced are corrupted. This has been observed to include the incorrect number of points in the file and bad meta data fields the points.
The issues was tracked down to how the Geiger mode detector model labels the return index for the time-of-flight triggers it produces. It was setting the return index to -1 for all triggers as a special flag that the return index has no meaning for GmAPD (it can only ever produces 1 trigger per pulse). The BPF writer was not not handling that special case and using the -1 as the return index (expected to be 0+) produced corrupt data fields.